VsTextManagerClass.GetMarkerTypeInterface(Int32, IVsTextMarkerType) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
将数值标记类型 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 引用。
返回
如果该方法成功,则它会返回 S_OK。 如果该方法失败,则会返回错误代码。