共用方式為


LocalFunctionStatementSyntax.WithExpressionBody 方法

定義

public:
 Microsoft::CodeAnalysis::CSharp::Syntax::LocalFunctionStatementSyntax ^ WithExpressionBody(Microsoft::CodeAnalysis::CSharp::Syntax::ArrowExpressionClauseSyntax ^ expressionBody);
public Microsoft.CodeAnalysis.CSharp.Syntax.LocalFunctionStatementSyntax WithExpressionBody (Microsoft.CodeAnalysis.CSharp.Syntax.ArrowExpressionClauseSyntax expressionBody);
public Microsoft.CodeAnalysis.CSharp.Syntax.LocalFunctionStatementSyntax WithExpressionBody (Microsoft.CodeAnalysis.CSharp.Syntax.ArrowExpressionClauseSyntax? expressionBody);
member this.WithExpressionBody : Microsoft.CodeAnalysis.CSharp.Syntax.ArrowExpressionClauseSyntax -> Microsoft.CodeAnalysis.CSharp.Syntax.LocalFunctionStatementSyntax
Public Function WithExpressionBody (expressionBody As ArrowExpressionClauseSyntax) As LocalFunctionStatementSyntax

參數

傳回

適用於