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
- NGCPageContentSerializerAsync.cs
- LinqDataSourceStatusEventArgs.cs
- Duration.cs
- Type.cs
- RangeBaseAutomationPeer.cs
- GetParentChain.cs
- ExeContext.cs
- XPathScanner.cs
- WorkItem.cs
- DeviceFilterDictionary.cs
- ComponentCollection.cs
- X509ChainPolicy.cs
- NamedPermissionSet.cs
- ObjectSecurity.cs
- SelectionEditingBehavior.cs
- EntityModelBuildProvider.cs
- InputGestureCollection.cs
- Rfc2898DeriveBytes.cs
- WebPartDesigner.cs
- MissingFieldException.cs
- LayoutEvent.cs
- IndependentlyAnimatedPropertyMetadata.cs
- DataMisalignedException.cs
- cookieexception.cs
- SqlDuplicator.cs
- ColorTransform.cs
- Array.cs
- Matrix3DConverter.cs
- WebPartMenuStyle.cs
- MediaCommands.cs
- MultiByteCodec.cs
- XmlSchemaSimpleTypeList.cs
- VerificationAttribute.cs
- Base64Stream.cs
- ExpandSegment.cs
- MapPathBasedVirtualPathProvider.cs
- PointAnimation.cs
- PermissionToken.cs
- MenuBase.cs
- FixedNode.cs
- XmlHierarchicalDataSourceView.cs
- HtmlHistory.cs
- LZCodec.cs
- BoolExpressionVisitors.cs
- DataReceivedEventArgs.cs
- ProtocolViolationException.cs
- ControlBindingsCollection.cs
- IPEndPoint.cs
- SqlCacheDependencySection.cs
- TextTreeObjectNode.cs
- ExpressionPrefixAttribute.cs
- DataGridPagerStyle.cs
- OdbcConnectionHandle.cs
- Memoizer.cs
- HandlerBase.cs
- QueryableDataSource.cs
- SqlInfoMessageEvent.cs
- TemplateControlParser.cs
- ExtendedPropertyCollection.cs
- ReachFixedPageSerializer.cs
- ToolStripMenuItem.cs
- ResourceManagerWrapper.cs
- CurrencyWrapper.cs
- FormDesigner.cs
- BinaryWriter.cs
- AutoResizedEvent.cs
- XmlSchemaIdentityConstraint.cs
- MemoryMappedFileSecurity.cs
- SQLInt64.cs
- WriteableOnDemandStream.cs
- HwndAppCommandInputProvider.cs
- _CookieModule.cs
- PointLight.cs
- SystemThemeKey.cs
- SynchronousReceiveBehavior.cs
- CellIdBoolean.cs
- WebPartDisplayModeCancelEventArgs.cs
- PeerNameRecordCollection.cs
- FilterElement.cs
- Polyline.cs
- HtmlInputPassword.cs
- CaseInsensitiveOrdinalStringComparer.cs
- QilLiteral.cs
- LocalizableAttribute.cs
- AutomationIdentifier.cs
- WebPartsPersonalizationAuthorization.cs
- PageFunction.cs
- DependsOnAttribute.cs
- RawMouseInputReport.cs
- SqlInternalConnection.cs
- EdmScalarPropertyAttribute.cs
- XmlFileEditor.cs
- DrawListViewSubItemEventArgs.cs
- BatchParser.cs
- CodeMemberProperty.cs
- EventLogPermissionEntryCollection.cs
- RequestCache.cs
- SourceLineInfo.cs
- DES.cs
- TriState.cs