Freigeben über


UrlAttribute.UrlValue-Eigenschaft

Ruft den URL-Wert von UrlAttribute ab.

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

Syntax

'Declaration
Public ReadOnly Property UrlValue As String
'Usage
Dim instance As UrlAttribute
Dim value As String

value = instance.UrlValue
public string UrlValue { get; }
public:
property String^ UrlValue {
    String^ get ();
}
/** @property */
public String get_UrlValue ()
public function get UrlValue () : String

Eigenschaftenwert

Der URL-Wert von UrlAttribute.

Ausnahmen

Ausnahmetyp Bedingung

SecurityException

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

Beispiel

Im folgenden Beispiel wird die Verwendung der UrlValue-Eigenschaft von UrlAttribute 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