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
- InternalResources.cs
- ColumnHeader.cs
- DependencySource.cs
- ISessionStateStore.cs
- ObjectDisposedException.cs
- UserPreferenceChangingEventArgs.cs
- BamlResourceContent.cs
- HttpCachePolicyWrapper.cs
- UIElementParagraph.cs
- IdentitySection.cs
- ListenerPerfCounters.cs
- CheckBoxStandardAdapter.cs
- RtfControls.cs
- FormViewPagerRow.cs
- Int32RectValueSerializer.cs
- ProfileSettingsCollection.cs
- SystemMulticastIPAddressInformation.cs
- TextRangeProviderWrapper.cs
- PageCatalogPart.cs
- COM2EnumConverter.cs
- DataControlFieldCollection.cs
- UIElementPropertyUndoUnit.cs
- EntityDataSourceViewSchema.cs
- PathSegmentCollection.cs
- DataBoundControlDesigner.cs
- ConditionCollection.cs
- ScaleTransform.cs
- ConnectionPointCookie.cs
- FileAuthorizationModule.cs
- DocumentPageViewAutomationPeer.cs
- CodeEventReferenceExpression.cs
- BaseCollection.cs
- QilTernary.cs
- TriggerBase.cs
- XmlILCommand.cs
- ServicePointManager.cs
- ReadOnlyCollectionBase.cs
- ProfileSettingsCollection.cs
- RemotingConfigParser.cs
- WebPartTransformerCollection.cs
- DoubleCollectionConverter.cs
- SubMenuStyleCollection.cs
- ComponentEditorForm.cs
- Win32Native.cs
- TaskResultSetter.cs
- DataGridViewSelectedCellCollection.cs
- WebProxyScriptElement.cs
- GenericPrincipal.cs
- SecurityPolicySection.cs
- ReservationNotFoundException.cs
- DivideByZeroException.cs
- XmlCharType.cs
- URLString.cs
- BrowserTree.cs
- GenerateScriptTypeAttribute.cs
- WebPartDeleteVerb.cs
- FlowDocumentPaginator.cs
- TraceSection.cs
- PointLight.cs
- TextTreeTextBlock.cs
- SqlGenerator.cs
- DataGridViewCellParsingEventArgs.cs
- FontFamilyConverter.cs
- CmsInterop.cs
- InitializerFacet.cs
- URL.cs
- TemplateFactory.cs
- ExcCanonicalXml.cs
- XmlRootAttribute.cs
- StringAnimationBase.cs
- CharEntityEncoderFallback.cs
- InputLanguageEventArgs.cs
- Speller.cs
- WebPartMenuStyle.cs
- CodeMemberEvent.cs
- EmptyEnumerable.cs
- SmiMetaDataProperty.cs
- ProtocolsConfiguration.cs
- OAVariantLib.cs
- DrawingCollection.cs
- AppSettingsReader.cs
- WebPartCatalogCloseVerb.cs
- ProgressBarAutomationPeer.cs
- DeploymentSectionCache.cs
- ValidationErrorCollection.cs
- XamlHostingSectionGroup.cs
- UriTemplateDispatchFormatter.cs
- GridViewDeletedEventArgs.cs
- CharacterMetricsDictionary.cs
- RSAPKCS1SignatureDeformatter.cs
- VisualState.cs
- DBSqlParserColumn.cs
- CharConverter.cs
- KeyGesture.cs
- DataKey.cs
- ValidationHelpers.cs
- Size.cs
- VirtualizedContainerService.cs
- ToolStripRenderEventArgs.cs
- WebOperationContext.cs