Name

SoapExtensionAttribute

Synopsis

When using a SoapExtension, you must also derive a custom SoapExtensionAttribute. This attribute is used to “connect” methods in your web service or proxy class to the corresponding extension.

When creating a custom SoapExtensionAttribute, you need to override the ExtensionType property so that it returns the type of your custom SoapExtension class. You can then use your custom attribute to mark methods in your web service or proxy class. ASP.NET will automatically use the specified SoapExtension when the associated method is invoked.

Public MustInherit Class SoapExtensionAttribute : Inherits Attribute
' Protected Constructors
   Protected Sub New() 
' Public Instance Properties
   MustInherit Public ReadOnly Property ExtensionType As Type  
   MustInherit Public Property Priority As Integer  
End Class

Hierarchy

System.ObjectSystem.Attribute SoapExtensionAttribute

Valid On

All

Get ASP.NET in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.