Export (0) Print
Expand All

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

The CodeNamespace type exposes the following members.

  NameDescription
Public propertyChildrenReturns a CodeElements collection contained within this CodeNamespace.
Public propertyCollectionGGets the collection containing the object supporting this property or contained within this code construct.
Public propertyCommentGets or sets the comment associated with the CodeNamespace.
Public propertyDocCommentGets or sets the document comment for the current code model element.
Public propertyDTEGets the top-level extensibility object.
Public propertyEndPointGets the edit point that is the location of the end of the CodeNamespace item.
Public propertyExtenderReturns the requested Extender if it is available for this CodeNamespace.
Public propertyExtenderCATIDGets the Extender category ID (CATID) for the object.
Public propertyExtenderNamesGets a list of available Extenders for the object.
Public propertyFullNameGets the fully qualified name of the CodeNamespace.
Public propertyInfoLocationGets the capabilities of the code model.
Public propertyIsCodeTypeGets whether a CodeType object can be obtained from this object.
Public propertyKindGets 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 CodeNamespace element.
Public propertyNameSets or gets the name of the CodeNamespace object.
Public propertyParentGets the immediate parent object of a CodeNamespace object.
Public propertyProjectItemReturns the ProjectItem object associated with the given CodeNamespace object.
Public propertyStartPointGets a TextPoint object that defines the beginning of the code item.
Top

  NameDescription
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 methodAddInterfaceCreates a new interface code construct and inserts the code in the correct location.
Public methodAddNamespaceCreates a new namespace 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 methodGetEndPointGets a TextPoint object that marks the end of the code element definition.
Public methodGetStartPointGets a TextPoint object that defines the beginning of the code element definition.
Public methodRemoveRemoves the specified code element from the source file.
Top

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

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