Export (0) Print
Expand All

WebPartPersonalization.ProviderName Property

Gets or sets the provider name for personalization.

Namespace:  System.Web.UI.WebControls.WebParts
Assembly:  System.Web (in System.Web.dll)

public virtual string ProviderName { get; set; }

Property Value

Type: System.String
The name of the personalization provider.

ExceptionCondition
InvalidOperationException

An attempt was made to set this property to a value other than its current value after the WebPartManager control's OnInit method has completed.

This property returns the value set for this property in the page declaration. If this property was not set, it returns Empty. In this case, the page uses the default personalization provider specified in the configuration file.

This property can only be set prior to the completion of the WebPartManager control's OnInit method. This means the ProviderName property must be set in the page declaration on the WebPartManager element. Alternatively, this property can be set during the PreInit phase.

.NET Framework

Supported in: 4.5.3, 4, 3.5, 3.0, 2.0

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Show:
© 2014 Microsoft