Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Services / Monitoring / system / Diagnosticts / PerformanceCounterManager.cs / 1305376 / PerformanceCounterManager.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Diagnostics { using System.Runtime.InteropServices; using System; using System.Security.Permissions; using System.Security; using Microsoft.Win32; // All of this code was ported to native and this implementation is no longer used. It is not meant to be accessed directly. // This code was no longer maintained, and it accessed the same shared memory that the new code accessed. To be certain there // are no security holes and no serious bugs, we have removed all of the real code. ///[ ComVisible(true), GuidAttribute("82840BE1-D273-11D2-B94A-00600893B17A"), // Disabling partial trust scenarios PermissionSet(SecurityAction.LinkDemand, Name="FullTrust"), Obsolete("This class has been deprecated. Use the PerformanceCounters through the System.Diagnostics.PerformanceCounter class instead. http://go.microsoft.com/fwlink/?linkid=14202") ] public sealed class PerformanceCounterManager : ICollectData { [ Obsolete("This class has been deprecated. Use the PerformanceCounters through the System.Diagnostics.PerformanceCounter class instead. http://go.microsoft.com/fwlink/?linkid=14202") ] public PerformanceCounterManager() { } /// [ Obsolete("This class has been deprecated. Use the PerformanceCounters through the System.Diagnostics.PerformanceCounter class instead. http://go.microsoft.com/fwlink/?linkid=14202") ] void ICollectData.CollectData(int callIdx, IntPtr valueNamePtr, IntPtr dataPtr, int totalBytes, out IntPtr res) { res = (IntPtr)(-1); } /// [ Obsolete("This class has been deprecated. Use the PerformanceCounters through the System.Diagnostics.PerformanceCounter class instead. http://go.microsoft.com/fwlink/?linkid=14202") ] void ICollectData.CloseData() { } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ // // Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Diagnostics { using System.Runtime.InteropServices; using System; using System.Security.Permissions; using System.Security; using Microsoft.Win32; // All of this code was ported to native and this implementation is no longer used. It is not meant to be accessed directly. // This code was no longer maintained, and it accessed the same shared memory that the new code accessed. To be certain there // are no security holes and no serious bugs, we have removed all of the real code. ///[ ComVisible(true), GuidAttribute("82840BE1-D273-11D2-B94A-00600893B17A"), // Disabling partial trust scenarios PermissionSet(SecurityAction.LinkDemand, Name="FullTrust"), Obsolete("This class has been deprecated. Use the PerformanceCounters through the System.Diagnostics.PerformanceCounter class instead. http://go.microsoft.com/fwlink/?linkid=14202") ] public sealed class PerformanceCounterManager : ICollectData { [ Obsolete("This class has been deprecated. Use the PerformanceCounters through the System.Diagnostics.PerformanceCounter class instead. http://go.microsoft.com/fwlink/?linkid=14202") ] public PerformanceCounterManager() { } /// [ Obsolete("This class has been deprecated. Use the PerformanceCounters through the System.Diagnostics.PerformanceCounter class instead. http://go.microsoft.com/fwlink/?linkid=14202") ] void ICollectData.CollectData(int callIdx, IntPtr valueNamePtr, IntPtr dataPtr, int totalBytes, out IntPtr res) { res = (IntPtr)(-1); } /// [ Obsolete("This class has been deprecated. Use the PerformanceCounters through the System.Diagnostics.PerformanceCounter class instead. http://go.microsoft.com/fwlink/?linkid=14202") ] void ICollectData.CloseData() { } } } // 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
- RawStylusInputCustomData.cs
- ToolStripOverflowButton.cs
- ReturnValue.cs
- TextComposition.cs
- BaseCodeDomTreeGenerator.cs
- LogEntryUtils.cs
- HandlerWithFactory.cs
- Parser.cs
- SystemIPGlobalStatistics.cs
- EventListenerClientSide.cs
- HitTestDrawingContextWalker.cs
- XmlReturnReader.cs
- GridViewColumnCollectionChangedEventArgs.cs
- WebPartsPersonalization.cs
- KnownBoxes.cs
- FormViewUpdatedEventArgs.cs
- MulticastIPAddressInformationCollection.cs
- SqlTypeConverter.cs
- TextRenderingModeValidation.cs
- EntryWrittenEventArgs.cs
- ArrangedElementCollection.cs
- ColumnMapTranslator.cs
- MenuStrip.cs
- Int64Converter.cs
- DictionaryContent.cs
- Int64KeyFrameCollection.cs
- HttpDictionary.cs
- OdbcDataReader.cs
- TextBreakpoint.cs
- CustomError.cs
- TextServicesPropertyRanges.cs
- XmlUtilWriter.cs
- IriParsingElement.cs
- RequestCacheManager.cs
- ButtonChrome.cs
- InputScope.cs
- UserValidatedEventArgs.cs
- TlsSspiNegotiation.cs
- SimpleBitVector32.cs
- TargetParameterCountException.cs
- AppDomainManager.cs
- DateTimeConstantAttribute.cs
- BufferModeSettings.cs
- OleDbConnectionPoolGroupProviderInfo.cs
- BooleanExpr.cs
- FormatterConverter.cs
- ActivityXRefConverter.cs
- SeverityFilter.cs
- _Connection.cs
- SessionSwitchEventArgs.cs
- Vector.cs
- SmtpNegotiateAuthenticationModule.cs
- GuidConverter.cs
- CatalogZoneBase.cs
- ModelTypeConverter.cs
- ZipIOExtraFieldPaddingElement.cs
- PathData.cs
- UnsafeNativeMethods.cs
- ListQueryResults.cs
- MonthChangedEventArgs.cs
- QuotedStringFormatReader.cs
- InkCanvas.cs
- OleDbConnectionInternal.cs
- MdiWindowListStrip.cs
- GetCryptoTransformRequest.cs
- ClickablePoint.cs
- SmuggledIUnknown.cs
- KeyInfo.cs
- PeerName.cs
- metadatamappinghashervisitor.cs
- SortableBindingList.cs
- NetCodeGroup.cs
- ElementAtQueryOperator.cs
- ReferencedCollectionType.cs
- Context.cs
- PropertyState.cs
- FontSource.cs
- BrowsableAttribute.cs
- CanonicalizationDriver.cs
- CustomLineCap.cs
- XmlCodeExporter.cs
- VisualBasicSettingsHandler.cs
- QuadraticBezierSegment.cs
- _FixedSizeReader.cs
- HorizontalAlignConverter.cs
- XmlSchemaSubstitutionGroup.cs
- Command.cs
- DataFormats.cs
- PrintEvent.cs
- TypeNameHelper.cs
- Trace.cs
- OrderToken.cs
- UInt16.cs
- ObjectAnimationUsingKeyFrames.cs
- SessionSwitchEventArgs.cs
- MemoryStream.cs
- CompressStream.cs
- WindowInteropHelper.cs
- ComponentEvent.cs
- SingleAnimationBase.cs