Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / cdf / src / NetFx40 / System.Activities / System / Activities / Tracking / WorkflowInstanceUnhandledExceptionRecord.cs / 1305376 / WorkflowInstanceUnhandledExceptionRecord.cs
//------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //----------------------------------------------------------------------------- namespace System.Activities.Tracking { using System; using System.Runtime.Serialization; using System.Runtime; using System.Diagnostics; using System.Globalization; [Fx.Tag.XamlVisible(false)] [DataContract] public sealed class WorkflowInstanceUnhandledExceptionRecord : WorkflowInstanceRecord { public WorkflowInstanceUnhandledExceptionRecord(Guid instanceId, string activityDefinitionId, ActivityInfo faultSource, Exception exception) : this(instanceId, 0, activityDefinitionId, faultSource, exception) { } public WorkflowInstanceUnhandledExceptionRecord(Guid instanceId, long recordNumber, string activityDefinitionId, ActivityInfo faultSource, Exception exception) : base(instanceId, recordNumber, activityDefinitionId, WorkflowInstanceStates.UnhandledException) { if (string.IsNullOrEmpty(activityDefinitionId)) { throw FxTrace.Exception.ArgumentNullOrEmpty("activityDefinitionId"); } if (exception == null) { throw FxTrace.Exception.ArgumentNull("exception"); } if (faultSource == null) { throw FxTrace.Exception.ArgumentNull("faultSource"); } this.FaultSource = faultSource; this.UnhandledException = exception; this.Level = TraceLevel.Error; } WorkflowInstanceUnhandledExceptionRecord(WorkflowInstanceUnhandledExceptionRecord record) : base(record) { this.FaultSource = record.FaultSource; this.UnhandledException = record.UnhandledException; } [DataMember] public Exception UnhandledException { get; private set; } [DataMember] public ActivityInfo FaultSource { get; private set; } protected internal override TrackingRecord Clone() { return new WorkflowInstanceUnhandledExceptionRecord(this); } public override string ToString() { return string.Format(CultureInfo.CurrentCulture, "WorkflowInstanceUnhandledExceptionRecord {{ InstanceId = {0}, RecordNumber = {1}, EventTime = {2}, ActivityDefinitionId = {3}, FaultSource {{ {4} }}, UnhandledException = {5} }} ", this.InstanceId, this.RecordNumber, this.EventTime, this.ActivityDefinitionId, this.FaultSource.ToString(), this.UnhandledException); } } } // 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
- SafeBuffer.cs
- CodeCompiler.cs
- ExpandableObjectConverter.cs
- PathTooLongException.cs
- XPathNode.cs
- TextDecoration.cs
- CultureInfoConverter.cs
- AddInProcess.cs
- ConstraintCollection.cs
- SoapObjectReader.cs
- ComplexPropertyEntry.cs
- PointAnimationUsingKeyFrames.cs
- ObjectViewEntityCollectionData.cs
- AddInStore.cs
- GradientBrush.cs
- TableItemStyle.cs
- QilPatternFactory.cs
- ProviderConnectionPoint.cs
- MessageSecurityVersionConverter.cs
- ListBoxItemWrapperAutomationPeer.cs
- DynamicPhysicalDiscoSearcher.cs
- Point3DKeyFrameCollection.cs
- SQLGuidStorage.cs
- XmlDataProvider.cs
- TextSegment.cs
- PropagatorResult.cs
- LogArchiveSnapshot.cs
- HttpListenerException.cs
- TcpTransportElement.cs
- ResumeStoryboard.cs
- ObjectHelper.cs
- ReverseInheritProperty.cs
- WindowsRegion.cs
- SamlAuthorityBinding.cs
- DrawingImage.cs
- InvalidOleVariantTypeException.cs
- ValueType.cs
- FormsAuthenticationConfiguration.cs
- DocumentViewerHelper.cs
- FullTextLine.cs
- DelegateCompletionCallbackWrapper.cs
- selecteditemcollection.cs
- NativeMethods.cs
- SecurityDocument.cs
- TextFormatter.cs
- AdapterUtil.cs
- SessionSwitchEventArgs.cs
- MonitorWrapper.cs
- Identity.cs
- CompilerCollection.cs
- Rect.cs
- NativeRightsManagementAPIsStructures.cs
- HeaderedContentControl.cs
- RegexCode.cs
- FlowLayoutPanel.cs
- MenuItemStyle.cs
- TraceContextRecord.cs
- AssemblyBuilder.cs
- BasicHttpBinding.cs
- RadioButton.cs
- TextRangeBase.cs
- MergeLocalizationDirectives.cs
- RenameRuleObjectDialog.Designer.cs
- RunInstallerAttribute.cs
- ToolStripItemTextRenderEventArgs.cs
- SimpleTextLine.cs
- JsonServiceDocumentSerializer.cs
- ViewgenContext.cs
- Int64Converter.cs
- ScriptResourceDefinition.cs
- DbBuffer.cs
- MenuItemStyleCollection.cs
- ReadOnlyHierarchicalDataSource.cs
- Annotation.cs
- CodeExporter.cs
- ZoneLinkButton.cs
- ActivityBuilderHelper.cs
- CalendarAutomationPeer.cs
- SafeNativeMethods.cs
- FolderLevelBuildProvider.cs
- SafeMILHandleMemoryPressure.cs
- TemplateBamlRecordReader.cs
- mediaeventargs.cs
- DBPropSet.cs
- WebHostScriptMappingsInstallComponent.cs
- SizeKeyFrameCollection.cs
- WebServiceBindingAttribute.cs
- CheckBoxBaseAdapter.cs
- SoapObjectInfo.cs
- RadioButtonList.cs
- PreviewPrintController.cs
- CompilationSection.cs
- ToolStripPanelCell.cs
- WorkflowPersistenceService.cs
- RootBrowserWindowAutomationPeer.cs
- ProxySimple.cs
- QilStrConcatenator.cs
- CalendarDesigner.cs
- OleDbParameterCollection.cs
- CodeSpit.cs