Udostępnij za pośrednictwem


IVsPersistDocData2.GetGuidEditorType(Guid) Method

Definition

Returns the unique identifier of the editor factory that created the IVsPersistDocData2 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.

Implements

Remarks

COM Signature

From vsshell.idl:

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

The environment's implementation of the DTE automation document data object calls GetGuidEditorType in the Document 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