DiscoveryExceptionDictionary.Item Property

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^] {
	Exception^ get (String^ url);
	void set (String^ url, Exception^ value);
}
/** @property */
public Exception get_Item (String url)

/** @property */
public void set_Item (String url, Exception value)

Not applicable.

Parameters

url

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.

Exception typeCondition

ArgumentNullException

url is a null reference (Nothing in Visual Basic).

Exception^ myException = myExceptionDictionary[ myUrlKey ];
Console::WriteLine( " Source : {0}", myException->Source );
Console::WriteLine( " Exception : {0}", myException->Message );

System.Exception myException = myExceptionDictionary.
    get_Item(myUrlKey);
Console.WriteLine(" Source : " + myException.get_Source());
Console.WriteLine(" Exception : " + myException.get_Message());

Windows 98, Windows Server 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0, 1.1, 1.0

Community Additions

ADD
Show: