共用方式為


AccessorDeclarationSyntax.Body 屬性

定義

取得可能空白的選擇性主體區塊,但如果沒有大括弧,則為 Null。

public:
 property Microsoft::CodeAnalysis::CSharp::Syntax::BlockSyntax ^ Body { Microsoft::CodeAnalysis::CSharp::Syntax::BlockSyntax ^ get(); };
public Microsoft.CodeAnalysis.CSharp.Syntax.BlockSyntax Body { get; }
public Microsoft.CodeAnalysis.CSharp.Syntax.BlockSyntax? Body { get; }
member this.Body : Microsoft.CodeAnalysis.CSharp.Syntax.BlockSyntax
Public ReadOnly Property Body As BlockSyntax

屬性值

適用於