Export (0) Print
Expand All

SoapExtensionAttribute.ExtensionType Property

When overridden in a derived class, gets the Type of the SOAP extension.

[Visual Basic]
Public MustOverride ReadOnly Property ExtensionType As Type
[C#]
public abstract Type ExtensionType {get;}
[C++]
public: __property virtual Type* get_ExtensionType() = 0;
[JScript]
public abstract function get ExtensionType() : Type;

Property Value

The Type of the SOAP extension.

Remarks

Derived classes must override the ExtensionType property to return the type of the SOAP extension.

Example

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

[Visual Basic] 
' Return the type of TraceExtension.
 Public Overrides ReadOnly Property ExtensionType() As Type
     Get
         Return GetType(TraceExtension)
     End Get
 End Property

[C#] 
// Return the type of TraceExtension.
public override Type ExtensionType
{
   get
   {
      return typeof(TraceExtension);
   }
}

[C++] 
// Return the type of TraceExtension.
public:
__property Type* get_ExtensionType()
{
   return __typeof(TraceExtension);
}

[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:
© 2015 Microsoft