Expression.Catch メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
catch ステートメントを表す CatchBlock を作成します。
オーバーロード
| 名前 | 説明 |
|---|---|
| Catch(ParameterExpression, Expression) |
ハンドラー本体で使用するために、キャッチされたCatchBlock オブジェクトへの参照を持つ catch ステートメントを表すExceptionを作成します。 |
| Catch(Type, Expression) |
catch ステートメントを表す CatchBlock を作成します。 |
| Catch(ParameterExpression, Expression, Expression) |
CatchBlock フィルターと、キャッチされたException オブジェクトへの参照を含む catch ステートメントを表すExceptionを作成します。 |
| Catch(Type, Expression, Expression) |
CatchBlock フィルターを使用して catch ステートメントを表すExceptionを作成しますが、キャッチされたException オブジェクトへの参照はありません。 |
Catch(ParameterExpression, Expression)
- ソース:
- CatchBlock.cs
- ソース:
- CatchBlock.cs
- ソース:
- CatchBlock.cs
- ソース:
- CatchBlock.cs
- ソース:
- CatchBlock.cs
ハンドラー本体で使用するために、キャッチされたCatchBlock オブジェクトへの参照を持つ catch ステートメントを表すExceptionを作成します。
public:
static System::Linq::Expressions::CatchBlock ^ Catch(System::Linq::Expressions::ParameterExpression ^ variable, System::Linq::Expressions::Expression ^ body);
public static System.Linq.Expressions.CatchBlock Catch(System.Linq.Expressions.ParameterExpression variable, System.Linq.Expressions.Expression body);
static member Catch : System.Linq.Expressions.ParameterExpression * System.Linq.Expressions.Expression -> System.Linq.Expressions.CatchBlock
Public Shared Function Catch (variable As ParameterExpression, body As Expression) As CatchBlock
パラメーター
- variable
- ParameterExpression
このハンドラーによってキャッチされたParameterExpression オブジェクトへの参照を表すException。
- body
- Expression
catch ステートメントの本文。
返品
作成された CatchBlock。
適用対象
Catch(Type, Expression)
- ソース:
- CatchBlock.cs
- ソース:
- CatchBlock.cs
- ソース:
- CatchBlock.cs
- ソース:
- CatchBlock.cs
- ソース:
- CatchBlock.cs
catch ステートメントを表す CatchBlock を作成します。
public:
static System::Linq::Expressions::CatchBlock ^ Catch(Type ^ type, System::Linq::Expressions::Expression ^ body);
public static System.Linq.Expressions.CatchBlock Catch(Type type, System.Linq.Expressions.Expression body);
static member Catch : Type * System.Linq.Expressions.Expression -> System.Linq.Expressions.CatchBlock
Public Shared Function Catch (type As Type, body As Expression) As CatchBlock
パラメーター
- type
- Type
このTypeが処理ExceptionCatchBlock。
- body
- Expression
catch ステートメントの本文。
返品
作成された CatchBlock。
注釈
キャッチするTypeのExceptionを指定できますが、Exception オブジェクトへの参照はCatchBlockで使用できません。
適用対象
Catch(ParameterExpression, Expression, Expression)
- ソース:
- CatchBlock.cs
- ソース:
- CatchBlock.cs
- ソース:
- CatchBlock.cs
- ソース:
- CatchBlock.cs
- ソース:
- CatchBlock.cs
CatchBlock フィルターと、キャッチされたException オブジェクトへの参照を含む catch ステートメントを表すExceptionを作成します。
public:
static System::Linq::Expressions::CatchBlock ^ Catch(System::Linq::Expressions::ParameterExpression ^ variable, System::Linq::Expressions::Expression ^ body, System::Linq::Expressions::Expression ^ filter);
public static System.Linq.Expressions.CatchBlock Catch(System.Linq.Expressions.ParameterExpression variable, System.Linq.Expressions.Expression body, System.Linq.Expressions.Expression filter);
public static System.Linq.Expressions.CatchBlock Catch(System.Linq.Expressions.ParameterExpression variable, System.Linq.Expressions.Expression body, System.Linq.Expressions.Expression? filter);
static member Catch : System.Linq.Expressions.ParameterExpression * System.Linq.Expressions.Expression * System.Linq.Expressions.Expression -> System.Linq.Expressions.CatchBlock
Public Shared Function Catch (variable As ParameterExpression, body As Expression, filter As Expression) As CatchBlock
パラメーター
- variable
- ParameterExpression
このハンドラーによってキャッチされたParameterExpression オブジェクトへの参照を表すException。
- body
- Expression
catch ステートメントの本文。
- filter
- Expression
Exception フィルターの本文。
返品
作成された CatchBlock。
適用対象
Catch(Type, Expression, Expression)
- ソース:
- CatchBlock.cs
- ソース:
- CatchBlock.cs
- ソース:
- CatchBlock.cs
- ソース:
- CatchBlock.cs
- ソース:
- CatchBlock.cs
CatchBlock フィルターを使用して catch ステートメントを表すExceptionを作成しますが、キャッチされたException オブジェクトへの参照はありません。
public:
static System::Linq::Expressions::CatchBlock ^ Catch(Type ^ type, System::Linq::Expressions::Expression ^ body, System::Linq::Expressions::Expression ^ filter);
public static System.Linq.Expressions.CatchBlock Catch(Type type, System.Linq.Expressions.Expression body, System.Linq.Expressions.Expression filter);
public static System.Linq.Expressions.CatchBlock Catch(Type type, System.Linq.Expressions.Expression body, System.Linq.Expressions.Expression? filter);
static member Catch : Type * System.Linq.Expressions.Expression * System.Linq.Expressions.Expression -> System.Linq.Expressions.CatchBlock
Public Shared Function Catch (type As Type, body As Expression, filter As Expression) As CatchBlock
パラメーター
- type
- Type
このTypeが処理ExceptionCatchBlock。
- body
- Expression
catch ステートメントの本文。
- filter
- Expression
Exception フィルターの本文。
返品
作成された CatchBlock。