ContractReference.Namespace フィールドとは? わかりやすく解説

Weblio 辞書 > コンピュータ > .NET Framework クラス ライブラリ リファレンス > ContractReference.Namespace フィールドの意味・解説 

ContractReference.Namespace フィールド

探索ドキュメント内にあるサービス説明参照するための XML 名前空間

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

解説解説
使用例使用例

Namespace 定数の値をコンソール出力するコード例次に示します

' 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)
myContractReference.DocRef = myAttributeCollection(1).Value
Console.WriteLine("The URL implementing the referenced service
 description is : {0}", myContractReference.DocRef)
Console.WriteLine("Namespace for the referenced service description
 is : {0}", ContractReference.Namespace)
// 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);
myContractReference.DocRef = myAttributeCollection[1].Value;
Console.WriteLine("The URL implementing the referenced service description is
 : {0}",myContractReference.DocRef);
Console.WriteLine("Namespace for the referenced service description
 is : {0}", ContractReference.Namespace);
// 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 );
myContractReference->DocRef = myAttributeCollection[ 1 ]->Value;
Console::WriteLine( "The URL implementing the referenced service description
 is : {0}", myContractReference->DocRef );
Console::WriteLine( "Namespace for the referenced service
 description is : {0}", ContractReference::Namespace );
// 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());
myContractReference.set_DocRef(myAttributeCollection.Item(1).
    get_Value());
Console.WriteLine("The URL implementing the referenced service "
    + "description is : {0}", myContractReference.get_DocRef());
Console.WriteLine("Namespace for the referenced service "
    + "description is : {0}", ContractReference.Namespace);
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
ContractReference クラス
ContractReference メンバ
System.Web.Services.Discovery 名前空間


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

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

辞書ショートカット

すべての辞書の索引

ContractReference.Namespace フィールドのお隣キーワード
検索ランキング

   

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



ContractReference.Namespace フィールドのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

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

©2025 GRAS Group, Inc.RSS