Open sandboxFocus

Constructor CallerInfo

CallerInfo(RuntimeTypeHandle, string, string, int, int)

Declaration
[Obsolete("Use the constructor that accepts a CallerAttributes parameter.")]
public CallerInfo(RuntimeTypeHandle sourceTypeToken, string methodName, string file, int line, int column)
Parameters
Type Name Description
RuntimeTypeHandle sourceTypeToken
string methodName
string file
int line
int column

CallerInfo(RuntimeTypeHandle, string, string, int, int, CallerAttributes)

Initializes a new instance of the CallerInfo struct, and uses a RuntimeTypeHandle to specify the source type.

Declaration
public CallerInfo(RuntimeTypeHandle sourceTypeToken, string methodName, string file, int line, int column, CallerAttributes attributes)
Parameters
Type Name Description
RuntimeTypeHandle sourceTypeToken

The RuntimeTypeHandle of the calling type.

string methodName

The name of the calling method.

string file

The path of the source code of the calling code.

int line

The line in file of the caller.

int column

The column in file of the caller.

CallerAttributes attributes

The caller attributes.

CallerInfo(Type, string, string, int, int)

Declaration
[Obsolete("Use the constructor that accepts a CallerAttributes parameter.")]
public CallerInfo(Type sourceType, string methodName, string file, int line, int column)
Parameters
Type Name Description
Type sourceType
string methodName
string file
int line
int column

CallerInfo(Type, string, string, int, int, CallerAttributes)

Initializes a new instance of the CallerInfo struct, and uses a Type to specify the source type.

Declaration
public CallerInfo(Type sourceType, string methodName, string file, int line, int column, CallerAttributes attributes)
Parameters
Type Name Description
Type sourceType

The Type of the calling type.

string methodName

The name of the calling method.

string file

The path of the source code of the calling code.

int line

The line in file of the caller.

int column

The column in file of the caller.

CallerAttributes attributes

The caller attributes.