IDkmClrSymbolCallback.GetTokenSymbolStoreAttribute Method

Definition

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(Microsoft::VisualStudio::Debugger::Symbols::DkmModule ^ module, int parentToken, bool isPreRemap, System::String ^ attributeName);
public byte[] GetTokenSymbolStoreAttribute (Microsoft.VisualStudio.Debugger.Symbols.DkmModule module, int parentToken, bool isPreRemap, string attributeName);
public byte[]? GetTokenSymbolStoreAttribute (Microsoft.VisualStudio.Debugger.Symbols.DkmModule module, int parentToken, bool isPreRemap, string attributeName);
abstract member GetTokenSymbolStoreAttribute : Microsoft.VisualStudio.Debugger.Symbols.DkmModule * int * bool * string -> byte[]
Public Function GetTokenSymbolStoreAttribute (module As DkmModule, parentToken As Integer, isPreRemap As Boolean, attributeName As String) As Byte()

Parameters

module
DkmModule

[In] The DkmModule class represents a code bundle (ex: dll or exe) which is or once was loaded into one or more processes. The DkmModule class is the central object to the symbol APIs, and is 1:1 with the symbol handler's notation of what is loaded. If a code bundle loads into three different processes (or the same process but with three different base addresses or three different app domains) but the symbol handler thinks of all of these as being identical, there will be only one module object.

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