Share via


UrlAttribute.UrlValue Eigenschaft

Definition

Ruft den URL-Wert von UrlAttribute ab.

public:
 property System::String ^ UrlValue { System::String ^ get(); };
public string UrlValue { get; }
public string UrlValue { [System.Security.SecurityCritical] get; }
member this.UrlValue : string
[<get: System.Security.SecurityCritical>]
member this.UrlValue : string
Public ReadOnly Property UrlValue As String

Eigenschaftswert

Der URL-Wert von UrlAttribute.

Attribute

Ausnahmen

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

Beispiele

Im folgenden Codebeispiel wird die Verwendung der UrlValue -Eigenschaft von UrlAttributeveranschaulicht.

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

Gilt für: