Condividi tramite


IVsPersistDocData.GetGuidEditorType(Guid) Method

Definition

Returns the unique identifier of the editor factory that created the IVsPersistDocData object.

public:
 int GetGuidEditorType([Runtime::InteropServices::Out] Guid % pClassID);
public int GetGuidEditorType (out Guid pClassID);
abstract member GetGuidEditorType : Guid -> int
Public Function GetGuidEditorType (ByRef pClassID As Guid) As Integer

Parameters

pClassID
Guid

[out] Pointer to the class identifier of the editor type.

Returns

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

COM Signature

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.

Applies to