DiscoveryExceptionDictionary.Item[String] 属性

定义

获取或设置从 Exception 中发现指定的 URL 时发生的 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

参数

url
String

在 XML Web services 发现过程中导致引发异常的发现文档的 URL。

属性值

Exception

发现 url 时引发的 Exception

例外

urlnull

示例

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)

适用于