Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / ndp / fx / src / xsp / System / Web / UI / EmptyControlCollection.cs / 1 / EmptyControlCollection.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.UI { using System; using System.Collections; using System.Security.Permissions; ////// [AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)] [AspNetHostingPermission(SecurityAction.InheritanceDemand, Level=AspNetHostingPermissionLevel.Minimal)] public class EmptyControlCollection : ControlCollection { ////// Represents a ControlCollection that is always empty. /// ////// public EmptyControlCollection(Control owner) : base(owner) { } private void ThrowNotSupportedException() { throw new HttpException(SR.GetString(SR.Control_does_not_allow_children, Owner.GetType().ToString())); } ///[To be supplied.] ////// public override void Add(Control child) { ThrowNotSupportedException(); } ///[To be supplied.] ////// public override void AddAt(int index, Control child) { ThrowNotSupportedException(); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //[To be supplied.] ///// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.UI { using System; using System.Collections; using System.Security.Permissions; ////// [AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)] [AspNetHostingPermission(SecurityAction.InheritanceDemand, Level=AspNetHostingPermissionLevel.Minimal)] public class EmptyControlCollection : ControlCollection { ////// Represents a ControlCollection that is always empty. /// ////// public EmptyControlCollection(Control owner) : base(owner) { } private void ThrowNotSupportedException() { throw new HttpException(SR.GetString(SR.Control_does_not_allow_children, Owner.GetType().ToString())); } ///[To be supplied.] ////// public override void Add(Control child) { ThrowNotSupportedException(); } ///[To be supplied.] ////// public override void AddAt(int index, Control child) { ThrowNotSupportedException(); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.[To be supplied.] ///
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- WebRequest.cs
- TextDecorations.cs
- PolicyVersionConverter.cs
- HttpConfigurationContext.cs
- ImageIndexConverter.cs
- EventSinkHelperWriter.cs
- SortAction.cs
- CapabilitiesSection.cs
- Crypto.cs
- XmlHierarchicalEnumerable.cs
- TransformProviderWrapper.cs
- DesignerListAdapter.cs
- GroupedContextMenuStrip.cs
- XmlHelper.cs
- ControlPersister.cs
- XhtmlConformanceSection.cs
- ClonableStack.cs
- Attachment.cs
- MediaScriptCommandRoutedEventArgs.cs
- FormsAuthenticationModule.cs
- EventMetadata.cs
- TextTreePropertyUndoUnit.cs
- StackBuilderSink.cs
- ViewLoader.cs
- SizeFConverter.cs
- ServiceNotStartedException.cs
- ToolboxDataAttribute.cs
- NetTcpSecurityElement.cs
- TriggerActionCollection.cs
- wgx_render.cs
- DbModificationClause.cs
- HMACSHA256.cs
- Soap.cs
- _HeaderInfoTable.cs
- StateWorkerRequest.cs
- Typography.cs
- WebPartCatalogCloseVerb.cs
- OptimalTextSource.cs
- ModelItemDictionaryImpl.cs
- UniqueIdentifierService.cs
- DataTemplateKey.cs
- StorageInfo.cs
- ListViewCancelEventArgs.cs
- ConfigurationManagerInternalFactory.cs
- X509Certificate2.cs
- DesignerRegionCollection.cs
- IDataContractSurrogate.cs
- CompilerTypeWithParams.cs
- _FtpDataStream.cs
- XPathNodeList.cs
- Misc.cs
- WindowsBrush.cs
- PageCopyCount.cs
- PermissionSetTriple.cs
- TdsParserStateObject.cs
- NumberFormatInfo.cs
- PropertyToken.cs
- ContextStaticAttribute.cs
- InProcStateClientManager.cs
- ConfigurationException.cs
- SqlReferenceCollection.cs
- _ProxyChain.cs
- WebContext.cs
- ChannelReliableSession.cs
- TransactionManager.cs
- FixedHyperLink.cs
- ApplicationCommands.cs
- BamlMapTable.cs
- SqlStatistics.cs
- InstanceKeyCompleteException.cs
- BackStopAuthenticationModule.cs
- XsdCachingReader.cs
- validation.cs
- DataAdapter.cs
- TraceSection.cs
- HScrollBar.cs
- DrawingBrush.cs
- PermissionSetEnumerator.cs
- HighlightComponent.cs
- AtomServiceDocumentSerializer.cs
- LinkButton.cs
- ContentType.cs
- SettingsProviderCollection.cs
- SuppressIldasmAttribute.cs
- ImmutableAssemblyCacheEntry.cs
- TableCell.cs
- DataControlLinkButton.cs
- Helpers.cs
- FunctionNode.cs
- HttpListenerRequest.cs
- QilTargetType.cs
- Line.cs
- CacheEntry.cs
- SharedPersonalizationStateInfo.cs
- WinEventHandler.cs
- BitmapEffectOutputConnector.cs
- WsatStrings.cs
- StorageAssociationSetMapping.cs
- AffineTransform3D.cs
- SettingsPropertyNotFoundException.cs