Export (0) Print
Expand All

SoapExtensionAttribute.Priority Property

When overridden in a derived class, gets or set the priority of the SOAP extension.

[Visual Basic]
Public MustOverride Property Priority As Integer
[C#]
public abstract int Priority {get; set;}
[C++]
public: __property virtual int get_Priority() = 0;
public: __property virtual void set_Priority(int) = 0;
[JScript]
public abstract function get Priority() : int;
public abstract function set Priority(int);

Property Value

The priority of the SOAP extension.

Example

[Visual Basic, C#, C++] The following code example is a typical implementation of the Priority property.

[Visual Basic] 
' User can set priority of the TraceExtension.
 Public Overrides Property Priority() As Integer
     Get
         Return m_priority
     End Get
     Set(ByVal Value As Integer)
         m_priority = value
     End Set
 End Property

[C#] 
// User can set priority of the SoapExtension.
public override int Priority 
{
   get 
   {
      return myPriority;
   }
   set 
   { 
      myPriority = value;
   }
}

[C++] 
// User can set priority of the SoapExtension.
public:
__property int get_Priority()
{
   return myPriority;
}
__property void set_Priority( int value )
{
   myPriority = value;
}

[JScript] No example is available for JScript. To view a Visual Basic, C#, or C++ example, click the Language Filter button Language Filter in the upper-left corner of the page.

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, .NET Compact Framework

See Also

SoapExtensionAttribute Class | SoapExtensionAttribute Members | System.Web.Services.Protocols Namespace

Show:
© 2014 Microsoft