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
- ProtocolsConfiguration.cs
- DictionaryContent.cs
- TextServicesProperty.cs
- TextTrailingCharacterEllipsis.cs
- ParameterToken.cs
- TreeNodeCollection.cs
- NetworkInformationException.cs
- VSWCFServiceContractGenerator.cs
- ExpressionBuilderContext.cs
- BinaryNode.cs
- _KerberosClient.cs
- DataSourceCache.cs
- CheckBox.cs
- ListManagerBindingsCollection.cs
- coordinator.cs
- DataGridViewDesigner.cs
- ProcessModule.cs
- ImageListStreamer.cs
- Function.cs
- MemberMaps.cs
- Material.cs
- FixedSOMTable.cs
- _RequestCacheProtocol.cs
- DataSourceGroupCollection.cs
- Debug.cs
- CodeValidator.cs
- UdpTransportSettings.cs
- XPathAxisIterator.cs
- HtmlTable.cs
- TerminatorSinks.cs
- SslStreamSecurityBindingElement.cs
- XmlEntity.cs
- ProfileSettings.cs
- OutputCacheSection.cs
- MetafileHeaderWmf.cs
- ToolboxComponentsCreatingEventArgs.cs
- AssemblyBuilderData.cs
- BamlTreeNode.cs
- UnauthorizedAccessException.cs
- PageRequestManager.cs
- TypeSource.cs
- LinqToSqlWrapper.cs
- StorageTypeMapping.cs
- ToolboxCategory.cs
- DiscoveryDocument.cs
- TaskFormBase.cs
- SerializerProvider.cs
- XmlReaderDelegator.cs
- TypeResolver.cs
- VerificationAttribute.cs
- MimeTypeAttribute.cs
- TextRunTypographyProperties.cs
- VirtualPath.cs
- Guid.cs
- PageParserFilter.cs
- ContextMenuStrip.cs
- StyleBamlTreeBuilder.cs
- QuerySettings.cs
- SqlTypesSchemaImporter.cs
- ProfileManager.cs
- UserControlDesigner.cs
- XmlWrappingReader.cs
- CompositeActivityTypeDescriptor.cs
- XPathBinder.cs
- X509Certificate.cs
- PkcsMisc.cs
- CharEnumerator.cs
- XmlSchemaComplexContentRestriction.cs
- HttpConfigurationSystem.cs
- ScriptModule.cs
- SafeThreadHandle.cs
- DataGridViewHeaderCell.cs
- VariableAction.cs
- HttpModuleAction.cs
- X509Chain.cs
- DataSpaceManager.cs
- PageBuildProvider.cs
- HtmlContainerControl.cs
- TrackingValidationObjectDictionary.cs
- AnnotationResourceCollection.cs
- Automation.cs
- HttpException.cs
- TextServicesManager.cs
- ColumnMapTranslator.cs
- StorageEntityContainerMapping.cs
- TabletCollection.cs
- HttpsChannelFactory.cs
- XmlTextReader.cs
- DBCommand.cs
- HtmlLink.cs
- ServicePrincipalNameElement.cs
- SecurityException.cs
- UnsafeNativeMethodsTablet.cs
- StoreItemCollection.cs
- CompilerScopeManager.cs
- SplitterCancelEvent.cs
- WebPartRestoreVerb.cs
- TableLayoutSettingsTypeConverter.cs
- EdmItemError.cs
- ItemContainerGenerator.cs