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
- VisualBrush.cs
- TextParagraphView.cs
- SearchForVirtualItemEventArgs.cs
- EdmTypeAttribute.cs
- BinaryFormatterWriter.cs
- PrintSystemException.cs
- DocumentApplication.cs
- DataServiceEntityAttribute.cs
- OrderedDictionary.cs
- Identifier.cs
- XmlSchemaResource.cs
- DynamicPropertyReader.cs
- HttpPostedFile.cs
- DocumentPage.cs
- RefType.cs
- ToolBarButtonClickEvent.cs
- XmlNodeList.cs
- PeerCollaborationPermission.cs
- RSAPKCS1KeyExchangeDeformatter.cs
- TextElementCollection.cs
- New.cs
- ConfigurationException.cs
- TypefaceMetricsCache.cs
- ImplicitInputBrush.cs
- CapabilitiesRule.cs
- RepeatButtonAutomationPeer.cs
- ContainerUIElement3D.cs
- SaveFileDialogDesigner.cs
- MembershipPasswordException.cs
- TextSearch.cs
- XmlReaderDelegator.cs
- DBCommandBuilder.cs
- LabelTarget.cs
- _UriTypeConverter.cs
- KeyManager.cs
- Journal.cs
- XhtmlTextWriter.cs
- ToolboxItemWrapper.cs
- Vector3D.cs
- SafeSecurityHelper.cs
- ConfigurationFileMap.cs
- EntityDataSourceContainerNameConverter.cs
- ScalarType.cs
- HostedTcpTransportManager.cs
- _KerberosClient.cs
- StyleHelper.cs
- __Filters.cs
- SemaphoreSecurity.cs
- UniqueCodeIdentifierScope.cs
- ApplicationSettingsBase.cs
- InputScopeAttribute.cs
- XmlProcessingInstruction.cs
- ListenerSessionConnectionReader.cs
- EntityDataSourceEntitySetNameItem.cs
- XmlFormatExtensionPrefixAttribute.cs
- __ComObject.cs
- BasicHttpMessageSecurityElement.cs
- ProtectedConfigurationProviderCollection.cs
- TableStyle.cs
- ClientClassGenerator.cs
- XmlQueryContext.cs
- TreeBuilderXamlTranslator.cs
- Quaternion.cs
- GCHandleCookieTable.cs
- TcpProcessProtocolHandler.cs
- WebServiceTypeData.cs
- EntityDataSourceDataSelection.cs
- XmlTextEncoder.cs
- DefaultBinder.cs
- WebResponse.cs
- HttpContextWrapper.cs
- RSAOAEPKeyExchangeDeformatter.cs
- GridViewUpdatedEventArgs.cs
- XsltInput.cs
- HighlightComponent.cs
- DynamicControlParameter.cs
- DataListItem.cs
- EntityDataSource.cs
- RtType.cs
- elementinformation.cs
- UpDownEvent.cs
- ColorBlend.cs
- Brushes.cs
- XPathException.cs
- OperationAbortedException.cs
- StyleHelper.cs
- RtfControlWordInfo.cs
- MenuEventArgs.cs
- StatusBarPanelClickEvent.cs
- SimpleApplicationHost.cs
- Point3DCollection.cs
- compensatingcollection.cs
- DiscoveryProxy.cs
- ProxySimple.cs
- ContainerSelectorActiveEvent.cs
- DataRowChangeEvent.cs
- StrokeNodeEnumerator.cs
- BaseDataBoundControlDesigner.cs
- _OSSOCK.cs
- InternalConfigSettingsFactory.cs