ContractReference.Url プロパティ
アセンブリ: System.Web.Services (system.web.services.dll 内)

public: virtual property String^ Url { String^ get () override; void set (String^ value) override; }
参照されるサービスの説明の場所を示す URL。


Dim myProtocol As New DiscoveryClientProtocol() ' Get the DiscoveryDocument. Dim myDiscoveryDocument As DiscoveryDocument = _ myProtocol.Discover("http://localhost/ContractReference/Test_vb.disco") Dim myArrayList As ArrayList = _ CType(myDiscoveryDocument.References, ArrayList) ' Get the ContractReference. Dim myContractRefrence As ContractReference = _ CType(myArrayList(0), ContractReference) ' Get the DefaultFileName associated with the .disco file. Dim myFileName As String = myContractRefrence.DefaultFilename ' Get the URL associated with the .disco file. Dim myUrl As String = myContractRefrence.Url Console.WriteLine("The DefaulFilename is: " + myUrl) Console.WriteLine("The URL is: " + myUrl)
DiscoveryClientProtocol myProtocol = new DiscoveryClientProtocol(); // Get the DiscoveryDocument. DiscoveryDocument myDiscoveryDocument = myProtocol.Discover("http://localhost/ContractReference/test_cs.disco"); ArrayList myArrayList = (ArrayList)myDiscoveryDocument.References; // Get the ContractReference. ContractReference myContractRefrence = (ContractReference)myArrayList[0]; // Get the DefaultFileName associated with the .disco file. String myFileName = myContractRefrence.DefaultFilename; // Get the URL associated with the .disco file. String myUrl = myContractRefrence.Url; Console.WriteLine("The DefaulFilename is: " + myUrl); Console.WriteLine("The URL is: " + myUrl);
DiscoveryClientProtocol^ myProtocol = gcnew DiscoveryClientProtocol; // Get the DiscoveryDocument. DiscoveryDocument^ myDiscoveryDocument = myProtocol->Discover( "http://localhost/ContractReference/test_cs.disco" ); ArrayList^ myArrayList = dynamic_cast<ArrayList^>(myDiscoveryDocument->References); // Get the ContractReference. ContractReference^ myContractRefrence = dynamic_cast<ContractReference^>(myArrayList[ 0 ]); // Get the DefaultFileName associated with the .disco file. String^ myFileName = myContractRefrence->DefaultFilename; // Get the URL associated with the .disco file. String^ myUrl = myContractRefrence->Url; Console::WriteLine( "The DefaulFilename is: {0}", myUrl ); Console::WriteLine( "The URL is: {0}", myUrl );
DiscoveryClientProtocol myProtocol = new DiscoveryClientProtocol(); // Get the DiscoveryDocument. DiscoveryDocument myDiscoveryDocument = myProtocol.Discover( "http://localhost/ContractReference/test_cs.disco"); ArrayList myArrayList = (ArrayList)(myDiscoveryDocument. get_References()); // Get the ContractReference. ContractReference myContractRefrence = (ContractReference)myArrayList. get_Item(0); // Get the DefaultFileName associated with the .disco file. String myFileName = myContractRefrence.get_DefaultFilename(); // Get the URL associated with the .disco file. String myUrl = myContractRefrence.get_Url(); Console.WriteLine("The DefaulFilename is: " + myUrl); Console.WriteLine("The URL is: " + myUrl);

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 によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


- ContractReference.Url プロパティのページへのリンク