共用方式為


SyntaxFactory.AsNewClause 方法

定義

多載

AsNewClause(NewExpressionSyntax)

表示宣告中的 「As New {type-name} [arguments] [initializers]」 子句。 類型具有與其相關聯的選擇性屬性,不過在許多位置不允許屬性發生此節點 (允許這些屬性,例如,在自動實作的屬性上。)

AsNewClause(SyntaxToken, NewExpressionSyntax)

表示宣告中的 「As New {type-name} [arguments] [initializers]」 子句。 類型具有與其相關聯的選擇性屬性,不過在許多位置不允許屬性發生此節點 (允許這些屬性,例如,在自動實作的屬性上。)

AsNewClause(NewExpressionSyntax)

Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb

表示宣告中的 「As New {type-name} [arguments] [initializers]」 子句。 類型具有與其相關聯的選擇性屬性,不過在許多位置不允許屬性發生此節點 (允許這些屬性,例如,在自動實作的屬性上。)

public:
 static Microsoft::CodeAnalysis::VisualBasic::Syntax::AsNewClauseSyntax ^ AsNewClause(Microsoft::CodeAnalysis::VisualBasic::Syntax::NewExpressionSyntax ^ newExpression);
public static Microsoft.CodeAnalysis.VisualBasic.Syntax.AsNewClauseSyntax AsNewClause (Microsoft.CodeAnalysis.VisualBasic.Syntax.NewExpressionSyntax newExpression);
static member AsNewClause : Microsoft.CodeAnalysis.VisualBasic.Syntax.NewExpressionSyntax -> Microsoft.CodeAnalysis.VisualBasic.Syntax.AsNewClauseSyntax
Public Shared Function AsNewClause (newExpression As NewExpressionSyntax) As AsNewClauseSyntax

參數

newExpression
NewExpressionSyntax

New 運算式

傳回

適用於

AsNewClause(SyntaxToken, NewExpressionSyntax)

Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb

表示宣告中的 「As New {type-name} [arguments] [initializers]」 子句。 類型具有與其相關聯的選擇性屬性,不過在許多位置不允許屬性發生此節點 (允許這些屬性,例如,在自動實作的屬性上。)

public:
 static Microsoft::CodeAnalysis::VisualBasic::Syntax::AsNewClauseSyntax ^ AsNewClause(Microsoft::CodeAnalysis::SyntaxToken asKeyword, Microsoft::CodeAnalysis::VisualBasic::Syntax::NewExpressionSyntax ^ newExpression);
public static Microsoft.CodeAnalysis.VisualBasic.Syntax.AsNewClauseSyntax AsNewClause (Microsoft.CodeAnalysis.SyntaxToken asKeyword, Microsoft.CodeAnalysis.VisualBasic.Syntax.NewExpressionSyntax newExpression);
static member AsNewClause : Microsoft.CodeAnalysis.SyntaxToken * Microsoft.CodeAnalysis.VisualBasic.Syntax.NewExpressionSyntax -> Microsoft.CodeAnalysis.VisualBasic.Syntax.AsNewClauseSyntax
Public Shared Function AsNewClause (asKeyword As SyntaxToken, newExpression As NewExpressionSyntax) As AsNewClauseSyntax

參數

asKeyword
SyntaxToken

「As」 關鍵字。

newExpression
NewExpressionSyntax

New 運算式

傳回

適用於