Share via


Policy Constructor

Initializes a new instance of the Policy class using a set of policy assertions.

Namespace: Microsoft.Web.Services3.Design
Assembly: Microsoft.Web.Services3 (in microsoft.web.services3.dll)

Usage

'Usage
Dim assertions() As PolicyAssertion
Dim policy1 As New Policy(assertions)

Syntax

'Declaration
Public Sub New( _
    ByVal ParamArray assertions() As PolicyAssertion _
)
public Policy(
    params PolicyAssertion[] assertions
);
public:
Policy(
    ... array<PolicyAssertion^>^ assertions
);
public Policy(
    PolicyAssertion[] assertions
);
public function Policy(
     assertions : PolicyAssertion[]
);

Parameters

  • assertions
    An array of type PolicyAssertion containing the policy assertions.

Remarks

This constructor is used when the policy is constructed in code rather than using a policy file. For more information about using policy without a policy file, see How to: Secure a Client Without Using a Policy File.

Platforms

Development Platforms

Windows XP Home Edition, Windows XP Professional, Windows Server 2003, Windows 2000, Windows 2000 Server, Windows 2000 Advanced Server

Target Platforms

See Also

Reference

Policy Class
Policy Members
Microsoft.Web.Services3.Design Namespace