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
- BackoffTimeoutHelper.cs
- XmlTextReader.cs
- OverflowException.cs
- SchemaNotation.cs
- WebWorkflowRole.cs
- FrameworkContentElement.cs
- TraceContextRecord.cs
- ListViewGroup.cs
- MsmqSecureHashAlgorithm.cs
- CapabilitiesRule.cs
- IsolatedStorageFileStream.cs
- Shared.cs
- DBCommand.cs
- DefaultMemberAttribute.cs
- XmlCharCheckingReader.cs
- SqlDelegatedTransaction.cs
- TakeOrSkipWhileQueryOperator.cs
- DesignSurfaceManager.cs
- VerticalAlignConverter.cs
- X509Certificate2.cs
- WebZone.cs
- ControlPaint.cs
- DataGridSortCommandEventArgs.cs
- InternalEnumValidatorAttribute.cs
- SubpageParaClient.cs
- SecurityTokenRequirement.cs
- Group.cs
- UInt16Storage.cs
- X509UI.cs
- FormatConvertedBitmap.cs
- HttpHeaderCollection.cs
- InternalEnumValidator.cs
- RuntimeConfig.cs
- EndpointReference.cs
- XPathParser.cs
- TCEAdapterGenerator.cs
- FunctionImportMapping.cs
- TextEditorThreadLocalStore.cs
- QueryExpression.cs
- QilNode.cs
- ClaimTypeRequirement.cs
- FlowDocumentFormatter.cs
- XmlSortKey.cs
- SvcMapFile.cs
- DateTimeConverter.cs
- ResourcePermissionBaseEntry.cs
- FormatSelectingMessageInspector.cs
- UndoEngine.cs
- FlowLayoutPanel.cs
- ResourceReferenceKeyNotFoundException.cs
- Soap.cs
- Package.cs
- ImageMap.cs
- Authorization.cs
- SqlDataSourceView.cs
- ToolStripInSituService.cs
- SqlNodeTypeOperators.cs
- LineInfo.cs
- WebServiceMethodData.cs
- AspNetSynchronizationContext.cs
- SqlDataSourceDesigner.cs
- DataGridViewRowStateChangedEventArgs.cs
- InputElement.cs
- DescendentsWalkerBase.cs
- ProfilePropertyNameValidator.cs
- SelectorItemAutomationPeer.cs
- CodeGenerator.cs
- CollectionViewGroup.cs
- ViewGenerator.cs
- FloaterBaseParagraph.cs
- XmlException.cs
- SQLDecimal.cs
- WebPartDisplayModeCancelEventArgs.cs
- SelectManyQueryOperator.cs
- GPRECT.cs
- PassportAuthenticationModule.cs
- HitTestWithGeometryDrawingContextWalker.cs
- ResourcePermissionBase.cs
- SeekableReadStream.cs
- ByteStreamMessageEncoder.cs
- LocalServiceSecuritySettingsElement.cs
- ButtonBaseAutomationPeer.cs
- DockProviderWrapper.cs
- EnvironmentPermission.cs
- SQLByteStorage.cs
- FieldToken.cs
- CorrelationTokenInvalidatedHandler.cs
- ObjRef.cs
- SqlCommandAsyncResult.cs
- Int32.cs
- ToolStripPanelSelectionGlyph.cs
- PrintDialogDesigner.cs
- VectorCollection.cs
- ReachNamespaceInfo.cs
- XmlILModule.cs
- UnmanagedMarshal.cs
- ColumnResizeAdorner.cs
- FormatVersion.cs
- DefaultSerializationProviderAttribute.cs
- Guid.cs