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
Tehke meiega GitHubis koostööd
Selle sisu allika leiate GitHubist, kus saate ka probleeme luua ja läbi vaadata ning päringuid teha. Lisateavet leiate meie kaasautorite juhendist.