IDkmClrSymbolCallback120.GetMethodSymbolStoreAttribute Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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> ^ GetMethodSymbolStoreAttribute(Microsoft::VisualStudio::Debugger::Clr::DkmClrInstructionSymbol ^ clrInstruction, System::String ^ attributeName);
public:
Platform::Array <byte> ^ GetMethodSymbolStoreAttribute(Microsoft::VisualStudio::Debugger::Clr::DkmClrInstructionSymbol ^ clrInstruction, Platform::String ^ attributeName);
std::Array <byte> GetMethodSymbolStoreAttribute(Microsoft::VisualStudio::Debugger::Clr::DkmClrInstructionSymbol const & clrInstruction, std::wstring const & attributeName);
public byte[] GetMethodSymbolStoreAttribute (Microsoft.VisualStudio.Debugger.Clr.DkmClrInstructionSymbol clrInstruction, string attributeName);
public byte[]? GetMethodSymbolStoreAttribute (Microsoft.VisualStudio.Debugger.Clr.DkmClrInstructionSymbol clrInstruction, string attributeName);
abstract member GetMethodSymbolStoreAttribute : Microsoft.VisualStudio.Debugger.Clr.DkmClrInstructionSymbol * string -> byte[]
Public Function GetMethodSymbolStoreAttribute (clrInstruction As DkmClrInstructionSymbol, attributeName As String) As Byte()
Parameters
- clrInstruction
- DkmClrInstructionSymbol
[In] DkmClrInstructionSymbol represents an IL instruction that runs under the Common Language Runtime (CLR) in the target process. This object contains the method version number. So in Edit-and-Continue scenarios, the instruction symbol would be different for different versions of the method. This object does not contain information about generic binding parameters. So different generic instantiations of a method (ex: MyMethod<string> and MyMethod<int>) are represented by the same instruction symbol since the CLR represents them with a single method token.
- attributeName
- String
[In] The name of the attribute to find.
Returns
[Out] The value of the requested symbol store attribute. This will be an empty array if the specified attribute name cannot be found.