SyntaxFactory.ImportsStatement 方法

定义

重载

ImportsStatement()

表示一个 Imports 语句,该语句具有一个或多个 imports 子句。

ImportsStatement(SeparatedSyntaxList<ImportsClauseSyntax>)

表示一个 Imports 语句,该语句具有一个或多个 imports 子句。

ImportsStatement(SyntaxToken, SeparatedSyntaxList<ImportsClauseSyntax>)

表示一个 Imports 语句,该语句具有一个或多个 imports 子句。

ImportsStatement()

Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb

表示一个 Imports 语句,该语句具有一个或多个 imports 子句。

public:
 static Microsoft::CodeAnalysis::VisualBasic::Syntax::ImportsStatementSyntax ^ ImportsStatement();
public static Microsoft.CodeAnalysis.VisualBasic.Syntax.ImportsStatementSyntax ImportsStatement ();
static member ImportsStatement : unit -> Microsoft.CodeAnalysis.VisualBasic.Syntax.ImportsStatementSyntax
Public Shared Function ImportsStatement () As ImportsStatementSyntax

返回

适用于

ImportsStatement(SeparatedSyntaxList<ImportsClauseSyntax>)

Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb

表示一个 Imports 语句,该语句具有一个或多个 imports 子句。

public:
 static Microsoft::CodeAnalysis::VisualBasic::Syntax::ImportsStatementSyntax ^ ImportsStatement(Microsoft::CodeAnalysis::SeparatedSyntaxList<Microsoft::CodeAnalysis::VisualBasic::Syntax::ImportsClauseSyntax ^> importsClauses);
public static Microsoft.CodeAnalysis.VisualBasic.Syntax.ImportsStatementSyntax ImportsStatement (Microsoft.CodeAnalysis.SeparatedSyntaxList<Microsoft.CodeAnalysis.VisualBasic.Syntax.ImportsClauseSyntax> importsClauses);
static member ImportsStatement : Microsoft.CodeAnalysis.SeparatedSyntaxList<Microsoft.CodeAnalysis.VisualBasic.Syntax.ImportsClauseSyntax> -> Microsoft.CodeAnalysis.VisualBasic.Syntax.ImportsStatementSyntax
Public Shared Function ImportsStatement (importsClauses As SeparatedSyntaxList(Of ImportsClauseSyntax)) As ImportsStatementSyntax

参数

importsClauses
SeparatedSyntaxList<ImportsClauseSyntax>

一个或多个导入子句的列表。 每个子句都是别名、命名空间或 XML 命名空间导入。

返回

适用于

ImportsStatement(SyntaxToken, SeparatedSyntaxList<ImportsClauseSyntax>)

Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb

表示一个 Imports 语句,该语句具有一个或多个 imports 子句。

public:
 static Microsoft::CodeAnalysis::VisualBasic::Syntax::ImportsStatementSyntax ^ ImportsStatement(Microsoft::CodeAnalysis::SyntaxToken importsKeyword, Microsoft::CodeAnalysis::SeparatedSyntaxList<Microsoft::CodeAnalysis::VisualBasic::Syntax::ImportsClauseSyntax ^> importsClauses);
public static Microsoft.CodeAnalysis.VisualBasic.Syntax.ImportsStatementSyntax ImportsStatement (Microsoft.CodeAnalysis.SyntaxToken importsKeyword, Microsoft.CodeAnalysis.SeparatedSyntaxList<Microsoft.CodeAnalysis.VisualBasic.Syntax.ImportsClauseSyntax> importsClauses);
static member ImportsStatement : Microsoft.CodeAnalysis.SyntaxToken * Microsoft.CodeAnalysis.SeparatedSyntaxList<Microsoft.CodeAnalysis.VisualBasic.Syntax.ImportsClauseSyntax> -> Microsoft.CodeAnalysis.VisualBasic.Syntax.ImportsStatementSyntax
Public Shared Function ImportsStatement (importsKeyword As SyntaxToken, importsClauses As SeparatedSyntaxList(Of ImportsClauseSyntax)) As ImportsStatementSyntax

参数

importsKeyword
SyntaxToken

“Imports”关键字。

importsClauses
SeparatedSyntaxList<ImportsClauseSyntax>

一个或多个导入子句的列表。 每个子句都是别名、命名空间或 XML 命名空间导入。

返回

适用于