SyntaxFactory.ObjectCreationExpression 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
ObjectCreationExpression(SyntaxToken, SyntaxList<AttributeListSyntax>, TypeSyntax, ArgumentListSyntax, ObjectCreationInitializerSyntax) |
表示一个新表达式,该表达式创建一个新的非数组对象,可能带有“With”或“From”子句。 |
ObjectCreationExpression(SyntaxList<AttributeListSyntax>, TypeSyntax, ArgumentListSyntax, ObjectCreationInitializerSyntax) |
表示一个新表达式,该表达式创建一个新的非数组对象,可能带有“With”或“From”子句。 |
ObjectCreationExpression(TypeSyntax) |
表示一个新表达式,该表达式创建一个新的非数组对象,可能带有“With”或“From”子句。 |
ObjectCreationExpression(SyntaxToken, SyntaxList<AttributeListSyntax>, TypeSyntax, ArgumentListSyntax, ObjectCreationInitializerSyntax)
- 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
表示一个新表达式,该表达式创建一个新的非数组对象,可能带有“With”或“From”子句。
public:
static Microsoft::CodeAnalysis::VisualBasic::Syntax::ObjectCreationExpressionSyntax ^ ObjectCreationExpression(Microsoft::CodeAnalysis::SyntaxToken newKeyword, Microsoft::CodeAnalysis::SyntaxList<Microsoft::CodeAnalysis::VisualBasic::Syntax::AttributeListSyntax ^> attributeLists, Microsoft::CodeAnalysis::VisualBasic::Syntax::TypeSyntax ^ type, Microsoft::CodeAnalysis::VisualBasic::Syntax::ArgumentListSyntax ^ argumentList, Microsoft::CodeAnalysis::VisualBasic::Syntax::ObjectCreationInitializerSyntax ^ initializer);
public static Microsoft.CodeAnalysis.VisualBasic.Syntax.ObjectCreationExpressionSyntax ObjectCreationExpression (Microsoft.CodeAnalysis.SyntaxToken newKeyword, Microsoft.CodeAnalysis.SyntaxList<Microsoft.CodeAnalysis.VisualBasic.Syntax.AttributeListSyntax> attributeLists, Microsoft.CodeAnalysis.VisualBasic.Syntax.TypeSyntax type, Microsoft.CodeAnalysis.VisualBasic.Syntax.ArgumentListSyntax argumentList, Microsoft.CodeAnalysis.VisualBasic.Syntax.ObjectCreationInitializerSyntax initializer);
static member ObjectCreationExpression : Microsoft.CodeAnalysis.SyntaxToken * Microsoft.CodeAnalysis.SyntaxList<Microsoft.CodeAnalysis.VisualBasic.Syntax.AttributeListSyntax> * Microsoft.CodeAnalysis.VisualBasic.Syntax.TypeSyntax * Microsoft.CodeAnalysis.VisualBasic.Syntax.ArgumentListSyntax * Microsoft.CodeAnalysis.VisualBasic.Syntax.ObjectCreationInitializerSyntax -> Microsoft.CodeAnalysis.VisualBasic.Syntax.ObjectCreationExpressionSyntax
Public Shared Function ObjectCreationExpression (newKeyword As SyntaxToken, attributeLists As SyntaxList(Of AttributeListSyntax), type As TypeSyntax, argumentList As ArgumentListSyntax, initializer As ObjectCreationInitializerSyntax) As ObjectCreationExpressionSyntax
参数
- newKeyword
- SyntaxToken
“新建”关键字。
- attributeLists
- SyntaxList<AttributeListSyntax>
类型上所有属性列表的列表。 如果未指定任何属性,则返回空列表。
- type
- TypeSyntax
要初始化的对象的类型。
- argumentList
- ArgumentListSyntax
参数列表(如果存在)。 如果未提供任何参数列表,则返回 Nothing。
- initializer
- ObjectCreationInitializerSyntax
用于初始化新对象的可选 From 或 With 子句。
返回
适用于
ObjectCreationExpression(SyntaxList<AttributeListSyntax>, TypeSyntax, ArgumentListSyntax, ObjectCreationInitializerSyntax)
- 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
表示一个新表达式,该表达式创建一个新的非数组对象,可能带有“With”或“From”子句。
public:
static Microsoft::CodeAnalysis::VisualBasic::Syntax::ObjectCreationExpressionSyntax ^ ObjectCreationExpression(Microsoft::CodeAnalysis::SyntaxList<Microsoft::CodeAnalysis::VisualBasic::Syntax::AttributeListSyntax ^> attributeLists, Microsoft::CodeAnalysis::VisualBasic::Syntax::TypeSyntax ^ type, Microsoft::CodeAnalysis::VisualBasic::Syntax::ArgumentListSyntax ^ argumentList, Microsoft::CodeAnalysis::VisualBasic::Syntax::ObjectCreationInitializerSyntax ^ initializer);
public static Microsoft.CodeAnalysis.VisualBasic.Syntax.ObjectCreationExpressionSyntax ObjectCreationExpression (Microsoft.CodeAnalysis.SyntaxList<Microsoft.CodeAnalysis.VisualBasic.Syntax.AttributeListSyntax> attributeLists, Microsoft.CodeAnalysis.VisualBasic.Syntax.TypeSyntax type, Microsoft.CodeAnalysis.VisualBasic.Syntax.ArgumentListSyntax argumentList, Microsoft.CodeAnalysis.VisualBasic.Syntax.ObjectCreationInitializerSyntax initializer);
static member ObjectCreationExpression : Microsoft.CodeAnalysis.SyntaxList<Microsoft.CodeAnalysis.VisualBasic.Syntax.AttributeListSyntax> * Microsoft.CodeAnalysis.VisualBasic.Syntax.TypeSyntax * Microsoft.CodeAnalysis.VisualBasic.Syntax.ArgumentListSyntax * Microsoft.CodeAnalysis.VisualBasic.Syntax.ObjectCreationInitializerSyntax -> Microsoft.CodeAnalysis.VisualBasic.Syntax.ObjectCreationExpressionSyntax
Public Shared Function ObjectCreationExpression (attributeLists As SyntaxList(Of AttributeListSyntax), type As TypeSyntax, argumentList As ArgumentListSyntax, initializer As ObjectCreationInitializerSyntax) As ObjectCreationExpressionSyntax
参数
- attributeLists
- SyntaxList<AttributeListSyntax>
类型上所有属性列表的列表。 如果未指定任何属性,则返回空列表。
- type
- TypeSyntax
要初始化的对象的类型。
- argumentList
- ArgumentListSyntax
参数列表(如果存在)。 如果未提供任何参数列表,则返回 Nothing。
- initializer
- ObjectCreationInitializerSyntax
用于初始化新对象的可选 From 或 With 子句。
返回
适用于
ObjectCreationExpression(TypeSyntax)
- 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
表示一个新表达式,该表达式创建一个新的非数组对象,可能带有“With”或“From”子句。
public:
static Microsoft::CodeAnalysis::VisualBasic::Syntax::ObjectCreationExpressionSyntax ^ ObjectCreationExpression(Microsoft::CodeAnalysis::VisualBasic::Syntax::TypeSyntax ^ type);
public static Microsoft.CodeAnalysis.VisualBasic.Syntax.ObjectCreationExpressionSyntax ObjectCreationExpression (Microsoft.CodeAnalysis.VisualBasic.Syntax.TypeSyntax type);
static member ObjectCreationExpression : Microsoft.CodeAnalysis.VisualBasic.Syntax.TypeSyntax -> Microsoft.CodeAnalysis.VisualBasic.Syntax.ObjectCreationExpressionSyntax
Public Shared Function ObjectCreationExpression (type As TypeSyntax) As ObjectCreationExpressionSyntax
参数
- type
- TypeSyntax
要初始化的对象的类型。