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
- EventDescriptor.cs
- DrawingContextWalker.cs
- BinHexEncoding.cs
- ClonableStack.cs
- PeerDefaultCustomResolverClient.cs
- HtmlInputHidden.cs
- ResourceSet.cs
- XhtmlConformanceSection.cs
- GeometryModel3D.cs
- TreeBuilderXamlTranslator.cs
- QueryOutputWriter.cs
- _ChunkParse.cs
- FastEncoderWindow.cs
- CommandConverter.cs
- FormatterServices.cs
- CommandLineParser.cs
- EntityDataSourceContainerNameItem.cs
- CompleteWizardStep.cs
- httpapplicationstate.cs
- DesignerTransactionCloseEvent.cs
- Positioning.cs
- TypeConstant.cs
- TreeViewAutomationPeer.cs
- ImageField.cs
- ListViewItem.cs
- XmlILCommand.cs
- EditableRegion.cs
- CopyAction.cs
- ErrorHandler.cs
- DataBoundControl.cs
- HijriCalendar.cs
- KoreanLunisolarCalendar.cs
- DataFormat.cs
- RayHitTestParameters.cs
- ValidationResult.cs
- DefinitionBase.cs
- NgenServicingAttributes.cs
- ValueExpressions.cs
- MailSettingsSection.cs
- HttpListenerResponse.cs
- Soap.cs
- NamespaceQuery.cs
- AmbientProperties.cs
- TableStyle.cs
- DiscoveryClient.cs
- XmlAttributeAttribute.cs
- StoreItemCollection.Loader.cs
- AuthenticationManager.cs
- UpdateTracker.cs
- XamlWrappingReader.cs
- Blend.cs
- SecureStringHasher.cs
- AccessDataSourceView.cs
- TextProperties.cs
- _IPv4Address.cs
- PersonalizationState.cs
- FontStyleConverter.cs
- ByteStorage.cs
- SerialReceived.cs
- PeerContact.cs
- ConnectionManagementSection.cs
- DoubleStorage.cs
- EdmToObjectNamespaceMap.cs
- IsolatedStorageException.cs
- ElementHost.cs
- OutputCacheProfile.cs
- Optimizer.cs
- SplitterCancelEvent.cs
- QilName.cs
- DBBindings.cs
- TableLayout.cs
- ChannelManagerBase.cs
- FixedTextBuilder.cs
- DerivedKeyCachingSecurityTokenSerializer.cs
- TableTextElementCollectionInternal.cs
- XslAstAnalyzer.cs
- ActiveDocumentEvent.cs
- NameTable.cs
- DataGridViewElement.cs
- UpdatePanel.cs
- TraceSwitch.cs
- BulletDecorator.cs
- MemoryResponseElement.cs
- VarInfo.cs
- Config.cs
- DataGridViewRow.cs
- PageTheme.cs
- PrincipalPermission.cs
- StringDictionary.cs
- TextLineResult.cs
- shaperfactoryquerycachekey.cs
- BooleanKeyFrameCollection.cs
- MemberMemberBinding.cs
- DesignerTransactionCloseEvent.cs
- WebHttpBindingCollectionElement.cs
- XPathNodeList.cs
- InstanceCompleteException.cs
- mansign.cs
- CollectionBuilder.cs
- DrawingServices.cs