SyntaxFactory.WithBlock Method

Definition

Overloads

WithBlock(WithStatementSyntax)

Represents a With...End With block, include the With statement, the body of the block and the End With statement.

WithBlock(WithStatementSyntax, SyntaxList<StatementSyntax>)

Represents a With...End With block, include the With statement, the body of the block and the End With statement.

WithBlock(WithStatementSyntax, SyntaxList<StatementSyntax>, EndBlockStatementSyntax)

Represents a With...End With block, include the With statement, the body of the block and the End With statement.

WithBlock(WithStatementSyntax)

Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb

Represents a With...End With block, include the With statement, the body of the block and the End With statement.

public:
 static Microsoft::CodeAnalysis::VisualBasic::Syntax::WithBlockSyntax ^ WithBlock(Microsoft::CodeAnalysis::VisualBasic::Syntax::WithStatementSyntax ^ withStatement);
public static Microsoft.CodeAnalysis.VisualBasic.Syntax.WithBlockSyntax WithBlock (Microsoft.CodeAnalysis.VisualBasic.Syntax.WithStatementSyntax withStatement);
static member WithBlock : Microsoft.CodeAnalysis.VisualBasic.Syntax.WithStatementSyntax -> Microsoft.CodeAnalysis.VisualBasic.Syntax.WithBlockSyntax
Public Shared Function WithBlock (withStatement As WithStatementSyntax) As WithBlockSyntax

Parameters

withStatement
WithStatementSyntax

The WithStatement that begins the With...End With block.

Returns

Applies to

WithBlock(WithStatementSyntax, SyntaxList<StatementSyntax>)

Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb

Represents a With...End With block, include the With statement, the body of the block and the End With statement.

public:
 static Microsoft::CodeAnalysis::VisualBasic::Syntax::WithBlockSyntax ^ WithBlock(Microsoft::CodeAnalysis::VisualBasic::Syntax::WithStatementSyntax ^ withStatement, Microsoft::CodeAnalysis::SyntaxList<Microsoft::CodeAnalysis::VisualBasic::Syntax::StatementSyntax ^> statements);
public static Microsoft.CodeAnalysis.VisualBasic.Syntax.WithBlockSyntax WithBlock (Microsoft.CodeAnalysis.VisualBasic.Syntax.WithStatementSyntax withStatement, Microsoft.CodeAnalysis.SyntaxList<Microsoft.CodeAnalysis.VisualBasic.Syntax.StatementSyntax> statements);
static member WithBlock : Microsoft.CodeAnalysis.VisualBasic.Syntax.WithStatementSyntax * Microsoft.CodeAnalysis.SyntaxList<Microsoft.CodeAnalysis.VisualBasic.Syntax.StatementSyntax> -> Microsoft.CodeAnalysis.VisualBasic.Syntax.WithBlockSyntax
Public Shared Function WithBlock (withStatement As WithStatementSyntax, statements As SyntaxList(Of StatementSyntax)) As WithBlockSyntax

Parameters

withStatement
WithStatementSyntax

The WithStatement that begins the With...End With block.

statements
SyntaxList<StatementSyntax>

The statements contained in the With...End With block. This might be an empty list.

Returns

Applies to

WithBlock(WithStatementSyntax, SyntaxList<StatementSyntax>, EndBlockStatementSyntax)

Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb

Represents a With...End With block, include the With statement, the body of the block and the End With statement.

public:
 static Microsoft::CodeAnalysis::VisualBasic::Syntax::WithBlockSyntax ^ WithBlock(Microsoft::CodeAnalysis::VisualBasic::Syntax::WithStatementSyntax ^ withStatement, Microsoft::CodeAnalysis::SyntaxList<Microsoft::CodeAnalysis::VisualBasic::Syntax::StatementSyntax ^> statements, Microsoft::CodeAnalysis::VisualBasic::Syntax::EndBlockStatementSyntax ^ endWithStatement);
public static Microsoft.CodeAnalysis.VisualBasic.Syntax.WithBlockSyntax WithBlock (Microsoft.CodeAnalysis.VisualBasic.Syntax.WithStatementSyntax withStatement, Microsoft.CodeAnalysis.SyntaxList<Microsoft.CodeAnalysis.VisualBasic.Syntax.StatementSyntax> statements, Microsoft.CodeAnalysis.VisualBasic.Syntax.EndBlockStatementSyntax endWithStatement);
static member WithBlock : Microsoft.CodeAnalysis.VisualBasic.Syntax.WithStatementSyntax * Microsoft.CodeAnalysis.SyntaxList<Microsoft.CodeAnalysis.VisualBasic.Syntax.StatementSyntax> * Microsoft.CodeAnalysis.VisualBasic.Syntax.EndBlockStatementSyntax -> Microsoft.CodeAnalysis.VisualBasic.Syntax.WithBlockSyntax
Public Shared Function WithBlock (withStatement As WithStatementSyntax, statements As SyntaxList(Of StatementSyntax), endWithStatement As EndBlockStatementSyntax) As WithBlockSyntax

Parameters

withStatement
WithStatementSyntax

The WithStatement that begins the With...End With block.

statements
SyntaxList<StatementSyntax>

The statements contained in the With...End With block. This might be an empty list.

endWithStatement
EndBlockStatementSyntax

The End With statement that ends the block.

Returns

Applies to