DiscoveryExceptionDictionary::Item Property (String^)

 

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:
property Exception^ default[
	String^ url
] {
	Exception^ get(String^ url);
	void set(String^ url, Exception^ value);
}

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 : {0}", myException->Source );
Console::WriteLine( " Exception : {0}", myException->Message );

.NET Framework
Available since 1.1
Return to top
Show: