ActivatedClientTypeEntry-Konstruktor (Type, String)
Initialisiert eine neue Instanz der ActivatedClientTypeEntry-Klasse mit dem angegebenen Type und dem angegebenen Anwendungs-URL.
Namespace: System.Runtime.Remoting
Assembly: mscorlib (in mscorlib.dll)
Syntax
'Declaration
Public Sub New ( _
type As Type, _
appUrl As String _
)
'Usage
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
)
Parameter
- type
Der Type des vom Client aktivierten Typs.
- appUrl
Der URL der Anwendung, in der der Typ aktiviert werden soll.
Hinweise
Der Assemblyname des Typs wird aus dem type-Parameter abgeleitet.
Beispiel
Im folgenden Codebeispiel wird das Erstellen eines ActivatedClientTypeEntry veranschaulicht.
' 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");
Plattformen
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 unterstützt nicht alle Versionen sämtlicher Plattformen. Eine Liste der unterstützten Versionen finden Sie unter Systemanforderungen.
Versionsinformationen
.NET Framework
Unterstützt in: 2.0, 1.1, 1.0
Siehe auch
Referenz
ActivatedClientTypeEntry-Klasse
ActivatedClientTypeEntry-Member
System.Runtime.Remoting-Namespace