Compartilhar via


PolicyAttribute Constructor (Type)

Initializes a new instance of the PolicyAttribute class using the specified type.

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

Usage

'Usage
Dim policyType As Type
Dim policyAttribute1 As New PolicyAttribute(policyType)

Syntax

'Declaration
Public Sub New( _
    ByVal policyType As Type _
)
public PolicyAttribute(
    Type policyType
);
public:
PolicyAttribute(
    Type^ policyType
);
public PolicyAttribute(
    Type policyType
);
public function PolicyAttribute(
     policyType : Type
);

Parameters

  • policyType
    A System.Type that derives from the Policy class and defines the policy.

Exceptions

Exception type Condition
System.ArgumentNullException

policyType is null.

System.InvalidOperationException

policyType does not derive from the Policy class.

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

PolicyAttribute Class
PolicyAttribute Members
Microsoft.Web.Services3 Namespace

Other Resources

How to: Secure a Web Service Without Using a Policy File