IVsProjectSpecificEditorMap2.GetSpecificEditorType(String, Guid) 方法

定义

指定应该使用哪个编辑器加载指定的文件。

public:
 int GetSpecificEditorType(System::String ^ pszMkDocument, [Runtime::InteropServices::Out] Guid % pguidEditorType);
public int GetSpecificEditorType (string pszMkDocument, out Guid pguidEditorType);
abstract member GetSpecificEditorType : string * Guid -> int
Public Function GetSpecificEditorType (pszMkDocument As String, ByRef pguidEditorType As Guid) As Integer

参数

pszMkDocument
String

中项目系统中文档的唯一名字对象标识符的字符串格式。

pguidEditorType
Guid

[out,retval]应用于实例化文件编辑器的编辑器工厂的 GUID。

返回

Int32

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

实现

注解

COM 签名

从 vsshell:

HRESULT IVsProjectSpecificEditorMap2::GetSpecificEditorType(  
   [in] LPCOLESTR pszMkDocument,  
   [out, retval] GUID *pguidEditorType  
);  

适用于