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
- Brushes.cs
- UIPermission.cs
- TabItemWrapperAutomationPeer.cs
- Html32TextWriter.cs
- GenerateHelper.cs
- ContentElementCollection.cs
- MapPathBasedVirtualPathProvider.cs
- WebPartZoneCollection.cs
- AccessibleObject.cs
- CngKeyCreationParameters.cs
- SchemaNamespaceManager.cs
- SplashScreen.cs
- DataControlField.cs
- PasswordTextNavigator.cs
- UnsafeNativeMethods.cs
- WinFormsSecurity.cs
- Paragraph.cs
- Visual3D.cs
- shaperfactoryquerycachekey.cs
- InternalConfigRoot.cs
- EntityModelSchemaGenerator.cs
- BitmapData.cs
- Rfc2898DeriveBytes.cs
- StringUtil.cs
- EncryptedData.cs
- StrokeCollection.cs
- TextRangeBase.cs
- PowerModeChangedEventArgs.cs
- StartUpEventArgs.cs
- UnsafeNativeMethods.cs
- StylusEventArgs.cs
- EventInfo.cs
- Queue.cs
- CodeGen.cs
- SqlTypeSystemProvider.cs
- LocalizedNameDescriptionPair.cs
- GeometryHitTestResult.cs
- xmlsaver.cs
- FunctionDescription.cs
- Math.cs
- TextPointer.cs
- TrackingMemoryStream.cs
- TransactionInterop.cs
- TemplateBuilder.cs
- UIElementIsland.cs
- DataTableMappingCollection.cs
- OlePropertyStructs.cs
- Tile.cs
- BaseDataListActionList.cs
- CommandConverter.cs
- Keywords.cs
- SqlTriggerContext.cs
- SafeBitVector32.cs
- DatagridviewDisplayedBandsData.cs
- DynamicPropertyHolder.cs
- ProgressBar.cs
- WebScriptEnablingBehavior.cs
- securitycriticaldataformultiplegetandset.cs
- HijriCalendar.cs
- IISMapPath.cs
- BooleanProjectedSlot.cs
- UIElement3DAutomationPeer.cs
- ProxyElement.cs
- BypassElement.cs
- MouseCaptureWithinProperty.cs
- Tablet.cs
- IERequestCache.cs
- NativeMethodsOther.cs
- WindowsFormsHelpers.cs
- RequestCacheManager.cs
- ProcessInputEventArgs.cs
- SocketAddress.cs
- PageFunction.cs
- Span.cs
- AddingNewEventArgs.cs
- StateManagedCollection.cs
- DocumentCollection.cs
- AppManager.cs
- SafeRightsManagementQueryHandle.cs
- RotateTransform3D.cs
- SchemaMapping.cs
- OleDbParameter.cs
- SafeNativeMethods.cs
- DigestTraceRecordHelper.cs
- CodeCommentStatementCollection.cs
- BufferedReadStream.cs
- SourceElementsCollection.cs
- AutomationElementIdentifiers.cs
- CodeDelegateInvokeExpression.cs
- XsltException.cs
- RevocationPoint.cs
- ConfigurationStrings.cs
- UniqueCodeIdentifierScope.cs
- DataError.cs
- SchemaTypeEmitter.cs
- ClientFormsAuthenticationCredentials.cs
- SafeThemeHandle.cs
- PartitionResolver.cs
- DrawingCollection.cs
- Package.cs