IVsMergeableUIItem.GetDisplayName Method
Returns the localized item name used for display in UI.
Namespace: Microsoft.VisualStudio.TextManager.Interop
Assembly: Microsoft.VisualStudio.TextManager.Interop (in Microsoft.VisualStudio.TextManager.Interop.dll)
Syntax
'宣告
Function GetDisplayName ( _
<OutAttribute> ByRef pbstrDisplayName As String _
) As Integer
int GetDisplayName(
out string pbstrDisplayName
)
int GetDisplayName(
[OutAttribute] String^% pbstrDisplayName
)
abstract GetDisplayName :
pbstrDisplayName:string byref -> int
function GetDisplayName(
pbstrDisplayName : String
) : int
Parameters
- pbstrDisplayName
Type: System.String%
[out] String containing the display name.
Return Value
Type: System.Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.
Remarks
COM Signature
From textmgr.idl:
HRESULT IVsMergeableUIItem::GetDisplayName(
[out] BSTR *pbstrDisplayName
);
For package-defined marker types, we also get the localized name by way of a string resource put into the registry key for this external marker.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.