DiscoveryExceptionDictionary.Item[String] Egenskap

Definition

Hämtar eller anger Exception det som inträffade när den angivna URL:en upptäcktes DiscoveryExceptionDictionaryfrån .

public:
 property Exception ^ default[System::String ^] { Exception ^ get(System::String ^ url); void set(System::String ^ url, Exception ^ value); };
public Exception this[string url] { get; set; }
member this.Item(string) : Exception with get, set
Default Public Property Item(url As String) As Exception

Parametrar

url
String

URL:en för identifieringsdokumentet som gjorde att ett undantag utlöstes vid identifiering av XML-webbtjänster.

Egenskapsvärde

En Exception som kastades upptäcka url.

Undantag

url är null.

Exempel

Exception^ myException = myExceptionDictionary[ myUrlKey ];
Console::WriteLine( " Source : {0}", myException->Source );
Console::WriteLine( " Exception : {0}", myException->Message );
Exception myException = myExceptionDictionary[myUrlKey];
Console.WriteLine(" Source : " + myException.Source);
Console.WriteLine(" Exception : " + myException.Message);
Dim myException As Exception = myExceptionDictionary(myUrlKey)
Console.WriteLine(" Source : " + myException.Source)
Console.WriteLine(" Exception : " + myException.Message)

Gäller för