DiscoveryExceptionDictionary.Item Property (String)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com 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; }

Parameters

url
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
ArgumentNullException

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
Show: