VsTextManagerClass.GetMarkerTypeInterface(Int32, IVsTextMarkerType) 方法

定义

将数值标记类型 ID 映射到可用于探测特定信息的接口。

public:
 virtual int GetMarkerTypeInterface(int iMarkerTypeID, [Runtime::InteropServices::Out] Microsoft::VisualStudio::TextManager::Interop::IVsTextMarkerType ^ % ppMarkerType) = Microsoft::VisualStudio::TextManager::Interop::IVsTextManager::GetMarkerTypeInterface;
public:
 virtual int GetMarkerTypeInterface(int iMarkerTypeID, [Runtime::InteropServices::Out] Microsoft::VisualStudio::TextManager::Interop::IVsTextMarkerType ^ &  ppMarkerType) = Microsoft::VisualStudio::TextManager::Interop::IVsTextManager::GetMarkerTypeInterface;
 virtual int GetMarkerTypeInterface(int iMarkerTypeID, [Runtime::InteropServices::Out] Microsoft::VisualStudio::TextManager::Interop::IVsTextMarkerType const & & ppMarkerType);
public virtual int GetMarkerTypeInterface (int iMarkerTypeID, out Microsoft.VisualStudio.TextManager.Interop.IVsTextMarkerType ppMarkerType);
abstract member GetMarkerTypeInterface : int * IVsTextMarkerType -> int
override this.GetMarkerTypeInterface : int * IVsTextMarkerType -> int
Public Overridable Function GetMarkerTypeInterface (iMarkerTypeID As Integer, ByRef ppMarkerType As IVsTextMarkerType) As Integer

参数

iMarkerTypeID
Int32

中标记类型 ID,如来自 GetType(Int32)

ppMarkerType
IVsTextMarkerType

弄指向接口的指针 IVsTextMarkerType ,该接口已被 AddReference 引用。

返回

Int32

如果该方法成功,则它会返回 S_OK。 如果该方法失败,则会返回错误代码。

实现

适用于