Freigeben über


UrlAttribute-Konstruktor

Erstellt eine neue Instanz der UrlAttribute-Klasse.

Namespace: System.Runtime.Remoting.Activation
Assembly: mscorlib (in mscorlib.dll)

Syntax

'Declaration
Public Sub New ( _
    callsiteURL As String _
)
'Usage
Dim callsiteURL As String

Dim instance As New UrlAttribute(callsiteURL)
public UrlAttribute (
    string callsiteURL
)
public:
UrlAttribute (
    String^ callsiteURL
)
public UrlAttribute (
    String callsiteURL
)
public function UrlAttribute (
    callsiteURL : String
)

Parameter

  • callsiteURL
    Der URL der aufrufenden Site.

Ausnahmen

Ausnahmetyp Bedingung

ArgumentNullException

Der callsiteURL-Parameter ist NULL (Nothing in Visual Basic).

SecurityException

Der direkte Aufrufer verfügt nicht über die Berechtigung für die Infrastruktur.

Beispiel

Im folgenden Codebeispiel wird die Verwendung des UrlAttribute-Konstruktors veranschaulicht.

// Create a url attribute object.
UrlAttribute attribute = 
    new UrlAttribute("tcp://localhost:1234/RemoteApp");
Console.WriteLine("UrlAttribute value: {0}", attribute.UrlValue);
// Create UrlAttribute.
UrlAttribute^ attribute = gcnew UrlAttribute( "tcp://localhost:1234/RemoteApp" );
Console::WriteLine( "UrlAttribute value: {0}", attribute->UrlValue );

.NET Framework-Sicherheit

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

UrlAttribute-Klasse
UrlAttribute-Member
System.Runtime.Remoting.Activation-Namespace