UrlAttribute(String) Konstruktor
Definition
Viktigt
En del information gäller för förhandsversionen av en produkt och kan komma att ändras avsevärt innan produkten blir allmänt tillgänglig. Microsoft lämnar inga garantier, uttryckliga eller underförstådda, avseende informationen som visas här.
Skapar en ny instans av UrlAttribute klassen.
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)
Parametrar
- callsiteURL
- String
Webbadressen till anropswebbplatsen.
- Attribut
Undantag
Parametern callsiteURL är null.
Den omedelbara anroparen har inte infrastrukturbehörighet.
Exempel
I följande kodexempel visas hur konstruktorn används 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);