DiscoveryExceptionDictionary.Item[String] Propriété

Définition

Obtient ou définit Exception qui s'est produit pendant la découverte de l'URL spécifiée à partir de DiscoveryExceptionDictionary.

public:
 property Exception ^ default[System::String ^] { Exception ^ get(System::String ^ url); void set(System::String ^ url, Exception ^ value); };
public Exception this[string url] { get; set; }
member this.Item(string) : Exception with get, set
Default Public Property Item(url As String) As Exception

Paramètres

url
String

URL du document de découverte qui a provoqué la levée d'une exception pendant la découverte des services Web XML.

Valeur de propriété

Exception

Exception levé pendant la découverte de url.

Exceptions

url a la valeur null.

Exemples

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

S’applique à