共用方式為


IVsTextMarkerType.GetDisplayName 方法

傳回自訂的資料標記類型的顯示名稱。

命名空間:  Microsoft.VisualStudio.TextManager.Interop
組件:  Microsoft.VisualStudio.TextManager.Interop (在 Microsoft.VisualStudio.TextManager.Interop.dll 中)

語法

'宣告
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

參數

  • pbstrName
    類型:String%

    [] out若要自訂的資料標記類型的顯示名稱的指標。

傳回值

類型:Int32
如果此方法將會成功,則會傳回S_OK。如果失敗,它就會傳回錯誤碼。

備註

COM 簽章

從 textmgr.idl:

HRESULT IVsTextMarkerType::GetDisplayName(
   [out] BSTR *pbstrName
);

顯示名稱所示選項對話方塊。 顯示名稱,都必須已當地語系化為適當的語言。

.NET Framework 安全性

請參閱

參考

IVsTextMarkerType 介面

Microsoft.VisualStudio.TextManager.Interop 命名空間