Gets the GUID of the editor factory that created the document.
Namespace: Microsoft.VisualStudio.Modeling.Shell
Assembly: Microsoft.VisualStudio.Modeling.Sdk.Shell (in Microsoft.VisualStudio.Modeling.Sdk.Shell.dll)
Syntax
'宣言
Public Function GetClassID ( _
<OutAttribute> ByRef classId As Guid _
) As Integer
'使用
Dim instance As DocData
Dim classId As Guid
Dim returnValue As Integer
returnValue = instance.GetClassID(classId)
public int GetClassID(
out Guid classId
)
public:
virtual int GetClassID(
[OutAttribute] Guid% classId
) sealed
public final function GetClassID(
classId : Guid
) : int
Parameters
classId
Type: System.Guid%The GUID of the editor factory that created the document.
Return Value
Type: System.Int32
S_OK if the method succeeds; otherwise, it returns an error code.
Implements
Remarks
The editor factory GUID implements GetGuidEditorType.
Permissions
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.