Condividi tramite


Proprietà VCWebServiceProxyGeneratorTool.Namespace

Ottiene o imposta un oggetto che definisce lo spazio dei nomi padre.

Spazio dei nomi:  Microsoft.VisualStudio.VCProjectEngine
Assembly:  Microsoft.VisualStudio.VCProjectEngine (in Microsoft.VisualStudio.VCProjectEngine.dll)

Sintassi

'Dichiarazione
Property Namespace As String
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)

Valore proprietà

Tipo: System.String
Stringa che specifica il nome dello spazio dei nomi.

Note

Namespace deve corrispondere allo spazio dei nomi radice del progetto.

in molti casi, il valore di Namespace corrisponde al nome della raccolta che si esegue il wrapping.

Esempi

vedere Procedura: compilare codice di esempio per l'Extensibility del modello di progetto per informazioni su come compilare ed eseguire l'esempio.

' 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

Sicurezza di .NET Framework

Vedere anche

Riferimenti

VCWebServiceProxyGeneratorTool Interfaccia

Spazio dei nomi Microsoft.VisualStudio.VCProjectEngine