Open sandboxFocus

Class OnInstanceLocationInitializedAdvice

Custom attribute that, when applied on a method of an aspect class, specifies that this method is an advice that has the same semantics as OnInstanceLocationInitialized(LocationInitializationArgs).

Inheritance
OnInstanceLocationInitializedAdvice
Namespace: PostSharp.Aspects.Advices
Assembly: PostSharp.dll
Syntax
[AttributeUsage(AttributeTargets.Method, AllowMultiple = true, Inherited = true)]
public sealed class OnInstanceLocationInitializedAdvice : GroupingAdvice
Remarks

The method to which this custom attribute is applied must be public and must have the same signature as OnInstanceLocationInitialized(LocationInitializationArgs). However, it can be static.

A master advice without a custom attribute derived from Pointcut applies to the field or property to which the aspect is applied; when the aspect is applied to another kind of declaration, a pointcut is required. An advice without Master and without pointcut joins the group of the master advice declared in its class.

Constructors

Name Description
OnInstanceLocationInitializedAdvice()

See Also