共用方式為


EventDeclarationSyntax.WithAccessorList(AccessorListSyntax) Method

Definition

public:
 Microsoft::CodeAnalysis::CSharp::Syntax::EventDeclarationSyntax ^ WithAccessorList(Microsoft::CodeAnalysis::CSharp::Syntax::AccessorListSyntax ^ accessorList);
public Microsoft.CodeAnalysis.CSharp.Syntax.EventDeclarationSyntax WithAccessorList (Microsoft.CodeAnalysis.CSharp.Syntax.AccessorListSyntax accessorList);
public Microsoft.CodeAnalysis.CSharp.Syntax.EventDeclarationSyntax WithAccessorList (Microsoft.CodeAnalysis.CSharp.Syntax.AccessorListSyntax? accessorList);
override this.WithAccessorList : Microsoft.CodeAnalysis.CSharp.Syntax.AccessorListSyntax -> Microsoft.CodeAnalysis.CSharp.Syntax.EventDeclarationSyntax
Public Function WithAccessorList (accessorList As AccessorListSyntax) As EventDeclarationSyntax

Parameters

accessorList
AccessorListSyntax

Returns

Applies to