Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / ndp / fx / src / Designer / WebForms / System / Web / UI / Design / ControlParser.cs / 1 / ControlParser.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.UI.Design { using System; using System.ComponentModel; using System.ComponentModel.Design; using System.Diagnostics; using System.Reflection; using System.Text; using System.Web.UI; ////// /// [System.Security.Permissions.SecurityPermission(System.Security.Permissions.SecurityAction.Demand, Flags=System.Security.Permissions.SecurityPermissionFlag.UnmanagedCode)] public sealed class ControlParser { private ControlParser() { } ///[To be supplied.] ////// /// public static Control ParseControl(IDesignerHost designerHost, string controlText) { if (designerHost == null) { throw new ArgumentNullException("designerHost"); } if ((controlText == null) || (controlText.Length == 0)) { throw new ArgumentNullException("controlText"); } return ControlSerializer.DeserializeControl(controlText, designerHost); } ///[To be supplied.] ////// /// internal static Control ParseControl(IDesignerHost designerHost, string controlText, bool applyTheme) { if (designerHost == null) { throw new ArgumentNullException("designerHost"); } if ((controlText == null) || (controlText.Length == 0)) { throw new ArgumentNullException("controlText"); } return ControlSerializer.DeserializeControlInternal(controlText, designerHost, applyTheme); } ///[To be supplied.] ////// /// public static Control ParseControl(IDesignerHost designerHost, string controlText, string directives) { if (designerHost == null) { throw new ArgumentNullException("designerHost"); } if ((controlText == null) || (controlText.Length == 0)) { throw new ArgumentNullException("controlText"); } if ((directives != null) && (directives.Length != 0)) { controlText = directives + controlText; } return ControlSerializer.DeserializeControl(controlText, designerHost); } public static Control[] ParseControls(IDesignerHost designerHost, string controlText) { if (designerHost == null) { throw new ArgumentNullException("designerHost"); } if ((controlText == null) || (controlText.Length == 0)) { throw new ArgumentNullException("controlText"); } return ControlSerializer.DeserializeControls(controlText, designerHost); } ///[To be supplied.] ////// /// public static ITemplate ParseTemplate(IDesignerHost designerHost, string templateText) { if (designerHost == null) { throw new ArgumentNullException("designerHost"); } return ControlSerializer.DeserializeTemplate(templateText, designerHost); } ///[To be supplied.] ////// /// public static ITemplate ParseTemplate(IDesignerHost designerHost, string templateText, string directives) { if (designerHost == null) { throw new ArgumentNullException("designerHost"); } return ControlSerializer.DeserializeTemplate(templateText, designerHost); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.[To be supplied.] ///
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- WebZone.cs
- ProxyWebPart.cs
- SelectionProcessor.cs
- TableChangeProcessor.cs
- TypeGenericEnumerableViewSchema.cs
- ListViewContainer.cs
- HtmlWindowCollection.cs
- MouseEventArgs.cs
- XhtmlConformanceSection.cs
- HttpSessionStateWrapper.cs
- ExternalFile.cs
- DataServiceHost.cs
- EntityUtil.cs
- ResourceReferenceKeyNotFoundException.cs
- DataColumn.cs
- KeyProperty.cs
- BamlLocalizationDictionary.cs
- SqlMethodAttribute.cs
- UdpReplyToBehavior.cs
- UnmanagedMemoryStreamWrapper.cs
- StrokeCollectionDefaultValueFactory.cs
- AsyncResult.cs
- ComboBoxAutomationPeer.cs
- ModelItemCollection.cs
- CompoundFileStreamReference.cs
- WebPartConnectionsCancelVerb.cs
- TypeInitializationException.cs
- ScaleTransform3D.cs
- ValueType.cs
- EmbeddedMailObjectsCollection.cs
- GridItemPattern.cs
- GZipDecoder.cs
- KeyFrames.cs
- TabPanel.cs
- mediapermission.cs
- ToolStripManager.cs
- SplitterEvent.cs
- columnmapkeybuilder.cs
- Monitor.cs
- MessageQueuePermissionEntry.cs
- ButtonChrome.cs
- ReversePositionQuery.cs
- ContextMenu.cs
- selecteditemcollection.cs
- PeerApplicationLaunchInfo.cs
- XmlAttributeHolder.cs
- DependentList.cs
- AudioBase.cs
- TableRowGroupCollection.cs
- XmlIlGenerator.cs
- DataGridViewRowCollection.cs
- Int16Animation.cs
- CompressedStack.cs
- AssemblyBuilder.cs
- EntitySqlQueryBuilder.cs
- ThreadStartException.cs
- WindowsListViewScroll.cs
- UriParserTemplates.cs
- PersonalizationEntry.cs
- WebPartConnectionsCancelVerb.cs
- RadioButtonPopupAdapter.cs
- GC.cs
- SymmetricAlgorithm.cs
- EntityWithChangeTrackerStrategy.cs
- SignatureDescription.cs
- Timeline.cs
- ClientScriptItem.cs
- OdbcReferenceCollection.cs
- GeometryGroup.cs
- DPCustomTypeDescriptor.cs
- CommandID.cs
- SerializationInfo.cs
- ChannelReliableSession.cs
- UnmanagedHandle.cs
- WindowsToolbarAsMenu.cs
- NotImplementedException.cs
- Propagator.JoinPropagator.cs
- FrameSecurityDescriptor.cs
- CodeObject.cs
- IPEndPointCollection.cs
- ContainerUtilities.cs
- CachedFontFamily.cs
- PagesChangedEventArgs.cs
- TreeView.cs
- RuntimeConfig.cs
- OrCondition.cs
- AutoResetEvent.cs
- DockPanel.cs
- EntityDataSourceStatementEditor.cs
- VisualStateChangedEventArgs.cs
- TrackingProfileSerializer.cs
- RepeatInfo.cs
- ObjectNavigationPropertyMapping.cs
- OperandQuery.cs
- GeometryDrawing.cs
- CodeAccessSecurityEngine.cs
- AgileSafeNativeMemoryHandle.cs
- ActivityScheduledQuery.cs
- ColumnMapCopier.cs
- HtmlSelectionListAdapter.cs