IVsPersistDocData.GetGuidEditorType 方法

返回创建 IVsPersistDocData 编辑对象工厂的唯一标识符。

命名空间:  Microsoft.VisualStudio.Shell.Interop
程序集:  Microsoft.VisualStudio.Shell.Interop(在 Microsoft.VisualStudio.Shell.Interop.dll 中)

语法

声明
Function GetGuidEditorType ( _
    <OutAttribute> ByRef pClassID As Guid _
) As Integer
int GetGuidEditorType(
    out Guid pClassID
)

参数

  • pClassID
    类型:System.Guid%
    [out] 若要编辑类型的类标识符的指针。

返回值

类型:System.Int32
如果方法成功,则返回 S_OK。如果失败,它会返回一个错误代码。

备注

COM 签名

从 vsshell.idl:

HRESULT IVsPersistDocData::GetGuidEditorType(
   [out] CLSID *pClassID
);

DTE 自动化环境的实现文档数据对象调用 kind 属性 [变量 2] (常规扩展性的文档) 数据对象的实现的 IVsPersistDocData::GetGuidEditorType 。标识文件类型的需要返回 GUID。此 GUID 不用作 CLSID 将于 CoCreateInstance或类似的功能。

.NET Framework 安全性

请参见

参考

IVsPersistDocData 接口

Microsoft.VisualStudio.Shell.Interop 命名空间