다음을 통해 공유


IVsPersistDocData2.GetGuidEditorType Method

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

Namespace:  Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)

Syntax

'Declaration
Function GetGuidEditorType ( _
    <OutAttribute> ByRef pClassID As Guid _
) As Integer
int GetGuidEditorType(
    out Guid pClassID
)
int GetGuidEditorType(
    [OutAttribute] Guid% pClassID
)
abstract GetGuidEditorType : 
        pClassID:Guid byref -> int
function GetGuidEditorType(
    pClassID : Guid
) : int

Parameters

  • pClassID
    Type: Guid%

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

Return Value

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

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.

.NET Framework Security

See Also

Reference

IVsPersistDocData2 Interface

Microsoft.VisualStudio.Shell.Interop Namespace