ProfileSettingsCollection.Add(ProfileSettings) Yöntem
Tanım
Önemli
Bazı bilgiler ürünün ön sürümüyle ilgilidir ve sürüm öncesinde önemli değişiklikler yapılmış olabilir. Burada verilen bilgilerle ilgili olarak Microsoft açık veya zımni hiçbir garanti vermez.
Koleksiyona bir ProfileSettings nesne ekler.
public:
void Add(System::Web::Configuration::ProfileSettings ^ profilesSettings);
public void Add (System.Web.Configuration.ProfileSettings profilesSettings);
member this.Add : System.Web.Configuration.ProfileSettings -> unit
Public Sub Add (profilesSettings As ProfileSettings)
Parametreler
- profilesSettings
- ProfileSettings
ProfileSettings Koleksiyona eklenecek nesne.
Özel durumlar
ProfileSettings Eklenecek nesne koleksiyonda zaten var veya koleksiyon salt okunur.
Örnekler
Aşağıdaki kod örneğinde yönteminin nasıl kullanılacağı gösterilmektedir Add . Bu kod örneği, sınıfı için HealthMonitoringSection sağlanan daha büyük bir örneğin parçasıdır.
// Get the current Enabled property value.
Boolean enabledValue = healthMonitoringSection.Enabled;
// Set the Enabled property to false.
healthMonitoringSection.Enabled = false;
' Get the current Enabled property value.
Dim enabledValue As Boolean = healthMonitoringSection.Enabled
' Set the Enabled property to False.
healthMonitoringSection.Enabled = False
Açıklamalar
Koleksiyon aynı ada sahip bir ProfileSettings nesne içermemelidir.