Export (0) Print
Expand All
Expand Minimize

RootNamespace Property

Visual Studio .NET 2003

Sets or returns the root namespace for the specified project. Used to determine proper naming for managed resource DLLs.

[Visual Basic .NET]
Public Property RootNamespace() As String
[Visual Basic 6]
Property Get RootNamespace() As String
Property Let RootNamespace( _
   ByVal NewValue As String _
HRESULT __stdcall get_RootNamespace(
   /* [out, retval] */ BSTR* retVal
HRESULT __stdcall put_RootNamespace(
   /* [in] */ BSTR NewValue
public string RootNamespace {get; set;}
[JScript .NET]
public function get RootNamespace() : String
public function set RootNamespace(
   NewValue : String


A string value representing the root namespace for the project.

Return Value

The root namespace for the specified project


' Add a reference to Microsoft.VisualStudio.VCProjectEngine and have a 
' Visual C++ .NET project loaded before running this example.
Imports EnvDTE
Imports Microsoft.VisualStudio.VCProjectEngine

Public Module Module1
    Sub Test()
        Dim sln As Solution
        Dim prj As VCProject
        prj = DTE.Solution.Item(1).Object
        MsgBox("Root namespace " & prj.RootNamespace)
    End Sub
End Module

See Samples for Project Model Extensibility for information on how to compile and run this sample.

See Also

Applies To: VCProject Object

© 2015 Microsoft