Code:
/ FX-1434 / FX-1434 / 1.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
- AsymmetricKeyExchangeDeformatter.cs
- WebBrowserHelper.cs
- Pkcs9Attribute.cs
- DataGridViewComboBoxColumnDesigner.cs
- MemberListBinding.cs
- TableItemPattern.cs
- WindowsFormsSectionHandler.cs
- XPathNodePointer.cs
- UnmanagedMemoryStreamWrapper.cs
- BindToObject.cs
- AstTree.cs
- BamlResourceSerializer.cs
- SqlPersonalizationProvider.cs
- GridViewHeaderRowPresenter.cs
- HostedElements.cs
- HtmlContainerControl.cs
- BitmapCodecInfo.cs
- TextTreeRootTextBlock.cs
- Geometry3D.cs
- DbMetaDataColumnNames.cs
- Polyline.cs
- Char.cs
- RenderContext.cs
- UIElement.cs
- PropertyPathWorker.cs
- ToolStripProfessionalLowResolutionRenderer.cs
- TdsParserHelperClasses.cs
- InertiaRotationBehavior.cs
- SevenBitStream.cs
- RuntimeWrappedException.cs
- LayoutEvent.cs
- ValueTable.cs
- TypeSystemHelpers.cs
- TraceXPathNavigator.cs
- QueuePropertyVariants.cs
- EntityProviderServices.cs
- X509SecurityToken.cs
- Vector3DAnimation.cs
- ResolvePPIDRequest.cs
- CodeSnippetStatement.cs
- FixedDocument.cs
- GridItemCollection.cs
- RequiredFieldValidator.cs
- UserNamePasswordValidator.cs
- PropertyRef.cs
- DependencyPropertyValueSerializer.cs
- Win32MouseDevice.cs
- FlowPanelDesigner.cs
- HttpResponseWrapper.cs
- ListBoxItemWrapperAutomationPeer.cs
- LinkClickEvent.cs
- DataGridViewCellErrorTextNeededEventArgs.cs
- TableItemProviderWrapper.cs
- FixedStringLookup.cs
- ByteStreamGeometryContext.cs
- RotateTransform3D.cs
- TypeInitializationException.cs
- JsonObjectDataContract.cs
- updatecommandorderer.cs
- QueryOutputWriterV1.cs
- DependencyPropertyChangedEventArgs.cs
- WindowsGraphics.cs
- SiteMapNodeCollection.cs
- DataList.cs
- ConfigurationLockCollection.cs
- DataGridColumnFloatingHeader.cs
- ChameleonKey.cs
- _RegBlobWebProxyDataBuilder.cs
- DoWorkEventArgs.cs
- DirectionalLight.cs
- serverconfig.cs
- SamlDoNotCacheCondition.cs
- LocatorGroup.cs
- WeakRefEnumerator.cs
- DurableInstancingOptions.cs
- WorkflowServiceBuildProvider.cs
- ScopelessEnumAttribute.cs
- IDQuery.cs
- CursorConverter.cs
- NamedObject.cs
- ComplusEndpointConfigContainer.cs
- ComNativeDescriptor.cs
- GregorianCalendarHelper.cs
- OdbcErrorCollection.cs
- ErrorEventArgs.cs
- XmlExpressionDumper.cs
- LinqDataSourceDisposeEventArgs.cs
- ElementProxy.cs
- Utils.cs
- __Error.cs
- LambdaValue.cs
- WindowsGraphicsCacheManager.cs
- MouseGestureConverter.cs
- TrailingSpaceComparer.cs
- XmlName.cs
- ConversionHelper.cs
- Converter.cs
- ListView.cs
- PeerContact.cs
- TextCharacters.cs