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: 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 è uguale al nome della libreria 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
- Attendibilità totale per il chiamante immediato. Impossibile utilizzare questo membro in codice parzialmente attendibile. Per altre informazioni, vedere Utilizzo di librerie da codice parzialmente attendibile.