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
'Declaration
Function GetDisplayName ( _
<OutAttribute> ByRef pbstrName As String _
) As Integer
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
- 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.