Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / ndp / fx / src / xsp / System / Web / UI / EmptyControlCollection.cs / 1 / EmptyControlCollection.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.UI { using System; using System.Collections; using System.Security.Permissions; ////// [AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)] [AspNetHostingPermission(SecurityAction.InheritanceDemand, Level=AspNetHostingPermissionLevel.Minimal)] public class EmptyControlCollection : ControlCollection { ////// Represents a ControlCollection that is always empty. /// ////// public EmptyControlCollection(Control owner) : base(owner) { } private void ThrowNotSupportedException() { throw new HttpException(SR.GetString(SR.Control_does_not_allow_children, Owner.GetType().ToString())); } ///[To be supplied.] ////// public override void Add(Control child) { ThrowNotSupportedException(); } ///[To be supplied.] ////// public override void AddAt(int index, Control child) { ThrowNotSupportedException(); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //[To be supplied.] ///// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.UI { using System; using System.Collections; using System.Security.Permissions; ////// [AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)] [AspNetHostingPermission(SecurityAction.InheritanceDemand, Level=AspNetHostingPermissionLevel.Minimal)] public class EmptyControlCollection : ControlCollection { ////// Represents a ControlCollection that is always empty. /// ////// public EmptyControlCollection(Control owner) : base(owner) { } private void ThrowNotSupportedException() { throw new HttpException(SR.GetString(SR.Control_does_not_allow_children, Owner.GetType().ToString())); } ///[To be supplied.] ////// public override void Add(Control child) { ThrowNotSupportedException(); } ///[To be supplied.] ////// public override void AddAt(int index, Control child) { ThrowNotSupportedException(); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.[To be supplied.] ///
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- WindowsGraphicsWrapper.cs
- RecordBuilder.cs
- JulianCalendar.cs
- RemotingServices.cs
- OperandQuery.cs
- fixedPageContentExtractor.cs
- ResolveNameEventArgs.cs
- AuthorizationRule.cs
- AccessedThroughPropertyAttribute.cs
- SafeMILHandle.cs
- DocumentViewerBaseAutomationPeer.cs
- ParseElement.cs
- ReferenceEqualityComparer.cs
- HttpPostLocalhostServerProtocol.cs
- CustomError.cs
- PrintControllerWithStatusDialog.cs
- RenameRuleObjectDialog.Designer.cs
- OleDbCommand.cs
- SafeCancelMibChangeNotify.cs
- DocumentScope.cs
- GenericWebPart.cs
- XMLUtil.cs
- CatalogPartChrome.cs
- RestHandlerFactory.cs
- Color.cs
- GrammarBuilder.cs
- StatusBar.cs
- listitem.cs
- TextTreeInsertElementUndoUnit.cs
- MethodRental.cs
- Properties.cs
- TextBoxLine.cs
- QueryAccessibilityHelpEvent.cs
- UnmanagedHandle.cs
- MetadataExchangeClient.cs
- AgileSafeNativeMemoryHandle.cs
- AssociationTypeEmitter.cs
- WebControlsSection.cs
- TextEditorTyping.cs
- InvalidPropValue.cs
- EventSetterHandlerConverter.cs
- UserPreference.cs
- MobileControlsSection.cs
- UserControlFileEditor.cs
- StoreContentChangedEventArgs.cs
- DispatcherExceptionEventArgs.cs
- NullableFloatAverageAggregationOperator.cs
- CapabilitiesSection.cs
- templategroup.cs
- ClientUriBehavior.cs
- ActivityTypeDesigner.xaml.cs
- Path.cs
- TemplateBaseAction.cs
- SymbolPair.cs
- PersonalizableAttribute.cs
- ModelPropertyCollectionImpl.cs
- IdentitySection.cs
- InfoCardAsymmetricCrypto.cs
- SafeNativeMethods.cs
- EdmItemError.cs
- Literal.cs
- MembershipSection.cs
- DataFormats.cs
- PageAsyncTaskManager.cs
- WebPartConnectionsConfigureVerb.cs
- ResourceDescriptionAttribute.cs
- TextPenaltyModule.cs
- ColumnTypeConverter.cs
- ObjectQuery.cs
- DataPagerFieldCollection.cs
- FixedPosition.cs
- OwnerDrawPropertyBag.cs
- EntityDataSourceQueryBuilder.cs
- ModelItemCollectionImpl.cs
- TypeInitializationException.cs
- AuthStoreRoleProvider.cs
- EmptyTextWriter.cs
- WebPartCancelEventArgs.cs
- BindingsSection.cs
- MultiSelectRootGridEntry.cs
- Assembly.cs
- EntityContainerEntitySetDefiningQuery.cs
- NavigationFailedEventArgs.cs
- DoubleAnimationBase.cs
- OperationGenerator.cs
- BoolExpr.cs
- TablePatternIdentifiers.cs
- CqlLexer.cs
- HijriCalendar.cs
- AuthorizationRuleCollection.cs
- XmlSchemaExporter.cs
- metadatamappinghashervisitor.cs
- TrimSurroundingWhitespaceAttribute.cs
- AbsoluteQuery.cs
- NullableIntMinMaxAggregationOperator.cs
- RowUpdatingEventArgs.cs
- DoubleCollectionValueSerializer.cs
- odbcmetadatacollectionnames.cs
- WebPartConnectionsConnectVerb.cs
- DataGridViewToolTip.cs