Share via


MigrationCodeGenerator.GetDefaultNamespaces(Boolean) Method

Definition

Gets the default namespaces that must be output as "using" or "Imports" directives for any code generated.

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)

Parameters

designer
Boolean

A value indicating if this class is being generated for a code-behind file.

Returns

An ordered list of namespace names.

Attributes

Applies to