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
用法
Dim instance As IVsMergeableUIItem
Dim pbstrDisplayName As String
Dim returnValue As Integer

returnValue = instance.GetDisplayName(pbstrDisplayName)
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

See Also

Reference

IVsMergeableUIItem Interface

IVsMergeableUIItem Members

Microsoft.VisualStudio.TextManager.Interop Namespace