SyntaxFactory.FieldDeclaration 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
FieldDeclaration(SeparatedSyntaxList<VariableDeclaratorSyntax>) |
表示一个或多个变量或常量(作为局部变量或类/结构成员)的声明。 对于常量,它在修饰符 (中具有“Const”,尽管从技术上讲“Const”不是修饰符,但它表示为分析树中的一个。) |
FieldDeclaration(VariableDeclaratorSyntax[]) |
表示一个或多个变量或常量(作为局部变量或类/结构成员)的声明。 对于常量,它在修饰符 (中具有“Const”,尽管从技术上讲“Const”不是修饰符,但它表示为分析树中的一个。) |
FieldDeclaration(SyntaxList<AttributeListSyntax>, SyntaxTokenList, SeparatedSyntaxList<VariableDeclaratorSyntax>) |
表示一个或多个变量或常量(作为局部变量或类/结构成员)的声明。 对于常量,它在修饰符 (中具有“Const”,尽管从技术上讲“Const”不是修饰符,但它表示为分析树中的一个。) |
FieldDeclaration(SeparatedSyntaxList<VariableDeclaratorSyntax>)
- 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
表示一个或多个变量或常量(作为局部变量或类/结构成员)的声明。 对于常量,它在修饰符 (中具有“Const”,尽管从技术上讲“Const”不是修饰符,但它表示为分析树中的一个。)
public:
static Microsoft::CodeAnalysis::VisualBasic::Syntax::FieldDeclarationSyntax ^ FieldDeclaration(Microsoft::CodeAnalysis::SeparatedSyntaxList<Microsoft::CodeAnalysis::VisualBasic::Syntax::VariableDeclaratorSyntax ^> declarators);
public static Microsoft.CodeAnalysis.VisualBasic.Syntax.FieldDeclarationSyntax FieldDeclaration (Microsoft.CodeAnalysis.SeparatedSyntaxList<Microsoft.CodeAnalysis.VisualBasic.Syntax.VariableDeclaratorSyntax> declarators);
static member FieldDeclaration : Microsoft.CodeAnalysis.SeparatedSyntaxList<Microsoft.CodeAnalysis.VisualBasic.Syntax.VariableDeclaratorSyntax> -> Microsoft.CodeAnalysis.VisualBasic.Syntax.FieldDeclarationSyntax
Public Shared Function FieldDeclaration (declarators As SeparatedSyntaxList(Of VariableDeclaratorSyntax)) As FieldDeclarationSyntax
参数
- declarators
- SeparatedSyntaxList<VariableDeclaratorSyntax>
变量声明符的列表。 每个声明符指定一个或多个变量名称以及类型和/或初始值设定项。
返回
适用于
FieldDeclaration(VariableDeclaratorSyntax[])
- 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
表示一个或多个变量或常量(作为局部变量或类/结构成员)的声明。 对于常量,它在修饰符 (中具有“Const”,尽管从技术上讲“Const”不是修饰符,但它表示为分析树中的一个。)
public:
static Microsoft::CodeAnalysis::VisualBasic::Syntax::FieldDeclarationSyntax ^ FieldDeclaration(... cli::array <Microsoft::CodeAnalysis::VisualBasic::Syntax::VariableDeclaratorSyntax ^> ^ declarators);
public static Microsoft.CodeAnalysis.VisualBasic.Syntax.FieldDeclarationSyntax FieldDeclaration (params Microsoft.CodeAnalysis.VisualBasic.Syntax.VariableDeclaratorSyntax[] declarators);
static member FieldDeclaration : Microsoft.CodeAnalysis.VisualBasic.Syntax.VariableDeclaratorSyntax[] -> Microsoft.CodeAnalysis.VisualBasic.Syntax.FieldDeclarationSyntax
Public Shared Function FieldDeclaration (ParamArray declarators As VariableDeclaratorSyntax()) As FieldDeclarationSyntax
参数
- declarators
- VariableDeclaratorSyntax[]
变量声明符的列表。 每个声明符指定一个或多个变量名称以及类型和/或初始值设定项。
返回
适用于
FieldDeclaration(SyntaxList<AttributeListSyntax>, SyntaxTokenList, SeparatedSyntaxList<VariableDeclaratorSyntax>)
- 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
表示一个或多个变量或常量(作为局部变量或类/结构成员)的声明。 对于常量,它在修饰符 (中具有“Const”,尽管从技术上讲“Const”不是修饰符,但它表示为分析树中的一个。)
public:
static Microsoft::CodeAnalysis::VisualBasic::Syntax::FieldDeclarationSyntax ^ FieldDeclaration(Microsoft::CodeAnalysis::SyntaxList<Microsoft::CodeAnalysis::VisualBasic::Syntax::AttributeListSyntax ^> attributeLists, Microsoft::CodeAnalysis::SyntaxTokenList modifiers, Microsoft::CodeAnalysis::SeparatedSyntaxList<Microsoft::CodeAnalysis::VisualBasic::Syntax::VariableDeclaratorSyntax ^> declarators);
public static Microsoft.CodeAnalysis.VisualBasic.Syntax.FieldDeclarationSyntax FieldDeclaration (Microsoft.CodeAnalysis.SyntaxList<Microsoft.CodeAnalysis.VisualBasic.Syntax.AttributeListSyntax> attributeLists, Microsoft.CodeAnalysis.SyntaxTokenList modifiers, Microsoft.CodeAnalysis.SeparatedSyntaxList<Microsoft.CodeAnalysis.VisualBasic.Syntax.VariableDeclaratorSyntax> declarators);
static member FieldDeclaration : Microsoft.CodeAnalysis.SyntaxList<Microsoft.CodeAnalysis.VisualBasic.Syntax.AttributeListSyntax> * Microsoft.CodeAnalysis.SyntaxTokenList * Microsoft.CodeAnalysis.SeparatedSyntaxList<Microsoft.CodeAnalysis.VisualBasic.Syntax.VariableDeclaratorSyntax> -> Microsoft.CodeAnalysis.VisualBasic.Syntax.FieldDeclarationSyntax
Public Shared Function FieldDeclaration (attributeLists As SyntaxList(Of AttributeListSyntax), modifiers As SyntaxTokenList, declarators As SeparatedSyntaxList(Of VariableDeclaratorSyntax)) As FieldDeclarationSyntax
参数
- attributeLists
- SyntaxList<AttributeListSyntax>
此声明上所有属性列表的列表。 如果未指定任何属性,则返回空列表。
- modifiers
- SyntaxTokenList
此声明上存在的所有修饰标记的列表。 如果未指定修饰符,则返回空列表。
- declarators
- SeparatedSyntaxList<VariableDeclaratorSyntax>
变量声明符的列表。 每个声明符指定一个或多个变量名称以及类型和/或初始值设定项。