UrlAttribute(String) Constructor

Definitie

Hiermee maakt u een nieuw exemplaar van de UrlAttribute klasse.

public:
 UrlAttribute(System::String ^ callsiteURL);
public UrlAttribute(string callsiteURL);
[System.Security.SecurityCritical]
public UrlAttribute(string callsiteURL);
new System.Runtime.Remoting.Activation.UrlAttribute : string -> System.Runtime.Remoting.Activation.UrlAttribute
[<System.Security.SecurityCritical>]
new System.Runtime.Remoting.Activation.UrlAttribute : string -> System.Runtime.Remoting.Activation.UrlAttribute
Public Sub New (callsiteURL As String)

Parameters

callsiteURL
String

De URL van de oproepsite.

Kenmerken

Uitzonderingen

De callsiteURL parameter is null.

De directe beller heeft geen infrastructuurmachtiging.

Voorbeelden

Het volgende codevoorbeeld illustreert het gebruik van de UrlAttribute constructor.

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