Code:
/ FX-1434 / FX-1434 / 1.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
- FixedTextContainer.cs
- SemanticBasicElement.cs
- DataServiceConfiguration.cs
- StyleXamlTreeBuilder.cs
- ConstantSlot.cs
- Byte.cs
- LeaseManager.cs
- SoapObjectInfo.cs
- VolatileEnlistmentState.cs
- DbParameterCollectionHelper.cs
- ConfigurationValidatorAttribute.cs
- Path.cs
- PartialTrustValidationBehavior.cs
- pingexception.cs
- FileSecurity.cs
- UnsafePeerToPeerMethods.cs
- DataGridCellEditEndingEventArgs.cs
- SQLSingleStorage.cs
- DataGridViewAccessibleObject.cs
- WmlValidationSummaryAdapter.cs
- RSAOAEPKeyExchangeDeformatter.cs
- AsyncOperationContext.cs
- ObjectSpanRewriter.cs
- ValidationError.cs
- RangeValueProviderWrapper.cs
- PropertySet.cs
- NotImplementedException.cs
- BigInt.cs
- DynamicValueConverter.cs
- WindowsTreeView.cs
- FrameworkElementFactoryMarkupObject.cs
- WebAdminConfigurationHelper.cs
- HashCodeCombiner.cs
- SqlConnectionFactory.cs
- CheckBoxStandardAdapter.cs
- CatchBlock.cs
- NegationPusher.cs
- CompatibleIComparer.cs
- ZoneIdentityPermission.cs
- EncoderReplacementFallback.cs
- Pair.cs
- TlsnegoTokenAuthenticator.cs
- DecodeHelper.cs
- ViewCellRelation.cs
- StorageInfo.cs
- ProfileGroupSettings.cs
- DrawingVisual.cs
- PenContexts.cs
- CompressionTracing.cs
- Stream.cs
- RangeBase.cs
- BitmapSourceSafeMILHandle.cs
- BrowsableAttribute.cs
- DocumentViewerAutomationPeer.cs
- TextWriterTraceListener.cs
- PackageDigitalSignature.cs
- TypeDefinition.cs
- PrimaryKeyTypeConverter.cs
- CompilerParameters.cs
- AsymmetricSignatureDeformatter.cs
- CombinedGeometry.cs
- AssociationProvider.cs
- WS2007FederationHttpBinding.cs
- DataServiceResponse.cs
- SByteStorage.cs
- ObjectResult.cs
- HttpModuleAction.cs
- CrossSiteScriptingValidation.cs
- ImageAnimator.cs
- PingReply.cs
- RegexCaptureCollection.cs
- SmiContextFactory.cs
- AssociativeAggregationOperator.cs
- ListenerElementsCollection.cs
- TransactionChannelListener.cs
- DoWhileDesigner.xaml.cs
- CustomWebEventKey.cs
- MarginsConverter.cs
- LookupNode.cs
- RoleGroupCollectionEditor.cs
- SqlXml.cs
- XhtmlBasicTextViewAdapter.cs
- InputLangChangeRequestEvent.cs
- BooleanExpr.cs
- CreateSequence.cs
- SqlError.cs
- HostingEnvironment.cs
- WriteFileContext.cs
- HideDisabledControlAdapter.cs
- BamlRecords.cs
- ADConnectionHelper.cs
- handlecollector.cs
- PropertyEmitterBase.cs
- PropertyValueChangedEvent.cs
- TextTreeInsertUndoUnit.cs
- TypedElement.cs
- RowToFieldTransformer.cs
- BamlVersionHeader.cs
- SqlBooleanizer.cs
- QilStrConcatenator.cs