共用方式為


CompilationUnitSyntax.AddImports(ImportsStatementSyntax[]) 方法

定義

public:
 Microsoft::CodeAnalysis::VisualBasic::Syntax::CompilationUnitSyntax ^ AddImports(... cli::array <Microsoft::CodeAnalysis::VisualBasic::Syntax::ImportsStatementSyntax ^> ^ items);
public Microsoft.CodeAnalysis.VisualBasic.Syntax.CompilationUnitSyntax AddImports (params Microsoft.CodeAnalysis.VisualBasic.Syntax.ImportsStatementSyntax[] items);
member this.AddImports : Microsoft.CodeAnalysis.VisualBasic.Syntax.ImportsStatementSyntax[] -> Microsoft.CodeAnalysis.VisualBasic.Syntax.CompilationUnitSyntax
Public Function AddImports (ParamArray items As ImportsStatementSyntax()) As CompilationUnitSyntax

參數

傳回

適用於