ViewSpaces Qualifier

The ViewSpaces qualifier defines the names and location of the namespaces where the source instances are located. You can specify any combination of namespaces on local or remote computers.

The following example lists two namespaces on the local computer.

ViewSpaces{"\\\\.\\root\\LocalNamespace",
     "\\\\.\\root\\RemoteNamespace"}

The View provider matches the source queries in the ViewSources qualifier to the namespaces listed in the ViewSpaces qualifier in the order the queries and namespaces are listed. Normally, there is a one-to-one relationship between the number of namespaces listed in the ViewSpaces qualifier and the queries listed in the ViewSources qualifier. In some cases, you may want the queries listed in the ViewSources qualifier to execute against two or more namespaces. You can use a double colon "::" to separate multiple namespaces that will be evaluated by one of the queries in the ViewSources array.

In the following example, the first query in the ViewSources array will be run against the namespace in the first pair of quotes, the second query against the three namespaces in the second pair of quotes, and the third query against the two namespaces in the third pair of quotes.

ViewSpaces
    {
    "\\\\.\\root\\LocalNamespace",

    "\\\\.\\root\\RemoteNamespace1::
        \\\\.\\root\\RemoteNamespace2::
        \\\\.\\root\\RemoteNamespace3",

    "\\\\.\\root\\RemoteNamespace1::
        \\\\.\\root\\RemoteNamespace3"
    }

Requirements

Requirement Value
Minimum supported client
Windows Vista
Minimum supported server
Windows Server 2008

See also

Qualifiers Specific to the View Provider