Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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));
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
//------------------------------------------------------------------------------
//
// 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));
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- XmlSchemaSimpleContentRestriction.cs
- SqlNotificationEventArgs.cs
- SHA512Managed.cs
- TypeDelegator.cs
- AlgoModule.cs
- InputManager.cs
- LinearGradientBrush.cs
- Window.cs
- ComponentChangedEvent.cs
- OptionalColumn.cs
- OleDbException.cs
- CodeDOMUtility.cs
- Rect3DValueSerializer.cs
- ImageCollectionCodeDomSerializer.cs
- OrderedDictionaryStateHelper.cs
- DriveInfo.cs
- HTMLTagNameToTypeMapper.cs
- ProfileModule.cs
- Header.cs
- SrgsDocument.cs
- ActivityExecutionContext.cs
- SafeMemoryMappedFileHandle.cs
- SchemaElementDecl.cs
- DocumentViewerBaseAutomationPeer.cs
- TransportSecurityProtocolFactory.cs
- BackEase.cs
- ConfigurationValidatorBase.cs
- NameValuePair.cs
- RulePatternOps.cs
- DataReaderContainer.cs
- TextOutput.cs
- XmlSerializationReader.cs
- TimeSpanMinutesConverter.cs
- AssociatedControlConverter.cs
- ConfigurationStrings.cs
- MasterPage.cs
- CheckedPointers.cs
- SqlNodeAnnotation.cs
- Decoder.cs
- ProfileGroupSettingsCollection.cs
- Point3DKeyFrameCollection.cs
- ToolStripDropDownMenu.cs
- AddingNewEventArgs.cs
- CategoryGridEntry.cs
- TransactionScopeDesigner.cs
- VarRemapper.cs
- XmlUrlResolver.cs
- OleDbDataAdapter.cs
- MultiView.cs
- XmlBinaryWriter.cs
- ContractMapping.cs
- PathFigureCollectionValueSerializer.cs
- JsonFormatGeneratorStatics.cs
- FlowDocumentReaderAutomationPeer.cs
- ScrollPattern.cs
- ConcurrentDictionary.cs
- ProviderConnectionPoint.cs
- StandardCommands.cs
- BitmapEncoder.cs
- ServiceDescriptionReflector.cs
- XmlnsPrefixAttribute.cs
- XmlSchemaSimpleContentRestriction.cs
- GridViewHeaderRowPresenter.cs
- AttributeQuery.cs
- HttpResponseInternalWrapper.cs
- TableHeaderCell.cs
- WizardStepBase.cs
- CompiledScopeCriteria.cs
- HttpPostedFile.cs
- ServiceObjectContainer.cs
- WithParamAction.cs
- RectangleConverter.cs
- NamespaceTable.cs
- SwitchLevelAttribute.cs
- OrderByLifter.cs
- FormsAuthenticationEventArgs.cs
- SafeRsaProviderHandle.cs
- CachedTypeface.cs
- TypeDescriptor.cs
- HandlerMappingMemo.cs
- ActivityTypeDesigner.xaml.cs
- XmlAttributeCollection.cs
- BrowserDefinition.cs
- Buffer.cs
- WebPartConnectionCollection.cs
- URIFormatException.cs
- XmlMemberMapping.cs
- SqlXmlStorage.cs
- PersistenceTypeAttribute.cs
- DataGridrowEditEndingEventArgs.cs
- PerformanceCountersElement.cs
- CompilerInfo.cs
- ServiceRoute.cs
- SubqueryTrackingVisitor.cs
- WaitHandle.cs
- GPStream.cs
- TextDecorationLocationValidation.cs
- AssemblyAttributesGoHere.cs
- sqlstateclientmanager.cs
- AggregateNode.cs