Udostępnij za pośrednictwem


SessionStateSection.CustomProvider Właściwość

Definicja

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ść właściwoś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ść .

Dotyczy

Zobacz też