ImportLocationAdviceInstance Constructor (FieldInfo, String, Boolean, ImportMemberOrder)
Assembly: PostSharp (in PostSharp.dll) Version: 184.108.40.206 (220.127.116.11)
public ImportLocationAdviceInstance( FieldInfo aspectField, string propertyNames, bool isRequired = false, ImportMemberOrder order = ImportMemberOrder.Default )
- Type: System.Reflection.FieldInfo
A field of the aspect class to which the field or property should be bound at build time. This field must be of type Property<TValue>.
- Type: System.String
Fallback list of possible names of the property to import.
- isRequired (Optional)
- Type: System.Boolean
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.
- order (Optional)
- Type: PostSharp.Aspects.Advices.ImportMemberOrder
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.