Export (0) Print
Expand All
Expand Minimize

vsCMClassKind Enumeration 

Represents a value defining the kind of class definition represented by the object.

Namespace: EnvDTE80
Assembly: EnvDTE80 (in envdte80.dll)

[GuidAttribute("DBDF9319-8FCC-4950-A50D-1E6FB5490869")] 
public enum vsCMClassKind
/** @attribute GuidAttribute("DBDF9319-8FCC-4950-A50D-1E6FB5490869") */ 
public enum vsCMClassKind
GuidAttribute("DBDF9319-8FCC-4950-A50D-1E6FB5490869") 
public enum vsCMClassKind

 Member nameDescription
vsCMClassKindBlueprintObject represents a class defined in a blueprint. 
vsCMClassKindMainClassThis object contains a primary class definition. 
vsCMClassKindModuleObject represents a module. (Only supported in Visual Basic.) 
vsCMClassKindPartialClassObject represents a partial class definition. 

Sub CodeClassExample()
    Dim sel As TextSelection
    Dim myClass1 As EnvDTE80.CodeClass2
    Dim classPart As EnvDTE80.CodeClass2

    sel = DTE.ActiveDocument.Selection
    myClass1 = sel.ActivePoint.CodeElement _
    (vsCMElement.vsCMElementClass)
    If myClass1.ClassKind =  _
    vsCMClassKind.vsCMClassKindPartialClass Then
        For Each classPart In myClass1.PartialClasses
        Next
    End If
End Sub
Show:
© 2014 Microsoft