VCProject.RootNamespace Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets the root namespace for the specified project.
public:
property System::String ^ RootNamespace { System::String ^ get(); void set(System::String ^ value); };
public:
property Platform::String ^ RootNamespace { Platform::String ^ get(); void set(Platform::String ^ value); };
[System.Runtime.InteropServices.DispId(836)]
public string RootNamespace { [System.Runtime.InteropServices.DispId(836)] get; [System.Runtime.InteropServices.DispId(836)] set; }
[<System.Runtime.InteropServices.DispId(836)>]
[<get: System.Runtime.InteropServices.DispId(836)>]
[<set: System.Runtime.InteropServices.DispId(836)>]
member this.RootNamespace : string with get, set
Public Property RootNamespace As String
Property Value
The root namespace for the specified project. RootNamespace is used to determine proper naming for managed resource DLLs.
- Attributes
Examples
See How to: Compile Example Code for Project Model Extensibility for information about how to compile and run this example.
' Add a reference to Microsoft.VisualStudio.VCProjectEngine and have a
' Visual C++ 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