Constructor ImportMethodAdviceInstance
ImportMethodAdviceInstance(FieldInfo, String, Boolean, ImportMemberOrder)
Initializes a new instance of the ImportMethodAdviceInstance.
Declaration
public ImportMethodAdviceInstance(FieldInfo aspectField, string methodName, bool isRequired = false, ImportMemberOrder order)
Parameters
Type | Name | Description |
---|---|---|
FieldInfo | aspectField | A field of the aspect class into that will be assigned to a delegate of the imported method at runtime. The field type should be a delegate of the same signature than the method to import. |
String | methodName | Name of the method to import. |
Boolean | isRequired |
|
ImportMemberOrder | order | Determines whether the |
ImportMethodAdviceInstance(FieldInfo, String[], Boolean, ImportMemberOrder)
Initializes a new instance of the ImportMethodAdviceInstance.
Declaration
public ImportMethodAdviceInstance(FieldInfo aspectField, string[] methodNames, bool isRequired = false, ImportMemberOrder order)
Parameters
Type | Name | Description |
---|---|---|
FieldInfo | aspectField | A field of the aspect class into that will be assigned to a delegate of the imported method at runtime. The field type should be a delegate of the same signature than the method to import. |
String[] | methodNames | Fallback list of possible names of the member to be imported. |
Boolean | isRequired |
|
ImportMemberOrder | order | Determines whether the |