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
- CharEnumerator.cs
- SqlDataSourceConfigureFilterForm.cs
- ScrollProviderWrapper.cs
- PointAnimation.cs
- FtpRequestCacheValidator.cs
- SystemColors.cs
- PipelineModuleStepContainer.cs
- UserControlAutomationPeer.cs
- OleDbRowUpdatingEvent.cs
- MachineKeySection.cs
- TypeGeneratedEventArgs.cs
- GacUtil.cs
- HierarchicalDataSourceControl.cs
- ProtectedProviderSettings.cs
- DefaultHttpHandler.cs
- ReferentialConstraint.cs
- SqlDesignerDataSourceView.cs
- NumberSubstitution.cs
- SurrogateSelector.cs
- ToolboxItem.cs
- PathFigureCollection.cs
- UiaCoreTypesApi.cs
- SqlDataSourceEnumerator.cs
- Menu.cs
- EntityDataSourceConfigureObjectContext.cs
- X509Certificate2.cs
- SiteMapDataSourceView.cs
- RangeValueProviderWrapper.cs
- KnownTypesHelper.cs
- EntityContainerEntitySetDefiningQuery.cs
- XslCompiledTransform.cs
- basecomparevalidator.cs
- _NegoStream.cs
- TcpConnectionPoolSettingsElement.cs
- AnonymousIdentificationSection.cs
- FileBasedResourceGroveler.cs
- ImageCodecInfoPrivate.cs
- FillRuleValidation.cs
- VersionUtil.cs
- TextTreeUndoUnit.cs
- TableItemProviderWrapper.cs
- ChangeToolStripParentVerb.cs
- InstallerTypeAttribute.cs
- RoutedEventConverter.cs
- ObjectStorage.cs
- DesignerTransaction.cs
- DataContractSerializerOperationBehavior.cs
- XmlRawWriterWrapper.cs
- ParentQuery.cs
- COAUTHINFO.cs
- XmlSchemaException.cs
- CapabilitiesState.cs
- RuntimeResourceSet.cs
- GZipStream.cs
- AnnotationHelper.cs
- SelectingProviderEventArgs.cs
- UntrustedRecipientException.cs
- XMLSyntaxException.cs
- PropertyItem.cs
- SecurityPolicySection.cs
- XmlSchemaExporter.cs
- SafeThemeHandle.cs
- Expr.cs
- WindowsRichEditRange.cs
- AsyncCodeActivityContext.cs
- DesignTimeVisibleAttribute.cs
- ObjectFactoryCodeDomTreeGenerator.cs
- GridItem.cs
- NumberFormatter.cs
- NativeMethodsCLR.cs
- ProfileModule.cs
- BooleanToVisibilityConverter.cs
- LinkLabelLinkClickedEvent.cs
- PropertyChangingEventArgs.cs
- Rotation3DKeyFrameCollection.cs
- ResizeGrip.cs
- ChineseLunisolarCalendar.cs
- DiscoveryDefaults.cs
- CredentialCache.cs
- ServiceModelConfigurationSection.cs
- StorageConditionPropertyMapping.cs
- ResolveDuplex11AsyncResult.cs
- XPathParser.cs
- CompositeTypefaceMetrics.cs
- HtmlTable.cs
- StructuredTypeEmitter.cs
- XmlEncoding.cs
- XhtmlBasicValidationSummaryAdapter.cs
- PolyBezierSegment.cs
- ReliabilityContractAttribute.cs
- CompensationHandlingFilter.cs
- RowCache.cs
- Signature.cs
- IncrementalHitTester.cs
- RuntimeEnvironment.cs
- TextDecorations.cs
- ListMarkerLine.cs
- RecordManager.cs
- ISessionStateStore.cs
- XmlDocumentFragment.cs