Compartilhar via


IVsCodeDefViewContext.GetSymbolName(UInt32, String) Method

Definition

Retrieves the symbol name of an item based on its index in a list of context items.

public:
 int GetSymbolName(System::UInt32 iItem, [Runtime::InteropServices::Out] System::String ^ % pbstrSymbolName);
int GetSymbolName(unsigned int iItem, [Runtime::InteropServices::Out] std::wstring const & & pbstrSymbolName);
public int GetSymbolName (uint iItem, out string pbstrSymbolName);
abstract member GetSymbolName : uint32 * string -> int
Public Function GetSymbolName (iItem As UInteger, ByRef pbstrSymbolName As String) As Integer

Parameters

iItem
UInt32

[in] Index of the context item.

pbstrSymbolName
String

[out] String containing the name of the symbol.

Returns

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

COM Signature

From vsshell80.idl:

HRESULT IVsCodeDefViewContext::GetSymbolName(  
   ULONG iItem,   
   BSTR *pbstrSymbolName  
);  

Applies to