DiscoveryClientResultCollection.Add メソッド
アセンブリ: System.Web.Services (system.web.services.dll 内)

Dim instance As DiscoveryClientResultCollection Dim value As DiscoveryClientResult Dim returnValue As Integer returnValue = instance.Add(value)
戻り値
DiscoveryClientResult が挿入された位置。

' Initialize a new instance of the DiscoveryClientResult class. Dim myDiscoveryClientResult As New DiscoveryClientResult() ' Set the type of reference in the discovery document as ' DiscoveryDocumentReference. myDiscoveryClientResult.ReferenceTypeName = _ "System.Web.Services.Discovery.DiscoveryDocumentReference" ' Set the URL for the reference. myDiscoveryClientResult.Url = _ "http://localhost/Discovery/Service1_vb.asmx?disco" ' Set the name of the file in which the reference is saved. myDiscoveryClientResult.Filename = "Service1_vb.disco" ' Add the DiscoveryClientResult to the collection. myDiscoveryClientResultCollection.Add(myDiscoveryClientResult)
// Initialize new instance of the DiscoveryClientResult class. DiscoveryClientResult myDiscoveryClientResult = new DiscoveryClientResult(); // Set the type of reference in the discovery document as // DiscoveryDocumentReference. myDiscoveryClientResult.ReferenceTypeName = "System.Web.Services.Discovery.DiscoveryDocumentReference"; // Set the URL for the reference. myDiscoveryClientResult.Url = "http://localhost/Discovery/Service1_cs.asmx?disco"; // Set the name of the file in which the reference is saved. myDiscoveryClientResult.Filename = "Service1_cs.disco"; // Add the DiscoveryClientResult to the collection. myDiscoveryClientResultCollection.Add(myDiscoveryClientResult);
// Initialize new instance of the DiscoveryClientResult class. DiscoveryClientResult^ myDiscoveryClientResult = gcnew DiscoveryClientResult; // Set the type of reference in the discovery document as // DiscoveryDocumentReference. myDiscoveryClientResult->ReferenceTypeName = "System.Web.Services.Discovery.DiscoveryDocumentReference"; // Set the URL for the reference. myDiscoveryClientResult->Url = "http://localhost/Discovery/Service1_cs.asmx?disco"; // Set the name of the file in which the reference is saved. myDiscoveryClientResult->Filename = "Service1_cs.disco"; // Add the DiscoveryClientResult to the collection. myDiscoveryClientResultCollection->Add( myDiscoveryClientResult );
// Initialize new instance of the DiscoveryClientResult class. DiscoveryClientResult myDiscoveryClientResult = new DiscoveryClientResult(); // Set the type of reference in the discovery document as // DiscoveryDocumentReference. myDiscoveryClientResult.set_ReferenceTypeName( "System.Web.Services.Discovery.DiscoveryDocumentReference"); // Set the URL for the reference. myDiscoveryClientResult.set_Url( "http://localhost/Discovery/Service1_jsl.asmx?disco"); // Set the name of the file in which the reference is saved. myDiscoveryClientResult.set_Filename("Service1_jsl.disco"); // Add the DiscoveryClientResult to the collection. myDiscoveryClientResultCollection.Add(myDiscoveryClientResult);

Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


Weblioに収録されているすべての辞書からDiscoveryClientResultCollection.Add メソッドを検索する場合は、下記のリンクをクリックしてください。

- DiscoveryClientResultCollection.Add メソッドのページへのリンク