PostSharp 4.3 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Aspects Namespace / Aspect­Utilities Class / Aspect­Utilities Methods / Aspect­Utilities.​Get­Current­Instance­Credentials Method
AspectUtilities.GetCurrentInstanceCredentials Method

Note: This API is now obsolete.

Gets the InstanceCredentials of the calling instance. This method must be invoked from an instance method (not a static method) of a type that has been enhanced by an aspect.

Namespace: PostSharp.Aspects
Assembly: PostSharp (in PostSharp.dll) Version: 4.3.48.0 (4.3.48.0)
Syntax
C#
[ObsoleteAttribute]
public static InstanceCredentials GetCurrentInstanceCredentials()

Return Value

Type: InstanceCredentials
The InstanceCredentials of the calling instance.
Remarks

Calls to this method are transformed, at build time, to calls to this.GetInstanceCredentials, a method that is typically generated by PostSharp. This is why the current method has actually no implementation.

Note Note
Aspect credentials are considered obsolete and their use should be avoided.
See Also