WebPartPersonalization.HasPersonalizationState Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns a value indicating whether the current page and personalization scope have associated personalization data.
public:
virtual property bool HasPersonalizationState { bool get(); };
[System.ComponentModel.Browsable(false)]
public virtual bool HasPersonalizationState { get; }
[<System.ComponentModel.Browsable(false)>]
member this.HasPersonalizationState : bool
Public Overridable ReadOnly Property HasPersonalizationState As Boolean
Property Value
true
if the page has personalization data associated with it; otherwise, false
.
- Attributes
Exceptions
There is no personalization provider associated with the WebPartPersonalization instance. This can occur if the property is accessed prior to the completion of the associated WebPartManager control's OnInit(EventArgs) method.
-or-
The value of the Page property for the associated WebPartManager is null
.
-or-
The value of the Request property on the WebPartManager control's associated Page instance is null
.
Remarks
This is a convenient method for determining whether the current page and scope combination has personalization data associated with it. Internally, the method calls GetCountOfState on the provider to determine whether data exists.
Applies to
See also
.NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기