次の方法で共有


SoapExtensionAttribute.ExtensionType プロパティ

派生クラスでオーバーライドされると、SOAP 拡張機能の Type を取得します。

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;

プロパティ値

SOAP 拡張機能の Type

解説

派生クラスは、 ExtensionType プロパティをオーバーライドして、SOAP 拡張機能の型を返す必要があります。

使用例

[Visual Basic, C#, C++] ExtensionType プロパティの一般的な実装例を次に示します。

 
' 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] JScript のサンプルはありません。Visual Basic、C#、および C++ のサンプルを表示するには、このページの左上隅にある言語のフィルタ ボタン 言語のフィルタ をクリックします。

必要条件

プラットフォーム: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 ファミリ, .NET Compact Framework - Windows CE .NET

参照

SoapExtensionAttribute クラス | SoapExtensionAttribute メンバ | System.Web.Services.Protocols 名前空間