PostSharp 5.0 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Aspects Namespace / Arguments Class / Arguments Methods / Arguments.​Get­Argument Method

Arguments.GetArgument Method

Gets the value of the argument at a given index.

Namespace:  PostSharp.Aspects
Assembly:  PostSharp (in PostSharp.dll) Version: 5.0.55.0 (5.0.55.0)
Syntax
C#
public virtual Object GetArgument(
	int index
)

Parameters

index
Type: System.Int32
Argument index.

Return Value

Type: Object
The value of the argument at position index.
Exceptions
ExceptionCondition
ArgumentOutOfRangeExceptionindex is lower than zero or greater or equal than Count.
See Also