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.
Declaration
public ImportLocationAdviceInstance(FieldInfo aspectField, LocationInfo location)
Parameters
Type | Name | Description |
---|---|---|
FieldInfo | aspectField | A field of the aspect class to which |
LocationInfo | location | The field or property to import. |
ImportLocationAdviceInstance(FieldInfo, string, bool, 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.
Declaration
public ImportLocationAdviceInstance(FieldInfo aspectField, string propertyName, bool isRequired = false, ImportMemberOrder order = ImportMemberOrder.AfterIntroductions)
Parameters
Type | Name | Description |
---|---|---|
FieldInfo | aspectField | 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>. |
string | propertyName | The name of the property to import. |
bool | isRequired | Determines whether a build-time error should be emitted if the member cannot be found.
If |
ImportMemberOrder | order | Determines whether the |
ImportLocationAdviceInstance(FieldInfo, string[], bool, 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.
Declaration
public ImportLocationAdviceInstance(FieldInfo aspectField, string[] propertyNames, bool isRequired = false, ImportMemberOrder order = ImportMemberOrder.AfterIntroductions)
Parameters
Type | Name | Description |
---|---|---|
FieldInfo | aspectField | 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>. |
string[] | propertyNames | Fallback list of possible names of the property to import. |
bool | isRequired | Determines whether a build-time error should be emitted if the member cannot be found.
If |
ImportMemberOrder | order | Determines whether the |