Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / Web / UI / DesignTimeParseData.cs / 1305376 / 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; ///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; } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ // // 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; ///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; } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- CompatibleComparer.cs
- FlowLayoutPanelDesigner.cs
- ByteStreamGeometryContext.cs
- EntityStoreSchemaFilterEntry.cs
- infer.cs
- DebugTrace.cs
- TextParagraphCache.cs
- WinFormsUtils.cs
- SoapElementAttribute.cs
- Number.cs
- ListControl.cs
- CodeBlockBuilder.cs
- SmtpNegotiateAuthenticationModule.cs
- ConfigDefinitionUpdates.cs
- UriParserTemplates.cs
- ValidationErrorCollection.cs
- NamespaceExpr.cs
- RequestNavigateEventArgs.cs
- BidPrivateBase.cs
- OutputCache.cs
- MaskInputRejectedEventArgs.cs
- Closure.cs
- TextContainerChangeEventArgs.cs
- WebPartsSection.cs
- TrackingStringDictionary.cs
- ByteFacetDescriptionElement.cs
- ScalarType.cs
- DataGridBoolColumn.cs
- EngineSiteSapi.cs
- TextFormatterHost.cs
- TagElement.cs
- FlowDocumentView.cs
- AvTrace.cs
- ObjectMemberMapping.cs
- HandleExceptionArgs.cs
- FixedSOMTableCell.cs
- UnsafeNativeMethods.cs
- WebPart.cs
- HashHelper.cs
- SchemaConstraints.cs
- TraceLog.cs
- GuidelineCollection.cs
- MessageVersion.cs
- MappingMetadataHelper.cs
- RightsManagementEncryptedStream.cs
- ReferencedType.cs
- RectAnimationBase.cs
- ApplicationFileCodeDomTreeGenerator.cs
- WindowsStatic.cs
- GroupLabel.cs
- RtfControlWordInfo.cs
- ShapeTypeface.cs
- TracePayload.cs
- TextServicesProperty.cs
- Ppl.cs
- RichTextBox.cs
- LinkedResource.cs
- TextLineResult.cs
- DocumentReference.cs
- DeadCharTextComposition.cs
- PanelStyle.cs
- IdnMapping.cs
- DataGridViewAutoSizeColumnModeEventArgs.cs
- DictionaryChange.cs
- PropertyCondition.cs
- GotoExpression.cs
- RijndaelManaged.cs
- DbDataReader.cs
- TreeViewCancelEvent.cs
- DataListItem.cs
- SectionRecord.cs
- DataGridViewComboBoxColumnDesigner.cs
- XmlNode.cs
- SHA256.cs
- SimpleTableProvider.cs
- HashCodeCombiner.cs
- TaskScheduler.cs
- ConfigXmlSignificantWhitespace.cs
- PageBuildProvider.cs
- DrawingContextWalker.cs
- ProtocolElement.cs
- Splitter.cs
- RemoteWebConfigurationHostServer.cs
- _PooledStream.cs
- CompositeControl.cs
- HtmlHead.cs
- ExpressionDumper.cs
- UnsafeNativeMethods.cs
- ObfuscateAssemblyAttribute.cs
- NavigationPropertyEmitter.cs
- TargetParameterCountException.cs
- MultiViewDesigner.cs
- DesignDataSource.cs
- LoginName.cs
- QueryCursorEventArgs.cs
- ByteConverter.cs
- ConnectionProviderAttribute.cs
- SettingsPropertyValue.cs
- ScriptManager.cs
- Stylus.cs