Udostępnij za pośrednictwem


Project.DefaultNamespace Property

Definition

The default namespace of the project ("" if not defined, which means global namespace), or null if it is unknown or not applicable.

public string? DefaultNamespace { get; }
member this.DefaultNamespace : string
Public ReadOnly Property DefaultNamespace As String

Property Value

Remarks

Right now VB doesn't have the concept of "default namespace". But we conjure one in workspace by assigning the value of the project's root namespace to it. So various feature can choose to use it for their own purpose. In the future, we might consider officially exposing "default namespace" for VB project (e.g. through a "defaultnamespace" msbuild property)

Applies to