SyntaxFactory.SimpleAsClause 方法

定义

重载

SimpleAsClause(TypeSyntax)

表示没有初始值设定项或“New”的“As {type-name}”子句。 该类型具有与之关联的可选属性,尽管在此节点发生的所有可能位置都不允许属性。

SimpleAsClause(SyntaxList<AttributeListSyntax>, TypeSyntax)

表示没有初始值设定项或“New”的“As {type-name}”子句。 该类型具有与之关联的可选属性,尽管在此节点发生的所有可能位置都不允许属性。

SimpleAsClause(SyntaxToken, SyntaxList<AttributeListSyntax>, TypeSyntax)

表示没有初始值设定项或“New”的“As {type-name}”子句。 该类型具有与之关联的可选属性,尽管在此节点发生的所有可能位置都不允许属性。

SimpleAsClause(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

表示没有初始值设定项或“New”的“As {type-name}”子句。 该类型具有与之关联的可选属性,尽管在此节点发生的所有可能位置都不允许属性。

public:
 static Microsoft::CodeAnalysis::VisualBasic::Syntax::SimpleAsClauseSyntax ^ SimpleAsClause(Microsoft::CodeAnalysis::VisualBasic::Syntax::TypeSyntax ^ type);
public static Microsoft.CodeAnalysis.VisualBasic.Syntax.SimpleAsClauseSyntax SimpleAsClause (Microsoft.CodeAnalysis.VisualBasic.Syntax.TypeSyntax type);
static member SimpleAsClause : Microsoft.CodeAnalysis.VisualBasic.Syntax.TypeSyntax -> Microsoft.CodeAnalysis.VisualBasic.Syntax.SimpleAsClauseSyntax
Public Shared Function SimpleAsClause (type As TypeSyntax) As SimpleAsClauseSyntax

参数

type
TypeSyntax

As 子句的类型名称部分。

返回

适用于

SimpleAsClause(SyntaxList<AttributeListSyntax>, 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

表示没有初始值设定项或“New”的“As {type-name}”子句。 该类型具有与之关联的可选属性,尽管在此节点发生的所有可能位置都不允许属性。

public:
 static Microsoft::CodeAnalysis::VisualBasic::Syntax::SimpleAsClauseSyntax ^ SimpleAsClause(Microsoft::CodeAnalysis::SyntaxList<Microsoft::CodeAnalysis::VisualBasic::Syntax::AttributeListSyntax ^> attributeLists, Microsoft::CodeAnalysis::VisualBasic::Syntax::TypeSyntax ^ type);
public static Microsoft.CodeAnalysis.VisualBasic.Syntax.SimpleAsClauseSyntax SimpleAsClause (Microsoft.CodeAnalysis.SyntaxList<Microsoft.CodeAnalysis.VisualBasic.Syntax.AttributeListSyntax> attributeLists, Microsoft.CodeAnalysis.VisualBasic.Syntax.TypeSyntax type);
static member SimpleAsClause : Microsoft.CodeAnalysis.SyntaxList<Microsoft.CodeAnalysis.VisualBasic.Syntax.AttributeListSyntax> * Microsoft.CodeAnalysis.VisualBasic.Syntax.TypeSyntax -> Microsoft.CodeAnalysis.VisualBasic.Syntax.SimpleAsClauseSyntax
Public Shared Function SimpleAsClause (attributeLists As SyntaxList(Of AttributeListSyntax), type As TypeSyntax) As SimpleAsClauseSyntax

参数

attributeLists
SyntaxList<AttributeListSyntax>

类型上所有属性列表的列表。 如果未指定任何属性,则返回空列表。

type
TypeSyntax

As 子句的类型名称部分。

返回

适用于

SimpleAsClause(SyntaxToken, SyntaxList<AttributeListSyntax>, 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

表示没有初始值设定项或“New”的“As {type-name}”子句。 该类型具有与之关联的可选属性,尽管在此节点发生的所有可能位置都不允许属性。

public:
 static Microsoft::CodeAnalysis::VisualBasic::Syntax::SimpleAsClauseSyntax ^ SimpleAsClause(Microsoft::CodeAnalysis::SyntaxToken asKeyword, Microsoft::CodeAnalysis::SyntaxList<Microsoft::CodeAnalysis::VisualBasic::Syntax::AttributeListSyntax ^> attributeLists, Microsoft::CodeAnalysis::VisualBasic::Syntax::TypeSyntax ^ type);
public static Microsoft.CodeAnalysis.VisualBasic.Syntax.SimpleAsClauseSyntax SimpleAsClause (Microsoft.CodeAnalysis.SyntaxToken asKeyword, Microsoft.CodeAnalysis.SyntaxList<Microsoft.CodeAnalysis.VisualBasic.Syntax.AttributeListSyntax> attributeLists, Microsoft.CodeAnalysis.VisualBasic.Syntax.TypeSyntax type);
static member SimpleAsClause : Microsoft.CodeAnalysis.SyntaxToken * Microsoft.CodeAnalysis.SyntaxList<Microsoft.CodeAnalysis.VisualBasic.Syntax.AttributeListSyntax> * Microsoft.CodeAnalysis.VisualBasic.Syntax.TypeSyntax -> Microsoft.CodeAnalysis.VisualBasic.Syntax.SimpleAsClauseSyntax
Public Shared Function SimpleAsClause (asKeyword As SyntaxToken, attributeLists As SyntaxList(Of AttributeListSyntax), type As TypeSyntax) As SimpleAsClauseSyntax

参数

asKeyword
SyntaxToken

“As”关键字。

attributeLists
SyntaxList<AttributeListSyntax>

类型上所有属性列表的列表。 如果未指定任何属性,则返回空列表。

type
TypeSyntax

As 子句的类型名称部分。

返回

适用于