Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / Web / UI / InternalControlCollection.cs / 1305376 / InternalControlCollection.cs
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------------
namespace System.Web.UI {
///
///
/// Represents a ControlCollection that controls can only be added to internally.
///
///
internal class InternalControlCollection : ControlCollection {
internal InternalControlCollection(Control owner) : base(owner) {
}
private void ThrowNotSupportedException() {
throw new HttpException(SR.GetString(SR.Control_does_not_allow_children,
Owner.GetType().ToString()));
}
public override void Add(Control child) {
ThrowNotSupportedException();
}
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
- SystemTcpConnection.cs
- PageFunction.cs
- ListViewItemSelectionChangedEvent.cs
- CatalogPartChrome.cs
- PersonalizableTypeEntry.cs
- UrlMappingsSection.cs
- AllMembershipCondition.cs
- FrameAutomationPeer.cs
- UserValidatedEventArgs.cs
- WmpBitmapEncoder.cs
- UnknownWrapper.cs
- HitTestFilterBehavior.cs
- TableCell.cs
- FileInfo.cs
- SqlDataSourceParameterParser.cs
- XmlWriter.cs
- RegisteredExpandoAttribute.cs
- ArgumentNullException.cs
- LogicalTreeHelper.cs
- SqlDataSourceFilteringEventArgs.cs
- ScrollContentPresenter.cs
- XmlStringTable.cs
- XPathDocumentBuilder.cs
- WindowsListViewItemCheckBox.cs
- DashStyles.cs
- TimersDescriptionAttribute.cs
- ToolBar.cs
- ApplicationTrust.cs
- DataGridViewRowPrePaintEventArgs.cs
- XmlHelper.cs
- TextStore.cs
- ThicknessAnimationUsingKeyFrames.cs
- FactoryMaker.cs
- XmlDataSource.cs
- XmlEventCache.cs
- ExpressionBindingCollection.cs
- input.cs
- DataControlImageButton.cs
- PropertyInformationCollection.cs
- GeometryConverter.cs
- InfoCardCryptoHelper.cs
- ConnectionStringEditor.cs
- TypeInitializationException.cs
- IndentedWriter.cs
- MULTI_QI.cs
- SID.cs
- MD5.cs
- RelationshipNavigation.cs
- LoadWorkflowCommand.cs
- MaterialGroup.cs
- Action.cs
- HashCryptoHandle.cs
- ParamArrayAttribute.cs
- SyncMethodInvoker.cs
- XmlAttributes.cs
- StorageInfo.cs
- Evidence.cs
- MarkupObject.cs
- ItemCollection.cs
- BasicCellRelation.cs
- XmlSiteMapProvider.cs
- CodeTypeMemberCollection.cs
- TabControlDesigner.cs
- DnsPermission.cs
- BuildResult.cs
- OciLobLocator.cs
- BidPrivateBase.cs
- ReadOnlyDataSourceView.cs
- HelpEvent.cs
- RelatedImageListAttribute.cs
- XmlArrayAttribute.cs
- PackageRelationship.cs
- ChangeBlockUndoRecord.cs
- Int32Storage.cs
- WaitForChangedResult.cs
- SoapAttributes.cs
- ConfigXmlReader.cs
- ComponentManagerBroker.cs
- JapaneseCalendar.cs
- SplineKeyFrames.cs
- OdbcFactory.cs
- CustomAssemblyResolver.cs
- XmlAttributes.cs
- DiscoveryService.cs
- ConditionedDesigner.cs
- BulletedListEventArgs.cs
- PageThemeParser.cs
- ColumnMap.cs
- StreamAsIStream.cs
- PersonalizableAttribute.cs
- DomainConstraint.cs
- InsufficientMemoryException.cs
- CurrentChangedEventManager.cs
- WebPartEventArgs.cs
- WindowsTitleBar.cs
- Debug.cs
- AccessDataSource.cs
- WindowsIPAddress.cs
- HttpInputStream.cs
- XmlIncludeAttribute.cs