PostSharp6.3/API Reference/Post­Sharp.​Patterns.​Diagnostics.​Contexts Namespace/Caller­Info Structure

CallerInfo Structure

Represents information about the caller of the Logger class.

Namespace:  PostSharp.Patterns.Diagnostics.Contexts
Assembly:  PostSharp.Patterns.Common (in PostSharp.Patterns.Common.dll) Version: 6.3.14.0 (6.3.14.0)
Syntax
C#
public struct CallerInfo

The CallerInfo type exposes the following members.

Constructors
  NameDescription
Public methodCallerInfo(RuntimeTypeHandle, String, String, Int32, Int32) Obsolete.
Initializes a new instance of the CallerInfo class
Public methodCallerInfo(Type, String, String, Int32, Int32) Obsolete.
Initializes a new instance of the CallerInfo class
Public methodCallerInfo(RuntimeTypeHandle, String, String, Int32, Int32, CallerAttributes)
Initializes a new CallerInfo, and uses as a RuntimeTypeHandle to specify the source type.
Public methodCallerInfo(Type, String, String, Int32, Int32, CallerAttributes)
Initializes a new CallerInfo, and uses as a Type to specify the source type.
Properties
  NameDescription
Public propertyAttributes
Gets the caller attributes.
Public propertyIsAsync
Determines whether the caller is an async method.
Public propertyIsNull
Determines whether the current CallerInfo is null.
Public propertyMethodName
Gets the name of the caller method.
Public propertySourceLineInfo
Gets the SourceLineInfo of the caller.
Public propertySourceType
Gets the source Type.
Public propertySourceTypeToken
Gets the RuntimeTypeHandle of the caller Type.
Methods
  NameDescription
Public methodStatic memberGetDynamic
Gets a CallerInfo of the caller by performing a stack walk (using StackFrame).
Public methodToString
Returns the fully qualified type name of this instance.
(Overrides ValueType.ToString().)
See Also