Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / DEVDIV / depot / DevDiv / releases / whidbey / QFE / 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. // Copyright (c) Microsoft Corporation. All rights reserved. //------------------------------------------------------------------------------ //[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. // Copyright (c) Microsoft Corporation. All rights reserved.[To be supplied.] ///
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ControlBuilderAttribute.cs
- ConfigurationValidatorBase.cs
- UnmanagedMemoryAccessor.cs
- ValueTypeFixupInfo.cs
- SqlProfileProvider.cs
- SqlDataReader.cs
- PackWebResponse.cs
- ContextInformation.cs
- HostTimeoutsElement.cs
- SimpleType.cs
- Metadata.cs
- OletxResourceManager.cs
- UriTemplateLiteralQueryValue.cs
- HttpClientCertificate.cs
- XamlTypeMapperSchemaContext.cs
- DataViewSettingCollection.cs
- ListViewItemEventArgs.cs
- EntityCommand.cs
- FilteredDataSetHelper.cs
- ApplicationServicesHostFactory.cs
- PropertyMetadata.cs
- DrawingContextDrawingContextWalker.cs
- Avt.cs
- ReturnEventArgs.cs
- UnsafeNativeMethods.cs
- SelectionItemPattern.cs
- RadioButtonBaseAdapter.cs
- IndexOutOfRangeException.cs
- nulltextcontainer.cs
- DefaultMemberAttribute.cs
- TextBox.cs
- BindingBase.cs
- assemblycache.cs
- IsolatedStorageFilePermission.cs
- MexHttpBindingCollectionElement.cs
- AcceleratedTokenProviderState.cs
- CryptoSession.cs
- DescriptionAttribute.cs
- UnsafeNativeMethods.cs
- ExpressionConverter.cs
- Point3DAnimationUsingKeyFrames.cs
- TraversalRequest.cs
- HtmlShimManager.cs
- ToolboxItemFilterAttribute.cs
- _AutoWebProxyScriptEngine.cs
- DoneReceivingAsyncResult.cs
- Button.cs
- InfoCardSymmetricAlgorithm.cs
- TaskHelper.cs
- IdnMapping.cs
- ImageDrawing.cs
- Splitter.cs
- TypeUsage.cs
- DataBoundControlAdapter.cs
- PreProcessInputEventArgs.cs
- ComplexPropertyEntry.cs
- ErrorWrapper.cs
- JapaneseCalendar.cs
- PropertyPath.cs
- CategoryAttribute.cs
- FormatStringEditor.cs
- PrimitiveCodeDomSerializer.cs
- PieceDirectory.cs
- TreeNodeStyleCollection.cs
- PathFigure.cs
- ASCIIEncoding.cs
- IssuanceLicense.cs
- VariableQuery.cs
- DriveNotFoundException.cs
- StylusPointCollection.cs
- ByteConverter.cs
- ToolboxItem.cs
- TemplateColumn.cs
- PointAnimation.cs
- AuthorizationSection.cs
- TaskFormBase.cs
- Compensation.cs
- PolicyManager.cs
- StringAnimationUsingKeyFrames.cs
- LinkedList.cs
- DebugControllerThread.cs
- DefaultBinder.cs
- Attachment.cs
- TextBoxAutoCompleteSourceConverter.cs
- WSSecureConversationFeb2005.cs
- MouseCaptureWithinProperty.cs
- BuildProvider.cs
- PageCodeDomTreeGenerator.cs
- ProvideValueServiceProvider.cs
- WindowsListView.cs
- SQLString.cs
- AuthenticationConfig.cs
- Vector.cs
- ResolvedKeyFrameEntry.cs
- FixedSchema.cs
- RelationshipEndCollection.cs
- FixUpCollection.cs
- ContextMenuAutomationPeer.cs
- COM2PropertyDescriptor.cs
- MarkupExtensionReturnTypeAttribute.cs