Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- EventLogConfiguration.cs
- httpserverutility.cs
- Rotation3D.cs
- TableHeaderCell.cs
- SoapSchemaImporter.cs
- CacheOutputQuery.cs
- XPathParser.cs
- InvalidEnumArgumentException.cs
- WindowsHyperlink.cs
- ColumnResizeAdorner.cs
- ArgumentOutOfRangeException.cs
- Control.cs
- ObjectAnimationUsingKeyFrames.cs
- XmlSerializerVersionAttribute.cs
- LocalizableAttribute.cs
- ListenerElementsCollection.cs
- DataRelationCollection.cs
- WeakReference.cs
- Stack.cs
- AuthorizationRuleCollection.cs
- FlagsAttribute.cs
- DebugView.cs
- SecurityUtils.cs
- InstanceContextManager.cs
- EditorZoneBase.cs
- Rijndael.cs
- XmlValidatingReader.cs
- TraceLog.cs
- SecurityRuntime.cs
- PatternMatcher.cs
- XmlSchemaInclude.cs
- DataGridViewCell.cs
- InternalBufferOverflowException.cs
- EntityProviderFactory.cs
- ClaimTypeRequirement.cs
- AdapterDictionary.cs
- DataGridViewCell.cs
- MatrixAnimationUsingPath.cs
- RoleManagerEventArgs.cs
- PackageProperties.cs
- ListBoxAutomationPeer.cs
- Font.cs
- IsolatedStorage.cs
- UpDownEvent.cs
- ExtendedPropertiesHandler.cs
- ProtocolProfile.cs
- Parameter.cs
- CommandBindingCollection.cs
- StrongNamePublicKeyBlob.cs
- DiffuseMaterial.cs
- Rights.cs
- ToolStripContainer.cs
- FormParameter.cs
- SqlNodeTypeOperators.cs
- OracleSqlParser.cs
- ToolStripDropDownClosingEventArgs.cs
- TraceSection.cs
- SiteMapNodeItem.cs
- UnsafeNativeMethods.cs
- DefaultTypeArgumentAttribute.cs
- HtmlElement.cs
- TextAdaptor.cs
- TextTreeRootTextBlock.cs
- ParentUndoUnit.cs
- QilInvokeLateBound.cs
- ParallelLoopState.cs
- AutoResetEvent.cs
- Psha1DerivedKeyGeneratorHelper.cs
- ReflectEventDescriptor.cs
- SchemaElementLookUpTable.cs
- MetadataCollection.cs
- XmlFormatExtensionAttribute.cs
- StructuralType.cs
- processwaithandle.cs
- IpcManager.cs
- GatewayDefinition.cs
- ActiveXHost.cs
- WizardSideBarListControlItemEventArgs.cs
- TextOutput.cs
- DataBinder.cs
- Expressions.cs
- DashStyles.cs
- IApplicationTrustManager.cs
- MorphHelper.cs
- CopyOnWriteList.cs
- ServiceBusyException.cs
- SwitchCase.cs
- Model3D.cs
- DataSourceProvider.cs
- InternalBufferOverflowException.cs
- TreeNodeStyle.cs
- IPEndPointCollection.cs
- ApplicationFileParser.cs
- RichTextBox.cs
- SizeChangedInfo.cs
- CatalogZone.cs
- ScriptResourceHandler.cs
- Size3D.cs
- SortDescriptionCollection.cs
- GlyphInfoList.cs