SessionStateSection.CustomProvider Własność
Definicja
Ważny
Niektóre informacje dotyczą produktów przedpremierowych, które mogą zostać znacznie zmodyfikowane przed premierą. Microsoft nie udziela żadnych gwarancji, ani wyraźnych, ani domniemanych, dotyczących informacji podanych tutaj.
Pobiera lub ustawia nazwę dostawcy niestandardowego z kolekcji Providers .
public:
property System::String ^ CustomProvider { System::String ^ get(); void set(System::String ^ value); };
[System.Configuration.ConfigurationProperty("customProvider", DefaultValue="")]
public string CustomProvider { get; set; }
[<System.Configuration.ConfigurationProperty("customProvider", DefaultValue="")>]
member this.CustomProvider : string with get, set
Public Property CustomProvider As String
Wartość nieruchomości
Nazwa dostawcy niestandardowego.
- Atrybuty
Przykłady
W poniższym przykładzie kodu pokazano, jak uzyskać CustomProvider właściwość .
// Display the current CustomProvider property value.
Console.WriteLine("CustomProvider: {0}",
sessionStateSection.CustomProvider);
' Display the current CustomProvider property value.
Console.WriteLine("CustomProvider: {0}", sessionStateSection.CustomProvider)
Uwagi
Dostawca jest używany tylko wtedy, gdy tryb stanu sesji jest ustawiony na Customwartość .