DiscoveryClientResult.Filename プロパティ
アセンブリ: System.Web.Services (system.web.services.dll 内)
構文
Dim instance As DiscoveryClientResult Dim value As String value = instance.Filename instance.Filename = value
/** @property */ public String get_Filename () /** @property */ public void set_Filename (String value)
参照が保存されているファイルの名前。
ファイルの名前は、ファイルの内容に基づいた、ローカル コンピュータ上に保存されるファイルの名前です。たとえば、参照されるファイルが探索ドキュメントの場合、保存されるファイルには Windows オペレーティング システムの .disco 拡張子が付きます。
' 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.Filename プロパティのページへのリンク