IVsTextMarkerType.GetPriorityIndex 方法
傳回優先順序做為自訂的資料標記的類型,具有索引的最高的優先順序值,接收的最頂端的位置。
命名空間: Microsoft.VisualStudio.TextManager.Interop
組件: Microsoft.VisualStudio.TextManager.Interop (在 Microsoft.VisualStudio.TextManager.Interop.dll 中)
語法
'宣告
Function GetPriorityIndex ( _
<OutAttribute> ByRef piPriorityIndex As Integer _
) As Integer
int GetPriorityIndex(
out int piPriorityIndex
)
int GetPriorityIndex(
[OutAttribute] int% piPriorityIndex
)
abstract GetPriorityIndex :
piPriorityIndex:int byref -> int
function GetPriorityIndex(
piPriorityIndex : int
) : int
參數
piPriorityIndex
類型:Int32%[] out文字標記的型別優先順序索引指標。 為一系列piPriorityIndex的值,請參閱MARKERTYPE。
傳回值
類型:Int32
如果此方法將會成功,則會傳回S_OK。如果失敗,它就會傳回錯誤碼。
備註
COM 簽章
從 textmgr.idl:
HRESULT IVsTextMarkerType::GetPriorityIndex(
[out] long *piPriorityIndex
);
使用這個方法來判斷您的自訂標記類型的優先等級。 所有使用 Visual Studio 的核心文字編輯器所提供的資料標記型別都有與其相關聯的預設優先順序。 標記型別優先順序用來決定如何處理指令等等的標記類型。
.NET Framework 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。