Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / DEVDIV / depot / DevDiv / releases / 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 { ////// 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. //------------------------------------------------------------------------------ ///// 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. // Copyright (c) Microsoft Corporation. All rights reserved./// 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
- GraphicsContext.cs
- TextTreeRootTextBlock.cs
- HttpCacheParams.cs
- PolyLineSegment.cs
- PDBReader.cs
- PolygonHotSpot.cs
- TextWriterTraceListener.cs
- TreeViewDesigner.cs
- EntityDataSourceSelectedEventArgs.cs
- ToolStripArrowRenderEventArgs.cs
- SqlMethodCallConverter.cs
- diagnosticsswitches.cs
- GetIndexBinder.cs
- FontNamesConverter.cs
- EdmComplexTypeAttribute.cs
- ExtensionSurface.cs
- BigInt.cs
- FlatButtonAppearance.cs
- SelfIssuedAuthAsymmetricKey.cs
- Triangle.cs
- PrimitiveDataContract.cs
- CaseInsensitiveHashCodeProvider.cs
- EntityTypeBase.cs
- RequestSecurityTokenForGetBrowserToken.cs
- KnownIds.cs
- TableParagraph.cs
- X509CertificateClaimSet.cs
- XmlEntityReference.cs
- CompressStream.cs
- SystemSounds.cs
- RuleSettings.cs
- WebBrowserUriTypeConverter.cs
- HitTestDrawingContextWalker.cs
- ReadOnlyPropertyMetadata.cs
- EventLogPermissionEntryCollection.cs
- clipboard.cs
- WorkflowServiceBuildProvider.cs
- OleStrCAMarshaler.cs
- AccessibleObject.cs
- TransformPatternIdentifiers.cs
- LinkedList.cs
- WebDisplayNameAttribute.cs
- DbConnectionInternal.cs
- WebPartVerbsEventArgs.cs
- NamedObject.cs
- _NtlmClient.cs
- AuthorizationRule.cs
- RepeaterItemCollection.cs
- InputLangChangeRequestEvent.cs
- HtmlEmptyTagControlBuilder.cs
- SqlGenericUtil.cs
- DataGridViewBand.cs
- DataGridViewColumnDesignTimeVisibleAttribute.cs
- UrlUtility.cs
- CheckBoxRenderer.cs
- NumberAction.cs
- Variant.cs
- QilFactory.cs
- ResXResourceReader.cs
- Hashtable.cs
- ManualWorkflowSchedulerService.cs
- ListViewItem.cs
- SimpleTableProvider.cs
- XsltException.cs
- PassportPrincipal.cs
- BamlStream.cs
- OleDbWrapper.cs
- NameValueFileSectionHandler.cs
- XPathParser.cs
- WindowsBrush.cs
- PeerTransportBindingElement.cs
- LayoutExceptionEventArgs.cs
- ControlCachePolicy.cs
- InfiniteTimeSpanConverter.cs
- RuntimeComponentFilter.cs
- Options.cs
- Internal.cs
- SpeechRecognizer.cs
- GridViewItemAutomationPeer.cs
- OdbcStatementHandle.cs
- WindowProviderWrapper.cs
- StackOverflowException.cs
- ExceptionList.cs
- DesignSurfaceCollection.cs
- MSAAEventDispatcher.cs
- DynamicValidatorEventArgs.cs
- LinkedResource.cs
- LinqDataSource.cs
- CodeLabeledStatement.cs
- BaseValidatorDesigner.cs
- DebugView.cs
- InputMethodStateTypeInfo.cs
- basemetadatamappingvisitor.cs
- DBConcurrencyException.cs
- GPRECTF.cs
- ComponentCommands.cs
- XslCompiledTransform.cs
- ToolboxItemFilterAttribute.cs
- ManipulationBoundaryFeedbackEventArgs.cs
- RelativeSource.cs