次の方法で共有


RemotingConfiguration.GetRegisteredActivatedServiceTypes メソッド

クライアントからの要求に基づいてアクティブにできる、サービス エンドで登録されているオブジェクト型の配列を取得します。

Public Shared Function GetRegisteredActivatedServiceTypes() As _
   ActivatedServiceTypeEntry()
[C#]
public static ActivatedServiceTypeEntry
   
   GetRegisteredActivatedServiceTypes();
[C++]
public: static ActivatedServiceTypeEntry*
   GetRegisteredActivatedServiceTypes() 
   ;
[JScript]
public static function GetRegisteredActivatedServiceTypes() :
   ActivatedServiceTypeEntry
   ;

戻り値

クライアントからの要求に基づいてアクティブにできる、サービス エンドで登録されているオブジェクト型の配列。

例外

例外の種類 条件
SecurityException コールスタックの上位にある 1 つ以上の呼び出し元に、リモート処理の型とチャネルを構成するためのアクセス許可がありません。

解説

クライアント アクティブ化オブジェクトの詳細については、「 クライアント アクティベーション 」を参照してください。

使用例

 
' Check whether the 'MyServerImpl' object is allowed for activation or not.
If RemotingConfiguration.IsActivationAllowed(GetType(MyServerImpl)) Then
   ' Get the registered activated service types .
   Dim myActivatedServiceEntries As ActivatedServiceTypeEntry() = _ 
                       RemotingConfiguration.GetRegisteredActivatedServiceTypes()
   Console.WriteLine("The Length of the registered activated service type array is " + _ 
                                  myActivatedServiceEntries.Length.ToString())
   Console.WriteLine("The Object type is:" + _ 
                           myActivatedServiceEntries(0).ObjectType.ToString())
End If

[C#] 

      // Check whether the 'MyServerImpl' object is allowed for 
      // activation or not.
      if(RemotingConfiguration.IsActivationAllowed(typeof(MyServerImpl)))
      {
       // Get the registered activated service types .
       ActivatedServiceTypeEntry[] myActivatedServiceEntries =
             RemotingConfiguration.GetRegisteredActivatedServiceTypes();
      Console.WriteLine("The Length of the registered activated service"
                       +" type array is "+myActivatedServiceEntries.Length);
      Console.WriteLine("The Object type is:"
                          +myActivatedServiceEntries[0].ObjectType);
      }


[C++] 

   // Check whether the 'MyServerImpl' object is allowed for 
   // activation or not.
   if(RemotingConfiguration::IsActivationAllowed(__typeof(MyServerImpl)))
   {
      // Get the registered activated service types .
      ActivatedServiceTypeEntry* myActivatedServiceEntries[] =
         RemotingConfiguration::GetRegisteredActivatedServiceTypes();
      Console::WriteLine(S"The Length of the registered activated service type array is {0}", __box(myActivatedServiceEntries->Length) );
      Console::WriteLine(S"The Object type is:{0}", myActivatedServiceEntries[0]->ObjectType);
   }

[JScript] JScript のサンプルはありません。Visual Basic、C#、および C++ のサンプルを表示するには、このページの左上隅にある言語のフィルタ ボタン 言語のフィルタ をクリックします。

必要条件

プラットフォーム: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 ファミリ

.NET Framework セキュリティ:

参照

RemotingConfiguration クラス | RemotingConfiguration メンバ | System.Runtime.Remoting 名前空間 | ActivatedServiceTypeEntry | ActivatedClientTypeEntry | RegisterActivatedServiceType | RegisterActivatedClientType