Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / 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;
///
/// [To be supplied.]
///
[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));
}
}
}
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- LabelExpression.cs
- IisTraceWebEventProvider.cs
- XmlEnumAttribute.cs
- BufferedStream2.cs
- ComponentChangingEvent.cs
- SafeEventLogReadHandle.cs
- LambdaCompiler.Statements.cs
- TcpChannelFactory.cs
- CharAnimationUsingKeyFrames.cs
- PartialList.cs
- AlternateViewCollection.cs
- StorageMappingItemLoader.cs
- RegexCompilationInfo.cs
- SiteMap.cs
- TraceProvider.cs
- XmlChildNodes.cs
- TextSchema.cs
- Executor.cs
- ExpanderAutomationPeer.cs
- Baml6ConstructorInfo.cs
- IncrementalReadDecoders.cs
- Decorator.cs
- HtmlForm.cs
- ValidationHelper.cs
- WebPartsSection.cs
- MouseActionConverter.cs
- DocumentGrid.cs
- MemoryMappedFile.cs
- XmlMembersMapping.cs
- DataListItemCollection.cs
- PrivilegedConfigurationManager.cs
- GridEntryCollection.cs
- QuadraticBezierSegment.cs
- UniqueID.cs
- ScrollBarAutomationPeer.cs
- WebPartConnectVerb.cs
- EntityParameterCollection.cs
- TypeConverterAttribute.cs
- DomainConstraint.cs
- OdbcInfoMessageEvent.cs
- TextContainerHelper.cs
- EmptyReadOnlyDictionaryInternal.cs
- MultilineStringConverter.cs
- BulletedListEventArgs.cs
- RootNamespaceAttribute.cs
- AutomationElement.cs
- WebPartEventArgs.cs
- ProviderConnectionPoint.cs
- ConnectionsZone.cs
- VisualStates.cs
- XslTransform.cs
- Buffer.cs
- FontStyleConverter.cs
- ToolStripItem.cs
- EntryPointNotFoundException.cs
- Int64Storage.cs
- CatalogZoneBase.cs
- UnmanagedMarshal.cs
- Compress.cs
- PointAnimationBase.cs
- TraceListener.cs
- WebPartTransformerAttribute.cs
- DataServiceProviderMethods.cs
- MediaContextNotificationWindow.cs
- DateTimePickerDesigner.cs
- Permission.cs
- ComplexBindingPropertiesAttribute.cs
- LoginDesigner.cs
- InstalledFontCollection.cs
- Validator.cs
- RequestDescription.cs
- Timeline.cs
- WebPartUtil.cs
- NativeBuffer.cs
- PaginationProgressEventArgs.cs
- SchemaObjectWriter.cs
- LayoutUtils.cs
- HttpCacheParams.cs
- CodeGeneratorOptions.cs
- ScrollItemPatternIdentifiers.cs
- WebEventTraceProvider.cs
- AuthenticationService.cs
- LocationEnvironment.cs
- ValidationErrorCollection.cs
- Module.cs
- SendSecurityHeaderElementContainer.cs
- ImageButton.cs
- CompareValidator.cs
- DbParameterCollection.cs
- InputBinder.cs
- AudioFileOut.cs
- CodeIterationStatement.cs
- GroupBoxRenderer.cs
- DependentList.cs
- X509CertificateValidator.cs
- ContainerParagraph.cs
- externdll.cs
- DesignSurface.cs
- DataGridHeaderBorder.cs
- ResourceContainer.cs