共用方式為


policyNamespaces Element

Applies To: Windows Server 2008

The policyNamespaces element defines the unique name for the policy namespace in an ADMX file as well as any namespaces it references in other ADMX files.

Syntax

  <policyNamespaces>
    <target> … </target>
    <using> … </using>
  </policyNamespaces>

Attributes

There are no attributes associated with this element.

Child elements

Element Required Description

target Element

Yes

Defines the unique name for the policy namespace in an .admx file.

using Element

No

References an existing category or supportedOn name from a different policyNamespace.

Note

For simplicity of documentation, nested elements located one level down, known as child elements, will only be described for a given element.

Remarks

ADMX files treat all elements defined within a specific policyNamespace as a unique name. Using a category element name in multiple ADMX files will cause duplicate category nodes to be displayed in the Local Group Policy Editor or Group Policy Management Console. See the using Element section for more information about avoiding duplicate nodes within the Local Group Policy Editor or Group Policy Management Console.

Examples

This XML fragment is an example of the "policy" namespace definition and one reference to the windows.admx base file in order to use existing category and supportedOn text definitions.

  <policyNamespaces>
    <target prefix="example" namespace="Microsoft.Policies.Example" />
    <using prefix="windows" namespace="Microsoft.Policies.Windows" />
  </policyNamespaces>

Additional references

policyDefinitions Element