Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / ndp / fx / src / Services / Monitoring / system / Diagnosticts / CounterCreationDataCollection.cs / 1 / CounterCreationDataCollection.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Diagnostics { using System; using System.ComponentModel; using System.Collections; ////// [Serializable()] public class CounterCreationDataCollection : CollectionBase { ///[To be supplied.] ////// public CounterCreationDataCollection() { } ///[To be supplied.] ////// public CounterCreationDataCollection(CounterCreationDataCollection value) { this.AddRange(value); } ///[To be supplied.] ////// public CounterCreationDataCollection(CounterCreationData[] value) { this.AddRange(value); } ///[To be supplied.] ////// public CounterCreationData this[int index] { get { return ((CounterCreationData)(List[index])); } set { List[index] = value; } } ///[To be supplied.] ////// public int Add(CounterCreationData value) { return List.Add(value); } ///[To be supplied.] ////// public void AddRange(CounterCreationData[] value) { if (value == null) { throw new ArgumentNullException("value"); } for (int i = 0; ((i) < (value.Length)); i = ((i) + (1))) { this.Add(value[i]); } } ///[To be supplied.] ////// public void AddRange(CounterCreationDataCollection value) { if (value == null) { throw new ArgumentNullException("value"); } int currentCount = value.Count; for (int i = 0; i < currentCount; i = ((i) + (1))) { this.Add(value[i]); } } ///[To be supplied.] ////// public bool Contains(CounterCreationData value) { return List.Contains(value); } ///[To be supplied.] ////// public void CopyTo(CounterCreationData[] array, int index) { List.CopyTo(array, index); } ///[To be supplied.] ////// public int IndexOf(CounterCreationData value) { return List.IndexOf(value); } ///[To be supplied.] ////// public void Insert(int index, CounterCreationData value) { List.Insert(index, value); } ///[To be supplied.] ////// public virtual void Remove(CounterCreationData value) { List.Remove(value); } protected override void OnValidate(object value) { if (value == null) throw new ArgumentNullException("value"); CounterCreationData dataToAdd = value as CounterCreationData; if (dataToAdd == null) throw new ArgumentException(SR.GetString(SR.MustAddCounterCreationData)); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //[To be supplied.] ///// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Diagnostics { using System; using System.ComponentModel; using System.Collections; ////// [Serializable()] public class CounterCreationDataCollection : CollectionBase { ///[To be supplied.] ////// public CounterCreationDataCollection() { } ///[To be supplied.] ////// public CounterCreationDataCollection(CounterCreationDataCollection value) { this.AddRange(value); } ///[To be supplied.] ////// public CounterCreationDataCollection(CounterCreationData[] value) { this.AddRange(value); } ///[To be supplied.] ////// public CounterCreationData this[int index] { get { return ((CounterCreationData)(List[index])); } set { List[index] = value; } } ///[To be supplied.] ////// public int Add(CounterCreationData value) { return List.Add(value); } ///[To be supplied.] ////// public void AddRange(CounterCreationData[] value) { if (value == null) { throw new ArgumentNullException("value"); } for (int i = 0; ((i) < (value.Length)); i = ((i) + (1))) { this.Add(value[i]); } } ///[To be supplied.] ////// public void AddRange(CounterCreationDataCollection value) { if (value == null) { throw new ArgumentNullException("value"); } int currentCount = value.Count; for (int i = 0; i < currentCount; i = ((i) + (1))) { this.Add(value[i]); } } ///[To be supplied.] ////// public bool Contains(CounterCreationData value) { return List.Contains(value); } ///[To be supplied.] ////// public void CopyTo(CounterCreationData[] array, int index) { List.CopyTo(array, index); } ///[To be supplied.] ////// public int IndexOf(CounterCreationData value) { return List.IndexOf(value); } ///[To be supplied.] ////// public void Insert(int index, CounterCreationData value) { List.Insert(index, value); } ///[To be supplied.] ////// public virtual void Remove(CounterCreationData value) { List.Remove(value); } protected override void OnValidate(object value) { if (value == null) throw new ArgumentNullException("value"); CounterCreationData dataToAdd = value as CounterCreationData; if (dataToAdd == null) throw new ArgumentException(SR.GetString(SR.MustAddCounterCreationData)); } } } // 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
- Formatter.cs
- ComPlusServiceHost.cs
- NumberSubstitution.cs
- SimpleRecyclingCache.cs
- SqlXml.cs
- CustomErrorsSection.cs
- ellipse.cs
- EffectiveValueEntry.cs
- SiteMapNodeItem.cs
- ValueTable.cs
- OpCodes.cs
- ObjectMemberMapping.cs
- Command.cs
- ImportedNamespaceContextItem.cs
- SafeNativeMethods.cs
- DbConnectionStringCommon.cs
- ToolStripGrip.cs
- SingleTagSectionHandler.cs
- ServiceElementCollection.cs
- DataListItemCollection.cs
- OdbcErrorCollection.cs
- MarkupObject.cs
- XmlCountingReader.cs
- DataGridColumn.cs
- DesignerAutoFormatStyle.cs
- Array.cs
- DataStreams.cs
- CmsInterop.cs
- Cloud.cs
- DataPagerFieldCommandEventArgs.cs
- DesignerSerializationOptionsAttribute.cs
- RequestCache.cs
- ContextProperty.cs
- ClientConfigurationHost.cs
- TextParagraph.cs
- ProcessHostMapPath.cs
- MethodExecutor.cs
- AssociationSetMetadata.cs
- StylusButtonEventArgs.cs
- ReadOnlyActivityGlyph.cs
- Size3DValueSerializer.cs
- MessageDecoder.cs
- SwitchLevelAttribute.cs
- LinearGradientBrush.cs
- KnownTypeDataContractResolver.cs
- PrintPreviewDialog.cs
- SqlDataSourceConnectionPanel.cs
- FixedDSBuilder.cs
- HttpConfigurationSystem.cs
- TakeOrSkipWhileQueryOperator.cs
- ValidationHelpers.cs
- IApplicationTrustManager.cs
- XamlPoint3DCollectionSerializer.cs
- ClientConfigurationHost.cs
- ImagingCache.cs
- HtmlInputCheckBox.cs
- CompletionCallbackWrapper.cs
- XmlDictionaryReaderQuotas.cs
- SelectedDatesCollection.cs
- LockCookie.cs
- AppSettingsReader.cs
- XmlSchemaIdentityConstraint.cs
- NameValueFileSectionHandler.cs
- FilteredXmlReader.cs
- AuthenticateEventArgs.cs
- ContainerControl.cs
- TcpActivation.cs
- WebPartZone.cs
- Query.cs
- ExtentKey.cs
- Validator.cs
- Timeline.cs
- TrackingServices.cs
- DataGridViewCellMouseEventArgs.cs
- OdbcHandle.cs
- HtmlSelect.cs
- FunctionDescription.cs
- HttpCacheParams.cs
- EventLogHandle.cs
- MethodAccessException.cs
- _LoggingObject.cs
- ArraySortHelper.cs
- TextDecoration.cs
- InstanceStoreQueryResult.cs
- FrameworkObject.cs
- SortDescription.cs
- DiagnosticTraceSource.cs
- _NestedMultipleAsyncResult.cs
- FormattedTextSymbols.cs
- AdPostCacheSubstitution.cs
- RemotingSurrogateSelector.cs
- TaskFileService.cs
- SmtpReplyReaderFactory.cs
- HwndAppCommandInputProvider.cs
- _Win32.cs
- FrameworkEventSource.cs
- TransformerTypeCollection.cs
- BinaryFormatterWriter.cs
- TimerTable.cs
- Debug.cs