Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / 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(); } } }[To be supplied.] ///
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- AttachedPropertyInfo.cs
- PageRanges.cs
- ObjectConverter.cs
- HttpValueCollection.cs
- Parser.cs
- ValidationHelper.cs
- PropertyFilter.cs
- DataBindEngine.cs
- ReadOnlyAttribute.cs
- ResetableIterator.cs
- FreezableCollection.cs
- VisualBasicReference.cs
- ChainOfResponsibility.cs
- DataGridViewImageCell.cs
- BrushValueSerializer.cs
- UIntPtr.cs
- XPathNode.cs
- ValidationResult.cs
- SpellerHighlightLayer.cs
- HotSpotCollection.cs
- MustUnderstandSoapException.cs
- HeaderLabel.cs
- MethodMessage.cs
- ListViewPagedDataSource.cs
- counter.cs
- CompiledQueryCacheKey.cs
- DBDataPermission.cs
- ElementNotAvailableException.cs
- Journal.cs
- QueryStringParameter.cs
- ForeignConstraint.cs
- Calendar.cs
- HelpEvent.cs
- EntityKeyElement.cs
- IntSecurity.cs
- RelationshipWrapper.cs
- Transform.cs
- NoneExcludedImageIndexConverter.cs
- DrawingContextDrawingContextWalker.cs
- PerspectiveCamera.cs
- Base64Decoder.cs
- UInt16.cs
- OleDbCommand.cs
- FileInfo.cs
- ConnectionString.cs
- DbException.cs
- RepeaterItemCollection.cs
- EventHandlersStore.cs
- InputLanguageSource.cs
- CollectionBuilder.cs
- OdbcEnvironment.cs
- DataGridViewBindingCompleteEventArgs.cs
- SqlNamer.cs
- DataGridViewRowsAddedEventArgs.cs
- WithStatement.cs
- ResourceDictionaryCollection.cs
- InvariantComparer.cs
- WebPartCatalogCloseVerb.cs
- FileAuthorizationModule.cs
- PathGradientBrush.cs
- ReachPageContentCollectionSerializer.cs
- SqlNodeTypeOperators.cs
- SqlConnectionHelper.cs
- ConstraintCollection.cs
- XmlDictionaryWriter.cs
- PopOutPanel.cs
- OrderedParallelQuery.cs
- XDRSchema.cs
- ValueQuery.cs
- Events.cs
- LabelLiteral.cs
- MetadataCache.cs
- XmlArrayAttribute.cs
- InternalDuplexChannelListener.cs
- InputScopeManager.cs
- GrowingArray.cs
- ControlCollection.cs
- AdornerPresentationContext.cs
- IPEndPoint.cs
- AffineTransform3D.cs
- BufferedReadStream.cs
- PropertyToken.cs
- SerializationInfo.cs
- ToolStripRendererSwitcher.cs
- MediaTimeline.cs
- PartialCachingControl.cs
- NamespaceInfo.cs
- DefaultValueAttribute.cs
- AnnouncementEndpoint.cs
- RSAPKCS1KeyExchangeDeformatter.cs
- QilPatternFactory.cs
- PointLightBase.cs
- Focus.cs
- UriSection.cs
- Attributes.cs
- SHA256.cs
- WebScriptMetadataFormatter.cs
- ErrorTableItemStyle.cs
- LabelLiteral.cs
- WebPartDisplayMode.cs