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
- Debug.cs
- ForceCopyBuildProvider.cs
- Pts.cs
- SymbolDocumentInfo.cs
- OracleConnectionFactory.cs
- TextEndOfParagraph.cs
- NonBatchDirectoryCompiler.cs
- SynchronizationLockException.cs
- ToolStrip.cs
- IListConverters.cs
- VisualStyleTypesAndProperties.cs
- BaseCodeDomTreeGenerator.cs
- CaretElement.cs
- NameTable.cs
- DbProviderConfigurationHandler.cs
- SqlBinder.cs
- BaseProcessProtocolHandler.cs
- AdapterDictionary.cs
- Asn1Utilities.cs
- JournalNavigationScope.cs
- ProcessHostServerConfig.cs
- ServiceObjectContainer.cs
- Clause.cs
- CheckBox.cs
- CodeDomSerializerBase.cs
- ActiveXHelper.cs
- StatusBar.cs
- Crc32Helper.cs
- FormsAuthentication.cs
- ObjectItemConventionAssemblyLoader.cs
- HtmlTitle.cs
- PartialCachingAttribute.cs
- ListViewSelectEventArgs.cs
- Inline.cs
- InheritanceService.cs
- NativeMethods.cs
- Invariant.cs
- InvalidPropValue.cs
- ToolStripPanelCell.cs
- RemotingServices.cs
- FilteredReadOnlyMetadataCollection.cs
- TreeNodeCollection.cs
- sortedlist.cs
- CacheSection.cs
- HtmlForm.cs
- ControlTemplate.cs
- ProgressBarRenderer.cs
- DragStartedEventArgs.cs
- ReferencedType.cs
- ComponentSerializationService.cs
- DragSelectionMessageFilter.cs
- HtmlImageAdapter.cs
- TreeViewBindingsEditorForm.cs
- KeyboardDevice.cs
- WSHttpSecurity.cs
- SecurityUniqueId.cs
- PriorityQueue.cs
- EventHandlerList.cs
- RemotingServices.cs
- SimpleFileLog.cs
- GridPatternIdentifiers.cs
- TargetFrameworkUtil.cs
- ListenUriMode.cs
- QueryServiceConfigHandle.cs
- XmlCDATASection.cs
- FormsAuthenticationCredentials.cs
- DocumentViewerHelper.cs
- WebZone.cs
- TemplateBindingExtensionConverter.cs
- ToolStripPanelRow.cs
- ClientScriptManager.cs
- ShutDownListener.cs
- XmlNodeChangedEventManager.cs
- TripleDESCryptoServiceProvider.cs
- LinearGradientBrush.cs
- AnimationClockResource.cs
- formatter.cs
- CallbackHandler.cs
- PropertyCollection.cs
- MasterPageBuildProvider.cs
- EntryPointNotFoundException.cs
- GroupBox.cs
- GridViewSortEventArgs.cs
- Triangle.cs
- WsatAdminException.cs
- EventlogProvider.cs
- Vector3DCollection.cs
- PrintDialogException.cs
- PropertyKey.cs
- PrimaryKeyTypeConverter.cs
- Update.cs
- FormViewDesigner.cs
- XmlSecureResolver.cs
- DashStyles.cs
- JavascriptCallbackBehaviorAttribute.cs
- OpenFileDialog.cs
- QilList.cs
- LayoutDump.cs
- ServicePointManagerElement.cs
- FormsAuthenticationModule.cs