DiscoveryExceptionDictionary.Item Property (String)


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

Gets or sets the Exception that occurred while discovering the specified URL from the DiscoveryExceptionDictionary.

Namespace:   System.Web.Services.Discovery
Assembly:  System.Web.Services (in System.Web.Services.dll)

public Exception this[
	string url
] { get; set; }


Type: System.String

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

Property Value

Type: System.Exception

An Exception that was thrown discovering url.

Exception Condition

url is null.

Exception myException = myExceptionDictionary[myUrlKey];
Console.WriteLine(" Source : " + myException.Source);
Console.WriteLine(" Exception : " + myException.Message);

.NET Framework
Available since 1.1
Return to top