UrlAttribute(String) Oluşturucu

Tanım

sınıfının yeni bir örneğini UrlAttribute oluşturur.

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)

Parametreler

callsiteURL
String

Arama sitesi URL'si.

Öznitelikler

Özel durumlar

callsiteURL parametresi null'dir.

Hemen çağıranın altyapı izni yok.

Örnekler

Aşağıdaki kod örneği oluşturucunun UrlAttribute kullanımını gösterir.

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

Şunlara uygulanır