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
- DrawItemEvent.cs
- TileModeValidation.cs
- OracleEncoding.cs
- ClientProtocol.cs
- WpfXamlType.cs
- TextBlockAutomationPeer.cs
- GuidConverter.cs
- RawTextInputReport.cs
- CodeAttributeDeclaration.cs
- SID.cs
- ProgressBarRenderer.cs
- SqlMethodAttribute.cs
- MarkupCompilePass1.cs
- ConnectionProviderAttribute.cs
- SqlUtils.cs
- PreservationFileWriter.cs
- FormParameter.cs
- NegatedConstant.cs
- PlatformNotSupportedException.cs
- TypographyProperties.cs
- ClientType.cs
- Int32Storage.cs
- LocalizableResourceBuilder.cs
- EpmAttributeNameBuilder.cs
- ClientSideQueueItem.cs
- HtmlSelect.cs
- AvTrace.cs
- ListBindingHelper.cs
- DataBinding.cs
- ZoneButton.cs
- DataGridViewColumnEventArgs.cs
- _SslState.cs
- PartialArray.cs
- DragEvent.cs
- BuildManager.cs
- IIS7WorkerRequest.cs
- WindowsTab.cs
- EventWaitHandle.cs
- SqlProviderServices.cs
- ItemMap.cs
- ExtendedPropertyCollection.cs
- RegexGroup.cs
- TextWriterTraceListener.cs
- IISMapPath.cs
- FieldBuilder.cs
- LinearGradientBrush.cs
- XPathBinder.cs
- documentation.cs
- FontSourceCollection.cs
- SqlDataReaderSmi.cs
- dbdatarecord.cs
- UInt64Converter.cs
- RichTextBox.cs
- InternalResources.cs
- HttpModuleActionCollection.cs
- SkewTransform.cs
- VisualTransition.cs
- AnnotationResourceChangedEventArgs.cs
- DataGridRowClipboardEventArgs.cs
- WebConfigurationFileMap.cs
- ResourceExpressionBuilder.cs
- SQLInt64.cs
- RestClientProxyHandler.cs
- MarkupExtensionReturnTypeAttribute.cs
- SqlCacheDependencyDatabase.cs
- PropertyTab.cs
- EndOfStreamException.cs
- RNGCryptoServiceProvider.cs
- ArgumentOutOfRangeException.cs
- CustomErrorsSection.cs
- BinaryUtilClasses.cs
- ExecutionEngineException.cs
- FixedBufferAttribute.cs
- RPIdentityRequirement.cs
- SecurityAlgorithmSuiteConverter.cs
- WindowHideOrCloseTracker.cs
- XmlSchemaComplexType.cs
- MouseDevice.cs
- ContextBase.cs
- QuaternionAnimationBase.cs
- documentation.cs
- UInt16Storage.cs
- DesignerHierarchicalDataSourceView.cs
- ImageButton.cs
- XmlBaseReader.cs
- Vector3DAnimation.cs
- Context.cs
- LocalBuilder.cs
- DetailsViewDesigner.cs
- CRYPTPROTECT_PROMPTSTRUCT.cs
- BoolExpressionVisitors.cs
- Renderer.cs
- Int16Converter.cs
- ClientCredentials.cs
- TextCollapsingProperties.cs
- XamlPoint3DCollectionSerializer.cs
- WizardForm.cs
- ResXResourceSet.cs
- WindowsStartMenu.cs
- XmlSchemaGroup.cs