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
- AppDomainFactory.cs
- QuotedStringWriteStateInfo.cs
- WriteableBitmap.cs
- SmtpFailedRecipientsException.cs
- __ConsoleStream.cs
- SettingsBindableAttribute.cs
- IImplicitResourceProvider.cs
- DataServiceQueryProvider.cs
- MarginsConverter.cs
- SspiSafeHandles.cs
- ServiceOperation.cs
- DocumentReferenceCollection.cs
- QilDataSource.cs
- ManipulationDevice.cs
- RightsManagementEncryptedStream.cs
- SinglePageViewer.cs
- OleDbWrapper.cs
- DetailsViewRowCollection.cs
- BamlCollectionHolder.cs
- NullableFloatSumAggregationOperator.cs
- DashStyles.cs
- CodeSnippetTypeMember.cs
- XmlSchemaExporter.cs
- HttpWebRequestElement.cs
- HandleValueEditor.cs
- SerializationInfo.cs
- MobileControlsSectionHandler.cs
- Int64.cs
- Update.cs
- ACE.cs
- XmlSerializerSection.cs
- AsyncOperationManager.cs
- Propagator.JoinPropagator.JoinPredicateVisitor.cs
- RectangleGeometry.cs
- ObjectIDGenerator.cs
- UseManagedPresentationElement.cs
- TypedElement.cs
- CellIdBoolean.cs
- ToolStripContentPanelDesigner.cs
- LazyTextWriterCreator.cs
- MultiBindingExpression.cs
- AsmxEndpointPickerExtension.cs
- SafeNativeMethods.cs
- EnumerableValidator.cs
- SmtpTransport.cs
- DataGridViewAutoSizeColumnsModeEventArgs.cs
- SqlSelectStatement.cs
- WebBaseEventKeyComparer.cs
- WebPartCatalogCloseVerb.cs
- SelectorAutomationPeer.cs
- XmlEventCache.cs
- ApplicationBuildProvider.cs
- EmissiveMaterial.cs
- DesignerWithHeader.cs
- ThreadExceptionDialog.cs
- StandardTransformFactory.cs
- SettingsProperty.cs
- ByteConverter.cs
- CodeCommentStatement.cs
- HttpApplicationFactory.cs
- BindingsCollection.cs
- CodeArrayIndexerExpression.cs
- WindowsIPAddress.cs
- LazyTextWriterCreator.cs
- EnumBuilder.cs
- NCryptSafeHandles.cs
- UnitySerializationHolder.cs
- PathData.cs
- AlternateViewCollection.cs
- WebPart.cs
- MDIControlStrip.cs
- XmlMapping.cs
- MsmqActivation.cs
- SymbolEqualComparer.cs
- AuthenticationManager.cs
- SynchronizedMessageSource.cs
- SoapReflector.cs
- ServiceMemoryGates.cs
- SettingsAttributeDictionary.cs
- AddInToken.cs
- RenderingEventArgs.cs
- MetafileEditor.cs
- DesignUtil.cs
- RuntimeArgumentHandle.cs
- RefreshEventArgs.cs
- Int64Converter.cs
- SQLInt16Storage.cs
- TextInfo.cs
- RSAPKCS1KeyExchangeDeformatter.cs
- CreateParams.cs
- DeclaredTypeValidator.cs
- SecurityUtils.cs
- CodeObject.cs
- ToolStripDropDownClosedEventArgs.cs
- EntityCommandExecutionException.cs
- ToolStripItemTextRenderEventArgs.cs
- SqlInternalConnectionSmi.cs
- SafeTimerHandle.cs
- PreloadedPackages.cs
- StringKeyFrameCollection.cs