CodeClass Interface

 

Represents a class in source code.

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

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

NameDescription
System_CAPS_pubpropertyAccess

Sets or gets the access attributes of the CodeClass object.

System_CAPS_pubpropertyAttributes

Gets a collection of all of the attributes for the parent object.

System_CAPS_pubpropertyBases

Gets a collection of classes from which this item derives.

System_CAPS_pubpropertyChildren

Gets a collection of CodeElements contained within the CodeClass object.

System_CAPS_pubpropertyCollection

Gets a CodeElements collection.

System_CAPS_pubpropertyComment

Gets or sets the comment associated with the CodeClass object.

System_CAPS_pubpropertyDerivedTypes

Gets a collection of objects derived from this CodeClass object. Not implemented in Visual C#.

System_CAPS_pubpropertyDocComment

Sets or gets the document comment for the current code model element.

System_CAPS_pubpropertyDTE

Gets the top-level extensibility object.

System_CAPS_pubpropertyEndPoint

Gets the text point that is the location of the end of the code item.

System_CAPS_pubpropertyExtender[String^]

Gets the requested Extender object. Not implemented in Visual C#.

System_CAPS_pubpropertyExtenderCATID

Returns the Extender category ID (CATID) for the object. Not implemented in Visual C#.

System_CAPS_pubpropertyExtenderNames

Gets a list of available Extenders for the CodeClass object. Not implemented in Visual C#.

System_CAPS_pubpropertyFullName

Gets the full path and name of the CodeClass object's source file.

System_CAPS_pubpropertyImplementedInterfaces

Gets a collection of interfaces implemented by a CodeClass object.

System_CAPS_pubpropertyInfoLocation

Gets the capabilities of the code model.

System_CAPS_pubpropertyIsAbstract

Sets or gets whether or not an item is declared as abstract.

System_CAPS_pubpropertyIsCodeType

Gets whether a CodeType object can be obtained from this object.

System_CAPS_pubpropertyIsDerivedFrom[String^]

Returns whether a CodeClass object has another object as a base.

System_CAPS_pubpropertyKind

Returns an enumeration indicating the type of object.

System_CAPS_pubpropertyLanguage

Gets the programming language used to author the code.

System_CAPS_pubpropertyMembers

Gets a collection of items contained by this element.

System_CAPS_pubpropertyName

Sets or gets the name of the CodeClass object.

System_CAPS_pubpropertyNamespace

Gets an object defining the parent namespace.

System_CAPS_pubpropertyParent

Gets the immediate parent object of a CodeClass object.

System_CAPS_pubpropertyProjectItem

Gets the ProjectItem associated with the given object.

System_CAPS_pubpropertyStartPoint

Gets a TextPoint that defines the beginning of the code item.

NameDescription
System_CAPS_pubmethodAddAttribute(String^, String^, Object^)

Creates a new attribute code construct and inserts the code in the correct location.

System_CAPS_pubmethodAddBase(Object^, Object^)

Adds an item to the list of inherited objects.

System_CAPS_pubmethodAddClass(String^, Object^, Object^, Object^, vsCMAccess)

Creates a new class code construct and inserts the code in the correct location.

System_CAPS_pubmethodAddDelegate(String^, Object^, Object^, vsCMAccess)

Creates a new delegate code construct and inserts the code in the correct location.

System_CAPS_pubmethodAddEnum(String^, Object^, Object^, vsCMAccess)

Creates a new enumeration code construct and inserts the code in the correct location.

System_CAPS_pubmethodAddFunction(String^, vsCMFunction, Object^, Object^, vsCMAccess, Object^)

Creates a new function code construct and inserts the code in the correct location.

System_CAPS_pubmethodAddImplementedInterface(Object^, Object^)

Adds an interface to the list of inherited objects.

System_CAPS_pubmethodAddProperty(String^, String^, Object^, Object^, vsCMAccess, Object^)

Creates a new property code construct and inserts the code in the correct location.

System_CAPS_pubmethodAddStruct(String^, Object^, Object^, Object^, vsCMAccess)

Creates a new structure code construct and inserts the code in the correct location.

System_CAPS_pubmethodAddVariable(String^, Object^, Object^, vsCMAccess, Object^)

Creates a new variable code construct and inserts the code in the correct location.

System_CAPS_pubmethodGetEndPoint(vsCMPart)

Returns a TextPoint object that marks the end of the code element definition.

System_CAPS_pubmethodGetStartPoint(vsCMPart)

Returns a TextPoint object that defines the beginning of the code element definition.

System_CAPS_pubmethodRemoveBase(Object^)

Removes an object from the list of bases.

System_CAPS_pubmethodRemoveInterface(Object^)

Removes an interface from the list of implemented interfaces.

System_CAPS_pubmethodRemoveMember(Object^)

Removes a member code construct.

System_CAPS_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).

Return to top
Show: