共用方式為


BaseMethodDeclarationSyntax.WithBody(BlockSyntax) Method

Definition

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

Parameters

Returns

Applies to