次の方法で共有


Binding.Extensions プロパティ

XML Web サービスで使用する機能拡張要素のコレクションを取得します。

Public ReadOnly Property Extensions As _
   ServiceDescriptionFormatExtensionCollection
[C#]
public ServiceDescriptionFormatExtensionCollection Extensions   {get;}
[C++]
public: __property ServiceDescriptionFormatExtensionCollection*
   get_Extensions();
[JScript]
public function get Extensions() :
   ServiceDescriptionFormatExtensionCollection;

プロパティ値

ServiceDescriptionFormatExtensionCollection を返します。

使用例

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

 
' Create SOAP Extensibility element.
Dim mySoapBinding As New SoapBinding()
' SOAP over Http.

mySoapBinding.Transport = "https://schemas.xmlsoap.org/soap/http"
mySoapBinding.Style = SoapBindingStyle.Document
' Add tag soap:binding as an extensibility element.
myBinding.Extensions.Add(mySoapBinding)

[C#] 
// Create SOAP Extensibility element.
SoapBinding mySoapBinding = new SoapBinding();
// SOAP over HTTP.
mySoapBinding.Transport = "https://schemas.xmlsoap.org/soap/http";
mySoapBinding.Style = SoapBindingStyle.Document;
// Add tag soap:binding as an extensibility element.
myBinding.Extensions.Add(mySoapBinding);

[C++] 
// Create SOAP Extensibility element.
SoapBinding* mySoapBinding = new SoapBinding();
// SOAP over HTTP.
mySoapBinding->Transport = S"https://schemas.xmlsoap.org/soap/http";
mySoapBinding->Style = SoapBindingStyle::Document;
// Add tag soap:binding as an extensibility element.
myBinding->Extensions->Add(mySoapBinding);

[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 ファミリ

参照

Binding クラス | Binding メンバ | System.Web.Services.Description 名前空間