SyntaxFactory.AccessorBlock 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
AccessorBlock(SyntaxKind, AccessorStatementSyntax, EndBlockStatementSyntax) |
表示访问器块成员声明:具有开始声明、可执行语句主体和结束语句的声明。 示例包括属性访问器和自定义事件访问器。 |
AccessorBlock(SyntaxKind, AccessorStatementSyntax, SyntaxList<StatementSyntax>, EndBlockStatementSyntax) |
表示访问器块成员声明:具有开始声明、可执行语句主体和结束语句的声明。 示例包括属性访问器和自定义事件访问器。 |
AccessorBlock(SyntaxKind, AccessorStatementSyntax, 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
表示访问器块成员声明:具有开始声明、可执行语句主体和结束语句的声明。 示例包括属性访问器和自定义事件访问器。
public:
static Microsoft::CodeAnalysis::VisualBasic::Syntax::AccessorBlockSyntax ^ AccessorBlock(Microsoft::CodeAnalysis::VisualBasic::SyntaxKind kind, Microsoft::CodeAnalysis::VisualBasic::Syntax::AccessorStatementSyntax ^ accessorStatement, Microsoft::CodeAnalysis::VisualBasic::Syntax::EndBlockStatementSyntax ^ endAccessorStatement);
public static Microsoft.CodeAnalysis.VisualBasic.Syntax.AccessorBlockSyntax AccessorBlock (Microsoft.CodeAnalysis.VisualBasic.SyntaxKind kind, Microsoft.CodeAnalysis.VisualBasic.Syntax.AccessorStatementSyntax accessorStatement, Microsoft.CodeAnalysis.VisualBasic.Syntax.EndBlockStatementSyntax endAccessorStatement);
static member AccessorBlock : Microsoft.CodeAnalysis.VisualBasic.SyntaxKind * Microsoft.CodeAnalysis.VisualBasic.Syntax.AccessorStatementSyntax * Microsoft.CodeAnalysis.VisualBasic.Syntax.EndBlockStatementSyntax -> Microsoft.CodeAnalysis.VisualBasic.Syntax.AccessorBlockSyntax
Public Shared Function AccessorBlock (kind As SyntaxKind, accessorStatement As AccessorStatementSyntax, endAccessorStatement As EndBlockStatementSyntax) As AccessorBlockSyntax
参数
- kind
- SyntaxKind
一个 SyntaxKind ,表示特定类型的访问器BlockSyntax。 GetAccessorBlock、SetAccessorBlock、AddHandlerAccessorBlock、RemoveHandlerAccessorBlock、RaiseEventAccessorBlock 之一。
- accessorStatement
- AccessorStatementSyntax
开始访问器块的“Get”、“Set”、“AddHandler”、“RemoveHandler”或“RaiseEvent”语句。
- endAccessorStatement
- EndBlockStatementSyntax
结束访问器块的“End Get”、“End Set”、“End AddHandler”、“End RemoveHandler”或“End RaiseEvent”语句。
返回
适用于
AccessorBlock(SyntaxKind, AccessorStatementSyntax, 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
表示访问器块成员声明:具有开始声明、可执行语句主体和结束语句的声明。 示例包括属性访问器和自定义事件访问器。
public:
static Microsoft::CodeAnalysis::VisualBasic::Syntax::AccessorBlockSyntax ^ AccessorBlock(Microsoft::CodeAnalysis::VisualBasic::SyntaxKind kind, Microsoft::CodeAnalysis::VisualBasic::Syntax::AccessorStatementSyntax ^ accessorStatement, Microsoft::CodeAnalysis::SyntaxList<Microsoft::CodeAnalysis::VisualBasic::Syntax::StatementSyntax ^> statements, Microsoft::CodeAnalysis::VisualBasic::Syntax::EndBlockStatementSyntax ^ endAccessorStatement);
public static Microsoft.CodeAnalysis.VisualBasic.Syntax.AccessorBlockSyntax AccessorBlock (Microsoft.CodeAnalysis.VisualBasic.SyntaxKind kind, Microsoft.CodeAnalysis.VisualBasic.Syntax.AccessorStatementSyntax accessorStatement, Microsoft.CodeAnalysis.SyntaxList<Microsoft.CodeAnalysis.VisualBasic.Syntax.StatementSyntax> statements, Microsoft.CodeAnalysis.VisualBasic.Syntax.EndBlockStatementSyntax endAccessorStatement);
static member AccessorBlock : Microsoft.CodeAnalysis.VisualBasic.SyntaxKind * Microsoft.CodeAnalysis.VisualBasic.Syntax.AccessorStatementSyntax * Microsoft.CodeAnalysis.SyntaxList<Microsoft.CodeAnalysis.VisualBasic.Syntax.StatementSyntax> * Microsoft.CodeAnalysis.VisualBasic.Syntax.EndBlockStatementSyntax -> Microsoft.CodeAnalysis.VisualBasic.Syntax.AccessorBlockSyntax
Public Shared Function AccessorBlock (kind As SyntaxKind, accessorStatement As AccessorStatementSyntax, statements As SyntaxList(Of StatementSyntax), endAccessorStatement As EndBlockStatementSyntax) As AccessorBlockSyntax
参数
- kind
- SyntaxKind
一个 SyntaxKind ,表示特定类型的访问器BlockSyntax。 GetAccessorBlock、SetAccessorBlock、AddHandlerAccessorBlock、RemoveHandlerAccessorBlock、RaiseEventAccessorBlock 之一。
- accessorStatement
- AccessorStatementSyntax
开始访问器块的“Get”、“Set”、“AddHandler”、“RemoveHandler”或“RaiseEvent”语句。
- statements
- SyntaxList<StatementSyntax>
块语句中包含的语句。 这可能是一个空列表。
- endAccessorStatement
- EndBlockStatementSyntax
结束访问器块的“End Get”、“End Set”、“End AddHandler”、“End RemoveHandler”或“End RaiseEvent”语句。