TryCatch.Catches 屬性

定義

當活動拋出例外時Catch要檢查的元素集合Try

public:
 property System::Collections::ObjectModel::Collection<System::Activities::Statements::Catch ^> ^ Catches { System::Collections::ObjectModel::Collection<System::Activities::Statements::Catch ^> ^ get(); };
[System.Windows.Markup.DependsOn("Try")]
public System.Collections.ObjectModel.Collection<System.Activities.Statements.Catch> Catches { get; }
[<System.Windows.Markup.DependsOn("Try")>]
member this.Catches : System.Collections.ObjectModel.Collection<System.Activities.Statements.Catch>
Public ReadOnly Property Catches As Collection(Of Catch)

屬性值

捕捉收集。

屬性

備註

捕獲的魚會依照加入收藏的順序進行評估。 若發現異常類型完全匹配,則執行該匹配 Catch 活動。 若未找到完全匹配的,則執行與最接近匹配Catch的 。ExceptionType

一旦放入設計 Catch 器,活動就無法在設計器中重新排序。 若要重新排序活動集合 Catch ,請依正確順序刪除並重新加入,或使用 XAML(程式碼)檢視來進行工作流程。

適用於