Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / cdf / src / NetFx40 / System.Activities / System / Activities / Tracking / CustomTrackingRecord.cs / 1305376 / CustomTrackingRecord.cs
//------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //----------------------------------------------------------------------------- namespace System.Activities.Tracking { using System; using System.Collections.Generic; using System.Text; using System.Runtime.Serialization; using System.Runtime; using System.Diagnostics; using System.Globalization; [DataContract] [Fx.Tag.XamlVisible(false)] public class CustomTrackingRecord : TrackingRecord { [DataMember(EmitDefaultValue = false)] IDictionarydata; public CustomTrackingRecord(string name) :this(name, TraceLevel.Info) { } public CustomTrackingRecord(string name, TraceLevel level) :this(Guid.Empty, name, level) { } public CustomTrackingRecord(Guid instanceId, string name, TraceLevel level) : base(instanceId) { if (string.IsNullOrEmpty(name)) { throw FxTrace.Exception.ArgumentNull("name"); } this.Name = name; this.Level = level; } protected CustomTrackingRecord(CustomTrackingRecord record) :base(record) { this.Name = record.Name; this.Activity = record.Activity; if (record.data != null && record.data.Count > 0) { foreach (KeyValuePair item in record.data) { this.Data.Add(item); } } } [DataMember] public string Name { get; private set; } [DataMember] public ActivityInfo Activity { get; internal set; } public IDictionary Data { get { if (this.data == null) { this.data = new Dictionary (); } return this.data; } } protected internal override TrackingRecord Clone() { return new CustomTrackingRecord(this); } public override string ToString() { return string.Format(CultureInfo.InvariantCulture, "CustomTrackingRecord {{ {0}, Name={1}, Activity {{ {2} }}, Level = {3} }}", base.ToString(), this.Name, this.Activity == null ? " " : this.Activity.ToString(), this.Level); } } } // 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
- SafeLocalMemHandle.cs
- Task.cs
- DocumentPaginator.cs
- FontStyleConverter.cs
- CodeBinaryOperatorExpression.cs
- TagNameToTypeMapper.cs
- LayoutEditorPart.cs
- FrameworkElementFactoryMarkupObject.cs
- SafeRightsManagementQueryHandle.cs
- XsdDuration.cs
- PocoPropertyAccessorStrategy.cs
- CuspData.cs
- XmlSchemaInferenceException.cs
- ResizeGrip.cs
- ConsumerConnectionPointCollection.cs
- CommonBehaviorsSection.cs
- TextBoxBase.cs
- EntityClassGenerator.cs
- TransactionManager.cs
- ObjectHandle.cs
- XslCompiledTransform.cs
- ServiceModelEnhancedConfigurationElementCollection.cs
- ConstNode.cs
- HorizontalAlignConverter.cs
- SafeThreadHandle.cs
- DigitShape.cs
- ImpersonationContext.cs
- Helpers.cs
- CatalogPartCollection.cs
- CheckBoxRenderer.cs
- PageCodeDomTreeGenerator.cs
- ContentTypeSettingDispatchMessageFormatter.cs
- DataRelationCollection.cs
- RefType.cs
- SiteMapHierarchicalDataSourceView.cs
- XmlNavigatorFilter.cs
- Pens.cs
- NamespaceMapping.cs
- SimpleTableProvider.cs
- ExpressionBinding.cs
- DataViewSettingCollection.cs
- FactoryId.cs
- HostSecurityManager.cs
- DataMemberFieldEditor.cs
- Crc32Helper.cs
- TableAutomationPeer.cs
- UTF32Encoding.cs
- HuffmanTree.cs
- StringResourceManager.cs
- ArithmeticException.cs
- XPathMessageFilterTable.cs
- SaveWorkflowAsyncResult.cs
- ReceiveContextCollection.cs
- XhtmlBasicValidatorAdapter.cs
- QilTernary.cs
- ResourceReferenceExpression.cs
- ZipIOLocalFileBlock.cs
- HttpResponse.cs
- SubpageParaClient.cs
- ReadOnlyHierarchicalDataSourceView.cs
- UpdateProgress.cs
- WebDisplayNameAttribute.cs
- ConcurrentDictionary.cs
- TreeBuilderBamlTranslator.cs
- Cloud.cs
- CompiledQuery.cs
- RegistryPermission.cs
- StructuralObject.cs
- CompleteWizardStep.cs
- XslNumber.cs
- ProfileGroupSettingsCollection.cs
- MediaContextNotificationWindow.cs
- CollectionContainer.cs
- GeometryModel3D.cs
- SimpleHandlerFactory.cs
- ObjectAnimationUsingKeyFrames.cs
- WebPartEditVerb.cs
- ComponentDispatcher.cs
- ScrollChangedEventArgs.cs
- DecoderNLS.cs
- DataTableReader.cs
- TypeUsage.cs
- GetPageNumberCompletedEventArgs.cs
- XPathNodeInfoAtom.cs
- _LocalDataStoreMgr.cs
- CodeExpressionStatement.cs
- ConfigXmlWhitespace.cs
- SoapHeaderException.cs
- Control.cs
- DesignerDataTable.cs
- BroadcastEventHelper.cs
- ListBox.cs
- FullTextState.cs
- Pointer.cs
- BridgeDataReader.cs
- AddInDeploymentState.cs
- ServiceModelActivity.cs
- SystemIPInterfaceStatistics.cs
- LinkGrep.cs
- WindowsFormsSectionHandler.cs