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
- GridViewCellAutomationPeer.cs
- SwitchElementsCollection.cs
- QilStrConcat.cs
- XamlPathDataSerializer.cs
- NotificationContext.cs
- coordinator.cs
- ActivityAction.cs
- ConfigUtil.cs
- SizeAnimationClockResource.cs
- SynchronousReceiveElement.cs
- InkCanvasSelection.cs
- CachedResourceDictionaryExtension.cs
- ISAPIRuntime.cs
- DataRowChangeEvent.cs
- EventSchemaTraceListener.cs
- MethodAccessException.cs
- Utils.cs
- EndpointAddress10.cs
- SmiRecordBuffer.cs
- _AutoWebProxyScriptWrapper.cs
- WebSysDefaultValueAttribute.cs
- CachingHintValidation.cs
- oledbconnectionstring.cs
- ToggleProviderWrapper.cs
- _Win32.cs
- ContractMapping.cs
- ScrollBar.cs
- SqlUserDefinedTypeAttribute.cs
- DrawingCollection.cs
- StreamSecurityUpgradeProvider.cs
- KeyedCollection.cs
- XPathNavigator.cs
- BoundsDrawingContextWalker.cs
- WebControlAdapter.cs
- SafeProcessHandle.cs
- DefaultAssemblyResolver.cs
- WebPartConnectionsConfigureVerb.cs
- IssuedTokenServiceElement.cs
- CfgSemanticTag.cs
- DbException.cs
- ParallelLoopState.cs
- UpDownBase.cs
- EmptyArray.cs
- Vector.cs
- AddressingVersion.cs
- SequentialUshortCollection.cs
- InertiaExpansionBehavior.cs
- EntitySetDataBindingList.cs
- ButtonRenderer.cs
- RadialGradientBrush.cs
- EditModeSwitchButton.cs
- ObjectCloneHelper.cs
- XmlBoundElement.cs
- ISO2022Encoding.cs
- WindowExtensionMethods.cs
- FileDialogCustomPlace.cs
- WebBrowserHelper.cs
- DefaultValueTypeConverter.cs
- TypeHelper.cs
- Label.cs
- PerformanceCounterPermissionEntry.cs
- SettingsPropertyCollection.cs
- ToolStripEditorManager.cs
- TemplateField.cs
- X509Chain.cs
- DesignerActionVerbItem.cs
- BamlLocalizer.cs
- listitem.cs
- XmlDataLoader.cs
- SrgsItemList.cs
- DesignerPerfEventProvider.cs
- SmiRequestExecutor.cs
- ExpandCollapseProviderWrapper.cs
- SemanticValue.cs
- Transform.cs
- _NetworkingPerfCounters.cs
- Int16AnimationUsingKeyFrames.cs
- ToolStripItemClickedEventArgs.cs
- Error.cs
- InputBuffer.cs
- SessionPageStatePersister.cs
- LinkButton.cs
- DescendantOverDescendantQuery.cs
- UTF8Encoding.cs
- Query.cs
- ImageBrush.cs
- ContentDisposition.cs
- CodeDomComponentSerializationService.cs
- HttpCachePolicy.cs
- PasswordDeriveBytes.cs
- WebServiceMethodData.cs
- ArrayTypeMismatchException.cs
- AmbiguousMatchException.cs
- SpellerError.cs
- RangeValueProviderWrapper.cs
- SqlDataReaderSmi.cs
- CrossContextChannel.cs
- CharEnumerator.cs
- XpsSerializationManagerAsync.cs
- SequenceDesigner.cs