Code:
/ FX-1434 / FX-1434 / 1.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
- Path.cs
- HttpContext.cs
- MatcherBuilder.cs
- TextBounds.cs
- StaticContext.cs
- XsltQilFactory.cs
- DocumentSequenceHighlightLayer.cs
- OleDbException.cs
- Exceptions.cs
- Menu.cs
- WSHttpBindingBaseElement.cs
- Line.cs
- SQLSingle.cs
- ClientSession.cs
- LinqDataSourceHelper.cs
- HttpCacheVary.cs
- PriorityChain.cs
- ErrorLog.cs
- TripleDESCryptoServiceProvider.cs
- util.cs
- AsnEncodedData.cs
- LookupBindingPropertiesAttribute.cs
- NodeInfo.cs
- ExpressionEditorAttribute.cs
- SafeCryptHandles.cs
- Resources.Designer.cs
- DataGridViewLinkCell.cs
- XPathSelfQuery.cs
- SpecularMaterial.cs
- HyperLinkColumn.cs
- UIElementPropertyUndoUnit.cs
- ObjectDataSourceView.cs
- XmlExtensionFunction.cs
- cache.cs
- CharacterMetrics.cs
- ReachFixedDocumentSerializerAsync.cs
- ReaderOutput.cs
- AsyncOperation.cs
- DataTemplateKey.cs
- GuidConverter.cs
- ChtmlTextWriter.cs
- unsafeIndexingFilterStream.cs
- Tokenizer.cs
- Application.cs
- SmtpFailedRecipientsException.cs
- Transform.cs
- PropertySourceInfo.cs
- webeventbuffer.cs
- MimeParameter.cs
- TabItem.cs
- DetailsViewModeEventArgs.cs
- GcHandle.cs
- ChannelManagerBase.cs
- MessageEnumerator.cs
- BaseCodeDomTreeGenerator.cs
- ProfileServiceManager.cs
- SqlTypeSystemProvider.cs
- UserPersonalizationStateInfo.cs
- ValueOfAction.cs
- HTMLTagNameToTypeMapper.cs
- DocobjHost.cs
- ZoneMembershipCondition.cs
- BindableTemplateBuilder.cs
- ISFTagAndGuidCache.cs
- TraceHandlerErrorFormatter.cs
- WmfPlaceableFileHeader.cs
- TraceContext.cs
- PenThread.cs
- PartialArray.cs
- CodeAccessSecurityEngine.cs
- SettingsContext.cs
- WebPartHelpVerb.cs
- WindowsTokenRoleProvider.cs
- ValidatingPropertiesEventArgs.cs
- BindingListCollectionView.cs
- StatusBarPanel.cs
- ItemCheckEvent.cs
- SQLRoleProvider.cs
- MSG.cs
- DynamicScriptObject.cs
- ExecutionEngineException.cs
- XXXInfos.cs
- ArrayList.cs
- PingReply.cs
- TableItemPattern.cs
- XmlChildNodes.cs
- OutputScopeManager.cs
- BulletedListEventArgs.cs
- WebPageTraceListener.cs
- DiscoveryEndpointValidator.cs
- ChannelSinkStacks.cs
- ClientTarget.cs
- SourceInterpreter.cs
- XmlFormatWriterGenerator.cs
- ExtendedPropertyDescriptor.cs
- SqlCommandBuilder.cs
- SubMenuStyle.cs
- ViewStateModeByIdAttribute.cs
- PreDigestedSignedInfo.cs
- XPathItem.cs