SyntaxFactory.Block Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
Block(SyntaxList<AttributeListSyntax>, SyntaxToken, SyntaxList<StatementSyntax>, SyntaxToken) |
Creates a new BlockSyntax instance. |
Block(SyntaxToken, SyntaxList<StatementSyntax>, SyntaxToken) |
Creates a new BlockSyntax instance. |
Block(SyntaxList<AttributeListSyntax>, SyntaxList<StatementSyntax>) |
Creates a new BlockSyntax instance. |
Block(SyntaxList<StatementSyntax>) |
Creates a new BlockSyntax instance. |
Block(StatementSyntax[]) |
Creates a new BlockSyntax instance. |
Block(IEnumerable<StatementSyntax>) |
Creates a new BlockSyntax instance. |
Block(SyntaxList<AttributeListSyntax>, SyntaxToken, SyntaxList<StatementSyntax>, SyntaxToken)
- 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
Creates a new BlockSyntax instance.
public static Microsoft.CodeAnalysis.CSharp.Syntax.BlockSyntax Block (Microsoft.CodeAnalysis.SyntaxList<Microsoft.CodeAnalysis.CSharp.Syntax.AttributeListSyntax> attributeLists, Microsoft.CodeAnalysis.SyntaxToken openBraceToken, Microsoft.CodeAnalysis.SyntaxList<Microsoft.CodeAnalysis.CSharp.Syntax.StatementSyntax> statements, Microsoft.CodeAnalysis.SyntaxToken closeBraceToken);
static member Block : Microsoft.CodeAnalysis.SyntaxList<Microsoft.CodeAnalysis.CSharp.Syntax.AttributeListSyntax> * Microsoft.CodeAnalysis.SyntaxToken * Microsoft.CodeAnalysis.SyntaxList<Microsoft.CodeAnalysis.CSharp.Syntax.StatementSyntax> * Microsoft.CodeAnalysis.SyntaxToken -> Microsoft.CodeAnalysis.CSharp.Syntax.BlockSyntax
Public Shared Function Block (attributeLists As SyntaxList(Of AttributeListSyntax), openBraceToken As SyntaxToken, statements As SyntaxList(Of StatementSyntax), closeBraceToken As SyntaxToken) As BlockSyntax
Parameters
- attributeLists
- SyntaxList<AttributeListSyntax>
- openBraceToken
- SyntaxToken
- statements
- SyntaxList<StatementSyntax>
- closeBraceToken
- SyntaxToken
Returns
Applies to
Block(SyntaxToken, SyntaxList<StatementSyntax>, SyntaxToken)
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- Syntax.xml.Main.Generated.cs
- Source:
- BlockSyntax.cs
- Source:
- BlockSyntax.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:
- BlockSyntax.cs
- Source:
- BlockSyntax.cs
- Source:
- BlockSyntax.cs
- Source:
- BlockSyntax.cs
- Source:
- BlockSyntax.cs
- Source:
- BlockSyntax.cs
- Source:
- BlockSyntax.cs
- Source:
- BlockSyntax.cs
- Source:
- BlockSyntax.cs
- Source:
- BlockSyntax.cs
- Source:
- BlockSyntax.cs
- Source:
- BlockSyntax.cs
- Source:
- BlockSyntax.cs
- Source:
- BlockSyntax.cs
- Source:
- BlockSyntax.cs
Creates a new BlockSyntax instance.
public:
static Microsoft::CodeAnalysis::CSharp::Syntax::BlockSyntax ^ Block(Microsoft::CodeAnalysis::SyntaxToken openBraceToken, Microsoft::CodeAnalysis::SyntaxList<Microsoft::CodeAnalysis::CSharp::Syntax::StatementSyntax ^> statements, Microsoft::CodeAnalysis::SyntaxToken closeBraceToken);
public static Microsoft.CodeAnalysis.CSharp.Syntax.BlockSyntax Block (Microsoft.CodeAnalysis.SyntaxToken openBraceToken, Microsoft.CodeAnalysis.SyntaxList<Microsoft.CodeAnalysis.CSharp.Syntax.StatementSyntax> statements, Microsoft.CodeAnalysis.SyntaxToken closeBraceToken);
static member Block : Microsoft.CodeAnalysis.SyntaxToken * Microsoft.CodeAnalysis.SyntaxList<Microsoft.CodeAnalysis.CSharp.Syntax.StatementSyntax> * Microsoft.CodeAnalysis.SyntaxToken -> Microsoft.CodeAnalysis.CSharp.Syntax.BlockSyntax
Public Shared Function Block (openBraceToken As SyntaxToken, statements As SyntaxList(Of StatementSyntax), closeBraceToken As SyntaxToken) As BlockSyntax
Parameters
- openBraceToken
- SyntaxToken
- statements
- SyntaxList<StatementSyntax>
- closeBraceToken
- SyntaxToken
Returns
Applies to
Block(SyntaxList<AttributeListSyntax>, SyntaxList<StatementSyntax>)
- 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
Creates a new BlockSyntax instance.
public static Microsoft.CodeAnalysis.CSharp.Syntax.BlockSyntax Block (Microsoft.CodeAnalysis.SyntaxList<Microsoft.CodeAnalysis.CSharp.Syntax.AttributeListSyntax> attributeLists, Microsoft.CodeAnalysis.SyntaxList<Microsoft.CodeAnalysis.CSharp.Syntax.StatementSyntax> statements);
static member Block : Microsoft.CodeAnalysis.SyntaxList<Microsoft.CodeAnalysis.CSharp.Syntax.AttributeListSyntax> * Microsoft.CodeAnalysis.SyntaxList<Microsoft.CodeAnalysis.CSharp.Syntax.StatementSyntax> -> Microsoft.CodeAnalysis.CSharp.Syntax.BlockSyntax
Public Shared Function Block (attributeLists As SyntaxList(Of AttributeListSyntax), statements As SyntaxList(Of StatementSyntax)) As BlockSyntax
Parameters
- attributeLists
- SyntaxList<AttributeListSyntax>
- statements
- SyntaxList<StatementSyntax>
Returns
Applies to
Block(SyntaxList<StatementSyntax>)
- 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
- Source:
- Syntax.xml.Main.Generated.cs
Creates a new BlockSyntax instance.
public static Microsoft.CodeAnalysis.CSharp.Syntax.BlockSyntax Block (Microsoft.CodeAnalysis.SyntaxList<Microsoft.CodeAnalysis.CSharp.Syntax.StatementSyntax> statements = default);
static member Block : Microsoft.CodeAnalysis.SyntaxList<Microsoft.CodeAnalysis.CSharp.Syntax.StatementSyntax> -> Microsoft.CodeAnalysis.CSharp.Syntax.BlockSyntax
Public Shared Function Block (Optional statements As SyntaxList(Of StatementSyntax) = Nothing) As BlockSyntax
Parameters
- statements
- SyntaxList<StatementSyntax>
Returns
Applies to
Block(StatementSyntax[])
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
Creates a new BlockSyntax instance.
public:
static Microsoft::CodeAnalysis::CSharp::Syntax::BlockSyntax ^ Block(... cli::array <Microsoft::CodeAnalysis::CSharp::Syntax::StatementSyntax ^> ^ statements);
public static Microsoft.CodeAnalysis.CSharp.Syntax.BlockSyntax Block (params Microsoft.CodeAnalysis.CSharp.Syntax.StatementSyntax[] statements);
static member Block : Microsoft.CodeAnalysis.CSharp.Syntax.StatementSyntax[] -> Microsoft.CodeAnalysis.CSharp.Syntax.BlockSyntax
Public Shared Function Block (ParamArray statements As StatementSyntax()) As BlockSyntax
Parameters
- statements
- StatementSyntax[]
Returns
Applies to
Block(IEnumerable<StatementSyntax>)
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
- Source:
- SyntaxFactory.cs
Creates a new BlockSyntax instance.
public:
static Microsoft::CodeAnalysis::CSharp::Syntax::BlockSyntax ^ Block(System::Collections::Generic::IEnumerable<Microsoft::CodeAnalysis::CSharp::Syntax::StatementSyntax ^> ^ statements);
public static Microsoft.CodeAnalysis.CSharp.Syntax.BlockSyntax Block (System.Collections.Generic.IEnumerable<Microsoft.CodeAnalysis.CSharp.Syntax.StatementSyntax> statements);
static member Block : seq<Microsoft.CodeAnalysis.CSharp.Syntax.StatementSyntax> -> Microsoft.CodeAnalysis.CSharp.Syntax.BlockSyntax
Public Shared Function Block (statements As IEnumerable(Of StatementSyntax)) As BlockSyntax
Parameters
- statements
- IEnumerable<StatementSyntax>
Returns
Applies to
GitHub에서 Microsoft와 공동 작업
이 콘텐츠의 원본은 GitHub에서 찾을 수 있으며, 여기서 문제와 끌어오기 요청을 만들고 검토할 수도 있습니다. 자세한 내용은 참여자 가이드를 참조하세요.
.NET