CodeNamespace Interface

 

Represents a namespace construct in a source file.

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

[GuidAttribute("0CFBC2B8-0D4E-11D3-8997-00C04F688DDE")]
public interface CodeNamespace

NameDescription
System_CAPS_pubpropertyChildren

Returns a CodeElements collection contained within this CodeNamespace.

System_CAPS_pubpropertyCollection

GGets the collection containing the object supporting this property or contained within this code construct.

System_CAPS_pubpropertyComment

Gets or sets the comment associated with the CodeNamespace.

System_CAPS_pubpropertyDocComment

Gets or sets the document comment for the current code model element.

System_CAPS_pubpropertyDTE

Gets the top-level extensibility object.

System_CAPS_pubpropertyEndPoint

Gets the edit point that is the location of the end of the CodeNamespace item.

System_CAPS_pubpropertyExtender[String]

Returns the requested Extender if it is available for this CodeNamespace.

System_CAPS_pubpropertyExtenderCATID

Gets the Extender category ID (CATID) for the object.

System_CAPS_pubpropertyExtenderNames

Gets a list of available Extenders for the object.

System_CAPS_pubpropertyFullName

Gets the fully qualified name of the CodeNamespace.

System_CAPS_pubpropertyInfoLocation

Gets the capabilities of the code model.

System_CAPS_pubpropertyIsCodeType

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

System_CAPS_pubpropertyKind

Gets 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 CodeNamespace element.

System_CAPS_pubpropertyName

Sets or gets the name of the CodeNamespace object.

System_CAPS_pubpropertyParent

Gets the immediate parent object of a CodeNamespace object.

System_CAPS_pubpropertyProjectItem

Returns the ProjectItem object associated with the given CodeNamespace object.

System_CAPS_pubpropertyStartPoint

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

NameDescription
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_pubmethodAddInterface(String, Object, Object, vsCMAccess)

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

System_CAPS_pubmethodAddNamespace(String, Object)

Creates a new namespace 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_pubmethodGetEndPoint(vsCMPart)

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

System_CAPS_pubmethodGetStartPoint(vsCMPart)

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

System_CAPS_pubmethodRemove(Object)

Removes the specified code element from the source file.

CodeNamespace represents namespace declarations and is a superset of the CodeElement object.

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: