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

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

ContractReference.Ref プロパティ

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

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

解説解説

探索ドキュメント内では、サービス説明への参照contractRef XML 要素格納されています。contractRef XML 要素には、次の表に示すように、2 つ属性あります

使用例使用例

ContractReference の Ref プロパティ設定するコード例次に示します

' Call the Constructor of ContractReference.
Dim myContractReference As New
 ContractReference()
Dim myXmlDocument As New
 XmlDocument()

' Read the discovery document for the 'contractRef' tag.
myXmlDocument.Load("http://localhost/Discoverydoc.disco")

Dim myXmlRoot As XmlNode = myXmlDocument.FirstChild
Dim myXmlNode As XmlNode = myXmlRoot("scl:contractRef")
Dim myAttributeCollection As XmlAttributeCollection
 = myXmlNode.Attributes

myContractReference.Ref = myAttributeCollection(0).Value
Console.WriteLine("The URL to the referenced service description
 is : {0}", myContractReference.Ref)
// Call the Constructor of ContractReference.
ContractReference myContractReference = new ContractReference();
XmlDocument myXmlDocument = new XmlDocument();

// Read the discovery document for the 'contractRef' tag.
myXmlDocument.Load("http://localhost/Discoverydoc.disco");
   
XmlNode myXmlRoot = myXmlDocument.FirstChild;
XmlNode myXmlNode = myXmlRoot["scl:contractRef"]; 
XmlAttributeCollection myAttributeCollection = myXmlNode.Attributes;

myContractReference.Ref = myAttributeCollection[0].Value;
Console.WriteLine("The URL to the referenced service description is : {0}"
,myContractReference.Ref);
// Call the Constructor of ContractReference.
ContractReference^ myContractReference = gcnew ContractReference;
XmlDocument^ myXmlDocument = gcnew XmlDocument;

// Read the discovery document for the 'contractRef' tag.
myXmlDocument->Load( "http://localhost/Discoverydoc.disco"
 );
XmlNode^ myXmlRoot = myXmlDocument->FirstChild;
XmlNode^ myXmlNode = myXmlRoot[ "scl:contractRef" ];
XmlAttributeCollection^ myAttributeCollection = myXmlNode->Attributes;
myContractReference->Ref = myAttributeCollection[ 0 ]->Value;
Console::WriteLine( "The URL to the referenced service description is : {0}",
 myContractReference->Ref );
// Call the Constructor of ContractReference.
ContractReference myContractReference = new ContractReference();
XmlDocument myXmlDocument = new XmlDocument();

// Read the discovery document for the 'contractRef' tag.
myXmlDocument.Load("http://localhost/Discoverydoc.disco");

XmlNode myXmlRoot = myXmlDocument.get_FirstChild();
XmlNode myXmlNode = myXmlRoot.get_Item("scl:contractRef");
XmlAttributeCollection myAttributeCollection = myXmlNode.
    get_Attributes();
myContractReference.set_Ref(myAttributeCollection.Item(0).get_Value());
Console.WriteLine("The URL to the referenced service "
    + "description is : {0}", myContractReference.get_Ref());
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
ContractReference クラス
ContractReference メンバ
System.Web.Services.Discovery 名前空間
ContractReference.DocRef プロパティ


このページでは「.NET Framework クラス ライブラリ リファレンス」からContractReference.Ref プロパティを検索した結果を表示しています。
Weblioに収録されているすべての辞書からContractReference.Ref プロパティを検索する場合は、下記のリンクをクリックしてください。
 全ての辞書からContractReference.Ref プロパティ を検索

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

辞書ショートカット

すべての辞書の索引

「ContractReference.Ref プロパティ」の関連用語

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

   

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



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

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

©2025 GRAS Group, Inc.RSS