Partager via


IVsTextMarkerType.GetDisplayName Method

Returns the display name of the custom marker type.

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

Syntax

'Déclaration
Function GetDisplayName ( _
    <OutAttribute> ByRef pbstrName As String _
) As Integer
'Utilisation
Dim instance As IVsTextMarkerType
Dim pbstrName As String
Dim returnValue As Integer

returnValue = instance.GetDisplayName(pbstrName)
int GetDisplayName(
    out string pbstrName
)
int GetDisplayName(
    [OutAttribute] String^% pbstrName
)
abstract GetDisplayName : 
        pbstrName:string byref -> int 
function GetDisplayName(
    pbstrName : String
) : int

Parameters

  • pbstrName
    Type: System.String%
    [out] Pointer to the display name for the custom marker type.

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 IVsTextMarkerType::GetDisplayName(
   [out] BSTR *pbstrName
);

The display name is shown in the Options dialog box. The display name must be localized to the appropriate language.

.NET Framework Security

See Also

Reference

IVsTextMarkerType Interface

IVsTextMarkerType Members

Microsoft.VisualStudio.TextManager.Interop Namespace