共用方式為


LocalFunctionStatementSyntax.WithBody(BlockSyntax) Method

Definition

public:
 Microsoft::CodeAnalysis::CSharp::Syntax::LocalFunctionStatementSyntax ^ WithBody(Microsoft::CodeAnalysis::CSharp::Syntax::BlockSyntax ^ body);
public Microsoft.CodeAnalysis.CSharp.Syntax.LocalFunctionStatementSyntax WithBody (Microsoft.CodeAnalysis.CSharp.Syntax.BlockSyntax body);
public Microsoft.CodeAnalysis.CSharp.Syntax.LocalFunctionStatementSyntax WithBody (Microsoft.CodeAnalysis.CSharp.Syntax.BlockSyntax? body);
member this.WithBody : Microsoft.CodeAnalysis.CSharp.Syntax.BlockSyntax -> Microsoft.CodeAnalysis.CSharp.Syntax.LocalFunctionStatementSyntax
Public Function WithBody (body As BlockSyntax) As LocalFunctionStatementSyntax

Parameters

Returns

Applies to