DiscoveryClientReferenceCollectionとは? わかりやすく解説

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

DiscoveryClientReferenceCollection クラス

DiscoveryReference オブジェクトコレクション表します。このクラス継承できません。

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

Public NotInheritable Class
 DiscoveryClientReferenceCollection
    Inherits DictionaryBase
Dim instance As DiscoveryClientReferenceCollection
public sealed class DiscoveryClientReferenceCollection
 : DictionaryBase
public ref class DiscoveryClientReferenceCollection
 sealed : public DictionaryBase
public final class DiscoveryClientReferenceCollection
 extends DictionaryBase
public final class DiscoveryClientReferenceCollection
 extends DictionaryBase
解説解説

DiscoveryClientProtocol の References プロパティDiscoveryClientReferenceCollection 型です。

使用例使用例
Imports System
Imports System.Net
Imports System.Collections
Imports System.Security.Permissions
Imports System.Web.Services.Discovery

Class MyDiscoveryClientReferenceCollection
   
   Shared Sub Main()
      Run()
   End Sub 'Main

   <PermissionSetAttribute(SecurityAction.Demand, Name := "FullTrust")>
 _
   Shared Sub Run()
      Dim myDiscoveryClientProtocol As New
 DiscoveryClientProtocol()
      
      myDiscoveryClientProtocol.Credentials = CredentialCache.DefaultCredentials
      
      ' 'dataservice.vsdisco' is a sample discovery document.
      Dim myStringUrl As String
 = "http://localhost/dataservice.vsdisco"
      
      ' 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 from 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 i As Integer
      For i = 0 To myObjectCollection.Length
 - 1
          Console.WriteLine(myObjectCollection(i))
      Next i

      ' Retrieve the values from the collection.
      Dim myCollection1 As ICollection = myDiscoveryClientReferenceCollection.Values
      Dim myObjectCollection1(myDiscoveryClientReferenceCollection.Count
 - 1) As Object
      myCollection1.CopyTo(myObjectCollection1, 0)
      
      Console.WriteLine("The objects in the collection are:")
      For i = 0 To myObjectCollection1.Length
 - 1
          Console.WriteLine(myObjectCollection1(i))
      Next i
      
      
      Dim myStringUrl1 As String
 = "http://localhost/dataservice.vsdisco"
      If myDiscoveryClientReferenceCollection.Contains(myStringUrl1)
 Then
          Console.WriteLine("The document reference {0} is part
 of the collection.", _
              myStringUrl1)
      End If
   End Sub 'Run

End Class 'MyDiscoveryClientReferenceCollection
using System;
using System.Net;
using System.Collections;
using System.Security.Permissions;
using System.Web.Services.Discovery;

class MyDiscoveryClientReferenceCollection
{
   static void Main()
   {
      Run();
   }

   [PermissionSetAttribute(SecurityAction.Demand, Name="FullTrust")]
   static void Run()
   {
      DiscoveryClientProtocol myDiscoveryClientProtocol =
          new DiscoveryClientProtocol();
      
      myDiscoveryClientProtocol.Credentials = 
          CredentialCache.DefaultCredentials;

      // 'dataservice.vsdisco' is a sample discovery document.
      string myStringUrl = "http://localhost/dataservice.vsdisco";
      
      // 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 from 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 i=0; i< myObjectCollection.Length;
 i++)
      {
         Console.WriteLine(myObjectCollection[i]);
      }
      Console.WriteLine("");

      // Retrieve the values from the collection.
      ICollection myCollection1 = myDiscoveryClientReferenceCollection.Values;
      object[] myObjectCollection1 = 
          new object[myDiscoveryClientReferenceCollection.Count];
      myCollection1.CopyTo(myObjectCollection1, 0);
      
      Console.WriteLine("The objects in the collection are:
 ");
      for (int i=0; i< myObjectCollection1.Length;
 i++)
      {
         Console.WriteLine(myObjectCollection1[i]);
      }

      Console.WriteLine("");

      string myStringUrl1 = "http://localhost/dataservice.vsdisco";
      if (myDiscoveryClientReferenceCollection.Contains(myStringUrl1))
      {
         Console.WriteLine("The document reference {0} is part of the collection."
,
             myStringUrl1);
      }
   }
} 
#using <System.dll>
#using <System.Web.Services.dll>

using namespace System;
using namespace System::Net;
using namespace System::Collections;
using namespace System::Web::Services::Discovery;

int main()
{
   DiscoveryClientProtocol^ myDiscoveryClientProtocol = gcnew DiscoveryClientProtocol;
   myDiscoveryClientProtocol->Credentials = CredentialCache::DefaultCredentials;
   
   // 'dataservice.vsdisco' is a sample discovery document.
   String^ myStringUrl = "http://localhost/dataservice.vsdisco";
   
   // 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 from 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 i = 0; i < myObjectCollection->Length;
 i++ )
   {
      Console::WriteLine( myObjectCollection[ i ] );
   }
   Console::WriteLine( "" );
   
   // Retrieve the values from the collection.
   ICollection^ myCollection1 = myDiscoveryClientReferenceCollection->Values;
   array<Object^>^myObjectCollection1 = gcnew array<Object^>(myDiscoveryClientReferenceCollection->Count);
   myCollection1->CopyTo( myObjectCollection1, 0 );
   Console::WriteLine( "The objects in the collection are:
 " );
   for ( int i = 0; i < myObjectCollection1->Length;
 i++ )
   {
      Console::WriteLine( myObjectCollection1[ i ] );
   }
   Console::WriteLine( "" );
   String^ myStringUrl1 = "http://localhost/dataservice.vsdisco";
   if ( myDiscoveryClientReferenceCollection->Contains( myStringUrl1
 ) )
   {
      Console::WriteLine( "The document reference {0} is part of the collection.",
 myStringUrl1 );
   }
}
継承階層継承階層
System.Object
   System.Collections.DictionaryBase
    System.Web.Services.Discovery.DiscoveryClientReferenceCollection
スレッド セーフスレッド セーフ
この型の public static (Visual Basic では Shared) メンバはすべて、スレッド セーフです。インスタンス メンバ場合は、スレッド セーフであるとは限りません。
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
DiscoveryClientReferenceCollection メンバ
System.Web.Services.Discovery 名前空間

DiscoveryClientReferenceCollection コンストラクタ

DiscoveryClientReferenceCollection クラス新しインスタンス初期化します。

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

Dim instance As New DiscoveryClientReferenceCollection
public DiscoveryClientReferenceCollection ()
public:
DiscoveryClientReferenceCollection ()
public DiscoveryClientReferenceCollection ()
public function DiscoveryClientReferenceCollection
 ()
プラットフォームプラットフォーム
バージョン情報バージョン情報

.NET Framework

サポート対象 : 2.01.11.0
参照参照

関連項目

DiscoveryClientReferenceCollection クラス
DiscoveryClientReferenceCollection メンバ
System.Web.Services.Discovery 名前空間

DiscoveryClientReferenceCollection プロパティ


パブリック プロパティパブリック プロパティ

( プロテクト プロパティ参照)
  名前 説明
パブリック プロパティ Count  DictionaryBase インスタンス格納されている要素の数を取得します。 ( DictionaryBase から継承されます。)
パブリック プロパティ Item 指定した URL の DiscoveryClientReferenceCollection から DiscoveryReference オブジェクト取得または設定します
パブリック プロパティ Keys DiscoveryClientReferenceCollectionすべてのキー保持している System.Collections.ICollection オブジェクト取得します
パブリック プロパティ Values DiscoveryClientReferenceCollection 内のすべての値を保持している System.Collections.ICollection オブジェクト取得します
プロテクト プロパティプロテクト プロパティ
  名前 説明
プロテクト プロパティ Dictionary  DictionaryBase インスタンス格納されている要素リスト取得します。 ( DictionaryBase から継承されます。)
プロテクト プロパティ InnerHashtable  DictionaryBase インスタンス格納されている要素リスト取得します。 ( DictionaryBase から継承されます。)
参照参照

関連項目

DiscoveryClientReferenceCollection クラス
System.Web.Services.Discovery 名前空間

DiscoveryClientReferenceCollection メソッド


パブリック メソッドパブリック メソッド

( プロテクト メソッド参照)
  名前 説明
パブリック メソッド Add オーバーロードされます。 DiscoveryReference を DiscoveryClientReferenceCollection に追加します
パブリック メソッド Clear  DictionaryBase インスタンス内容消去します。 ( DictionaryBase から継承されます。)
パブリック メソッド Contains 指定した URLDiscoveryReferenceDiscoveryClientReferenceCollection格納されているかどうか確認します
パブリック メソッド CopyTo  1 次元Array指定したインデックスDictionaryBase要素コピーします。 ( DictionaryBase から継承されます。)
パブリック メソッド Equals  オーバーロードされます2 つObject インスタンス等しかどうか判断します。 ( Object から継承されます。)
パブリック メソッド GetEnumerator  DictionaryBase インスタンス反復処理する IDictionaryEnumerator を返します。 ( DictionaryBase から継承されます。)
パブリック メソッド GetHashCode  特定の型のハッシュ関数として機能します。GetHashCode は、ハッシュ アルゴリズムや、ハッシュ テーブルのようなデータ構造での使用適してます。 ( Object から継承されます。)
パブリック メソッド GetType  現在のインスタンスType取得します。 ( Object から継承されます。)
パブリック メソッド ReferenceEquals  指定した複数Object インスタンス同一かどうか判断します。 ( Object から継承されます。)
パブリック メソッド Remove DiscoveryClientReferenceCollection から指定した URLDiscoveryReference削除します
パブリック メソッド ToString  現在の Object を表す String返します。 ( Object から継承されます。)
プロテクト メソッドプロテクト メソッド
  名前 説明
プロテクト メソッド Finalize  Objectガベージ コレクションにより収集される前に、その Objectリソース解放しその他のクリーンアップ操作実行できるようにします。 ( Object から継承されます。)
プロテクト メソッド MemberwiseClone  現在の Object簡易コピー作成します。 ( Object から継承されます。)
プロテクト メソッド OnClear  DictionaryBase インスタンス内容消去する前に追加カスタム プロセス実行します。 ( DictionaryBase から継承されます。)
プロテクト メソッド OnClearComplete  DictionaryBase インスタンス内容消去した後に、追加カスタム プロセス実行します。 ( DictionaryBase から継承されます。)
プロテクト メソッド OnGet  指定したキーおよび値を持つ、DictionaryBase インスタンス要素取得します。 ( DictionaryBase から継承されます。)
プロテクト メソッド OnInsert  DictionaryBase インスタンス新し要素挿入する前に追加カスタム プロセス実行します。 ( DictionaryBase から継承されます。)
プロテクト メソッド OnInsertComplete  DictionaryBase インスタンス新し要素挿入した後に、追加カスタム プロセス実行します。 ( DictionaryBase から継承されます。)
プロテクト メソッド OnRemove  DictionaryBase インスタンスか要素削除する前に追加カスタム プロセス実行します。 ( DictionaryBase から継承されます。)
プロテクト メソッド OnRemoveComplete  DictionaryBase インスタンスか要素削除した後に、追加カスタム プロセス実行します。 ( DictionaryBase から継承されます。)
プロテクト メソッド OnSet  DictionaryBase インスタンスに値を設定する前に追加カスタム プロセス実行します。 ( DictionaryBase から継承されます。)
プロテクト メソッド OnSetComplete  DictionaryBase インスタンスに値を設定した後に、追加カスタム プロセス実行します。 ( DictionaryBase から継承されます。)
プロテクト メソッド OnValidate  指定したキーおよび値を持つ要素検証するときに、追加カスタム プロセス実行します。 ( DictionaryBase から継承されます。)
参照参照

関連項目

DiscoveryClientReferenceCollection クラス
System.Web.Services.Discovery 名前空間

DiscoveryClientReferenceCollection メンバ

DiscoveryReference オブジェクトコレクション表します。このクラス継承できません。

DiscoveryClientReferenceCollection データ型公開されるメンバを以下の表に示します


パブリック コンストラクタパブリック コンストラクタ
  名前 説明
パブリック メソッド DiscoveryClientReferenceCollection  
パブリック プロパティパブリック プロパティ
( プロテクト プロパティ参照)
  名前 説明
パブリック プロパティ Count  DictionaryBase インスタンス格納されている要素の数を取得します。(DictionaryBase から継承されます。)
パブリック プロパティ Item 指定した URLDiscoveryClientReferenceCollection から DiscoveryReference オブジェクト取得または設定します
パブリック プロパティ Keys DiscoveryClientReferenceCollectionすべてのキー保持している System.Collections.ICollection オブジェクト取得します
パブリック プロパティ Values DiscoveryClientReferenceCollection 内のすべての値を保持している System.Collections.ICollection オブジェクト取得します
プロテクト プロパティプロテクト プロパティ
  名前 説明
プロテクト プロパティ Dictionary  DictionaryBase インスタンス格納されている要素リスト取得します。(DictionaryBase から継承されます。)
プロテクト プロパティ InnerHashtable  DictionaryBase インスタンス格納されている要素リスト取得します。(DictionaryBase から継承されます。)
パブリック メソッドパブリック メソッド
( プロテクト メソッド参照)
  名前 説明
パブリック メソッド Add オーバーロードされますDiscoveryReference を DiscoveryClientReferenceCollection に追加します
パブリック メソッド Clear  DictionaryBase インスタンス内容消去します。 (DictionaryBase から継承されます。)
パブリック メソッド Contains 指定した URLDiscoveryReferenceDiscoveryClientReferenceCollection格納されているかどうか確認します
パブリック メソッド CopyTo  1 次元Array指定したインデックスDictionaryBase要素コピーします。 (DictionaryBase から継承されます。)
パブリック メソッド Equals  オーバーロードされます2 つObject インスタンス等しかどうか判断します。 (Object から継承されます。)
パブリック メソッド GetEnumerator  DictionaryBase インスタンス反復処理する IDictionaryEnumerator を返します。 (DictionaryBase から継承されます。)
パブリック メソッド GetHashCode  特定の型のハッシュ関数として機能します。GetHashCode は、ハッシュ アルゴリズムや、ハッシュ テーブルのようなデータ構造での使用適してます。 (Object から継承されます。)
パブリック メソッド GetType  現在のインスタンスType取得します。 (Object から継承されます。)
パブリック メソッド ReferenceEquals  指定した複数Object インスタンス同一かどうか判断します。 (Object から継承されます。)
パブリック メソッド Remove DiscoveryClientReferenceCollection から指定した URLDiscoveryReference削除します
パブリック メソッド ToString  現在の Object を表す String返します。 (Object から継承されます。)
プロテクト メソッドプロテクト メソッド
  名前 説明
プロテクト メソッド Finalize  Objectガベージ コレクションにより収集される前に、その Objectリソース解放しその他のクリーンアップ操作実行できるようにします。 (Object から継承されます。)
プロテクト メソッド MemberwiseClone  現在の Object簡易コピー作成します。 (Object から継承されます。)
プロテクト メソッド OnClear  DictionaryBase インスタンス内容消去する前に追加カスタム プロセス実行します。 (DictionaryBase から継承されます。)
プロテクト メソッド OnClearComplete  DictionaryBase インスタンス内容消去した後に、追加カスタム プロセス実行します。 (DictionaryBase から継承されます。)
プロテクト メソッド OnGet  指定したキーおよび値を持つ、DictionaryBase インスタンス要素取得します。 (DictionaryBase から継承されます。)
プロテクト メソッド OnInsert  DictionaryBase インスタンス新し要素挿入する前に追加カスタム プロセス実行します。 (DictionaryBase から継承されます。)
プロテクト メソッド OnInsertComplete  DictionaryBase インスタンス新し要素挿入した後に、追加カスタム プロセス実行します。 (DictionaryBase から継承されます。)
プロテクト メソッド OnRemove  DictionaryBase インスタンスか要素削除する前に追加カスタム プロセス実行します。 (DictionaryBase から継承されます。)
プロテクト メソッド OnRemoveComplete  DictionaryBase インスタンスか要素削除した後に、追加カスタム プロセス実行します。 (DictionaryBase から継承されます。)
プロテクト メソッド OnSet  DictionaryBase インスタンスに値を設定する前に追加カスタム プロセス実行します。 (DictionaryBase から継承されます。)
プロテクト メソッド OnSetComplete  DictionaryBase インスタンスに値を設定した後に、追加カスタム プロセス実行します。 (DictionaryBase から継承されます。)
プロテクト メソッド OnValidate  指定したキーおよび値を持つ要素検証するときに、追加カスタム プロセス実行します。 (DictionaryBase から継承されます。)
参照参照

関連項目

DiscoveryClientReferenceCollection クラス
System.Web.Services.Discovery 名前空間


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

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

辞書ショートカット

すべての辞書の索引

「DiscoveryClientReferenceCollection」の関連用語

DiscoveryClientReferenceCollectionのお隣キーワード
検索ランキング

   

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



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

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

©2025 GRAS Group, Inc.RSS