ServiceDescriptionFormatExtensionCollection.Add メソッド
指定した ServiceDescriptionFormatExtension を ServiceDescriptionFormatExtensionCollection の末尾に追加します。
Public Function Add( _
ByVal extension As Object _) As Integer
[C#]
public int Add(objectextension);
[C++]
public: int Add(Object* extension);
[JScript]
public function Add(
extension : Object) : int;
パラメータ
- extension
ServiceDescriptionFormatExtensionCollection に追加する、参照渡しされた ServiceDescriptionFormatExtension 。
戻り値
追加された extension パラメータの 0 から始まるインデックス。
使用例
Dim mySoapBinding1 As New SoapBinding()
Dim mySoapBinding2 As New SoapBinding()
Dim mySoapAddressBinding As New SoapAddressBinding()
Dim myFormatExtensionObject As New MyFormatExtension()
' Add elements to collection.
myCollection.Add(mySoapBinding1)
myCollection.Add(mySoapAddressBinding)
myCollection.Add(mySoapBinding2)
myCollection.Add(myFormatExtensionObject)
[C#]
SoapBinding mySoapBinding1 = new SoapBinding();
SoapBinding mySoapBinding2 = new SoapBinding();
SoapAddressBinding mySoapAddressBinding = new SoapAddressBinding();
MyFormatExtension myFormatExtensionObject = new MyFormatExtension();
// Add elements to collection.
myCollection.Add(mySoapBinding1);
myCollection.Add(mySoapAddressBinding);
myCollection.Add(mySoapBinding2);
myCollection.Add(myFormatExtensionObject);
[C++]
SoapBinding* mySoapBinding1 = new SoapBinding();
SoapBinding* mySoapBinding2 = new SoapBinding();
SoapAddressBinding* mySoapAddressBinding = new SoapAddressBinding();
MyFormatExtension* myFormatExtensionObject = new MyFormatExtension();
// Add elements to collection.
myCollection->Add(mySoapBinding1);
myCollection->Add(mySoapAddressBinding);
myCollection->Add(mySoapBinding2);
myCollection->Add(myFormatExtensionObject);
[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 ファミリ
参照
ServiceDescriptionFormatExtensionCollection クラス | ServiceDescriptionFormatExtensionCollection メンバ | System.Web.Services.Description 名前空間