IVsPersistDocData::GetGuidEditorType Method (Guid)
Visual Studio 2015
Returns the unique identifier of the editor factory that created the IVsPersistDocData object.
Assembly: Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)
Parameters
- pClassID
-
Type:
System::Guid
[out] Pointer to the class identifier of the editor type.
Return Value
Type: System::Int32If the method succeeds, it returns S_OK. If it fails, it returns an error code.
From vsshell.idl:
HRESULT IVsPersistDocData::GetGuidEditorType( [out] CLSID *pClassID );
The environment's implementation of the DTE automation document data object calls IVsPersistDocData::GetGuidEditorType in the document data object's implementation of the Kind Property [Variant 2] (General Extensibility).You need to return a GUID that identifies your document type. This GUID is not used as a CLSID to be passed to CoCreateInstance, or similar functions.
Show: