Code:
/ 4.0 / 4.0 / 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 { ////// 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. //------------------------------------------------------------------------------ ///// Represents a ControlCollection that controls can only be added to internally. /// ///// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.UI { ////// 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./// Represents a ControlCollection that controls can only be added to internally. /// ///
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- HashMembershipCondition.cs
- TreeViewItem.cs
- SoapServerMethod.cs
- StringFormat.cs
- FlagsAttribute.cs
- IERequestCache.cs
- ReferencedAssembly.cs
- SqlNodeTypeOperators.cs
- ZipIOLocalFileBlock.cs
- WebPartDisplayModeEventArgs.cs
- TextDecorationCollection.cs
- ServicePointManager.cs
- ThicknessConverter.cs
- AddressHeaderCollectionElement.cs
- GridViewCancelEditEventArgs.cs
- ProviderUtil.cs
- ImageIndexConverter.cs
- InkCanvasAutomationPeer.cs
- DesignerForm.cs
- COM2IVsPerPropertyBrowsingHandler.cs
- XmlConvert.cs
- OledbConnectionStringbuilder.cs
- WorkflowOperationAsyncResult.cs
- MimeBasePart.cs
- PassportAuthentication.cs
- IisTraceListener.cs
- Debugger.cs
- DynamicHyperLink.cs
- DataKey.cs
- WorkflowViewService.cs
- UtilityExtension.cs
- SafeNativeMethodsCLR.cs
- WindowPattern.cs
- ToolStripItem.cs
- COM2PropertyPageUITypeConverter.cs
- selecteditemcollection.cs
- AsymmetricSecurityProtocol.cs
- CodePageEncoding.cs
- TypeSemantics.cs
- CollectionBuilder.cs
- BinaryWriter.cs
- DeviceOverridableAttribute.cs
- EntityParameter.cs
- RelationshipConverter.cs
- WpfKnownMember.cs
- AccessorTable.cs
- HelpKeywordAttribute.cs
- Atom10ItemFormatter.cs
- CodeExpressionCollection.cs
- ClonableStack.cs
- NullableConverter.cs
- ImportContext.cs
- ActivityPropertyReference.cs
- MessagePropertyFilter.cs
- DSACryptoServiceProvider.cs
- InvariantComparer.cs
- ProcessInputEventArgs.cs
- DataGridRowEventArgs.cs
- AddingNewEventArgs.cs
- Site.cs
- DiscoveryReference.cs
- ServiceDocument.cs
- ExpandableObjectConverter.cs
- ThreadInterruptedException.cs
- XmlCountingReader.cs
- COM2ICategorizePropertiesHandler.cs
- XmlSchemaAppInfo.cs
- LogManagementAsyncResult.cs
- ConfigPathUtility.cs
- NullableLongSumAggregationOperator.cs
- DataGridViewRowHeaderCell.cs
- XamlUtilities.cs
- WindowsPen.cs
- SystemTcpConnection.cs
- DataGridViewRowContextMenuStripNeededEventArgs.cs
- PeerResolver.cs
- EntityClientCacheKey.cs
- CounterCreationDataConverter.cs
- LineBreakRecord.cs
- SmtpFailedRecipientException.cs
- DataGridItemEventArgs.cs
- AppDomainManager.cs
- ImageAttributes.cs
- XmlDocumentType.cs
- DbConnectionPoolOptions.cs
- InheritanceService.cs
- DataGridPageChangedEventArgs.cs
- OdbcConnectionOpen.cs
- ObservableDictionary.cs
- TransactionProxy.cs
- ApplicationContext.cs
- ReadOnlyDataSourceView.cs
- QueryableDataSourceHelper.cs
- DateTimeAutomationPeer.cs
- WebPartDescriptionCollection.cs
- DBNull.cs
- WebPartConnectionsCloseVerb.cs
- ChineseLunisolarCalendar.cs
- ComNativeDescriptor.cs
- RegistryConfigurationProvider.cs