Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / DynamicData / DynamicData / DataControlReferenceCollection.cs / 1305376 / DataControlReferenceCollection.cs
namespace System.Web.DynamicData { using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.ComponentModel; using System.Diagnostics.CodeAnalysis; using System.Security.Permissions; ////// Represents a collectin of DataControlReferences /// public class DataControlReferenceCollection : Collection{ public DataControlReferenceCollection(DynamicDataManager owner) { if (owner == null) { throw new ArgumentNullException("owner"); } Owner = owner; } public DynamicDataManager Owner { get; private set; } internal void Initialize() { foreach (DataControlReference reference in this) { reference.Owner = Owner; } } [SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase")] protected override void SetItem(int index, DataControlReference item) { item.Owner = Owner; base.SetItem(index, item); } [SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase")] protected override void InsertItem(int index, DataControlReference item) { item.Owner = Owner; base.InsertItem(index, item); } [SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase")] protected override void RemoveItem(int index) { this[index].Owner = null; base.RemoveItem(index); } } } // 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
- GenericTextProperties.cs
- CriticalHandle.cs
- PathStreamGeometryContext.cs
- CollectionViewGroup.cs
- UpDownBase.cs
- SystemIcons.cs
- MouseActionValueSerializer.cs
- InstalledFontCollection.cs
- Int64Animation.cs
- CodeMemberMethod.cs
- TraceInternal.cs
- ZipIOExtraFieldZip64Element.cs
- ObjectSecurity.cs
- ReferentialConstraintRoleElement.cs
- ApplicationActivator.cs
- InputScopeNameConverter.cs
- ShaderEffect.cs
- AssemblyInfo.cs
- FormViewUpdatedEventArgs.cs
- OnOperation.cs
- ExceptionValidationRule.cs
- Int32Rect.cs
- LogStore.cs
- UnsafeNativeMethodsTablet.cs
- MultipleViewPattern.cs
- MaskedTextProvider.cs
- DetailsViewUpdateEventArgs.cs
- HttpInputStream.cs
- SqlServer2KCompatibilityCheck.cs
- TraceUtils.cs
- AspNetSynchronizationContext.cs
- RtType.cs
- XmlSchemaObjectCollection.cs
- HybridWebProxyFinder.cs
- SimpleType.cs
- SystemNetHelpers.cs
- DoubleMinMaxAggregationOperator.cs
- DetailsViewUpdatedEventArgs.cs
- RadioButtonPopupAdapter.cs
- DataViewSettingCollection.cs
- WpfKnownType.cs
- DataObjectFieldAttribute.cs
- Pkcs9Attribute.cs
- WpfSharedXamlSchemaContext.cs
- Rules.cs
- TextRenderer.cs
- BuilderElements.cs
- HttpCookiesSection.cs
- StateChangeEvent.cs
- KeyValueSerializer.cs
- MoveSizeWinEventHandler.cs
- ValueExpressions.cs
- DateRangeEvent.cs
- followingsibling.cs
- ProjectionCamera.cs
- CommandHelper.cs
- ProgressBarBrushConverter.cs
- SecurityIdentifierElementCollection.cs
- DataSourceHelper.cs
- ActiveXHost.cs
- BuildResultCache.cs
- DataGridViewRowPrePaintEventArgs.cs
- WindowPatternIdentifiers.cs
- CollectionsUtil.cs
- CorrelationQuery.cs
- Listen.cs
- GridItemPattern.cs
- LeafCellTreeNode.cs
- GlobalAllocSafeHandle.cs
- ArithmeticException.cs
- CrossAppDomainChannel.cs
- OdbcConnectionStringbuilder.cs
- AutomationPropertyInfo.cs
- DateTimeUtil.cs
- Native.cs
- EventLogPermission.cs
- HandlerBase.cs
- SlotInfo.cs
- DbConnectionPoolIdentity.cs
- DBPropSet.cs
- UpdateDelegates.Generated.cs
- PrimitiveOperationFormatter.cs
- QuaternionKeyFrameCollection.cs
- ChildTable.cs
- DynamicMethod.cs
- CodeTypeReferenceCollection.cs
- BulletedListDesigner.cs
- ProxyWebPartManager.cs
- SmtpNegotiateAuthenticationModule.cs
- ServerValidateEventArgs.cs
- CollectionContainer.cs
- CodeAttributeDeclaration.cs
- TagPrefixCollection.cs
- WebPartEditorApplyVerb.cs
- Substitution.cs
- AtlasWeb.Designer.cs
- CompositeScriptReferenceEventArgs.cs
- Rect3D.cs
- TaskHelper.cs
- sqlinternaltransaction.cs