Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- NameValueSectionHandler.cs
- UnsafeNativeMethodsPenimc.cs
- EventProviderTraceListener.cs
- OdbcCommand.cs
- WaitingCursor.cs
- InvokePatternIdentifiers.cs
- StatusBarPanel.cs
- FrugalList.cs
- PassportPrincipal.cs
- ListView.cs
- DataGridRow.cs
- PackagePartCollection.cs
- COM2IDispatchConverter.cs
- EventPrivateKey.cs
- TrustManagerPromptUI.cs
- GraphicsContext.cs
- CodeSnippetStatement.cs
- InvariantComparer.cs
- Number.cs
- GeometryConverter.cs
- DoubleLinkList.cs
- ColumnCollection.cs
- ToolStrip.cs
- XmlSchemaAttribute.cs
- Assert.cs
- DesignerVerbCollection.cs
- DataControlImageButton.cs
- ComponentConverter.cs
- WebGetAttribute.cs
- ListDictionary.cs
- CellLabel.cs
- ListViewCommandEventArgs.cs
- InputLanguageManager.cs
- PropertyTab.cs
- UrlMappingCollection.cs
- Not.cs
- CheckBoxBaseAdapter.cs
- SegmentInfo.cs
- DynamicObjectAccessor.cs
- PerformanceCounterPermission.cs
- XmlCharCheckingWriter.cs
- PointCollectionValueSerializer.cs
- CodeMemberProperty.cs
- BindingValueChangedEventArgs.cs
- RenderCapability.cs
- XmlCustomFormatter.cs
- DispatcherOperation.cs
- XsltArgumentList.cs
- EntityDataSourceUtil.cs
- ProgressChangedEventArgs.cs
- ManagementEventWatcher.cs
- TaiwanCalendar.cs
- RuleInfoComparer.cs
- HwndProxyElementProvider.cs
- processwaithandle.cs
- XmlDocument.cs
- ListItem.cs
- DataContract.cs
- MissingManifestResourceException.cs
- ClientRuntimeConfig.cs
- PropertyToken.cs
- CodeSnippetStatement.cs
- ColorAnimationBase.cs
- CommentEmitter.cs
- PerformanceCounterPermissionAttribute.cs
- CacheDependency.cs
- EdmProviderManifest.cs
- EncodingTable.cs
- Viewport3DVisual.cs
- ZipIOLocalFileBlock.cs
- XmlSchemaComplexType.cs
- OutputCacheProfileCollection.cs
- KeyGesture.cs
- LiteralSubsegment.cs
- HttpApplication.cs
- WebConvert.cs
- OdbcConnectionFactory.cs
- CompilationLock.cs
- PrinterSettings.cs
- ModulesEntry.cs
- NamedElement.cs
- EventRecord.cs
- MethodCallConverter.cs
- DataGridViewTopLeftHeaderCell.cs
- PageStatePersister.cs
- FileDialogPermission.cs
- AppDomainProtocolHandler.cs
- XAMLParseException.cs
- StrongTypingException.cs
- XmlSchemaInfo.cs
- DataSourceControlBuilder.cs
- HtmlLink.cs
- ConfigurationElementProperty.cs
- WorkflowViewStateService.cs
- TemplateControlCodeDomTreeGenerator.cs
- MTConfigUtil.cs
- Rights.cs
- UserControlAutomationPeer.cs
- TypedReference.cs
- ValueUtilsSmi.cs