次の方法で共有


ActivatedClientTypeEntry コンストラクタ (Type, String)

指定した Type とアプリケーションの URL を使用して、ActivatedClientTypeEntry クラスの新しいインスタンスを初期化します。

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

構文

'宣言
Public Sub New ( _
    type As Type, _
    appUrl As String _
)
'使用
Dim type As Type
Dim appUrl As String

Dim instance As New ActivatedClientTypeEntry(type, appUrl)
public ActivatedClientTypeEntry (
    Type type,
    string appUrl
)
public:
ActivatedClientTypeEntry (
    Type^ type, 
    String^ appUrl
)
public ActivatedClientTypeEntry (
    Type type, 
    String appUrl
)
public function ActivatedClientTypeEntry (
    type : Type, 
    appUrl : String
)

パラメータ

  • type
    クライアント側でアクティブ化される型の Type
  • appUrl
    型をアクティブにするアプリケーションの URL。

解説

型のアセンブリ名は、type パラメータから取得します。

使用例

ActivatedClientTypeEntry の作成方法を次のコード例に示します。

' Create activated client type entry.
Dim myActivatedClientTypeEntry As _
    New ActivatedClientTypeEntry(GetType(HelloServer), _
    "tcp://localhost:8082")
// Create activated client type entry.
ActivatedClientTypeEntry myActivatedClientTypeEntry =
    new ActivatedClientTypeEntry(typeof(HelloServer),
    "tcp://localhost:8082");
// Create activated client type entry.
ActivatedClientTypeEntry^ activatedClientTypeEntry = gcnew ActivatedClientTypeEntry( HelloServer::typeid, "tcp://localhost:8082" );
// Create activated client type entry.
ActivatedClientTypeEntry myActivatedClientTypeEntry = 
    new ActivatedClientTypeEntry(HelloServer.class.ToType(), 
    "tcp://localhost:8082");

プラットフォーム

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 によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。

バージョン情報

.NET Framework

サポート対象 : 2.0、1.1、1.0

参照

関連項目

ActivatedClientTypeEntry クラス
ActivatedClientTypeEntry メンバ
System.Runtime.Remoting 名前空間