DkmClrModuleInstance.GetMethodTokens Method

Definition

Overloads

GetMethodTokens(String, String, Int32[])

Provides a mechanism for obtaining metadata tokens for a method given a class. Equivalent to IMetaDataImport::EnumMethodsWithName.

This API was introduced in Visual Studio 14 RTM (DkmApiVersion.VS14RTM).

GetMethodTokens(DkmWorkList, String, String, DkmCompletionRoutine<DkmGetMethodTokensAsyncResult>)

Provides a mechanism for obtaining metadata tokens for a method given a class. Equivalent to IMetaDataImport::EnumMethodsWithName.

This method will append a new work item to the specified work list, and return once the work item has been appended. The actual processing of the work item is asynchronous. The caller will be notified that the request is complete through the completion routine.

This API was introduced in Visual Studio 14 RTM (DkmApiVersion.VS14RTM).

GetMethodTokens(String, String, Int32[])

Provides a mechanism for obtaining metadata tokens for a method given a class. Equivalent to IMetaDataImport::EnumMethodsWithName.

This API was introduced in Visual Studio 14 RTM (DkmApiVersion.VS14RTM).

public:
 void GetMethodTokens(System::String ^ ClassName, System::String ^ MethodName, [Runtime::InteropServices::Out] cli::array <int> ^ % Tokens);
public void GetMethodTokens (string ClassName, string MethodName, out int[] Tokens);
member this.GetMethodTokens : string * string * Int32[] -> unit
Public Sub GetMethodTokens (ClassName As String, MethodName As String, ByRef Tokens As Integer())

Parameters

ClassName
String

[In] The name of the class containing the method.

MethodName
String

[In] The name of the method.

Tokens
Int32[]

[Out] Array of tokens for the method.

Applies to

GetMethodTokens(DkmWorkList, String, String, DkmCompletionRoutine<DkmGetMethodTokensAsyncResult>)

Provides a mechanism for obtaining metadata tokens for a method given a class. Equivalent to IMetaDataImport::EnumMethodsWithName.

This method will append a new work item to the specified work list, and return once the work item has been appended. The actual processing of the work item is asynchronous. The caller will be notified that the request is complete through the completion routine.

This API was introduced in Visual Studio 14 RTM (DkmApiVersion.VS14RTM).

public:
 void GetMethodTokens(Microsoft::VisualStudio::Debugger::DkmWorkList ^ WorkList, System::String ^ ClassName, System::String ^ MethodName, Microsoft::VisualStudio::Debugger::DkmCompletionRoutine<Microsoft::VisualStudio::Debugger::Clr::DkmGetMethodTokensAsyncResult> ^ CompletionRoutine);
public void GetMethodTokens (Microsoft.VisualStudio.Debugger.DkmWorkList WorkList, string ClassName, string MethodName, Microsoft.VisualStudio.Debugger.DkmCompletionRoutine<Microsoft.VisualStudio.Debugger.Clr.DkmGetMethodTokensAsyncResult> CompletionRoutine);
member this.GetMethodTokens : Microsoft.VisualStudio.Debugger.DkmWorkList * string * string * Microsoft.VisualStudio.Debugger.DkmCompletionRoutine<Microsoft.VisualStudio.Debugger.Clr.DkmGetMethodTokensAsyncResult> -> unit
Public Sub GetMethodTokens (WorkList As DkmWorkList, ClassName As String, MethodName As String, CompletionRoutine As DkmCompletionRoutine(Of DkmGetMethodTokensAsyncResult))

Parameters

WorkList
DkmWorkList

WorkList to append the new work item to.

ClassName
String

[In] The name of the class containing the method.

MethodName
String

[In] The name of the method.

CompletionRoutine
DkmCompletionRoutine<DkmGetMethodTokensAsyncResult>

Routine to fire when the request is complete. If the request is successfully appended to the work list, this will always fire (including when the operation is canceled). This will never fire if appending the work item fails.

Applies to