指定したオブジェクト Type がリモート アクティブ化クライアント型として登録されているかどうかを確認します。
Overloads Public Shared Function IsRemotelyActivatedClientType( _
ByVal svrType As Type _) As ActivatedClientTypeEntry
[C#]
public static ActivatedClientTypeEntry IsRemotelyActivatedClientType(TypesvrType);
[C++]
public: static ActivatedClientTypeEntry* IsRemotelyActivatedClientType(Type* svrType);
[JScript]
public static function IsRemotelyActivatedClientType(
svrType : Type) : ActivatedClientTypeEntry;
パラメータ
- svrType
確認する対象のオブジェクト型。
戻り値
指定したオブジェクト型に対応している ActivatedClientTypeEntry 。
例外
| 例外の種類 | 条件 |
|---|---|
| SecurityException | コールスタックの上位にある 1 つ以上の呼び出し元に、リモート処理の型とチャネルを構成するためのアクセス許可がありません。 |
使用例
' Check whether the 'MyServerImpl' type is registered as a remotely activated client type.
Dim myActivatedClientEntry As ActivatedClientTypeEntry = _
RemotingConfiguration.IsRemotelyActivatedClientType(GetType(MyServerImpl))
Console.WriteLine("The Object type is " + myActivatedClientEntry.ObjectType.ToString())
Console.WriteLine("The Application Url is " + _
myActivatedClientEntry.ApplicationUrl.ToString())
[C#]
// Check whether the 'MyServerImpl' type is registered as
// a remotely activated client type.
ActivatedClientTypeEntry myActivatedClientEntry =
RemotingConfiguration.IsRemotelyActivatedClientType(
typeof(MyServerImpl));
Console.WriteLine("The Object type is "
+myActivatedClientEntry.ObjectType);
Console.WriteLine("The Application Url is "
+myActivatedClientEntry.ApplicationUrl);
[C++]
// Check whether the 'MyServerImpl' type is registered as
// a remotely activated client type.
ActivatedClientTypeEntry* myActivatedClientEntry =
RemotingConfiguration::IsRemotelyActivatedClientType(__typeof(MyServerImpl));
Console::WriteLine(S"The Object type is {0}", myActivatedClientEntry->ObjectType);
Console::WriteLine(S"The Application Url is {0}", myActivatedClientEntry->ApplicationUrl);
[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 セキュリティ:
- SecurityPermission (リモート処理インフラストラクチャを構成するために必要なアクセス許可)要求値: SecurityAction.Demand; アクセス許可値: SecurityPermissionFlag.RemotingConfiguration
参照
RemotingConfiguration クラス | RemotingConfiguration メンバ | System.Runtime.Remoting 名前空間 | RemotingConfiguration.IsRemotelyActivatedClientType オーバーロードの一覧 | クライアント アクティベーション