CodeNamespace Members
This page is specific to:.NET Framework Version:1.12.03.03.54.0
.NET Framework Class Library
CodeNamespace Members

CodeNamespace overview

Public Constructors

public constructorCodeNamespace Constructor Overloaded. Initializes a new instance of the CodeNamespace class.

Public Properties

public propertyComments Gets the comments for the namespace.
public propertyImports Gets the collection of namespace import directives used by the namespace.
public propertyName Gets or sets the name of the namespace.
public propertyTypes Gets the collection of types that the namespace contains.
public propertyUserData (inherited from CodeObject) Gets or sets the user-definable data for the current object.

Public Methods

public methodEquals (inherited from Object) Overloaded. Determines whether two Object instances are equal.
public methodGetHashCode (inherited from Object) Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table.
public methodGetType (inherited from Object) Gets the Type of the current instance.
public methodToString (inherited from Object) Returns a String that represents the current Object.

Public Events

public eventPopulateComments An event that will be raised the first time the Comments collection is accessed.
public eventPopulateImports An event that will be raised the first time the Imports collection is accessed.
public eventPopulateTypes An event that will be raised the first time the Types collection is accessed.

Protected Methods

protected methodFinalize (inherited from Object) Overridden. Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.

In C# and C++, finalizers are expressed using destructor syntax.

protected methodMemberwiseClone (inherited from Object) Creates a shallow copy of the current Object.

See Also

CodeNamespace Class | System.CodeDom Namespace

© 2009 Microsoft Corporation. All rights reserved.   Terms of Use | Trademarks | Privacy Statement
Page view tracker
Rate the Lightweight library
x
Lightweight builds on ScriptFree (loband) by adding features you've requested: a SearchBox and default code language selection.
Do you like the SearchBox?
Do you like the tabbed code blocks?
How useful is this topic?
Tell us more.
Thanks
x
You're helping to improve MSDN Online.
Feedback
Switch View
Classic
Lightweight Beta
ScriptFree
Switch View