UrlAttribute(String) Constructor

Definición

Crea una nueva instancia de la UrlAttribute clase .

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)

Parámetros

callsiteURL
String

Dirección URL del sitio de llamada.

Atributos

Excepciones

El callsiteURL parámetro es null.

El llamador inmediato no tiene permiso de infraestructura.

Ejemplos

En el ejemplo de código siguiente se muestra el uso del 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);

Se aplica a