ConstructorDeclarationSyntax.WithBody(BlockSyntax) 方法

定义

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

参数

返回

适用于