DkmModule.GetTokenSymbolStoreAttribute Method

Definition

Overloads

GetTokenSymbolStoreAttribute(Int32, Boolean, String)

Gets a custom attribute based upon its name. Not to be confused with Metadata custom attributes, these attributes are held in the symbol store.

GetTokenSymbolStoreAttribute(DkmWorkList, Int32, Boolean, String, DkmCompletionRoutine<DkmGetTokenSymbolStoreAttributeAsyncResult>)

Gets a custom attribute based upon its name. Not to be confused with Metadata custom attributes, these attributes are held in the symbol store.

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.

GetTokenSymbolStoreAttribute(Int32, Boolean, String)

Gets a custom attribute based upon its name. Not to be confused with Metadata custom attributes, these attributes are held in the symbol store.

public:
 cli::array <System::Byte> ^ GetTokenSymbolStoreAttribute(int ParentToken, bool IsPreRemap, System::String ^ AttributeName);
public:
 Platform::Array <byte> ^ GetTokenSymbolStoreAttribute(int ParentToken, bool IsPreRemap, Platform::String ^ AttributeName);
std::Array <byte> GetTokenSymbolStoreAttribute(int ParentToken, bool IsPreRemap, std::wstring const & AttributeName);
public byte[] GetTokenSymbolStoreAttribute (int ParentToken, bool IsPreRemap, string AttributeName);
member this.GetTokenSymbolStoreAttribute : int * bool * string -> byte[]
Public Function GetTokenSymbolStoreAttribute (ParentToken As Integer, IsPreRemap As Boolean, AttributeName As String) As Byte()

Parameters

ParentToken
Int32

[In] The token of the method where the symbol store attribute is stored.

IsPreRemap
Boolean

[In] True if the specified token value is not a real method token but rather was internally computed by the compiler before the method was emitted using the CLR image creation APIs.

AttributeName
String

[In] The name of the attribute to find.

Returns

Byte[]

[Out] The value of the requested symbol store attribute. This will be an empty array if the specified attribute name cannot be found.

Applies to

GetTokenSymbolStoreAttribute(DkmWorkList, Int32, Boolean, String, DkmCompletionRoutine<DkmGetTokenSymbolStoreAttributeAsyncResult>)

Gets a custom attribute based upon its name. Not to be confused with Metadata custom attributes, these attributes are held in the symbol store.

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.

public:
 void GetTokenSymbolStoreAttribute(Microsoft::VisualStudio::Debugger::DkmWorkList ^ WorkList, int ParentToken, bool IsPreRemap, System::String ^ AttributeName, Microsoft::VisualStudio::Debugger::DkmCompletionRoutine<Microsoft::VisualStudio::Debugger::Symbols::DkmGetTokenSymbolStoreAttributeAsyncResult> ^ CompletionRoutine);
public void GetTokenSymbolStoreAttribute (Microsoft.VisualStudio.Debugger.DkmWorkList WorkList, int ParentToken, bool IsPreRemap, string AttributeName, Microsoft.VisualStudio.Debugger.DkmCompletionRoutine<Microsoft.VisualStudio.Debugger.Symbols.DkmGetTokenSymbolStoreAttributeAsyncResult> CompletionRoutine);
member this.GetTokenSymbolStoreAttribute : Microsoft.VisualStudio.Debugger.DkmWorkList * int * bool * string * Microsoft.VisualStudio.Debugger.DkmCompletionRoutine<Microsoft.VisualStudio.Debugger.Symbols.DkmGetTokenSymbolStoreAttributeAsyncResult> -> unit
Public Sub GetTokenSymbolStoreAttribute (WorkList As DkmWorkList, ParentToken As Integer, IsPreRemap As Boolean, AttributeName As String, CompletionRoutine As DkmCompletionRoutine(Of DkmGetTokenSymbolStoreAttributeAsyncResult))

Parameters

WorkList
DkmWorkList

WorkList to append the new work item to.

ParentToken
Int32

[In] The token of the method where the symbol store attribute is stored.

IsPreRemap
Boolean

[In] True if the specified token value is not a real method token but rather was internally computed by the compiler before the method was emitted using the CLR image creation APIs.

AttributeName
String

[In] The name of the attribute to find.

CompletionRoutine
DkmCompletionRoutine<DkmGetTokenSymbolStoreAttributeAsyncResult>

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