Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / ndp / fx / src / xsp / System / Web / UI / DesignTimeParseData.cs / 1 / DesignTimeParseData.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.UI { using System; using System.Collections; using System.Collections.Generic; using System.ComponentModel; using System.ComponentModel.Design; using System.Security.Permissions; ///[AspNetHostingPermission(SecurityAction.LinkDemand, Level = AspNetHostingPermissionLevel.Minimal)] public sealed class DesignTimeParseData { private IDesignerHost _designerHost; private string _documentUrl; private EventHandler _dataBindingHandler; private string _parseText; private string _filter; private bool _shouldApplyTheme = false; private ICollection _userControlRegisterEntries; public DesignTimeParseData(IDesignerHost designerHost, string parseText) : this(designerHost, parseText, String.Empty) { } public DesignTimeParseData(IDesignerHost designerHost, string parseText, string filter) { // note that designerHost can be null, we continue on without using any designer-specific services. if (String.IsNullOrEmpty(parseText)) { throw new ArgumentNullException("parseText"); } _designerHost = designerHost; _parseText = parseText; _filter = filter; } public bool ShouldApplyTheme { get { return _shouldApplyTheme; } set { _shouldApplyTheme = value; } } public EventHandler DataBindingHandler { get { return _dataBindingHandler; } set { _dataBindingHandler = value; } } public IDesignerHost DesignerHost { get { return _designerHost; } } public string DocumentUrl { get { if (_documentUrl == null) { return String.Empty; } return _documentUrl; } set { _documentUrl = value; } } public string Filter { get { if (_filter == null) { return String.Empty; } return _filter; } } public string ParseText { get { return _parseText; } } public ICollection UserControlRegisterEntries { get { return _userControlRegisterEntries; } } internal void SetUserControlRegisterEntries(ICollection userControlRegisterEntries, List tagRegisterEntries) { if (userControlRegisterEntries == null && tagRegisterEntries == null) { return; } List allEntries = new List (); if (userControlRegisterEntries != null) { foreach (UserControlRegisterEntry entry in userControlRegisterEntries) { allEntries.Add(new Triplet(entry.TagPrefix, new Pair(entry.TagName, entry.UserControlSource.ToString()), null)); } } if (tagRegisterEntries != null) { foreach (TagNamespaceRegisterEntry entry in tagRegisterEntries) { allEntries.Add(new Triplet(entry.TagPrefix, null, new Pair(entry.Namespace, entry.AssemblyName))); } } _userControlRegisterEntries = allEntries; } } }
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- RulePatternOps.cs
- Shape.cs
- CommonRemoteMemoryBlock.cs
- MarshalByValueComponent.cs
- PrintDialogException.cs
- handlecollector.cs
- Transform3DGroup.cs
- SoapTypeAttribute.cs
- HostingEnvironment.cs
- FtpRequestCacheValidator.cs
- EncryptedType.cs
- ApplicationGesture.cs
- ImmComposition.cs
- DiscreteKeyFrames.cs
- InvokeCompletedEventArgs.cs
- ServerTooBusyException.cs
- Metadata.cs
- SqlBulkCopy.cs
- Point4D.cs
- FontWeight.cs
- ConfigurationElement.cs
- SpecialFolderEnumConverter.cs
- FontSourceCollection.cs
- TimersDescriptionAttribute.cs
- AuthenticateEventArgs.cs
- EdmToObjectNamespaceMap.cs
- Reference.cs
- CopyAction.cs
- Version.cs
- IDQuery.cs
- PreProcessInputEventArgs.cs
- CustomErrorsSection.cs
- BamlRecordReader.cs
- SapiAttributeParser.cs
- UseLicense.cs
- DesignerEventService.cs
- SqlUserDefinedAggregateAttribute.cs
- DtrList.cs
- TemplateKey.cs
- CodeTypeConstructor.cs
- DictionaryEditChange.cs
- StatusStrip.cs
- ColumnWidthChangingEvent.cs
- SoapCommonClasses.cs
- Timeline.cs
- UnmanagedBitmapWrapper.cs
- CompiledXpathExpr.cs
- StateFinalizationActivity.cs
- DataGridViewHeaderCell.cs
- Convert.cs
- MappingItemCollection.cs
- EntityModelSchemaGenerator.cs
- isolationinterop.cs
- ListenerHandler.cs
- KeySpline.cs
- DataGridViewElement.cs
- WsatConfiguration.cs
- DataAdapter.cs
- EpmTargetTree.cs
- CodeNamespaceImport.cs
- CustomError.cs
- ResourceDictionary.cs
- versioninfo.cs
- FontSourceCollection.cs
- SparseMemoryStream.cs
- CssTextWriter.cs
- FormsAuthenticationEventArgs.cs
- DataBindingHandlerAttribute.cs
- ParameterEditorUserControl.cs
- PerformanceCounterLib.cs
- CodeCompiler.cs
- SecurityPolicySection.cs
- InternalConfigHost.cs
- SQLSingle.cs
- SystemEvents.cs
- CodePropertyReferenceExpression.cs
- GetKeyedHashRequest.cs
- SecurityTokenAuthenticator.cs
- GuidConverter.cs
- AsyncStreamReader.cs
- TimelineGroup.cs
- HttpListenerException.cs
- Comparer.cs
- DataGridViewCellConverter.cs
- GeneralTransform2DTo3DTo2D.cs
- CaseInsensitiveOrdinalStringComparer.cs
- FileFormatException.cs
- PenContext.cs
- ConfigUtil.cs
- SevenBitStream.cs
- PenLineCapValidation.cs
- DirtyTextRange.cs
- Accessible.cs
- GenericWebPart.cs
- TableLayoutPanelCodeDomSerializer.cs
- TcpConnectionPoolSettingsElement.cs
- XamlToRtfParser.cs
- SigningDialog.cs
- NativeMethods.cs
- COM2Enum.cs