Aracılığıyla paylaş


VCWebServiceProxyGeneratorTool.Namespace Özellik

Alır veya ayarlar üst ad alanını tanımlayan nesne.

Ad alanı:  Microsoft.VisualStudio.VCProjectEngine
Derleme:  Microsoft.VisualStudio.VCProjectEngine (Microsoft.VisualStudio.VCProjectEngine.dll içinde)

Sözdizimi

'Bildirim
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)

Özellik Değeri

Tür: System.String
Ad alanı adını belirten bir dize.

Notlar

NamespaceProjenin kök ad ile eşleşmelidir.

Çoğu durumda, değeri Namespace , kaydırma kitaplığının adıyla aynıdır.

Örnekler

Bkz: Nasıl yapılır: proje modeli genişletilebilirlik amacıyla örnek kodu derleyin derlemek ve bu örnek çalıştırma hakkında bilgi için.

' 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 Güvenliği

Ayrıca bkz.

Başvuru

VCWebServiceProxyGeneratorTool Arabirim

Microsoft.VisualStudio.VCProjectEngine Ad Alanı