SessionStateSection.CustomProvider Property


Gets or sets the name of the custom provider from the Providers collection.

Namespace:   System.Web.Configuration
Assembly:  System.Web (in System.Web.dll)

[ConfigurationPropertyAttribute("customProvider", DefaultValue = "")]
public string CustomProvider { get; set; }

Property Value

Type: System.String

The custom provider name.

The provider is only used when the session-state mode is set to Custom.

The following code example demonstrates how to get the CustomProvider property.

// Display the current CustomProvider property value.
Console.WriteLine("CustomProvider: {0}",

.NET Framework
Available since 2.0
Return to top