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

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

DiscoveryClientReferenceCollection.Keys プロパティ

DiscoveryClientReferenceCollection のすべてのキー保持している System.Collections.ICollection オブジェクト取得します

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

Dim instance As DiscoveryClientReferenceCollection
Dim value As ICollection

value = instance.Keys
public ICollection Keys { get; }
public:
property ICollection^ Keys {
    ICollection^ get ();
}
/** @property */
public ICollection get_Keys ()

プロパティ
DiscoveryClientReferenceCollectionキー保持している ICollection

使用例使用例
Dim myDiscoveryClientProtocol As New
 DiscoveryClientProtocol()
myDiscoveryClientProtocol.Credentials = _
    CredentialCache.DefaultCredentials

' 'dataservice.disco' is a sample discovery document.
Dim myStringUrl As String
 = "http://localhost/dataservice.disco"

' Call the Discover method to populate the References property.
Dim myDiscoveryDocument As DiscoveryDocument
 = _
    myDiscoveryClientProtocol.Discover(myStringUrl)

' Resolve all references found in the discovery document.
myDiscoveryClientProtocol.ResolveAll()
Dim myDiscoveryClientReferenceCollection As
 DiscoveryClientReferenceCollection = _
    myDiscoveryClientProtocol.References

' Retrieve the keys in the collection.
Dim myCollection As ICollection = myDiscoveryClientReferenceCollection.Keys
Dim myObjectCollection(myDiscoveryClientReferenceCollection.Count)
 As Object
myCollection.CopyTo(myObjectCollection, 0)

Console.WriteLine("The discovery documents, service descriptions,
 and XML schema")
Console.WriteLine(" definitions in the collection are:")
Dim iIndex As Integer
For iIndex = 0 To myObjectCollection.Length
 - 1
    Console.WriteLine(myObjectCollection(iIndex))
Next iIndex
DiscoveryClientProtocol myDiscoveryClientProtocol =
    new DiscoveryClientProtocol();
myDiscoveryClientProtocol.Credentials =  
    CredentialCache.DefaultCredentials;

// 'dataservice.disco' is a sample discovery document.
string myStringUrl = "http://localhost/dataservice.disco";

// Call the Discover method to populate the References property.
DiscoveryDocument myDiscoveryDocument = 
    myDiscoveryClientProtocol.Discover(myStringUrl);

// Resolve all references found in the discovery document.
myDiscoveryClientProtocol.ResolveAll();
DiscoveryClientReferenceCollection myDiscoveryClientReferenceCollection = 
    myDiscoveryClientProtocol.References;

// Retrieve the keys in the collection.
ICollection myCollection = myDiscoveryClientReferenceCollection.Keys;
object[] myObjectCollection = 
    new object[myDiscoveryClientReferenceCollection.Count];
myCollection.CopyTo(myObjectCollection, 0);
Console.WriteLine("The discovery documents, service descriptions, and XML schema");
Console.WriteLine(" definitions in the collection are:");
for (int iIndex=0; iIndex < myObjectCollection.Length;
 iIndex++)
{
    Console.WriteLine(myObjectCollection[iIndex]);
}
DiscoveryClientProtocol^ myDiscoveryClientProtocol = gcnew DiscoveryClientProtocol;
myDiscoveryClientProtocol->Credentials = CredentialCache::DefaultCredentials;

// 'dataservice.disco' is a sample discovery document.
String^ myStringUrl = "http://localhost/dataservice.disco";

// Call the Discover method to populate the References property.
DiscoveryDocument^ myDiscoveryDocument = myDiscoveryClientProtocol->Discover(
 myStringUrl );

// Resolve all references found in the discovery document.
myDiscoveryClientProtocol->ResolveAll();
DiscoveryClientReferenceCollection^ myDiscoveryClientReferenceCollection = myDiscoveryClientProtocol->References;

// Retrieve the keys in the collection.
ICollection^ myCollection = myDiscoveryClientReferenceCollection->Keys;
array<Object^>^myObjectCollection = gcnew array<Object^>(myDiscoveryClientReferenceCollection->Count);
myCollection->CopyTo( myObjectCollection, 0 );
Console::WriteLine( "The discovery documents, service descriptions, and XML
 schema" );
Console::WriteLine( " definitions in the collection are:"
 );
for ( int iIndex = 0; iIndex < myObjectCollection->Length;
 iIndex++ )
{
   Console::WriteLine( myObjectCollection[ iIndex ] );
}
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
DiscoveryClientReferenceCollection クラス
DiscoveryClientReferenceCollection メンバ
System.Web.Services.Discovery 名前空間


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

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

辞書ショートカット

すべての辞書の索引

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

   

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



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

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

©2025 GRAS Group, Inc.RSS