DiscoveryExceptionDictionary.Item[String] Eigenschap

Definitie

Hiermee wordt de Exception url opgehaald of ingesteld die is opgetreden tijdens het detecteren van de opgegeven URL van de DiscoveryExceptionDictionary.

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

Parameters

url
String

De URL van het detectiedocument waardoor er een uitzondering is opgetreden tijdens de detectie van XML-webservices.

Waarde van eigenschap

Een Exception die werd gegooid ontdekken url.

Uitzonderingen

url is null.

Voorbeelden

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)

Van toepassing op