UrlAttribute.UrlValue Property


The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Gets the URL value of the UrlAttribute.

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

public string UrlValue {

Property Value

Type: System.String

The URL value of the UrlAttribute.

Exception Condition

The immediate caller does not have infrastructure permission.

The following code example illustrates the use of the UrlValue property of the UrlAttribute.

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


For operating with infrastructure code. Associated enumeration: SecurityPermissionFlag.Infrastructure

.NET Framework
Available since 1.1
Return to top