RemotingConfiguration.IsActivationAllowed メソッドとは? わかりやすく解説

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

RemotingConfiguration.IsActivationAllowed メソッド

指定した Typeクライアント側アクティブ化できるかどうかを示す Boolean 値を返します

名前空間: System.Runtime.Remoting
アセンブリ: mscorlib (mscorlib.dll 内)
構文構文

Public Shared Function IsActivationAllowed
 ( _
    svrType As Type _
) As Boolean
Dim svrType As Type
Dim returnValue As Boolean

returnValue = RemotingConfiguration.IsActivationAllowed(svrType)
public static bool IsActivationAllowed
 (
    Type svrType
)
public:
static bool IsActivationAllowed (
    Type^ svrType
)
public static boolean IsActivationAllowed (
    Type svrType
)
public static function IsActivationAllowed
 (
    svrType : Type
) : boolean

パラメータ

svrType

確認する対象オブジェクト Type

戻り値
指定した Typeクライアント側アクティブ化できる場合trueそれ以外場合false

例外例外
解説解説
使用例使用例
' 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());
}
.NET Framework のセキュリティ.NET Frameworkセキュリティ
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
RemotingConfiguration クラス
RemotingConfiguration メンバ
System.Runtime.Remoting 名前空間



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

辞書ショートカット

すべての辞書の索引

RemotingConfiguration.IsActivationAllowed メソッドのお隣キーワード
検索ランキング

   

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



RemotingConfiguration.IsActivationAllowed メソッドのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

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

©2025 GRAS Group, Inc.RSS