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 / 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
- PriorityBindingExpression.cs
- FixedLineResult.cs
- TripleDESCryptoServiceProvider.cs
- Paragraph.cs
- StylusCollection.cs
- ProgramPublisher.cs
- DBCSCodePageEncoding.cs
- ButtonField.cs
- PerfCounters.cs
- XPathDescendantIterator.cs
- MissingMethodException.cs
- XamlTypeMapperSchemaContext.cs
- FileDialog.cs
- RenderCapability.cs
- AsymmetricAlgorithm.cs
- FontDriver.cs
- DbCommandTree.cs
- EdmConstants.cs
- ValidationErrorEventArgs.cs
- PageParser.cs
- ClientScriptItem.cs
- RawStylusSystemGestureInputReport.cs
- BinHexEncoder.cs
- MergeFailedEvent.cs
- ContextDataSource.cs
- C14NUtil.cs
- TagPrefixCollection.cs
- DependencyPropertyValueSerializer.cs
- XmlSortKeyAccumulator.cs
- RowCache.cs
- WebControlToolBoxItem.cs
- DiscoveryEndpointElement.cs
- ShaderEffect.cs
- TextEditorSelection.cs
- AgileSafeNativeMemoryHandle.cs
- SqlMetaData.cs
- ToolStripDropDown.cs
- SelectionItemPattern.cs
- InternalsVisibleToAttribute.cs
- ResXResourceWriter.cs
- WsdlBuildProvider.cs
- BaseParser.cs
- MessageBox.cs
- XPathSelfQuery.cs
- DecoderNLS.cs
- CacheMemory.cs
- ViewCellRelation.cs
- SerializeAbsoluteContext.cs
- TableLayoutPanelCodeDomSerializer.cs
- WorkflowInstanceQuery.cs
- SubMenuStyleCollection.cs
- AnnouncementEventArgs.cs
- XmlnsDictionary.cs
- XpsDocumentEvent.cs
- ClientFormsIdentity.cs
- ScriptManagerProxy.cs
- Convert.cs
- BuildManager.cs
- QueryContinueDragEvent.cs
- ExpressionParser.cs
- BamlCollectionHolder.cs
- PeerInvitationResponse.cs
- ChangePassword.cs
- ProfileBuildProvider.cs
- PackWebResponse.cs
- DateRangeEvent.cs
- JavascriptCallbackBehaviorAttribute.cs
- WhileDesigner.cs
- TreeViewImageIndexConverter.cs
- XamlInterfaces.cs
- BaseParagraph.cs
- EncryptedType.cs
- CodeTypeOfExpression.cs
- ResourceManagerWrapper.cs
- SafeSystemMetrics.cs
- DrawListViewSubItemEventArgs.cs
- ArrayElementGridEntry.cs
- ThemeInfoAttribute.cs
- LinqDataSourceView.cs
- DrawingContextFlattener.cs
- CharEntityEncoderFallback.cs
- ProtocolsSection.cs
- BindingGroup.cs
- ListCommandEventArgs.cs
- ScrollBarAutomationPeer.cs
- ReceiveActivityValidator.cs
- AdCreatedEventArgs.cs
- TextContainerChangeEventArgs.cs
- Synchronization.cs
- MarshalByRefObject.cs
- OperationFormatUse.cs
- UserControlParser.cs
- ProfileEventArgs.cs
- LineUtil.cs
- NamedPipeAppDomainProtocolHandler.cs
- ToolStripDropDownClosingEventArgs.cs
- OptimizerPatterns.cs
- TextRangeBase.cs
- HandlerBase.cs
- HttpEncoderUtility.cs