Επεξεργασία

Κοινή χρήση μέσω


WebPartPersonalization.ProviderName Property

Definition

Gets or sets the provider name for personalization.

public:
 virtual property System::String ^ ProviderName { System::String ^ get(); void set(System::String ^ value); };
public virtual string ProviderName { get; set; }
member this.ProviderName : string with get, set
Public Overridable Property ProviderName As String

Property Value

The name of the personalization provider.

Exceptions

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

Remarks

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.

Applies to

See also