DiscoveryClientResult コンストラクタ (Type, String, String)
アセンブリ: System.Web.Services (system.web.services.dll 内)
構文
Dim referenceType As Type Dim url As String Dim filename As String Dim instance As New DiscoveryClientResult(referenceType, url, filename)
' Initialize a new instance of the DiscoveryClientResult class. Dim myDiscoveryClientResult As New DiscoveryClientResult( _ GetType(System.Web.Services.Discovery.DiscoveryDocumentReference), _ "http://localhost/Discovery/Service1_vb.asmx?disco", _ "Service1_vb.disco") ' Add the DiscoveryClientResult to the collection. myDiscoveryClientResultCollection.Add(myDiscoveryClientResult)
// Initialize a new instance of the DiscoveryClientResult class. DiscoveryClientResult myDiscoveryClientResult = new DiscoveryClientResult( typeof(System.Web.Services.Discovery.DiscoveryDocumentReference), "http://localhost/Discovery/Service1_cs.asmx?disco", "Service1_cs.disco"); // Add the DiscoveryClientResult to the collection. myDiscoveryClientResultCollection.Add(myDiscoveryClientResult);
// Initialize a new instance of the DiscoveryClientResult class. DiscoveryClientResult^ myDiscoveryClientResult = gcnew DiscoveryClientResult( System::Web::Services::Discovery::DiscoveryDocumentReference::typeid , "http://localhost/Discovery/Service1_cs.asmx?disco","Service1_cs.disco" ); // Add the DiscoveryClientResult to the collection. myDiscoveryClientResultCollection->Add( myDiscoveryClientResult );
// Initialize a new instance of the DiscoveryClientResult class. DiscoveryClientResult myDiscoveryClientResult = new DiscoveryClientResult(System.Web.Services. Discovery.DiscoveryDocumentReference.class.ToType(), "http://localhost/Discovery/Service1_jsl.asmx?disco", "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 によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。
参照
DiscoveryClientResult コンストラクタ
オーバーロードの一覧
名前 | 説明 |
---|---|
DiscoveryClientResult () | DiscoveryClientResult クラスの新しいインスタンスを初期化します。 |
DiscoveryClientResult (Type, String, String) | DiscoveryClientResult クラスの新しいインスタンスを初期化し、ReferenceTypeName プロパティを referenceType に、Url プロパティを url に、Filename プロパティを filename に設定します。 |
DiscoveryClientResult コンストラクタ ()
アセンブリ: System.Web.Services (system.web.services.dll 内)
構文
使用例
' 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 によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。
参照
- DiscoveryClientResult コンストラクタのページへのリンク