Επεξεργασία

Κοινή χρήση μέσω


DiagnosticMethodInfo.Create Method

Definition

Overloads

Create(Delegate)

Creates a DiagnosticMethodInfo that represents the target of the delegate.

Create(StackFrame)

Creates a DiagnosticMethodInfo that represents the method this stack frame is associtated with.

Create(Delegate)

Creates a DiagnosticMethodInfo that represents the target of the delegate.

public:
 static System::Diagnostics::DiagnosticMethodInfo ^ Create(Delegate ^ delegate);
public static System.Diagnostics.DiagnosticMethodInfo? Create (Delegate delegate);
static member Create : Delegate -> System.Diagnostics.DiagnosticMethodInfo
Public Shared Function Create (delegate As Delegate) As DiagnosticMethodInfo

Parameters

delegate
Delegate

The delegate to examine.

Returns

An object that represents the method.

Remarks

This returns the definition of the target method, with stripped instantiation information.

The return value might be null if the `StackTraceSupport` feature switch is set to false.

Applies to

Create(StackFrame)

Creates a DiagnosticMethodInfo that represents the method this stack frame is associtated with.

public:
 static System::Diagnostics::DiagnosticMethodInfo ^ Create(System::Diagnostics::StackFrame ^ frame);
public static System.Diagnostics.DiagnosticMethodInfo? Create (System.Diagnostics.StackFrame frame);
static member Create : System.Diagnostics.StackFrame -> System.Diagnostics.DiagnosticMethodInfo
Public Shared Function Create (frame As StackFrame) As DiagnosticMethodInfo

Parameters

frame
StackFrame

The stack frame to examine.

Returns

An object that represents the stack frame.

Remarks

This returns the definition of the target method, with stripped instantiation information.

The return value might be null if the `StackTraceSupport` feature switch is set to false.

The return value might be null if the target method is unknown.

Applies to