共用方式為


ClassDeclarationSyntax.AddMembers(MemberDeclarationSyntax[]) 方法

定義

public:
 Microsoft::CodeAnalysis::CSharp::Syntax::ClassDeclarationSyntax ^ AddMembers(... cli::array <Microsoft::CodeAnalysis::CSharp::Syntax::MemberDeclarationSyntax ^> ^ items);
public Microsoft.CodeAnalysis.CSharp.Syntax.ClassDeclarationSyntax AddMembers (params Microsoft.CodeAnalysis.CSharp.Syntax.MemberDeclarationSyntax[] items);
override this.AddMembers : Microsoft.CodeAnalysis.CSharp.Syntax.MemberDeclarationSyntax[] -> Microsoft.CodeAnalysis.CSharp.Syntax.ClassDeclarationSyntax
Public Function AddMembers (ParamArray items As MemberDeclarationSyntax()) As ClassDeclarationSyntax

參數

傳回

適用於