UrlAttribute(String) Constructor
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Creates a new instance of the UrlAttribute class.
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
The call site URL.
- Attributes
Exceptions
The callsiteURL
parameter is null
.
The immediate caller does not have infrastructure permission.
Examples
The following code example illustrates the use of the 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);
Applies to
ทํางานร่วมกับเราใน GitHub
แหล่งที่มาสำหรับเนื้อหานี้สามารถพบได้บน GitHub ซึ่งคุณยังสามารถสร้างและตรวจสอบปัญหาและคำขอดึงข้อมูลได้ สำหรับข้อมูลเพิ่มเติม ให้ดูคู่มือผู้สนับสนุนของเรา