SyntaxFactory.EndBlockStatement 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
EndBlockStatement(SyntaxKind, SyntaxToken) |
表示“End XXX”语句,其中 XXX 是单个关键字 (keyword) 。 |
EndBlockStatement(SyntaxKind, SyntaxToken, SyntaxToken) |
表示“End XXX”语句,其中 XXX 是单个关键字 (keyword) 。 |
EndBlockStatement(SyntaxKind, SyntaxToken)
- 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
表示“End XXX”语句,其中 XXX 是单个关键字 (keyword) 。
public:
static Microsoft::CodeAnalysis::VisualBasic::Syntax::EndBlockStatementSyntax ^ EndBlockStatement(Microsoft::CodeAnalysis::VisualBasic::SyntaxKind kind, Microsoft::CodeAnalysis::SyntaxToken blockKeyword);
public static Microsoft.CodeAnalysis.VisualBasic.Syntax.EndBlockStatementSyntax EndBlockStatement (Microsoft.CodeAnalysis.VisualBasic.SyntaxKind kind, Microsoft.CodeAnalysis.SyntaxToken blockKeyword);
static member EndBlockStatement : Microsoft.CodeAnalysis.VisualBasic.SyntaxKind * Microsoft.CodeAnalysis.SyntaxToken -> Microsoft.CodeAnalysis.VisualBasic.Syntax.EndBlockStatementSyntax
Public Shared Function EndBlockStatement (kind As SyntaxKind, blockKeyword As SyntaxToken) As EndBlockStatementSyntax
参数
- kind
- SyntaxKind
一个 SyntaxKind ,表示特定类型的 EndBlockStatementSyntax。 EndIfStatement、EndUsingStatement、EndWithStatement、EndSelectStatement、EndStructureStatement、EndEnumStatement、EndInterfaceStatement 之一 EndClassStatement、EndModuleStatement、EndNamespaceStatement、EndSubStatement、EndFunctionStatement、EndGetStatement、EndSetStatement、EndPropertyStatement、EndOperatorStatement、EndEventStatement、EndAddHandlerStatement、EndRemoveHandlerStatement、EndRaiseEventStatement、EndWhileStatement、EndTryStatement、EndSyncLockStatement。
- blockKeyword
- SyntaxToken
结束块的关键字 (keyword) 。 必须是以下项之一:“If”、“Using”、“With”、“Select”、“Structure”、“Enum”、“Interface”、“Class”、“Module”、“Namespace”、“Sub”、“Function”、“Get”、“Set”、“Property”、“Operator”、“Event”、“AddHandler”、“RemoveHandler”、“RaiseEvent”、“While”、“Try”或“SyncLock”。
返回
适用于
EndBlockStatement(SyntaxKind, SyntaxToken, SyntaxToken)
- 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
表示“End XXX”语句,其中 XXX 是单个关键字 (keyword) 。
public:
static Microsoft::CodeAnalysis::VisualBasic::Syntax::EndBlockStatementSyntax ^ EndBlockStatement(Microsoft::CodeAnalysis::VisualBasic::SyntaxKind kind, Microsoft::CodeAnalysis::SyntaxToken endKeyword, Microsoft::CodeAnalysis::SyntaxToken blockKeyword);
public static Microsoft.CodeAnalysis.VisualBasic.Syntax.EndBlockStatementSyntax EndBlockStatement (Microsoft.CodeAnalysis.VisualBasic.SyntaxKind kind, Microsoft.CodeAnalysis.SyntaxToken endKeyword, Microsoft.CodeAnalysis.SyntaxToken blockKeyword);
static member EndBlockStatement : Microsoft.CodeAnalysis.VisualBasic.SyntaxKind * Microsoft.CodeAnalysis.SyntaxToken * Microsoft.CodeAnalysis.SyntaxToken -> Microsoft.CodeAnalysis.VisualBasic.Syntax.EndBlockStatementSyntax
Public Shared Function EndBlockStatement (kind As SyntaxKind, endKeyword As SyntaxToken, blockKeyword As SyntaxToken) As EndBlockStatementSyntax
参数
- kind
- SyntaxKind
一个 SyntaxKind ,表示特定类型的 EndBlockStatementSyntax。 EndIfStatement、EndUsingStatement、EndWithStatement、EndSelectStatement、EndStructureStatement、EndEnumStatement、EndInterfaceStatement 之一 EndClassStatement、EndModuleStatement、EndNamespaceStatement、EndSubStatement、EndFunctionStatement、EndGetStatement、EndSetStatement、EndPropertyStatement、EndOperatorStatement、EndEventStatement、EndAddHandlerStatement、EndRemoveHandlerStatement、EndRaiseEventStatement、EndWhileStatement、EndTryStatement、EndSyncLockStatement。
- endKeyword
- SyntaxToken
“End”关键字 (keyword)
- blockKeyword
- SyntaxToken
结束块的关键字 (keyword) 。 必须是以下项之一:“If”、“Using”、“With”、“Select”、“Structure”、“Enum”、“Interface”、“Class”、“Module”、“Namespace”、“Sub”、“Function”、“Get”、“Set”、“Property”、“Operator”、“Event”、“AddHandler”、“RemoveHandler”、“RaiseEvent”、“While”、“Try”或“SyncLock”。