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
- ByteRangeDownloader.cs
- CompositeCollection.cs
- BooleanToVisibilityConverter.cs
- SymmetricKeyWrap.cs
- AssociationSetMetadata.cs
- OLEDB_Enum.cs
- WeakEventTable.cs
- SiteMapPath.cs
- DataGridViewRowHeightInfoPushedEventArgs.cs
- MemoryPressure.cs
- AspCompat.cs
- TrustLevelCollection.cs
- _TLSstream.cs
- Compress.cs
- NativeCppClassAttribute.cs
- OleDbReferenceCollection.cs
- IdentityReference.cs
- Rotation3DAnimationBase.cs
- MatrixAnimationUsingKeyFrames.cs
- GridViewSelectEventArgs.cs
- InteropExecutor.cs
- SQLInt64Storage.cs
- PeerCollaborationPermission.cs
- XslAstAnalyzer.cs
- GroupItemAutomationPeer.cs
- CommonGetThemePartSize.cs
- CallSiteOps.cs
- TagPrefixAttribute.cs
- CompressionTransform.cs
- Int32Rect.cs
- DataGridViewCellCollection.cs
- GifBitmapDecoder.cs
- VisualState.cs
- DiagnosticTrace.cs
- WebPartDeleteVerb.cs
- EntitySet.cs
- Point3DCollection.cs
- DateTimeAutomationPeer.cs
- ChannelManagerService.cs
- TextBoxLine.cs
- DataGridViewButtonColumn.cs
- VideoDrawing.cs
- AssemblyResolver.cs
- QilTargetType.cs
- OneToOneMappingSerializer.cs
- DataGridViewCellPaintingEventArgs.cs
- SqlServices.cs
- FloaterParaClient.cs
- Clause.cs
- EmbeddedObject.cs
- DataTableReaderListener.cs
- ByteStack.cs
- _ConnectionGroup.cs
- OdbcCommandBuilder.cs
- AssemblyBuilderData.cs
- StdValidatorsAndConverters.cs
- HuffmanTree.cs
- DoubleAnimationBase.cs
- VBCodeProvider.cs
- NavigationProgressEventArgs.cs
- CapabilitiesAssignment.cs
- ZipIOCentralDirectoryDigitalSignature.cs
- XmlRawWriter.cs
- TileBrush.cs
- SafeNativeMethodsCLR.cs
- PluralizationServiceUtil.cs
- UpdateCompiler.cs
- ToolBarPanel.cs
- PostBackTrigger.cs
- RawStylusInput.cs
- DataListAutoFormat.cs
- Debug.cs
- odbcmetadatacolumnnames.cs
- ToolStripLabel.cs
- RepeaterCommandEventArgs.cs
- SecurityElement.cs
- KeyedHashAlgorithm.cs
- QueryAccessibilityHelpEvent.cs
- TypeHelper.cs
- ReferenceEqualityComparer.cs
- ManualWorkflowSchedulerService.cs
- StorageBasedPackageProperties.cs
- Visual.cs
- ZipIOFileItemStream.cs
- Win32SafeHandles.cs
- MemoryFailPoint.cs
- WindowsListView.cs
- ModuleElement.cs
- MobileControlPersister.cs
- UserValidatedEventArgs.cs
- DeploymentExceptionMapper.cs
- AppendHelper.cs
- Canvas.cs
- DbBuffer.cs
- WebPartConnectionsEventArgs.cs
- BevelBitmapEffect.cs
- NativeMethodsOther.cs
- XamlClipboardData.cs
- ObjectStateManager.cs
- PartialCachingAttribute.cs