MembershipSection.Providers Properti
Definisi
Penting
Beberapa informasi terkait produk prarilis yang dapat diubah secara signifikan sebelum dirilis. Microsoft tidak memberikan jaminan, tersirat maupun tersurat, sehubungan dengan informasi yang diberikan di sini.
ProviderSettingsCollection Mendapatkan objek ProviderSettings objek.
public:
property System::Configuration::ProviderSettingsCollection ^ Providers { System::Configuration::ProviderSettingsCollection ^ get(); };
[System.Configuration.ConfigurationProperty("providers")]
public System.Configuration.ProviderSettingsCollection Providers { get; }
[<System.Configuration.ConfigurationProperty("providers")>]
member this.Providers : System.Configuration.ProviderSettingsCollection
Public ReadOnly Property Providers As ProviderSettingsCollection
Nilai Properti
ProviderSettingsCollection yang berisi pengaturan penyedia, yang ditentukan dalam providers subbagian membership bagian file konfigurasi.
- Atribut
Contoh
Contoh kode berikut menunjukkan cara menggunakan Providers properti . Contoh kode ini adalah bagian dari contoh yang lebih besar yang disediakan untuk MembershipSection kelas .
// Display elements of the Providers collection property.
foreach (ProviderSettings providerItem in configSection.Providers)
{
Console.WriteLine();
Console.WriteLine("Provider Details:");
Console.WriteLine("Name: {0}", providerItem.Name);
Console.WriteLine("Type: {0}", providerItem.Type);
}
' Display elements of the Providers collection property.
For Each providerItem As ProviderSettings In configSection.Providers()
Console.WriteLine()
Console.WriteLine("Provider Details:")
Console.WriteLine("Name: {0}", providerItem.Name)
Console.WriteLine("Type: {0}", providerItem.Type)
Next
Keterangan
Penyedia keanggotaan adalah komponen yang menyediakan akses ke keanggotaan untuk situs. Anda dapat menentukan penyedia keanggotaan di providers subbagian membership bagian file konfigurasi.
Properti DefaultProvider berisi nama penyedia yang digunakan secara default.