共用方式為


VariableDeclaratorSyntax.WithAsClause(AsClauseSyntax) 方法

定義

傳回這個 複本,其中 AsClause 屬性已變更為指定的值。 如果指定的值與目前的值相同,則傳回這個實例。

public:
 Microsoft::CodeAnalysis::VisualBasic::Syntax::VariableDeclaratorSyntax ^ WithAsClause(Microsoft::CodeAnalysis::VisualBasic::Syntax::AsClauseSyntax ^ asClause);
public Microsoft.CodeAnalysis.VisualBasic.Syntax.VariableDeclaratorSyntax WithAsClause (Microsoft.CodeAnalysis.VisualBasic.Syntax.AsClauseSyntax asClause);
member this.WithAsClause : Microsoft.CodeAnalysis.VisualBasic.Syntax.AsClauseSyntax -> Microsoft.CodeAnalysis.VisualBasic.Syntax.VariableDeclaratorSyntax
Public Function WithAsClause (asClause As AsClauseSyntax) As VariableDeclaratorSyntax

參數

asClause
AsClauseSyntax

傳回

適用於