Aracılığıyla paylaş


ConfigurationManager.AddConfigurationRow Yöntem

Yeni bir proje ya da proje öğesi yapılandırma satır temel oluşturur Configuration varolan bir proje veya proje öğesi yapılandırma satır nesnesi.

Ad alanı:  EnvDTE
Derleme:  EnvDTE (EnvDTE.dll içinde)

Sözdizimi

'Bildirim
Function AddConfigurationRow ( _
    NewName As String, _
    ExistingName As String, _
    Propagate As Boolean _
) As Configurations
Configurations AddConfigurationRow(
    string NewName,
    string ExistingName,
    bool Propagate
)
Configurations^ AddConfigurationRow(
    String^ NewName, 
    String^ ExistingName, 
    [InAttribute] bool Propagate
)
abstract AddConfigurationRow : 
        NewName:string * 
        ExistingName:string * 
        Propagate:bool -> Configurations 
function AddConfigurationRow(
    NewName : String, 
    ExistingName : String, 
    Propagate : boolean
) : Configurations

Parametreler

  • NewName
    Tür: System.String
    Gerekli.Yeni bir proje ya da proje öğesi yapılandırma satırı için benzersiz bir ad.
  • ExistingName
    Tür: System.String
    Gerekli.Proje ya da proje öğesi yapılandırma satır yeni bir dosya oluşturmak üzere kopyalamak için adı.
  • Propagate
    Tür: System.Boolean
    Gerekli. true Proje ya da proje öğesi yapılandırma satırı yayılması, false değilse.

Dönüş Değeri

Tür: EnvDTE.Configurations
A Configurations koleksiyonu.

Notlar

AddConfigurationRowYeni koleksiyonunu döndürür Configuration nesneler.NewName Bilmek, bu yöntem başarısız bu proje için zaten ExistingName ayarları değil kopyalanmıştır.

Örnekler

Sub AddConfigurationRowExample()
    ' Make a copy of the "Debug" configurations to temporarily change 
    ' them without affecting the original "Debug" configurations.
    Dim cfgmgr As ConfigurationManager = _
        DTE.ActiveSolutionProject.ConfigurationManager
    Dim cfgs = Cfgmgr.AddConfigurationRow("MyDebug", "Debug")
    For Each (cfg in cfgs)
        Cfg.Properties.Item("SomeProperty") = True
    Next
End Sub

.NET Framework Güvenliği

Ayrıca bkz.

Başvuru

ConfigurationManager Arabirim

EnvDTE Ad Alanı