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;
///
///
/// Represents a ControlCollection that is always empty.
///
///
[AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)]
[AspNetHostingPermission(SecurityAction.InheritanceDemand, Level=AspNetHostingPermissionLevel.Minimal)]
public class EmptyControlCollection : ControlCollection {
///
/// [To be supplied.]
///
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();
}
}
}
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- StagingAreaInputItem.cs
- HtmlTableCell.cs
- SiteMapNodeItem.cs
- CommandLineParser.cs
- ReaderContextStackData.cs
- SqlDataSourceStatusEventArgs.cs
- FileSystemEnumerable.cs
- XmlMemberMapping.cs
- WindowsBrush.cs
- DataGridItem.cs
- MethodCallTranslator.cs
- QualifiedCellIdBoolean.cs
- UrlMappingsSection.cs
- Listbox.cs
- GradientStop.cs
- SerialPinChanges.cs
- ToolStripItemEventArgs.cs
- LinkLabel.cs
- TcpConnectionPool.cs
- NavigationWindow.cs
- DoubleCollectionValueSerializer.cs
- TextEvent.cs
- GenericAuthenticationEventArgs.cs
- SchemaNotation.cs
- ColumnCollectionEditor.cs
- ListChangedEventArgs.cs
- InfiniteTimeSpanConverter.cs
- TTSEvent.cs
- URLIdentityPermission.cs
- DocumentCollection.cs
- CustomTypeDescriptor.cs
- DriveInfo.cs
- DataGridLinkButton.cs
- RuleEngine.cs
- AsymmetricSignatureFormatter.cs
- ArgumentNullException.cs
- GradientBrush.cs
- SchemaCollectionPreprocessor.cs
- NonBatchDirectoryCompiler.cs
- ProviderConnectionPoint.cs
- Message.cs
- JoinCqlBlock.cs
- FormView.cs
- XmlSerializer.cs
- TypeUnloadedException.cs
- XmlSchemaCollection.cs
- XPathScanner.cs
- PointCollection.cs
- CorrelationManager.cs
- SoapReflectionImporter.cs
- ClickablePoint.cs
- ParameterInfo.cs
- SchemaNames.cs
- Hex.cs
- UserMapPath.cs
- DbTransaction.cs
- DetailsViewRowCollection.cs
- MexTcpBindingCollectionElement.cs
- ISessionStateStore.cs
- XmlCountingReader.cs
- XmlSchemaImport.cs
- BackgroundFormatInfo.cs
- ArrayWithOffset.cs
- ColorConvertedBitmap.cs
- Selector.cs
- QuotedPrintableStream.cs
- Transform3DGroup.cs
- RestClientProxyHandler.cs
- AuthenticationSection.cs
- listviewsubitemcollectioneditor.cs
- Exception.cs
- BroadcastEventHelper.cs
- ErrorCodes.cs
- SolidColorBrush.cs
- PartitionedStreamMerger.cs
- IndexedString.cs
- SafeEventLogWriteHandle.cs
- EventProxy.cs
- ErrorFormatterPage.cs
- XmlTextReaderImplHelpers.cs
- MimeObjectFactory.cs
- PropertyInfo.cs
- GiveFeedbackEventArgs.cs
- SqlUtil.cs
- Overlapped.cs
- ArgumentException.cs
- SiteMapNode.cs
- PropertyPushdownHelper.cs
- BaseDataBoundControlDesigner.cs
- Size3D.cs
- ObjectIDGenerator.cs
- BehaviorEditorPart.cs
- SqlUnionizer.cs
- BookmarkScope.cs
- sqlpipe.cs
- RegexRunnerFactory.cs
- SqlUDTStorage.cs
- DataTable.cs
- ToolStripHighContrastRenderer.cs
- messageonlyhwndwrapper.cs