共用方式為


CompilationUnitSyntax.WithExterns 方法

定義

public:
 Microsoft::CodeAnalysis::CSharp::Syntax::CompilationUnitSyntax ^ WithExterns(Microsoft::CodeAnalysis::SyntaxList<Microsoft::CodeAnalysis::CSharp::Syntax::ExternAliasDirectiveSyntax ^> externs);
public Microsoft.CodeAnalysis.CSharp.Syntax.CompilationUnitSyntax WithExterns (Microsoft.CodeAnalysis.SyntaxList<Microsoft.CodeAnalysis.CSharp.Syntax.ExternAliasDirectiveSyntax> externs);
member this.WithExterns : Microsoft.CodeAnalysis.SyntaxList<Microsoft.CodeAnalysis.CSharp.Syntax.ExternAliasDirectiveSyntax> -> Microsoft.CodeAnalysis.CSharp.Syntax.CompilationUnitSyntax
Public Function WithExterns (externs As SyntaxList(Of ExternAliasDirectiveSyntax)) As CompilationUnitSyntax

參數

傳回

適用於