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