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 { ////// 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. //------------------------------------------------------------------------------ ///// 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(); } #if SHIPPINGADAPTERS internal void AddInternal(Control child) { base.Add(child); } #endif } } // 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
- BamlBinaryWriter.cs
- FileUpload.cs
- Exception.cs
- JournalEntry.cs
- TemplateManager.cs
- PropertyToken.cs
- AuthenticationModulesSection.cs
- IPHostEntry.cs
- RuntimeArgumentHandle.cs
- TabControl.cs
- MachineKey.cs
- Int32CollectionConverter.cs
- AdornerHitTestResult.cs
- XamlStream.cs
- ValidationEventArgs.cs
- BuildManager.cs
- SqlWebEventProvider.cs
- TimeSpan.cs
- DataControlPagerLinkButton.cs
- PartialToken.cs
- SafePointer.cs
- CorePropertiesFilter.cs
- Cursor.cs
- DataServiceQueryContinuation.cs
- XmlReflectionImporter.cs
- SymbolResolver.cs
- RuntimeCompatibilityAttribute.cs
- ResourceType.cs
- X509PeerCertificateElement.cs
- BinHexDecoder.cs
- TextBoxView.cs
- WebPartConnectionsCloseVerb.cs
- ClassValidator.cs
- SoapReflectionImporter.cs
- ClientCultureInfo.cs
- LightweightCodeGenerator.cs
- DataGridViewCellStateChangedEventArgs.cs
- DSASignatureDeformatter.cs
- NodeLabelEditEvent.cs
- ADMembershipProvider.cs
- IdentitySection.cs
- CodeMethodReturnStatement.cs
- DataControlLinkButton.cs
- Resources.Designer.cs
- ProtocolViolationException.cs
- GroupBox.cs
- InfoCardRSAPKCS1SignatureFormatter.cs
- SynchronousChannelMergeEnumerator.cs
- GridEntryCollection.cs
- UidPropertyAttribute.cs
- Set.cs
- TailPinnedEventArgs.cs
- PointAnimationUsingKeyFrames.cs
- GridViewItemAutomationPeer.cs
- FileEnumerator.cs
- XamlPathDataSerializer.cs
- WorkflowViewService.cs
- XhtmlBasicCalendarAdapter.cs
- AuthenticatingEventArgs.cs
- DbConnectionFactory.cs
- HtmlInputControl.cs
- EventListener.cs
- DesigntimeLicenseContextSerializer.cs
- CatalogPart.cs
- GetTokenRequest.cs
- ScrollItemPattern.cs
- AttributeAction.cs
- PropertyBuilder.cs
- HebrewCalendar.cs
- EllipticalNodeOperations.cs
- WhitespaceRuleReader.cs
- EntryWrittenEventArgs.cs
- NamespaceImport.cs
- DataView.cs
- BindingBase.cs
- ContextMenuAutomationPeer.cs
- NeutralResourcesLanguageAttribute.cs
- XmlValidatingReader.cs
- InputLanguageProfileNotifySink.cs
- HttpGetServerProtocol.cs
- HelpPage.cs
- HashCodeCombiner.cs
- ArgIterator.cs
- FlowLayoutPanel.cs
- LogExtentCollection.cs
- Transactions.cs
- WorkItem.cs
- InputBuffer.cs
- SplitterCancelEvent.cs
- CustomError.cs
- MSHTMLHost.cs
- RequestTimeoutManager.cs
- MouseActionConverter.cs
- Int32KeyFrameCollection.cs
- ServiceDesigner.cs
- SafeNativeMethods.cs
- ToolBarButtonClickEvent.cs
- StartFileNameEditor.cs
- LoadRetryStrategyFactory.cs
- KeyGestureValueSerializer.cs