共用方式為


ForEachBlockSyntax.WithForEachStatement(ForEachStatementSyntax) 方法

定義

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

public:
 Microsoft::CodeAnalysis::VisualBasic::Syntax::ForEachBlockSyntax ^ WithForEachStatement(Microsoft::CodeAnalysis::VisualBasic::Syntax::ForEachStatementSyntax ^ forEachStatement);
public Microsoft.CodeAnalysis.VisualBasic.Syntax.ForEachBlockSyntax WithForEachStatement (Microsoft.CodeAnalysis.VisualBasic.Syntax.ForEachStatementSyntax forEachStatement);
member this.WithForEachStatement : Microsoft.CodeAnalysis.VisualBasic.Syntax.ForEachStatementSyntax -> Microsoft.CodeAnalysis.VisualBasic.Syntax.ForEachBlockSyntax
Public Function WithForEachStatement (forEachStatement As ForEachStatementSyntax) As ForEachBlockSyntax

參數

forEachStatement
ForEachStatementSyntax

傳回

適用於