Share via


ActivatedClientTypeEntry 构造函数

定义

初始化 ActivatedClientTypeEntry 类的新实例。

重载

ActivatedClientTypeEntry(Type, String)

使用给定的 ActivatedClientTypeEntry 和应用程序 URL 初始化 Type 类的新实例。

ActivatedClientTypeEntry(String, String, String)

使用给定的类型名称、程序集名称和应用程序 URL 初始化 ActivatedClientTypeEntry 类的新实例。

ActivatedClientTypeEntry(Type, String)

使用给定的 ActivatedClientTypeEntry 和应用程序 URL 初始化 Type 类的新实例。

public:
 ActivatedClientTypeEntry(Type ^ type, System::String ^ appUrl);
public ActivatedClientTypeEntry (Type type, string appUrl);
new System.Runtime.Remoting.ActivatedClientTypeEntry : Type * string -> System.Runtime.Remoting.ActivatedClientTypeEntry
Public Sub New (type As Type, appUrl As String)

参数

type
Type

客户端激活类型的 Type

appUrl
String

在其中激活该类型的应用程序的 URL。

示例

下面的代码示例演示如何构造 ActivatedClientTypeEntry

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

注解

类型的程序集名称派生自 type 参数。

适用于

ActivatedClientTypeEntry(String, String, String)

使用给定的类型名称、程序集名称和应用程序 URL 初始化 ActivatedClientTypeEntry 类的新实例。

public:
 ActivatedClientTypeEntry(System::String ^ typeName, System::String ^ assemblyName, System::String ^ appUrl);
public ActivatedClientTypeEntry (string typeName, string assemblyName, string appUrl);
new System.Runtime.Remoting.ActivatedClientTypeEntry : string * string * string -> System.Runtime.Remoting.ActivatedClientTypeEntry
Public Sub New (typeName As String, assemblyName As String, appUrl As String)

参数

typeName
String

客户端激活类型的类型名称。

assemblyName
String

客户端激活类型的程序集名称。

appUrl
String

在其中激活该类型的应用程序的 URL。

适用于