WebPartPersonalization.ProviderName Property

Note: This property is new in the .NET Framework version 2.0.

Gets or sets the provider name for personalization.

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

public:
virtual property String^ ProviderName {
	String^ get ();
	void set (String^ value);
}
/** @property */
public String get_ProviderName ()

/** @property */
public void set_ProviderName (String value)

public function get ProviderName () : String

public function set ProviderName (value : String)

Property Value

The name of the personalization provider.

Exception typeCondition

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.

Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

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

.NET Framework

Supported in: 2.0

Community Additions

ADD
Show: