UrlAttribute::UrlValue Property

 

Gets the URL value of the UrlAttribute.

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

public:
property String^ UrlValue {
	[SecurityCriticalAttribute]
	String^ 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 UrlAttribute.
UrlAttribute^ attribute = gcnew 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: