Share via


PolicyElement.Preference Property

Gets the preference specified for the policy element.

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

Usage

'Usage
Dim policyElement1 As PolicyElement

Dim returnValue As Integer
returnValue = policyElement1.Preference

Syntax

'Declaration
Public ReadOnly Property Preference() As Integer
public int Preference {get;}
public: property Int32 Preference{
    Int32 get();
}
public int get_Preference();
public function get Preference() : int;

Property Value

An integer value specifying which policy assertion to prefer when more than one choice is possible. A higher value signifies greater preference. The default value is 0.

Remarks

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

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

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