Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- Variant.cs
- XmlSerializationGeneratedCode.cs
- DbRetry.cs
- ImageAnimator.cs
- HtmlTernaryTree.cs
- LicenseProviderAttribute.cs
- _SingleItemRequestCache.cs
- GlyphRunDrawing.cs
- ConfigurationPermission.cs
- SmiXetterAccessMap.cs
- ConfigXmlWhitespace.cs
- TextParagraphProperties.cs
- XXXInfos.cs
- CodeDelegateInvokeExpression.cs
- CodeTypeParameterCollection.cs
- ISAPIWorkerRequest.cs
- DataTableExtensions.cs
- TypeNameConverter.cs
- PingReply.cs
- TemplatedMailWebEventProvider.cs
- XPathParser.cs
- NavigatorInput.cs
- PersonalizablePropertyEntry.cs
- HelpInfo.cs
- BitmapEffectGeneralTransform.cs
- Memoizer.cs
- GraphicsPathIterator.cs
- IPipelineRuntime.cs
- OdbcUtils.cs
- UpdateProgress.cs
- AddInServer.cs
- WhitespaceSignificantCollectionAttribute.cs
- HttpStreamFormatter.cs
- ReliableMessagingVersion.cs
- XmlBinaryReader.cs
- ReachPrintTicketSerializerAsync.cs
- DesignTimeTemplateParser.cs
- TransformerInfo.cs
- Utils.cs
- BinaryQueryOperator.cs
- RulePatternOps.cs
- RotateTransform.cs
- WorkflowServiceHostFactory.cs
- ColumnReorderedEventArgs.cs
- BasicHttpBindingElement.cs
- ConfigurationValues.cs
- CryptoApi.cs
- EnumerableRowCollection.cs
- TemporaryBitmapFile.cs
- MenuBase.cs
- FormsAuthenticationEventArgs.cs
- SqlReorderer.cs
- IndentedWriter.cs
- TextDecoration.cs
- SqlSelectStatement.cs
- OracleCommandBuilder.cs
- IResourceProvider.cs
- HashRepartitionEnumerator.cs
- GridLength.cs
- RNGCryptoServiceProvider.cs
- Camera.cs
- PolicyManager.cs
- WebServiceParameterData.cs
- ListViewGroupConverter.cs
- QueueProcessor.cs
- ChannelServices.cs
- PathFigureCollection.cs
- DirectionalLight.cs
- CheckableControlBaseAdapter.cs
- Int64KeyFrameCollection.cs
- BindingNavigator.cs
- Codec.cs
- ControlBindingsConverter.cs
- FillBehavior.cs
- FormViewDeletedEventArgs.cs
- NameValueCollection.cs
- IntPtr.cs
- Rotation3DAnimationUsingKeyFrames.cs
- sqlcontext.cs
- PathData.cs
- HtmlElementErrorEventArgs.cs
- WebServicesInteroperability.cs
- PaperSource.cs
- ToolboxItemCollection.cs
- LoadedEvent.cs
- XPathDocument.cs
- InlineObject.cs
- XmlWrappingReader.cs
- StreamReader.cs
- NamespaceMapping.cs
- QueryOperationResponseOfT.cs
- HashHelper.cs
- IdleTimeoutMonitor.cs
- MediaElementAutomationPeer.cs
- SmiRequestExecutor.cs
- ConfigXmlSignificantWhitespace.cs
- NetNamedPipeBindingCollectionElement.cs
- DocumentViewer.cs
- ObjectView.cs
- DBBindings.cs