Open sandboxFocus

Constructor ArgumentAttribute

ArgumentAttribute()

Initializes a new instance of the ArgumentAttribute class that selects the argument whose type can be assigned to the type of the advice parameter.

Declaration
public ArgumentAttribute()

ArgumentAttribute(int)

Initializes a new instance of the ArgumentAttribute class that selects the argument at a given index.

Declaration
public ArgumentAttribute(int index)
Parameters
Type Name Description
int index

The zero-based index of the argument in the parameter list of the target method.

ArgumentAttribute(string)

Initializes a new instance of the ArgumentAttribute class that selects the argument of a given name.

Declaration
public ArgumentAttribute(string name)
Parameters
Type Name Description
string name

The name of the parameter of the target method.