Namespaces

A namespace is a logical design-time naming convenience, used mainly to define scope in an application and organize classes and other types in a single hierarchical structure.

Note: Code activities use the imported namespaces on the workflow and subprocess to resolve simple type names.

The namespace concept is part of the .NET Framework, and is used to organize types into logical groupings. A type's full name is made up of a namespace and a simple name. Although a type's full name can always be used in a Code activity, it is more common to use the type's simple name.

Example

System.dita.ditaDocument is a type that is used to work with a document containing XML data. The namespace for that type is System.dita and the simple type name is XmlDocument. The full name, System.dita.ditaDocument, can be used directly in a Code activity to refer to the type. However, if the System.dita namespace is added to the Namespaces list, the simple name, XmlDocument, can be used instead which increases the clarity of the code. Using the namespace also means that the simple names for other types in the System.dita namespace can also be used.

Namespace Browser

The following table describes the available options.

AttributeValueDescription
Available NamespacesMicrosoft; SystemAccessible namespaces from within Workflow.
Imported NamespacesMicrosoft.VisualBasic; SystemA type's simple name can be used in namespaces that have been added to this list.