Udostępnij za pośrednictwem


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)

Syntax

'Declaration
Property Namespace As String
    Get
    Set
string Namespace { get; set; }
property String^ Namespace {
    String^ get ();
    void set (String^ value);
}
abstract Namespace : string with get, set
function get Namespace () : String
function set Namespace (value : String)

Property Value

Type: System.String
A string specifying the name of the namespace.

Remarks

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.

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 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

.NET Framework Security

See Also

Reference

VCWebServiceProxyGeneratorTool Interface

Microsoft.VisualStudio.VCProjectEngine Namespace