Code:
/ FX-1434 / FX-1434 / 1.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
- counter.cs
- GregorianCalendar.cs
- FlowPosition.cs
- FormsAuthenticationEventArgs.cs
- Thickness.cs
- QuaternionIndependentAnimationStorage.cs
- FrameworkElement.cs
- PassportAuthentication.cs
- DefaultAssemblyResolver.cs
- BoundColumn.cs
- GridViewRow.cs
- DependencyPropertyConverter.cs
- CutCopyPasteHelper.cs
- RuleAttributes.cs
- xmlglyphRunInfo.cs
- RequestDescription.cs
- COM2FontConverter.cs
- CodeMethodInvokeExpression.cs
- NativeRightsManagementAPIsStructures.cs
- DataGridViewRowConverter.cs
- DetailsViewModeEventArgs.cs
- GZipStream.cs
- XamlBuildProvider.cs
- ListenerAdaptersInstallComponent.cs
- DesignerLoader.cs
- SqlDataSourceStatusEventArgs.cs
- XmlWrappingReader.cs
- MetadataItemCollectionFactory.cs
- UpdateCommand.cs
- SettingsAttributes.cs
- MiniAssembly.cs
- SwitchLevelAttribute.cs
- QueryContinueDragEvent.cs
- OleDragDropHandler.cs
- GeneralTransform3DGroup.cs
- DataServiceRequest.cs
- WorkflowDataContext.cs
- BitmapMetadata.cs
- TimeZoneInfo.cs
- ParagraphVisual.cs
- QueryOutputWriter.cs
- FormParameter.cs
- UnmanagedBitmapWrapper.cs
- SqlGatherProducedAliases.cs
- SecurityUtils.cs
- SignatureToken.cs
- GlyphsSerializer.cs
- DateTimeFormatInfoScanner.cs
- RequestCachePolicyConverter.cs
- UnsafeNetInfoNativeMethods.cs
- contentDescriptor.cs
- NextPreviousPagerField.cs
- XmlChildNodes.cs
- _NegoState.cs
- SecurityContext.cs
- ReaderWriterLock.cs
- DashStyle.cs
- WorkItem.cs
- ListViewItem.cs
- WebPartUtil.cs
- WindowsEditBoxRange.cs
- EdmPropertyAttribute.cs
- WindowsPen.cs
- EmptyEnumerable.cs
- TemplateParser.cs
- _CacheStreams.cs
- Cursors.cs
- SettingsProperty.cs
- FieldDescriptor.cs
- DbProviderSpecificTypePropertyAttribute.cs
- Int32CAMarshaler.cs
- Config.cs
- MetadataArtifactLoaderFile.cs
- CurrentChangedEventManager.cs
- ReadOnlyAttribute.cs
- HtmlDocument.cs
- APCustomTypeDescriptor.cs
- SafeEventLogWriteHandle.cs
- SerializationEventsCache.cs
- SslStreamSecurityUpgradeProvider.cs
- SocketElement.cs
- EditableTreeList.cs
- validation.cs
- VersionedStreamOwner.cs
- LocalizableResourceBuilder.cs
- XmlImplementation.cs
- TreeNodeMouseHoverEvent.cs
- XmlDataSourceNodeDescriptor.cs
- Panel.cs
- JavaScriptObjectDeserializer.cs
- PauseStoryboard.cs
- DataGridLinkButton.cs
- ObjectDataSource.cs
- FixedSOMElement.cs
- XamlGridLengthSerializer.cs
- FileInfo.cs
- BindingObserver.cs
- HotSpotCollection.cs
- EndpointAddressMessageFilter.cs
- TokenizerHelper.cs