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
Surađujte s nama na GitHubu
Izvor za ovaj sadržaj možete pronaći na GitHubu, gdje možete stvarati i pregledavati probleme i zahtjeve za povlačenjem. Dodatne informacije potražite u našem vodiču za suradnike.