UrlAttribute.UrlValue Property

 
System_CAPS_noteNote

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 {
	[SecurityCriticalAttribute]
	get;
}

Property Value

Type: System.String

The URL value of the UrlAttribute.

Exception Condition
SecurityException

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

SecurityPermission

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

.NET Framework
Available since 1.1
Return to top
Show: