Export (0) Print
Expand All

CodeClass Interface

Represents a class in source code.

Namespace:  EnvDTE
Assembly:  EnvDTE (in EnvDTE.dll)

[GuidAttribute("B1F42514-91CD-4D3A-8B25-A317D8032B24")]
public interface CodeClass

The CodeClass type exposes the following members.

  NameDescription
Public propertyAccessSets or gets the access attributes of the CodeClass object.
Public propertyAttributesGets a collection of all of the attributes for the parent object.
Public propertyBasesGets a collection of classes from which this item derives.
Public propertyChildrenGets a collection of CodeElements contained within the CodeClass object.
Public propertyCollectionGets a CodeElements collection.
Public propertyCommentGets or sets the comment associated with the CodeClass object.
Public propertyDerivedTypesGets a collection of objects derived from this CodeClass object. Not implemented in Visual C#.
Public propertyDocCommentSets or gets the document comment for the current code model element.
Public propertyDTEGets the top-level extensibility object.
Public propertyEndPointGets the text point that is the location of the end of the code item.
Public propertyExtenderGets the requested Extender object. Not implemented in Visual C#.
Public propertyExtenderCATIDReturns the Extender category ID (CATID) for the object. Not implemented in Visual C#.
Public propertyExtenderNamesGets a list of available Extenders for the CodeClass object. Not implemented in Visual C#.
Public propertyFullNameGets the full path and name of the CodeClass object's source file.
Public propertyImplementedInterfacesGets a collection of interfaces implemented by a CodeClass object.
Public propertyInfoLocationGets the capabilities of the code model.
Public propertyIsAbstractSets or gets whether or not an item is declared as abstract.
Public propertyIsCodeTypeGets whether a CodeType object can be obtained from this object.
Public propertyIsDerivedFromReturns whether a CodeClass object has another object as a base.
Public propertyKindReturns an enumeration indicating the type of object.
Public propertyLanguageGets the programming language used to author the code.
Public propertyMembersGets a collection of items contained by this element.
Public propertyNameSets or gets the name of the CodeClass object.
Public propertyNamespaceGets an object defining the parent namespace.
Public propertyParentGets the immediate parent object of a CodeClass object.
Public propertyProjectItemGets the ProjectItem associated with the given object.
Public propertyStartPointGets a TextPoint that defines the beginning of the code item.
Top

  NameDescription
Public methodAddAttributeCreates a new attribute code construct and inserts the code in the correct location.
Public methodAddBaseAdds an item to the list of inherited objects.
Public methodAddClassCreates a new class code construct and inserts the code in the correct location.
Public methodAddDelegateCreates a new delegate code construct and inserts the code in the correct location.
Public methodAddEnumCreates a new enumeration code construct and inserts the code in the correct location.
Public methodAddFunctionCreates a new function code construct and inserts the code in the correct location.
Public methodAddImplementedInterfaceAdds an interface to the list of inherited objects.
Public methodAddPropertyCreates a new property code construct and inserts the code in the correct location.
Public methodAddStructCreates a new structure code construct and inserts the code in the correct location.
Public methodAddVariableCreates a new variable code construct and inserts the code in the correct location.
Public methodGetEndPointReturns a TextPoint object that marks the end of the code element definition.
Public methodGetStartPointReturns a TextPoint object that defines the beginning of the code element definition.
Public methodRemoveBaseRemoves an object from the list of bases.
Public methodRemoveInterfaceRemoves an interface from the list of implemented interfaces.
Public methodRemoveMemberRemoves a member code construct.
Top

NoteNote

The values of code model elements such as classes, structs, functions, attributes, delegates, and so forth can be non-deterministic after making certain kinds of edits, meaning that their values cannot be relied upon to always remain the same. For more information, see the section Code Model Element Values Can Change in Discovering Code by Using the Code Model (Visual Basic).

Community Additions

ADD
Show:
© 2014 Microsoft