Code:
/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / Shared / MS / Utility / PerfService.cs / 1 / PerfService.cs
//---------------------------------------------------------------------------- // //// Copyright (C) Microsoft Corporation. All rights reserved. // // // Description: Implements the Service class for perf diagnostics // // History // 05/25/06 [....] Created // //--------------------------------------------------------------------------- using System; using System.Text; using System.Windows; using Microsoft.Win32; using MS.Internal; using MS.Utility; using MS.Internal.PresentationCore; namespace MS.Utility { ////// PerfService loads the PerfDiagnosisHelp.dll and launchs the service. /// [FriendAccessAllowed] static internal class PerfService { #region internal Properties ////// Perfservice uses this property to uniquely identfy each element in the tree. /// this ID gets traced with ETW traces and gets mapped to the element in the tool /// value is valid only if the service is running /// internal static long GetPerfElementID(UIElement element) { if ((PerfElementIDProperty != null) && (element != null)) { return (long)element.GetValue(PerfElementIDProperty); } return 0; } ////// Perfservice uses this property to uniquely identfy each element in the tree. /// this ID gets traced with ETW traces and gets mapped to the element in the tool /// value is valid only if the service is running /// internal static void SetPerfElementID(UIElement element, long value) { if ((PerfElementIDProperty != null) && (element != null)) { element.SetValue(PerfElementIDProperty, value); } return ; } #endregion internal Properties internal static readonly DependencyProperty PerfElementIDProperty = DependencyProperty.RegisterAttached( "PerfElementID", typeof(long), typeof(PerfService), new PropertyMetadata((long)0)); } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- DBConcurrencyException.cs
- RijndaelManaged.cs
- XmlSchemaGroup.cs
- ApplicationSecurityManager.cs
- NativeMethods.cs
- AggregateNode.cs
- WebBrowserNavigatedEventHandler.cs
- AggregateNode.cs
- QuaternionAnimation.cs
- UseManagedPresentationBindingElementImporter.cs
- TypeDescriptionProviderAttribute.cs
- ToolTipService.cs
- StyleCollectionEditor.cs
- ExpressionVisitorHelpers.cs
- DataGridPageChangedEventArgs.cs
- ApplicationManager.cs
- ExpressionConverter.cs
- RedirectionProxy.cs
- WindowsListBox.cs
- SafeNativeMethods.cs
- XmlQueryRuntime.cs
- MetadataCacheItem.cs
- FileDialog_Vista_Interop.cs
- SoapServerMethod.cs
- MembershipValidatePasswordEventArgs.cs
- ResourceReader.cs
- BasicHttpMessageSecurityElement.cs
- CultureData.cs
- LicenseProviderAttribute.cs
- StaticSiteMapProvider.cs
- CommonGetThemePartSize.cs
- NamespaceDisplay.xaml.cs
- EventEntry.cs
- Evaluator.cs
- SQLInt32.cs
- DataServiceEntityAttribute.cs
- PrePrepareMethodAttribute.cs
- webproxy.cs
- GlyphRunDrawing.cs
- ButtonChrome.cs
- WebPageTraceListener.cs
- HttpApplicationFactory.cs
- ManifestResourceInfo.cs
- GlobalizationSection.cs
- ScrollChrome.cs
- SHA384.cs
- StringComparer.cs
- BrowserDefinitionCollection.cs
- Aes.cs
- BaseDataBoundControl.cs
- LeftCellWrapper.cs
- DbDataAdapter.cs
- SspiHelper.cs
- HtmlInputCheckBox.cs
- CaseInsensitiveOrdinalStringComparer.cs
- PropertiesTab.cs
- CollectionChange.cs
- DataBoundLiteralControl.cs
- ParenthesizePropertyNameAttribute.cs
- ParsedAttributeCollection.cs
- RemotingConfigParser.cs
- FlowDocumentReader.cs
- ViewCellRelation.cs
- ColorAnimation.cs
- ClientScriptManager.cs
- XamlFxTrace.cs
- Decoder.cs
- TypeUsageBuilder.cs
- ClientRuntimeConfig.cs
- OracleEncoding.cs
- OpenTypeMethods.cs
- SrgsToken.cs
- AttachedPropertyBrowsableAttribute.cs
- MediaTimeline.cs
- StreamWithDictionary.cs
- VirtualPathProvider.cs
- VisualStyleInformation.cs
- PreProcessor.cs
- DataSourceSelectArguments.cs
- Trigger.cs
- FormsAuthenticationUser.cs
- CertificateManager.cs
- HttpConfigurationSystem.cs
- IODescriptionAttribute.cs
- ToolStripItemTextRenderEventArgs.cs
- XmlLinkedNode.cs
- SupportingTokenListenerFactory.cs
- OdbcEnvironment.cs
- StringCollectionMarkupSerializer.cs
- Span.cs
- Latin1Encoding.cs
- TriggerCollection.cs
- DataSpaceManager.cs
- ScriptReference.cs
- EventSchemaTraceListener.cs
- EventLog.cs
- EventProxy.cs
- ToolBarOverflowPanel.cs
- IPAddressCollection.cs
- Parameter.cs