Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / ndp / fx / src / Designer / WebForms / System / Web / UI / Design / ControlPersister.cs / 1 / ControlPersister.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.UI.Design { using System; using System.Web; using System.Web.UI; using System.Web.UI.HtmlControls; using System.Web.UI.WebControls; using System.Collections; using System.ComponentModel; using System.ComponentModel.Design; using System.Diagnostics; using System.IO; using System.Reflection; using System.Text; using AttributeCollection = System.Web.UI.AttributeCollection; ////// /// [System.Security.Permissions.SecurityPermission(System.Security.Permissions.SecurityAction.Demand, Flags=System.Security.Permissions.SecurityPermissionFlag.UnmanagedCode)] public sealed class ControlPersister { ////// Provides helper functions used in persisting Controls. /// ////// /// We don't want instances of this class to be created, so mark /// the constructor as private. /// private ControlPersister() { } ////// /// public static string PersistInnerProperties(object component, IDesignerHost host) { return ControlSerializer.SerializeInnerProperties(component, host); } ////// Gets a string that can persist the inner properties of a control. /// ////// /// public static void PersistInnerProperties(TextWriter sw, object component, IDesignerHost host) { ControlSerializer.SerializeInnerProperties(component, host, sw); } ////// Persists the inner properties of the control. /// ////// /// public static string PersistControl(Control control) { return ControlSerializer.SerializeControl(control); } ////// Gets a string that can /// persist a control. /// ////// /// public static string PersistControl(Control control, IDesignerHost host) { return ControlSerializer.SerializeControl(control, host); } ////// Returns a string that can /// persist a control. /// ////// /// public static void PersistControl(TextWriter sw, Control control) { ControlSerializer.SerializeControl(control, sw); } ////// Persists a control using the /// specified string writer. /// ////// /// public static void PersistControl(TextWriter sw, Control control, IDesignerHost host) { ControlSerializer.SerializeControl(control, host, sw); } public static string PersistTemplate(ITemplate template, IDesignerHost host) { return ControlSerializer.SerializeTemplate(template, host); } public static void PersistTemplate(TextWriter writer, ITemplate template, IDesignerHost host) { ControlSerializer.SerializeTemplate(template, writer, host); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved./// Persists a control using the /// specified string writer. /// ///
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- DbProviderSpecificTypePropertyAttribute.cs
- SafeNativeMethodsOther.cs
- CalendarBlackoutDatesCollection.cs
- IRCollection.cs
- DataGrid.cs
- WmlLiteralTextAdapter.cs
- NaturalLanguageHyphenator.cs
- ContentDesigner.cs
- ConsoleCancelEventArgs.cs
- Cursors.cs
- AnnotationAuthorChangedEventArgs.cs
- ClientData.cs
- XmlSerializerOperationFormatter.cs
- HeaderCollection.cs
- XslCompiledTransform.cs
- GraphicsPath.cs
- EntityFunctions.cs
- ConstraintCollection.cs
- COM2Enum.cs
- PopupRoot.cs
- XmlArrayItemAttributes.cs
- NamedElement.cs
- FilterElement.cs
- PointHitTestParameters.cs
- CodeVariableDeclarationStatement.cs
- TypeDescriptionProvider.cs
- AppSettingsExpressionBuilder.cs
- SystemWebSectionGroup.cs
- SamlDoNotCacheCondition.cs
- PathGeometry.cs
- DataServiceClientException.cs
- ReadOnlyObservableCollection.cs
- ConstraintCollection.cs
- CodeRemoveEventStatement.cs
- CalendarData.cs
- InternalBufferOverflowException.cs
- CancellationTokenSource.cs
- XmlSchemaAttributeGroup.cs
- Style.cs
- RIPEMD160.cs
- sqlpipe.cs
- WsatStrings.cs
- ProtectedProviderSettings.cs
- ErasingStroke.cs
- OrderedDictionaryStateHelper.cs
- ListViewCommandEventArgs.cs
- EmptyEnumerable.cs
- LOSFormatter.cs
- PackageRelationshipSelector.cs
- StringWriter.cs
- InheritedPropertyChangedEventArgs.cs
- WebEventTraceProvider.cs
- FtpRequestCacheValidator.cs
- SimpleType.cs
- NamedPipeTransportSecurityElement.cs
- StandardCommands.cs
- RIPEMD160.cs
- GorillaCodec.cs
- PixelFormats.cs
- Exceptions.cs
- OleAutBinder.cs
- XmlStreamStore.cs
- Guid.cs
- ProviderIncompatibleException.cs
- DelegatedStream.cs
- VSDExceptions.cs
- GlobalizationAssembly.cs
- ProviderCollection.cs
- InsufficientMemoryException.cs
- LayoutSettings.cs
- RepeaterCommandEventArgs.cs
- SoapDocumentServiceAttribute.cs
- DesignerCategoryAttribute.cs
- DataGridColumnHeaderAutomationPeer.cs
- MenuAutoFormat.cs
- DefaultPrintController.cs
- DefaultBinder.cs
- SoapTypeAttribute.cs
- UdpMessageProperty.cs
- Translator.cs
- SecurityTokenTypes.cs
- ListControlBuilder.cs
- ListViewItemMouseHoverEvent.cs
- NavigatorInput.cs
- SystemIPGlobalProperties.cs
- ThreadPool.cs
- DataComponentMethodGenerator.cs
- SimplePropertyEntry.cs
- InteropEnvironment.cs
- Expression.cs
- TextBoxLine.cs
- ButtonPopupAdapter.cs
- XmlConvert.cs
- ADMembershipProvider.cs
- ColorTranslator.cs
- CustomWebEventKey.cs
- Int32Animation.cs
- XmlChoiceIdentifierAttribute.cs
- CompilerTypeWithParams.cs
- DataGridHelper.cs