PolicyAssertion Constructor (XmlQualifiedName, XmlElement, Boolean)
Initializes a new instance of the PolicyAssertion class with the specified name, source XML element, and Usage attribute requirement value.
Namespace: Microsoft.Web.Services2.Policy
Assembly: Microsoft.Web.Services2 (in microsoft.web.services2.dll)
Usage
'Usage
Dim qName As XmlQualifiedName
Dim element As XmlElement
Dim usageRequired As Boolean
Dim policyAssertion1 As New PolicyAssertion(qName, element, usageRequired)
Syntax
'Declaration
Protected Sub New( _
ByVal qName As XmlQualifiedName, _
ByVal element As XmlElement, _
ByVal usageRequired As Boolean _
)
protected PolicyAssertion(
XmlQualifiedName qName,
XmlElement element,
bool usageRequired
);
protected: PolicyAssertion(
XmlQualifiedName^ qName,
XmlElement^ element,
Boolean usageRequired
);
protected PolicyAssertion(
XmlQualifiedName qName,
XmlElement element,
boolean usageRequired
);
protected function PolicyAssertion(
qName : XmlQualifiedName,
element : XmlElement,
usageRequired : Boolean
);
Parameters
- qName
The System.Xml.XmlQualifiedName of the policy assertion.
- element
The System.Xml.XmlElement representing the policy assertion.
- usageRequired
true if the Usage attribute is required; otherwise, false.
Remarks
In almost all situations, the Usage attribute should be required. The exception is if the policy assertion is contained in another policy assertion.
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
PolicyAssertion Class
Microsoft.Web.Services2.Policy Namespace