다음을 통해 공유


IVsUserContextItem.Name(String) Method

Definition

Returns the name of the UserContextItem selected by the user in the shell.

public:
 int Name([Runtime::InteropServices::Out] System::String ^ % pbstrName);
int Name([Runtime::InteropServices::Out] std::wstring const & & pbstrName);
public int Name (out string pbstrName);
abstract member Name : string -> int
Public Function Name (ByRef pbstrName As String) As Integer

Parameters

pbstrName
String

[out] The name of the UserContextItem in the shell.

Returns

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

Remarks

COM Signature

From context.idl:

HRESULT IVsUserContextItem::Name(  
   [out, retval] BSTR * pbstrName  
);  

Applies to