ImportLocationAdviceInstance Class |
PostSharp.Aspects.Advices.AdviceInstance
PostSharp.Aspects.Advices.ImportMemberAdviceInstance
PostSharp.Aspects.Advices.ImportLocationAdviceInstance
Namespace: PostSharp.Aspects.Advices
Assembly: PostSharp (in PostSharp.dll) Version: 5.0.55.0 (5.0.55.0)
public sealed class ImportLocationAdviceInstance : ImportMemberAdviceInstance
The ImportLocationAdviceInstance type exposes the following members.
Name | Description | |
---|---|---|
ImportLocationAdviceInstance(FieldInfo, LocationInfo) |
Initializes a new instance of the ImportLocationAdviceInstance class and specifies which field or property should be imported by giving its reflection representation.
| |
ImportLocationAdviceInstance(FieldInfo, String, Boolean, ImportMemberOrder) |
Initializes a new instance of the ImportLocationAdviceInstance class and specifies the name of the property to be imported; the type of this
property will be matched according to the type of the aspect field.
| |
ImportLocationAdviceInstance(FieldInfo, String[], Boolean, ImportMemberOrder) |
Initializes a new instance of the ImportLocationAdviceInstance class and specifies the name of the property to be imported; the type of this
property will be matched according to the type of the aspect field.
|
Name | Description | |
---|---|---|
AspectField |
Gets the field of the aspect class to which the field or property needs to be bound.
(Inherited from ImportMemberAdviceInstance.) | |
Description |
A human-readable description of the current advice instance.
(Inherited from AdviceInstance.) | |
IsRequired |
Determines whether a build-time error should be emitted if the member cannot be found.
If false, the binding field will be null in case the imported member is absent.
(Inherited from ImportMemberAdviceInstance.) | |
LinesOfCodeAvoided |
The number of lines of hand-written code avoided by this specific AdviceInstance.
(Inherited from AdviceInstance.) | |
Location |
Gets the field or property of the target class that needs to be imported into the aspect.
| |
MasterAspectMember |
Gets the main field or method of the aspect class that the current AdviceInstance relates to.
(Inherited from ImportMemberAdviceInstance.) | |
Member |
Gets the reflection object (LocationInfo or MethodInfo) that needs to be
imported, or null if the exact member is unknown and must be matched by name and signature.
(Overrides ImportMemberAdviceInstance.Member.) | |
MemberNames |
Gets the fallback list of possible names of the member to be imported.
(Overrides ImportMemberAdviceInstance.MemberNames.) | |
Order |
Determines whether the AspectField should be bound to the member
as resolved before or after introduction of new members into the target class by the current advise.
(Inherited from ImportMemberAdviceInstance.) |
Name | Description | |
---|---|---|
QueryInterface<T> |
Gets the implementation of a specified interface for the specified object.
(Defined by QueryInterfaceExtensions.) |