次の方法で共有


AccessorDeclarationSyntax.WithExpressionBody Method

Definition

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

Parameters

Returns

Applies to