ContractReference.Url プロパティとは? わかりやすく解説

Weblio 辞書 > コンピュータ > .NET Framework クラス ライブラリ リファレンス > ContractReference.Url プロパティの意味・解説 

ContractReference.Url プロパティ

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

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

解説解説

ContractReference クラス場合Url プロパティRef プロパティの値を返します

使用例使用例
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);
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
ContractReference クラス
ContractReference メンバ
System.Web.Services.Discovery 名前空間
ContractReference.Ref プロパティ



英和和英テキスト翻訳>> Weblio翻訳
英語⇒日本語日本語⇒英語
  

辞書ショートカット

すべての辞書の索引

ContractReference.Url プロパティのお隣キーワード
検索ランキング

   

英語⇒日本語
日本語⇒英語
   



ContractReference.Url プロパティのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

   
日本マイクロソフト株式会社日本マイクロソフト株式会社
© 2025 Microsoft.All rights reserved.

©2025 GRAS Group, Inc.RSS