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

声明
Property Namespace As String
用法
Dim instance As VCWebServiceProxyGeneratorTool
Dim value As String

value = instance.Namespace

instance.Namespace = value
string Namespace { get; set; }
property String^ Namespace {
    String^ get ();
    void set (String^ value);
}
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

Permissions

See Also

Reference

VCWebServiceProxyGeneratorTool Interface

VCWebServiceProxyGeneratorTool Members

Microsoft.VisualStudio.VCProjectEngine Namespace