Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / ndp / fx / src / xsp / System / Web / UI / InternalControlCollection.cs / 1 / 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();
}
#if SHIPPINGADAPTERS
internal void AddInternal(Control child) {
base.Add(child);
}
#endif
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
//------------------------------------------------------------------------------
//
// 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();
}
#if SHIPPINGADAPTERS
internal void AddInternal(Control child) {
base.Add(child);
}
#endif
}
}
// 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
- DiffuseMaterial.cs
- RenderDataDrawingContext.cs
- XmlUtf8RawTextWriter.cs
- OperatingSystemVersionCheck.cs
- GroupBox.cs
- CompModSwitches.cs
- ForwardPositionQuery.cs
- MenuItemCollection.cs
- SmiSettersStream.cs
- Block.cs
- RemoveStoryboard.cs
- XmlSchemaAttributeGroup.cs
- TextDocumentView.cs
- SubtreeProcessor.cs
- ErrorItem.cs
- HttpProxyTransportBindingElement.cs
- DetailsView.cs
- DataViewManagerListItemTypeDescriptor.cs
- PropertyDescriptorComparer.cs
- TranslateTransform.cs
- EmptyReadOnlyDictionaryInternal.cs
- CodeNamespace.cs
- Win32.cs
- OperationInfoBase.cs
- RsaKeyIdentifierClause.cs
- BodyGlyph.cs
- recordstatescratchpad.cs
- GeometryHitTestParameters.cs
- SerialReceived.cs
- ThreadExceptionDialog.cs
- SessionPageStatePersister.cs
- MonthChangedEventArgs.cs
- ResourcePool.cs
- ServiceReflector.cs
- ProjectionRewriter.cs
- EnumerableRowCollection.cs
- WinFormsComponentEditor.cs
- WorkflowItemPresenter.cs
- AsymmetricKeyExchangeFormatter.cs
- DataControlLinkButton.cs
- AssemblyCache.cs
- XmlILOptimizerVisitor.cs
- XmlSerializerAssemblyAttribute.cs
- DataBindingHandlerAttribute.cs
- ManageRequest.cs
- ListMarkerLine.cs
- UserPersonalizationStateInfo.cs
- SafeNativeMethods.cs
- CultureInfoConverter.cs
- ExpandCollapsePattern.cs
- UndirectedGraph.cs
- TranslateTransform.cs
- DeleteMemberBinder.cs
- DefaultValueConverter.cs
- ActivityCollectionMarkupSerializer.cs
- ResourcesChangeInfo.cs
- RemotingServices.cs
- Matrix.cs
- DesignerVerbCollection.cs
- ScrollPattern.cs
- ProfileManager.cs
- basenumberconverter.cs
- ModelServiceImpl.cs
- UseLicense.cs
- SecurityHelper.cs
- IsolatedStorageSecurityState.cs
- ProvidersHelper.cs
- ZipIOEndOfCentralDirectoryBlock.cs
- Stroke.cs
- ConnectionStringsSection.cs
- ThreadWorkerController.cs
- ScrollProviderWrapper.cs
- GetWinFXPath.cs
- DataExpression.cs
- PackageRelationship.cs
- ControlFilterExpression.cs
- ZipFileInfo.cs
- ChtmlMobileTextWriter.cs
- DecoderFallbackWithFailureFlag.cs
- TypeBrowser.xaml.cs
- UnaryExpression.cs
- ItemDragEvent.cs
- TimeSpanMinutesOrInfiniteConverter.cs
- __ConsoleStream.cs
- TextRange.cs
- OpCellTreeNode.cs
- SystemTcpConnection.cs
- SafeRightsManagementPubHandle.cs
- FileDialogCustomPlace.cs
- TimelineGroup.cs
- ProgressChangedEventArgs.cs
- StaticSiteMapProvider.cs
- SqlStream.cs
- XamlStream.cs
- PreparingEnlistment.cs
- KnownColorTable.cs
- XNodeNavigator.cs
- Select.cs
- ObservableDictionary.cs
- ExpandableObjectConverter.cs