SyntaxFactory.UsingBlock 方法

定义

重载

UsingBlock(UsingStatementSyntax)

表示整个 Using...End Using 语句,包括 Using、body 和 End Using 语句。

UsingBlock(UsingStatementSyntax, SyntaxList<StatementSyntax>)

表示整个 Using...End Using 语句,包括 Using、body 和 End Using 语句。

UsingBlock(UsingStatementSyntax, SyntaxList<StatementSyntax>, EndBlockStatementSyntax)

表示整个 Using...End Using 语句,包括 Using、body 和 End Using 语句。

UsingBlock(UsingStatementSyntax)

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
Source:
Syntax.xml.Main.Generated.vb

表示整个 Using...End Using 语句,包括 Using、body 和 End Using 语句。

public:
 static Microsoft::CodeAnalysis::VisualBasic::Syntax::UsingBlockSyntax ^ UsingBlock(Microsoft::CodeAnalysis::VisualBasic::Syntax::UsingStatementSyntax ^ usingStatement);
public static Microsoft.CodeAnalysis.VisualBasic.Syntax.UsingBlockSyntax UsingBlock (Microsoft.CodeAnalysis.VisualBasic.Syntax.UsingStatementSyntax usingStatement);
static member UsingBlock : Microsoft.CodeAnalysis.VisualBasic.Syntax.UsingStatementSyntax -> Microsoft.CodeAnalysis.VisualBasic.Syntax.UsingBlockSyntax
Public Shared Function UsingBlock (usingStatement As UsingStatementSyntax) As UsingBlockSyntax

参数

usingStatement
UsingStatementSyntax

开始 UsingStatement 的 UsingStatement...结束使用块。

返回

适用于

UsingBlock(UsingStatementSyntax, 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
Source:
Syntax.xml.Main.Generated.vb

表示整个 Using...End Using 语句,包括 Using、body 和 End Using 语句。

public:
 static Microsoft::CodeAnalysis::VisualBasic::Syntax::UsingBlockSyntax ^ UsingBlock(Microsoft::CodeAnalysis::VisualBasic::Syntax::UsingStatementSyntax ^ usingStatement, Microsoft::CodeAnalysis::SyntaxList<Microsoft::CodeAnalysis::VisualBasic::Syntax::StatementSyntax ^> statements);
public static Microsoft.CodeAnalysis.VisualBasic.Syntax.UsingBlockSyntax UsingBlock (Microsoft.CodeAnalysis.VisualBasic.Syntax.UsingStatementSyntax usingStatement, Microsoft.CodeAnalysis.SyntaxList<Microsoft.CodeAnalysis.VisualBasic.Syntax.StatementSyntax> statements);
static member UsingBlock : Microsoft.CodeAnalysis.VisualBasic.Syntax.UsingStatementSyntax * Microsoft.CodeAnalysis.SyntaxList<Microsoft.CodeAnalysis.VisualBasic.Syntax.StatementSyntax> -> Microsoft.CodeAnalysis.VisualBasic.Syntax.UsingBlockSyntax
Public Shared Function UsingBlock (usingStatement As UsingStatementSyntax, statements As SyntaxList(Of StatementSyntax)) As UsingBlockSyntax

参数

usingStatement
UsingStatementSyntax

开始 UsingStatement 的 UsingStatement...结束使用块。

statements
SyntaxList<StatementSyntax>

Using... 中包含的语句结束使用块。 这可能是空列表。

返回

适用于

UsingBlock(UsingStatementSyntax, 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
Source:
Syntax.xml.Main.Generated.vb

表示整个 Using...End Using 语句,包括 Using、body 和 End Using 语句。

public:
 static Microsoft::CodeAnalysis::VisualBasic::Syntax::UsingBlockSyntax ^ UsingBlock(Microsoft::CodeAnalysis::VisualBasic::Syntax::UsingStatementSyntax ^ usingStatement, Microsoft::CodeAnalysis::SyntaxList<Microsoft::CodeAnalysis::VisualBasic::Syntax::StatementSyntax ^> statements, Microsoft::CodeAnalysis::VisualBasic::Syntax::EndBlockStatementSyntax ^ endUsingStatement);
public static Microsoft.CodeAnalysis.VisualBasic.Syntax.UsingBlockSyntax UsingBlock (Microsoft.CodeAnalysis.VisualBasic.Syntax.UsingStatementSyntax usingStatement, Microsoft.CodeAnalysis.SyntaxList<Microsoft.CodeAnalysis.VisualBasic.Syntax.StatementSyntax> statements, Microsoft.CodeAnalysis.VisualBasic.Syntax.EndBlockStatementSyntax endUsingStatement);
static member UsingBlock : Microsoft.CodeAnalysis.VisualBasic.Syntax.UsingStatementSyntax * Microsoft.CodeAnalysis.SyntaxList<Microsoft.CodeAnalysis.VisualBasic.Syntax.StatementSyntax> * Microsoft.CodeAnalysis.VisualBasic.Syntax.EndBlockStatementSyntax -> Microsoft.CodeAnalysis.VisualBasic.Syntax.UsingBlockSyntax
Public Shared Function UsingBlock (usingStatement As UsingStatementSyntax, statements As SyntaxList(Of StatementSyntax), endUsingStatement As EndBlockStatementSyntax) As UsingBlockSyntax

参数

usingStatement
UsingStatementSyntax

开始 UsingStatement 的 UsingStatement...结束使用块。

statements
SyntaxList<StatementSyntax>

Using... 中包含的语句结束使用块。 这可能是空列表。

endUsingStatement
EndBlockStatementSyntax

结束块的 End Using 语句。

返回

适用于