System.CodeDom.CodeNamespaceImport Class

Represents a namespace import directive that indicates a namespace to use.

See Also: CodeNamespaceImport Members

Syntax

[System.Runtime.InteropServices.ClassInterface(System.Runtime.InteropServices.ClassInterfaceType.AutoDispatch)]
[System.Runtime.InteropServices.ComVisible(true)]
public class CodeNamespaceImport : CodeObject

Remarks

System.CodeDom.CodeNamespaceImport can be used to represent a namespace import directive.

In most languages, a namespace import directive causes visibility of the types within the imported namespaces to code that references types in the imported namespaces.

Note:

Use fully qualified type references to avoid potential ambiguity.

Requirements

Namespace: System.CodeDom
Assembly: System (in System.dll)
Assembly Versions: 1.0.3300.0, 1.0.5000.0, 2.0.0.0, 4.0.0.0