DiscoveryExceptionDictionary.Item[String] Property

Definition

Gets or sets the Exception that occurred while discovering the specified URL from the 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

The URL of the discovery document that caused an exception to be thrown during XML Web services discovery.

Property Value

An Exception that was thrown discovering url.

Exceptions

url is null.

Examples

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)

Applies to