語言

MigrationCodeGenerator.GetDefaultNamespaces(Boolean) 方法

定義

取得預設命名空間,必須輸出為「使用」或「匯入」指令,適用於任何產生的程式碼。

protected virtual System.Collections.Generic.IEnumerable<string> GetDefaultNamespaces(bool designer = false);
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1026:DefaultParametersShouldNotBeUsed")]
protected virtual System.Collections.Generic.IEnumerable<string> GetDefaultNamespaces(bool designer = false);
abstract member GetDefaultNamespaces : bool -> seq<string>
override this.GetDefaultNamespaces : bool -> seq<string>
Protected Overridable Function GetDefaultNamespaces (Optional designer As Boolean = false) As IEnumerable(Of String)

參數

designer
Boolean

一個值,表示此類別是否正在為程式碼背後的檔案產生。

傳回

一個有序的命名空間名稱清單。

屬性

適用於