RemotingConfiguration.IsActivationAllowed メソッド
指定した Type をクライアント側でアクティブ化できるかどうかを示す Boolean 値を返します。
名前空間: System.Runtime.Remoting
アセンブリ: mscorlib (mscorlib.dll 内)
構文
Dim svrType As Type Dim returnValue As Boolean returnValue = RemotingConfiguration.IsActivationAllowed(svrType)



' 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
// 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); }
// Check whether the 'MyServerImpl' object is allowed for // activation or not. if ( RemotingConfiguration::IsActivationAllowed( MyServerImpl::typeid ) ) { // Get the registered activated service types . array<ActivatedServiceTypeEntry^>^myActivatedServiceEntries = RemotingConfiguration::GetRegisteredActivatedServiceTypes(); Console::WriteLine( "The Length of the registered activated service type array is {0}", myActivatedServiceEntries->Length ); Console::WriteLine( "The Object type is:{0}", myActivatedServiceEntries[ 0 ]->ObjectType ); }
// Check whether the 'MyServerImpl' object is allowed for // activation or not. if (RemotingConfiguration.IsActivationAllowed(MyServerImpl. class.ToType())) { // Get the registered activated service types . ActivatedServiceTypeEntry myActivatedServiceEntries[] = RemotingConfiguration.GetRegisteredActivatedServiceTypes(); Console.WriteLine("The Length of the registered activated service" + " type array is " + myActivatedServiceEntries.get_Length()); Console.WriteLine("The Object type is:" + myActivatedServiceEntries[0].get_ObjectType()); }


Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


- RemotingConfiguration.IsActivationAllowed メソッドのページへのリンク