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 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)

Not applicable.

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 Server 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 Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0

Community Additions

ADD
Show: