Export (0) Print
Expand All

VCWebServiceProxyGeneratorTool.Namespace Property 

Gets or sets an object defining the parent namespace.

Namespace: Microsoft.VisualStudio.VCProjectEngine
Assembly: Microsoft.VisualStudio.VCProjectEngine (in microsoft.visualstudio.vcprojectengine.dll)

string Namespace { get; set; }
/** @property */
String get_Namespace ()

/** @property */
void set_Namespace (/** @attribute InAttribute() */ String Out)

function get Namespace () : String

function set Namespace (Out : String)

Property Value

A string specifying the name of the namespace.

Namespace must match the root namespace of the project.

In many cases, the value of Namespace is the same as the name of the library that you are wrapping.

See Samples 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 prj As VCProject
        Dim cfgs, tools As IVCCollection
        Dim cfg As VCConfiguration
        Dim tool As VCManagedWrapperGeneratorTool
        prj = DTE.Solution.Projects.Item(1).Object
        cfgs = prj.Configurations
        cfg = cfgs.Item(1)
        tool = cfg.Tools("VCManagedWrapperGeneratorTool")
        MsgBox("Current namespace : " & _
          tool.Namespace)
    End Sub
End Module
Show:
© 2014 Microsoft