語言

DiscoveryExceptionDictionary.Item[String] 屬性

定義

取得或設定 Exception 在從 中發現指定網址 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 網路服務發現過程中,導致異常拋出的發現文件的 URL。

屬性值

一個 Exception 被拋出的發現 url。

例外狀況

url 是 null。

範例

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)

適用於