SharedPersonalizationStateInfo(String, DateTime, Int32, Int32, Int32) Construtor

Definição

Inicializa uma nova instância da classe SharedPersonalizationStateInfo.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)

Parâmetros

path
String

A página à qual as informações se aplicam.The page that the information applies to. path é um caminho virtual relativo a aplicativo (usando sintaxe de til).path is an application-relative (using tilde syntax) virtual path.

lastUpdatedDate
DateTime

Um DateTime indicando quando as informações compartilhadas da página foram atualizadas pela última vez.A DateTime indicating when the shared information for the page was last updated.

size
Int32

O tamanho, em bytes, das informações de estado compartilhado para a página.The size, in bytes, of the shared state information for the page.

sizeOfPersonalizations
Int32

O tamanho total, em bytes, de todas as informações de personalização por usuário que existem para a página.The total size, in bytes, of all per-user personalization information that exists for the page.

countOfPersonalizations
Int32

O número total de usuários que personalizaram a página.The total number of users who have personalized the page.

Exceções

path, quando cortada, é uma cadeia de caracteres vazia ("").path, when trimmed, is an empty string ("").

path é null.path is null.

size, sizeOfPersonalizations ou countOfPersonalizations é negativo.size, sizeOfPersonalizations or countOfPersonalizations is negative.

Comentários

O countOfPersonalizations parâmetro representa o número total de usuários que individualizaram uma página.The countOfPersonalizations parameter represents the total number of users who have personalized a page. Por exemplo, se 100 usuários personalizarem uma página, o valor de countOfPersonalizations para essa página será 100, e não 100 multiplicado pelo número de propriedades personalizadas.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. Observe que essa contagem pode ou não corresponder ao número total de linhas usadas no armazenamento de dados subjacente para persistir as informações por usuário, pois alguns provedores de armazenamento de dados usam várias linhas para armazenar informações de personalização por usuário para uma única combinação de usuário e de página.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.

Observe que path é cortado se não for nulo.Note that path is trimmed if non-null.

Aplica-se a