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;
///
///
/// Represents a ControlCollection that is always empty.
///
///
[AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)]
[AspNetHostingPermission(SecurityAction.InheritanceDemand, Level=AspNetHostingPermissionLevel.Minimal)]
public class EmptyControlCollection : ControlCollection {
///
/// [To be supplied.]
///
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.
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------------
namespace System.Web.UI {
using System;
using System.Collections;
using System.Security.Permissions;
///
///
/// Represents a ControlCollection that is always empty.
///
///
[AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)]
[AspNetHostingPermission(SecurityAction.InheritanceDemand, Level=AspNetHostingPermissionLevel.Minimal)]
public class EmptyControlCollection : ControlCollection {
///
/// [To be supplied.]
///
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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ChannelCacheSettings.cs
- InputBuffer.cs
- HttpWebRequest.cs
- ElasticEase.cs
- WebRequestModulesSection.cs
- DataBoundControlAdapter.cs
- ErrorInfoXmlDocument.cs
- rsa.cs
- FixedPageStructure.cs
- ObjectView.cs
- KeyGestureValueSerializer.cs
- GcHandle.cs
- TreeViewImageKeyConverter.cs
- SimpleWebHandlerParser.cs
- SchemaObjectWriter.cs
- WinOEToolBoxItem.cs
- ToolboxItemLoader.cs
- NameSpaceExtractor.cs
- Crc32Helper.cs
- WsiProfilesElement.cs
- IIS7UserPrincipal.cs
- XmlLanguageConverter.cs
- DecoderReplacementFallback.cs
- HwndHost.cs
- ButtonChrome.cs
- Stroke2.cs
- ObjectListDataBindEventArgs.cs
- VoiceChangeEventArgs.cs
- TableItemProviderWrapper.cs
- Propagator.cs
- FocusTracker.cs
- MailWebEventProvider.cs
- Pen.cs
- SafePipeHandle.cs
- DeclarationUpdate.cs
- XMLSyntaxException.cs
- NamedPermissionSet.cs
- SymmetricAlgorithm.cs
- CqlQuery.cs
- ServiceModelActivationSectionGroup.cs
- FormViewPagerRow.cs
- XmlSecureResolver.cs
- CharacterShapingProperties.cs
- MimeMapping.cs
- HtmlForm.cs
- HtmlTableRowCollection.cs
- SQLBoolean.cs
- UIAgentRequest.cs
- SQLDecimal.cs
- IIS7UserPrincipal.cs
- SingleSelectRootGridEntry.cs
- EditorZone.cs
- IdnMapping.cs
- ResourceWriter.cs
- PackagingUtilities.cs
- TreeWalkHelper.cs
- WebCategoryAttribute.cs
- WebServiceResponseDesigner.cs
- WindowsRegion.cs
- AjaxFrameworkAssemblyAttribute.cs
- UniqueID.cs
- ListenerElementsCollection.cs
- Classification.cs
- GPPOINT.cs
- Subset.cs
- AuthenticationModuleElement.cs
- Parallel.cs
- ContentPropertyAttribute.cs
- ProtectedConfigurationSection.cs
- MenuAutomationPeer.cs
- WebConfigurationHost.cs
- CompilerLocalReference.cs
- BindingExpressionUncommonField.cs
- DependencyPropertyChangedEventArgs.cs
- FunctionDetailsReader.cs
- EncryptionUtility.cs
- InfoCardAsymmetricCrypto.cs
- AutomationElement.cs
- BamlLocalizer.cs
- IsolatedStorageFileStream.cs
- TypeSystem.cs
- DataServiceOperationContext.cs
- CommonDialog.cs
- KeyTimeConverter.cs
- XmlReturnReader.cs
- BooleanProjectedSlot.cs
- TranslateTransform.cs
- NonSerializedAttribute.cs
- WhiteSpaceTrimStringConverter.cs
- ContextStack.cs
- MenuBase.cs
- TagNameToTypeMapper.cs
- SqlConnectionString.cs
- DataObjectFieldAttribute.cs
- SqlDataSourceConfigureSelectPanel.cs
- ExpandSegmentCollection.cs
- Vector3dCollection.cs
- ByteConverter.cs
- CommandHelpers.cs
- SecurityKeyEntropyMode.cs