SyntaxFactory.TryStatement メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
オーバーロード
TryStatement(SyntaxList<CatchClauseSyntax>) |
新しい TryStatementSyntax インスタンスを作成します。 |
TryStatement(BlockSyntax, SyntaxList<CatchClauseSyntax>, FinallyClauseSyntax) |
新しい TryStatementSyntax インスタンスを作成します。 |
TryStatement(SyntaxList<AttributeListSyntax>, BlockSyntax, SyntaxList<CatchClauseSyntax>, FinallyClauseSyntax) |
新しい TryStatementSyntax インスタンスを作成します。 |
TryStatement(SyntaxToken, BlockSyntax, SyntaxList<CatchClauseSyntax>, FinallyClauseSyntax) |
新しい TryStatementSyntax インスタンスを作成します。 |
TryStatement(SyntaxList<AttributeListSyntax>, SyntaxToken, BlockSyntax, SyntaxList<CatchClauseSyntax>, FinallyClauseSyntax) |
新しい TryStatementSyntax インスタンスを作成します。 |
TryStatement(SyntaxList<CatchClauseSyntax>)
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- Syntax.xml.Main.Generated.cs
新しい TryStatementSyntax インスタンスを作成します。
public static Microsoft.CodeAnalysis.CSharp.Syntax.TryStatementSyntax TryStatement (Microsoft.CodeAnalysis.SyntaxList<Microsoft.CodeAnalysis.CSharp.Syntax.CatchClauseSyntax> catches = default);
static member TryStatement : Microsoft.CodeAnalysis.SyntaxList<Microsoft.CodeAnalysis.CSharp.Syntax.CatchClauseSyntax> -> Microsoft.CodeAnalysis.CSharp.Syntax.TryStatementSyntax
Public Shared Function TryStatement (Optional catches As SyntaxList(Of CatchClauseSyntax) = Nothing) As TryStatementSyntax
パラメーター
- catches
- SyntaxList<CatchClauseSyntax>
戻り値
適用対象
TryStatement(BlockSyntax, SyntaxList<CatchClauseSyntax>, FinallyClauseSyntax)
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- TryStatementSyntax.cs
- Source:
- TryStatementSyntax.cs
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- TryStatementSyntax.cs
- Source:
- TryStatementSyntax.cs
- Source:
- TryStatementSyntax.cs
- Source:
- TryStatementSyntax.cs
- Source:
- TryStatementSyntax.cs
- Source:
- TryStatementSyntax.cs
- Source:
- TryStatementSyntax.cs
- Source:
- TryStatementSyntax.cs
- Source:
- TryStatementSyntax.cs
- Source:
- TryStatementSyntax.cs
- Source:
- TryStatementSyntax.cs
- Source:
- TryStatementSyntax.cs
- Source:
- TryStatementSyntax.cs
- Source:
- TryStatementSyntax.cs
新しい TryStatementSyntax インスタンスを作成します。
public:
static Microsoft::CodeAnalysis::CSharp::Syntax::TryStatementSyntax ^ TryStatement(Microsoft::CodeAnalysis::CSharp::Syntax::BlockSyntax ^ block, Microsoft::CodeAnalysis::SyntaxList<Microsoft::CodeAnalysis::CSharp::Syntax::CatchClauseSyntax ^> catches, Microsoft::CodeAnalysis::CSharp::Syntax::FinallyClauseSyntax ^ finally);
public static Microsoft.CodeAnalysis.CSharp.Syntax.TryStatementSyntax TryStatement (Microsoft.CodeAnalysis.CSharp.Syntax.BlockSyntax block, Microsoft.CodeAnalysis.SyntaxList<Microsoft.CodeAnalysis.CSharp.Syntax.CatchClauseSyntax> catches, Microsoft.CodeAnalysis.CSharp.Syntax.FinallyClauseSyntax finally);
public static Microsoft.CodeAnalysis.CSharp.Syntax.TryStatementSyntax TryStatement (Microsoft.CodeAnalysis.CSharp.Syntax.BlockSyntax block, Microsoft.CodeAnalysis.SyntaxList<Microsoft.CodeAnalysis.CSharp.Syntax.CatchClauseSyntax> catches, Microsoft.CodeAnalysis.CSharp.Syntax.FinallyClauseSyntax? finally);
static member TryStatement : Microsoft.CodeAnalysis.CSharp.Syntax.BlockSyntax * Microsoft.CodeAnalysis.SyntaxList<Microsoft.CodeAnalysis.CSharp.Syntax.CatchClauseSyntax> * Microsoft.CodeAnalysis.CSharp.Syntax.FinallyClauseSyntax -> Microsoft.CodeAnalysis.CSharp.Syntax.TryStatementSyntax
Public Shared Function TryStatement (block As BlockSyntax, catches As SyntaxList(Of CatchClauseSyntax), finally As FinallyClauseSyntax) As TryStatementSyntax
パラメーター
- block
- BlockSyntax
- catches
- SyntaxList<CatchClauseSyntax>
- finally
- FinallyClauseSyntax
戻り値
適用対象
TryStatement(SyntaxList<AttributeListSyntax>, BlockSyntax, SyntaxList<CatchClauseSyntax>, FinallyClauseSyntax)
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- Syntax.xml.Main.Generated.cs
新しい TryStatementSyntax インスタンスを作成します。
public static Microsoft.CodeAnalysis.CSharp.Syntax.TryStatementSyntax TryStatement (Microsoft.CodeAnalysis.SyntaxList<Microsoft.CodeAnalysis.CSharp.Syntax.AttributeListSyntax> attributeLists, Microsoft.CodeAnalysis.CSharp.Syntax.BlockSyntax block, Microsoft.CodeAnalysis.SyntaxList<Microsoft.CodeAnalysis.CSharp.Syntax.CatchClauseSyntax> catches, Microsoft.CodeAnalysis.CSharp.Syntax.FinallyClauseSyntax? finally);
static member TryStatement : Microsoft.CodeAnalysis.SyntaxList<Microsoft.CodeAnalysis.CSharp.Syntax.AttributeListSyntax> * Microsoft.CodeAnalysis.CSharp.Syntax.BlockSyntax * Microsoft.CodeAnalysis.SyntaxList<Microsoft.CodeAnalysis.CSharp.Syntax.CatchClauseSyntax> * Microsoft.CodeAnalysis.CSharp.Syntax.FinallyClauseSyntax -> Microsoft.CodeAnalysis.CSharp.Syntax.TryStatementSyntax
Public Shared Function TryStatement (attributeLists As SyntaxList(Of AttributeListSyntax), block As BlockSyntax, catches As SyntaxList(Of CatchClauseSyntax), finally As FinallyClauseSyntax) As TryStatementSyntax
パラメーター
- attributeLists
- SyntaxList<AttributeListSyntax>
- block
- BlockSyntax
- catches
- SyntaxList<CatchClauseSyntax>
- finally
- FinallyClauseSyntax
戻り値
適用対象
TryStatement(SyntaxToken, BlockSyntax, SyntaxList<CatchClauseSyntax>, FinallyClauseSyntax)
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- TryStatementSyntax.cs
- Source:
- TryStatementSyntax.cs
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- TryStatementSyntax.cs
- Source:
- TryStatementSyntax.cs
- Source:
- TryStatementSyntax.cs
- Source:
- TryStatementSyntax.cs
- Source:
- TryStatementSyntax.cs
- Source:
- TryStatementSyntax.cs
- Source:
- TryStatementSyntax.cs
- Source:
- TryStatementSyntax.cs
- Source:
- TryStatementSyntax.cs
- Source:
- TryStatementSyntax.cs
- Source:
- TryStatementSyntax.cs
- Source:
- TryStatementSyntax.cs
- Source:
- TryStatementSyntax.cs
- Source:
- TryStatementSyntax.cs
新しい TryStatementSyntax インスタンスを作成します。
public:
static Microsoft::CodeAnalysis::CSharp::Syntax::TryStatementSyntax ^ TryStatement(Microsoft::CodeAnalysis::SyntaxToken tryKeyword, Microsoft::CodeAnalysis::CSharp::Syntax::BlockSyntax ^ block, Microsoft::CodeAnalysis::SyntaxList<Microsoft::CodeAnalysis::CSharp::Syntax::CatchClauseSyntax ^> catches, Microsoft::CodeAnalysis::CSharp::Syntax::FinallyClauseSyntax ^ finally);
public static Microsoft.CodeAnalysis.CSharp.Syntax.TryStatementSyntax TryStatement (Microsoft.CodeAnalysis.SyntaxToken tryKeyword, Microsoft.CodeAnalysis.CSharp.Syntax.BlockSyntax block, Microsoft.CodeAnalysis.SyntaxList<Microsoft.CodeAnalysis.CSharp.Syntax.CatchClauseSyntax> catches, Microsoft.CodeAnalysis.CSharp.Syntax.FinallyClauseSyntax finally);
public static Microsoft.CodeAnalysis.CSharp.Syntax.TryStatementSyntax TryStatement (Microsoft.CodeAnalysis.SyntaxToken tryKeyword, Microsoft.CodeAnalysis.CSharp.Syntax.BlockSyntax block, Microsoft.CodeAnalysis.SyntaxList<Microsoft.CodeAnalysis.CSharp.Syntax.CatchClauseSyntax> catches, Microsoft.CodeAnalysis.CSharp.Syntax.FinallyClauseSyntax? finally);
static member TryStatement : Microsoft.CodeAnalysis.SyntaxToken * Microsoft.CodeAnalysis.CSharp.Syntax.BlockSyntax * Microsoft.CodeAnalysis.SyntaxList<Microsoft.CodeAnalysis.CSharp.Syntax.CatchClauseSyntax> * Microsoft.CodeAnalysis.CSharp.Syntax.FinallyClauseSyntax -> Microsoft.CodeAnalysis.CSharp.Syntax.TryStatementSyntax
Public Shared Function TryStatement (tryKeyword As SyntaxToken, block As BlockSyntax, catches As SyntaxList(Of CatchClauseSyntax), finally As FinallyClauseSyntax) As TryStatementSyntax
パラメーター
- tryKeyword
- SyntaxToken
- block
- BlockSyntax
- catches
- SyntaxList<CatchClauseSyntax>
- finally
- FinallyClauseSyntax
戻り値
適用対象
TryStatement(SyntaxList<AttributeListSyntax>, SyntaxToken, BlockSyntax, SyntaxList<CatchClauseSyntax>, FinallyClauseSyntax)
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- Syntax.xml.Main.Generated.cs
新しい TryStatementSyntax インスタンスを作成します。
public static Microsoft.CodeAnalysis.CSharp.Syntax.TryStatementSyntax TryStatement (Microsoft.CodeAnalysis.SyntaxList<Microsoft.CodeAnalysis.CSharp.Syntax.AttributeListSyntax> attributeLists, Microsoft.CodeAnalysis.SyntaxToken tryKeyword, Microsoft.CodeAnalysis.CSharp.Syntax.BlockSyntax block, Microsoft.CodeAnalysis.SyntaxList<Microsoft.CodeAnalysis.CSharp.Syntax.CatchClauseSyntax> catches, Microsoft.CodeAnalysis.CSharp.Syntax.FinallyClauseSyntax? finally);
static member TryStatement : Microsoft.CodeAnalysis.SyntaxList<Microsoft.CodeAnalysis.CSharp.Syntax.AttributeListSyntax> * Microsoft.CodeAnalysis.SyntaxToken * Microsoft.CodeAnalysis.CSharp.Syntax.BlockSyntax * Microsoft.CodeAnalysis.SyntaxList<Microsoft.CodeAnalysis.CSharp.Syntax.CatchClauseSyntax> * Microsoft.CodeAnalysis.CSharp.Syntax.FinallyClauseSyntax -> Microsoft.CodeAnalysis.CSharp.Syntax.TryStatementSyntax
Public Shared Function TryStatement (attributeLists As SyntaxList(Of AttributeListSyntax), tryKeyword As SyntaxToken, block As BlockSyntax, catches As SyntaxList(Of CatchClauseSyntax), finally As FinallyClauseSyntax) As TryStatementSyntax
パラメーター
- attributeLists
- SyntaxList<AttributeListSyntax>
- tryKeyword
- SyntaxToken
- block
- BlockSyntax
- catches
- SyntaxList<CatchClauseSyntax>
- finally
- FinallyClauseSyntax
戻り値
適用対象
GitHub で Microsoft と共同作業する
このコンテンツのソースは GitHub にあります。そこで、issue や pull request を作成および確認することもできます。 詳細については、共同作成者ガイドを参照してください。
.NET