IVsUserContextItem::GetAttribute Method (String^, Int32, array<String^>^, array<String^>^)

 

Gets the attributes of the user-selected item in the shell.

Namespace:   Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)

int GetAttribute(
	String^ pszAttrName,
	int index,
	array<String^>^ pbstrName,
	array<String^>^ pbstrValue
)

Parameters

pszAttrName
Type: System::String^

[in] The name of the attribute of the selected item in the shell to search for.

index
Type: System::Int32

[in] The integer entry point into the array of strings containing attributes.

pbstrName
Type: array<System::String^>^

[out] The string array of attributes that match the name of the attribute searched for.

pbstrValue
Type: array<System::String^>^

[out] The string array of values that correspond to the string array of attributes returned by the member when called.

Return Value

Type: System::Int32

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

From context.idl:

HRESULT IVsUserContextItem::GetAttribute(
   [in] LPCOLESTR pszAttrName, 
   [in] int index, 
   [out, optional] BSTR * pbstrName, 
   [out, optional, retval] BSTR * pbstrValue
);
Return to top
Show: