Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / Web / UI / EmptyControlCollection.cs / 1305376 / 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.
///
///
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();
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
//------------------------------------------------------------------------------
//
// 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.
///
///
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();
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- FormCollection.cs
- SiteMapNode.cs
- XmlAttributeCache.cs
- WebPartMenu.cs
- ComponentDesigner.cs
- SimpleLine.cs
- PageThemeCodeDomTreeGenerator.cs
- ProviderBase.cs
- ErrorWebPart.cs
- CmsInterop.cs
- ResourcesGenerator.cs
- ServerValidateEventArgs.cs
- BaseUriHelper.cs
- SetStoryboardSpeedRatio.cs
- MatchingStyle.cs
- GlyphCache.cs
- MultiBindingExpression.cs
- ExpressionPrefixAttribute.cs
- DataGridTablesFactory.cs
- ImageListImageEditor.cs
- SetStateEventArgs.cs
- QueryAccessibilityHelpEvent.cs
- IdentifierCollection.cs
- StoreContentChangedEventArgs.cs
- XPathQueryGenerator.cs
- Stroke.cs
- SqlBulkCopyColumnMapping.cs
- MultiAsyncResult.cs
- _RequestLifetimeSetter.cs
- SyndicationFeed.cs
- ParameterReplacerVisitor.cs
- TaskFileService.cs
- ListItemCollection.cs
- PeerChannelListener.cs
- ListBindingConverter.cs
- AsyncResult.cs
- SimpleBitVector32.cs
- ExpressionBuilderContext.cs
- DBConnection.cs
- UnmanagedMemoryStreamWrapper.cs
- WebPartDisplayModeEventArgs.cs
- xamlnodes.cs
- DataSourceControlBuilder.cs
- HostedHttpRequestAsyncResult.cs
- DayRenderEvent.cs
- UInt32Converter.cs
- SystemResourceKey.cs
- PageContent.cs
- WpfMemberInvoker.cs
- DataGridHeaderBorder.cs
- ListBoxItemWrapperAutomationPeer.cs
- TreeView.cs
- ToolTipAutomationPeer.cs
- ToolStripItemClickedEventArgs.cs
- PrintControllerWithStatusDialog.cs
- HtmlControlPersistable.cs
- VirtualStackFrame.cs
- DispatchWrapper.cs
- SearchForVirtualItemEventArgs.cs
- Win32.cs
- SQLChars.cs
- MimeBasePart.cs
- ComponentDesigner.cs
- ReadOnlyDataSourceView.cs
- ObjectManager.cs
- LoginView.cs
- BaseTemplateParser.cs
- Substitution.cs
- MarkupWriter.cs
- DesignOnlyAttribute.cs
- DBParameter.cs
- WindowsImpersonationContext.cs
- SettingsPropertyValue.cs
- IpcChannel.cs
- OleStrCAMarshaler.cs
- XslException.cs
- CodeGenerationManager.cs
- ADMembershipProvider.cs
- TextRangeBase.cs
- SessionStateUtil.cs
- DataGridViewTextBoxEditingControl.cs
- OleDbDataAdapter.cs
- WizardStepBase.cs
- DataBindEngine.cs
- TypeSystemProvider.cs
- LinqDataSourceStatusEventArgs.cs
- XmlReflectionImporter.cs
- PrintEvent.cs
- EntitySetDataBindingList.cs
- DataServiceCollectionOfT.cs
- FlowDocumentScrollViewerAutomationPeer.cs
- ApplicationServicesHostFactory.cs
- addressfiltermode.cs
- CompilerLocalReference.cs
- HwndSource.cs
- OracleRowUpdatingEventArgs.cs
- DataAdapter.cs
- GridViewSortEventArgs.cs
- CodeAttributeDeclarationCollection.cs
- EditingMode.cs