PolicyElement Constructor (XmlQualifiedName, String, PolicyUsage, Int32)

Initializes a new instance of the PolicyElement class using the specified element name, ID, usage, and preference.

Namespace: Microsoft.Web.Services2.Policy
Assembly: Microsoft.Web.Services2 (in microsoft.web.services2.dll)

Usage

'Usage
Dim elementName As XmlQualifiedName
Dim id As String
Dim usage As PolicyUsage
Dim preference As Integer
Dim policyElement1 As New PolicyElement(elementName, id, usage, preference)

Syntax

'Declaration
Protected Sub New( _
    ByVal elementName As XmlQualifiedName, _
    ByVal id As String, _
    ByVal usage As PolicyUsage, _
    ByVal preference As Integer _
)
protected PolicyElement(
    XmlQualifiedName elementName, 
    string id, 
    PolicyUsage usage, 
    int preference
);
protected: PolicyElement(
    XmlQualifiedName^ elementName, 
    String^ id, 
    PolicyUsage^ usage, 
    Int32 preference
);
protected PolicyElement(
    XmlQualifiedName elementName, 
    System.String id, 
    PolicyUsage usage, 
    int preference
);
protected function PolicyElement(
     elementName : XmlQualifiedName, 
     id : String, 
     usage : PolicyUsage, 
     preference : int
);

Parameters

  • elementName
    The System.Xml.XmlQualifiedName of the policy element.
  • id
    The ID of the policy element.
  • preference
    An integer specifying the weight of preference for the policy assertion.

Exceptions

Exception type Condition
System.ArgumentNullException

elementName is null .

Remarks

This member supports the Web Services Enhancements infrastructure and is not intended to be used directly from your code.

Platforms

Development Platforms

Windows XP Home Edition, Windows XP Professional, Windows Server 2003, Windows Longhorn, and Windows 2000

Target Platforms

Windows 2000, Windows 2000 Server, Windows 2000 Advanced Server, Windows XP Home Edition, Windows XP Professional, Windows Server 2003, Windows Longhorn, Pocket PC, Windows CE, Smart Phone

See Also

Reference

PolicyElement Class
Microsoft.Web.Services2.Policy Namespace

Other Resources

PolicyElement Members