Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / ndp / fx / src / Services / Monitoring / system / Diagnosticts / PerformanceCounterManager.cs / 1 / 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
- RegexWriter.cs
- LinkClickEvent.cs
- ClaimComparer.cs
- DrawingAttributes.cs
- SingletonInstanceContextProvider.cs
- SqlWebEventProvider.cs
- TableCellAutomationPeer.cs
- PageThemeCodeDomTreeGenerator.cs
- TimeoutHelper.cs
- SerializableAttribute.cs
- VisualTreeUtils.cs
- BoundField.cs
- AudioLevelUpdatedEventArgs.cs
- PeerNode.cs
- TypeTypeConverter.cs
- WebServiceEndpoint.cs
- SQLGuidStorage.cs
- StatusStrip.cs
- Registration.cs
- RegexStringValidatorAttribute.cs
- basemetadatamappingvisitor.cs
- CreateRefExpr.cs
- DataGridViewCheckBoxColumn.cs
- CounterCreationDataCollection.cs
- NativeMethods.cs
- ScriptingJsonSerializationSection.cs
- ContextStaticAttribute.cs
- recordstate.cs
- RequestNavigateEventArgs.cs
- XmlDownloadManager.cs
- GridLength.cs
- FixedElement.cs
- Compiler.cs
- RequestCachePolicy.cs
- input.cs
- FlowchartDesignerCommands.cs
- PatternMatcher.cs
- FileUpload.cs
- sqlser.cs
- PriorityItem.cs
- Quad.cs
- ApplicationInfo.cs
- ProtocolReflector.cs
- WebBrowserBase.cs
- TargetConverter.cs
- WebUtil.cs
- PointAnimationBase.cs
- WindowExtensionMethods.cs
- DoubleAnimation.cs
- ResXDataNode.cs
- FixedSOMSemanticBox.cs
- Nullable.cs
- ImportFileRequest.cs
- InternalPolicyElement.cs
- PolyQuadraticBezierSegment.cs
- tabpagecollectioneditor.cs
- UriTemplateVariableQueryValue.cs
- HealthMonitoringSectionHelper.cs
- XhtmlBasicControlAdapter.cs
- XmlSerializer.cs
- WebRequestModuleElementCollection.cs
- objectquery_tresulttype.cs
- DataGridViewLinkCell.cs
- MarkedHighlightComponent.cs
- Rijndael.cs
- TextLineResult.cs
- TTSEvent.cs
- DrawingAttributeSerializer.cs
- ExceptionUtil.cs
- PageSetupDialog.cs
- Int16Animation.cs
- WindowsFont.cs
- ClientFormsIdentity.cs
- ProfilePropertyMetadata.cs
- XmlNodeList.cs
- MetafileHeader.cs
- DoWorkEventArgs.cs
- EnumCodeDomSerializer.cs
- SQLInt64.cs
- GenericIdentity.cs
- NativeMethods.cs
- CompressionTransform.cs
- DropSource.cs
- XmlBoundElement.cs
- PackageFilter.cs
- X509Certificate2Collection.cs
- FloaterParaClient.cs
- EdmSchemaAttribute.cs
- XamlInterfaces.cs
- DesignerActionService.cs
- DiscoveryClientChannelFactory.cs
- FlagsAttribute.cs
- WhiteSpaceTrimStringConverter.cs
- DesignerCategoryAttribute.cs
- DataGridViewComboBoxCell.cs
- FontConverter.cs
- ToolStripDropDownClosingEventArgs.cs
- TextWriter.cs
- DataSourceControl.cs
- OutputCacheSettingsSection.cs