DiscoveryExceptionDictionary.Add Method
.NET Framework 2.0
Adds an Exception with a key of url to the DiscoveryExceptionDictionary.
Namespace: System.Web.Services.Discovery
Assembly: System.Web.Services (in system.web.services.dll)
Assembly: System.Web.Services (in system.web.services.dll)
public void Add ( String url, Exception value )
public function Add ( url : String, value : Exception )
Not applicable.
Parameters
- url
The URL that caused an exception during XML Web services discovery.
- value
The Exception that occurred during XML Web services discovery.
DiscoveryExceptionDictionary^ myNewExceptionDictionary = gcnew DiscoveryExceptionDictionary; // Add an exception with the custom error message. Exception^ myNewException = gcnew Exception( "The requested service is not available." ); myNewExceptionDictionary->Add( myUrlKey, myNewException ); myExceptionDictionary = myNewExceptionDictionary;
DiscoveryExceptionDictionary myNewExceptionDictionary =
new DiscoveryExceptionDictionary();
// Add an exception with the custom error message.
Exception myNewException =
new Exception("The requested service is not available.");
myNewExceptionDictionary.Add(myUrlKey, myNewException);
myExceptionDictionary = myNewExceptionDictionary;
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.Community Additions
ADD
Show: