Partilhar via


vsCMClassKind Enum

Definition

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

public enum class vsCMClassKind
public enum class vsCMClassKind
enum vsCMClassKind
[System.Runtime.InteropServices.Guid("DBDF9319-8FCC-4950-A50D-1E6FB5490869")]
public enum vsCMClassKind
[<System.Runtime.InteropServices.Guid("DBDF9319-8FCC-4950-A50D-1E6FB5490869")>]
type vsCMClassKind = 
Public Enum vsCMClassKind
Inheritance
vsCMClassKind
Attributes

Fields

Name Value Description
vsCMClassKindMainClass 1

This object contains a primary class definition.

vsCMClassKindBlueprint 2

Object represents a class defined in a blueprint.

vsCMClassKindPartialClass 4

Object represents a partial class definition.

vsCMClassKindModule 8

Object represents a module. (Only supported in Visual Basic.)

Examples

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  

Applies to