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 _
) 
[C++]
HRESULT __stdcall get_RootNamespace(
   /* [out, retval] */ BSTR* retVal
);
HRESULT __stdcall put_RootNamespace(
   /* [in] */ BSTR NewValue
);
[C#]
public string RootNamespace {get; set;}
[JScript .NET]
public function get RootNamespace() : String
public function set RootNamespace(
   NewValue : String
)

Parameters

NewValue
A string value representing the root namespace for the project.

Return Value

The root namespace for the specified project

Example

' 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

Show:
© 2014 Microsoft