Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / untmp / whidbey / QFE / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ControlAdapter.cs
- StrokeIntersection.cs
- DataGridColumnHeadersPresenterAutomationPeer.cs
- Psha1DerivedKeyGenerator.cs
- ReadOnlyState.cs
- NativeDirectoryServicesQueryAPIs.cs
- DependencyPropertyHelper.cs
- MessageQueueException.cs
- Psha1DerivedKeyGenerator.cs
- DialogResultConverter.cs
- Empty.cs
- CodeDelegateInvokeExpression.cs
- SemanticAnalyzer.cs
- GlobalEventManager.cs
- DataServiceClientException.cs
- SpeakInfo.cs
- XmlDocumentType.cs
- RegexParser.cs
- CalendarModeChangedEventArgs.cs
- WsiProfilesElement.cs
- ScrollProperties.cs
- HtmlElementCollection.cs
- UInt32Storage.cs
- ByteFacetDescriptionElement.cs
- RowBinding.cs
- ExpressionBuilder.cs
- BitSet.cs
- ScaleTransform.cs
- BitmapDecoder.cs
- ObjectManager.cs
- EdmTypeAttribute.cs
- X509UI.cs
- FileDialogCustomPlace.cs
- XsltOutput.cs
- COM2IPerPropertyBrowsingHandler.cs
- ProfileProvider.cs
- ObjectHandle.cs
- ArrayElementGridEntry.cs
- UpdateProgress.cs
- CodeRegionDirective.cs
- HScrollProperties.cs
- SemanticBasicElement.cs
- CharacterMetricsDictionary.cs
- HtmlGenericControl.cs
- EventLogTraceListener.cs
- Adorner.cs
- SectionXmlInfo.cs
- TrackingParameters.cs
- AssemblyName.cs
- Char.cs
- MaxValueConverter.cs
- DataObjectFieldAttribute.cs
- RelationshipSet.cs
- Transform.cs
- HttpHandlersSection.cs
- CLSCompliantAttribute.cs
- CacheAxisQuery.cs
- EnumUnknown.cs
- TraceHandler.cs
- RayMeshGeometry3DHitTestResult.cs
- CollectionChangedEventManager.cs
- CheckBoxList.cs
- SerTrace.cs
- CapacityStreamGeometryContext.cs
- ACL.cs
- XamlTreeBuilderBamlRecordWriter.cs
- DbConnectionPoolOptions.cs
- PeerCustomResolverElement.cs
- DateTimeStorage.cs
- __ComObject.cs
- RSAPKCS1KeyExchangeFormatter.cs
- InputLanguageProfileNotifySink.cs
- IPEndPointCollection.cs
- ToolboxItemSnapLineBehavior.cs
- CodeIterationStatement.cs
- ContractsBCL.cs
- CryptoConfig.cs
- thaishape.cs
- MediaSystem.cs
- FakeModelItemImpl.cs
- AppManager.cs
- CategoryGridEntry.cs
- ToolbarAUtomationPeer.cs
- FixedSOMPageConstructor.cs
- RawMouseInputReport.cs
- X509Certificate.cs
- BypassElementCollection.cs
- RequestResizeEvent.cs
- NativeRecognizer.cs
- MappedMetaModel.cs
- TextContainer.cs
- HttpRuntimeSection.cs
- SqlDuplicator.cs
- ConditionalAttribute.cs
- CheckedListBox.cs
- XmlSchemaAppInfo.cs
- TextEditorMouse.cs
- ObjectFullSpanRewriter.cs
- CollectionDataContract.cs
- GZipStream.cs