Share via


<policy> Element

Controls the policy settings for a WSE application.

<microsoft.web.services3> Element

<policy fileName />

Attributes and Elements

Attributes

Attribute Description

fileName

Required attribute. Specifies the file that contains the policy assertions for an application.

Child Elements

None.

Parent Elements

Element Description

<microsoft.web.services3> Element

Controls the configuration options that are defined by WSE.

Remarks

Before adding the <policy> element to a configuration file, you must add the microsoft.web.services3 configuration section handler to the configuration file. For details about adding the microsoft.web.services3 configuration section handler, see <section> Element.

Example

The following code example specifies that the policy file for the application is the Policies.config file in the current directory.

<configuration>
  <microsoft.web.services3>
    <policy fileName="Policies.config"/>
    </policy>
  </microsoft.web.services3>
</configuration>

See Also

Concepts

Policy File Schema