ContractReference.Url プロパティとは何? わかりやすく解説 Weblio辞書 (original) (raw)

参照されるサービス説明の場所を示す URL取得または設定します

名前空間: System.Web.Services.Discovery
アセンブリ: System.Web.Services (system.web.services.dll 内)
構文構文

解説解説

使用例使用例

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 = 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);

プラットフォームプラットフォーム

バージョン情報バージョン情報

参照参照

関連項目
ContractReference クラス
ContractReference メンバ
System.Web.Services.Discovery 名前空間
ContractReference.Ref プロパティ