UrlAttribute.UrlValue Eigenschap

Definitie

Hiermee haalt u de URL-waarde van de UrlAttribute.

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

Waarde van eigenschap

De URL-waarde van de UrlAttribute.

Kenmerken

Uitzonderingen

De directe beller heeft geen infrastructuurmachtiging.

Voorbeelden

Het volgende codevoorbeeld illustreert het gebruik van de UrlValue eigenschap van de UrlAttribute.

// 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);

Van toepassing op