संपादित करें

इसके माध्यम से साझा किया गया


SharedPersonalizationStateInfo(String, DateTime, Int32, Int32, Int32) Constructor

Definition

Initializes a new instance of the SharedPersonalizationStateInfo class.

public:
 SharedPersonalizationStateInfo(System::String ^ path, DateTime lastUpdatedDate, int size, int sizeOfPersonalizations, int countOfPersonalizations);
public SharedPersonalizationStateInfo (string path, DateTime lastUpdatedDate, int size, int sizeOfPersonalizations, int countOfPersonalizations);
new System.Web.UI.WebControls.WebParts.SharedPersonalizationStateInfo : string * DateTime * int * int * int -> System.Web.UI.WebControls.WebParts.SharedPersonalizationStateInfo
Public Sub New (path As String, lastUpdatedDate As DateTime, size As Integer, sizeOfPersonalizations As Integer, countOfPersonalizations As Integer)

Parameters

path
String

The page that the information applies to. path is an application-relative (using tilde syntax) virtual path.

lastUpdatedDate
DateTime

A DateTime indicating when the shared information for the page was last updated.

size
Int32

The size, in bytes, of the shared state information for the page.

sizeOfPersonalizations
Int32

The total size, in bytes, of all per-user personalization information that exists for the page.

countOfPersonalizations
Int32

The total number of users who have personalized the page.

Exceptions

path, when trimmed, is an empty string ("").

path is null.

size, sizeOfPersonalizations or countOfPersonalizations is negative.

Remarks

The countOfPersonalizations parameter represents the total number of users who have personalized a page. For example, if 100 users personalize a page, then the value of countOfPersonalizations for that page would be 100, not 100 multiplied by the number of personalized properties. Note that this count might or might not match the total number of rows used in the underlying data store to persist per-user information, because some data storage providers use multiple rows to store per-user personalization information for a single user and page combination.

Note that path is trimmed if non-null.

Applies to