|
Este artículo proviene de un motor de traducción automática. Mueva el puntero sobre las frases del artículo para ver el texto original. Más información.
|
Traducción
Original
|
StateBag (Clase)
Espacio de nombres: System.Web.UI
Ensamblado: System.Web (en System.Web.dll)
El tipo StateBag expone los siguientes miembros.
| Nombre | Descripción | |
|---|---|---|
![]() | StateBag() | |
![]() | StateBag(Boolean) |
| Nombre | Descripción | |
|---|---|---|
![]() | Count | |
![]() | Item | |
![]() | Keys | |
![]() | Values |
| Nombre | Descripción | |
|---|---|---|
![]() | Add | |
![]() | Clear | |
![]() | Equals(Object) | |
![]() | GetEnumerator | |
![]() | GetHashCode | |
![]() | GetType | |
![]() | IsItemDirty | |
![]() | Remove | |
![]() | SetDirty | |
![]() | SetItemDirty | |
![]() | ToString |
| Nombre | Descripción | |
|---|---|---|
![]() | AsParallel | |
![]() | AsQueryable | |
![]() | Cast<TResult> | |
![]() | OfType<TResult> |
| Nombre | Descripción | |
|---|---|---|
![]() ![]() | ICollection.CopyTo | |
![]() ![]() | ICollection.IsSynchronized | |
![]() ![]() | ICollection.SyncRoot | |
![]() ![]() | IDictionary.Add | |
![]() ![]() | IDictionary.Contains | |
![]() ![]() | IDictionary.IsFixedSize | |
![]() ![]() | IDictionary.IsReadOnly | |
![]() ![]() | IDictionary.Item | |
![]() ![]() | IDictionary.Remove | |
![]() ![]() | IEnumerable.GetEnumerator | |
![]() ![]() | IStateManager.IsTrackingViewState | |
![]() ![]() | IStateManager.LoadViewState | |
![]() ![]() | IStateManager.SaveViewState | |
![]() ![]() | IStateManager.TrackViewState |
// This control renders values stored in view state for Text and FontSize properties. using System; using System.Web; using System.Web.UI; namespace ViewStateControlSamples { public class CustomLabel : Control { private const int defaultFontSize = 3; // Add property values to view state with set; // retrieve them from view state with get. public String Text { get { object o = ViewState["Text"]; return (o == null)? String.Empty : (string)o; } set { ViewState["Text"] = value; } } public int FontSize { get { object o = ViewState["FontSize"]; return (o == null) ? defaultFontSize : (int)o; } set { ViewState["FontSize"] = value; } } [System.Security.Permissions.PermissionSet(System.Security.Permissions.SecurityAction.Demand, Name = "FullTrust")] protected override void Render(HtmlTextWriter output) { output.Write("<font size=" + this.FontSize.ToString() + ">" + this.Text + "</font>"); } } }
Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (no se admite el rol Server Core), Windows Server 2008 R2 (se admite el rol Server Core con SP1 o versiones posteriores; no se admite Itanium)
.NET Framework no admite todas las versiones de todas las plataformas. Para obtener una lista de las versiones compatibles, vea Requisitos de sistema de .NET Framework.

