UrlAttribute(String) 생성자

정의

클래스의 새 인스턴스를 UrlAttribute 만듭니다.

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)

매개 변수

callsiteURL
String

호출 사이트 URL입니다.

특성

예외

매개 변수는 callsiteURL .입니다 null.

즉시 호출자에게 인프라 권한이 없습니다.

예제

다음 코드 예제에서는 생성자의 사용을 UrlAttribute 보여 줍니다.

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

적용 대상