PostSharpAPI ReferencePost­Sharp.​Aspects.​AdvicesImport­Member­AttributeImport­Member­Attribute
Open sandboxFocus

ImportMemberAttribute Constructor

ImportMemberAttribute(String[])

Initializes a new ImportMemberAttribute and specifies several possible names for the member to import.

Declaration
public ImportMemberAttribute(params string[] memberNames)
Parameters
Type Name Description
System.String[] memberNames

Possible names of the member to import in the order of precedence.

ImportMemberAttribute(String)

Initializes a new ImportMemberAttribute and specifies a single name for the member to import.

Declaration
public ImportMemberAttribute(string memberName)
Parameters
Type Name Description
System.String memberName

The name of the member to import.