Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / cdf / src / WF / Common / AuthoringOM / Behaviors / CompensatableTransactionScopeActivityDesigner.cs / 1305376 / CompensatableTransactionScopeActivityDesigner.cs
namespace System.Workflow.ComponentModel.Design { using System; using System.Drawing; using System.Drawing.Drawing2D; using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; using System.ComponentModel; using System.ComponentModel.Design; using System.Workflow.ComponentModel.Design; #region Class CompensatableTransactionScopeActivityDesigner internal sealed class CompensatableTransactionScopeActivityDesigner : SequenceDesigner { public override ReadOnlyCollectionViews { get { List views = new List (); foreach (DesignerView view in base.Views) { // disable the exceptions view and cancellation handler view Type activityType = view.UserData[SecondaryView.UserDataKey_ActivityType] as Type; if (activityType != null && !typeof(CancellationHandlerActivity).IsAssignableFrom(activityType) && !typeof(FaultHandlersActivity).IsAssignableFrom(activityType)) { views.Add(view); } } return new ReadOnlyCollection (views); } } } #endregion } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved. namespace System.Workflow.ComponentModel.Design { using System; using System.Drawing; using System.Drawing.Drawing2D; using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; using System.ComponentModel; using System.ComponentModel.Design; using System.Workflow.ComponentModel.Design; #region Class CompensatableTransactionScopeActivityDesigner internal sealed class CompensatableTransactionScopeActivityDesigner : SequenceDesigner { public override ReadOnlyCollection Views { get { List views = new List (); foreach (DesignerView view in base.Views) { // disable the exceptions view and cancellation handler view Type activityType = view.UserData[SecondaryView.UserDataKey_ActivityType] as Type; if (activityType != null && !typeof(CancellationHandlerActivity).IsAssignableFrom(activityType) && !typeof(FaultHandlersActivity).IsAssignableFrom(activityType)) { views.Add(view); } } return new ReadOnlyCollection (views); } } } #endregion } // 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
- X509Utils.cs
- SolidColorBrush.cs
- FontInfo.cs
- CapabilitiesRule.cs
- PenContexts.cs
- XsdValidatingReader.cs
- BooleanStorage.cs
- LinkDescriptor.cs
- FormsAuthenticationModule.cs
- Instrumentation.cs
- GeneralTransform3DCollection.cs
- Constraint.cs
- AsyncSerializedWorker.cs
- DefaultObjectMappingItemCollection.cs
- XmlReaderSettings.cs
- Rect.cs
- ManifestSignedXml.cs
- LockCookie.cs
- ReadOnlyDictionary.cs
- SmiSettersStream.cs
- _ShellExpression.cs
- EmptyWorkItem.cs
- MethodImplAttribute.cs
- StorageMappingFragment.cs
- Queue.cs
- ReadOnlyDictionary.cs
- DataGridViewColumn.cs
- ExitEventArgs.cs
- StreamGeometry.cs
- TextEditorMouse.cs
- HtmlControl.cs
- SecureEnvironment.cs
- XmlTypeMapping.cs
- LoadGrammarCompletedEventArgs.cs
- SimpleFieldTemplateFactory.cs
- GetIndexBinder.cs
- StorageAssociationSetMapping.cs
- HttpProfileGroupBase.cs
- ModulesEntry.cs
- SamlSecurityToken.cs
- XamlDesignerSerializationManager.cs
- FillBehavior.cs
- ControlBuilder.cs
- X509Extension.cs
- IdleTimeoutMonitor.cs
- XmlSerializationWriter.cs
- DispatcherProcessingDisabled.cs
- ZeroOpNode.cs
- TraceInternal.cs
- SQLByte.cs
- Binding.cs
- DataRecordObjectView.cs
- Root.cs
- CommandBinding.cs
- SendActivityValidator.cs
- ApplicationFileCodeDomTreeGenerator.cs
- AssertHelper.cs
- RoutedEventConverter.cs
- EntityProviderServices.cs
- MapPathBasedVirtualPathProvider.cs
- ServiceDescriptionReflector.cs
- SafeNativeMethods.cs
- GenericParameterDataContract.cs
- SettingsPropertyIsReadOnlyException.cs
- OptimizedTemplateContent.cs
- SizeChangedEventArgs.cs
- XPathDocumentBuilder.cs
- LayoutEditorPart.cs
- SwitchLevelAttribute.cs
- ShutDownListener.cs
- TdsEnums.cs
- MemberPath.cs
- NullRuntimeConfig.cs
- AssemblyBuilderData.cs
- SingleConverter.cs
- IgnorePropertiesAttribute.cs
- TargetException.cs
- LinkArea.cs
- HashMembershipCondition.cs
- CounterSampleCalculator.cs
- AttributedMetaModel.cs
- Matrix.cs
- BroadcastEventHelper.cs
- AsyncCompletedEventArgs.cs
- HostedAspNetEnvironment.cs
- COM2IDispatchConverter.cs
- ObfuscateAssemblyAttribute.cs
- Exceptions.cs
- NetSectionGroup.cs
- PriorityQueue.cs
- WindowsSecurityTokenAuthenticator.cs
- ReadOnlyTernaryTree.cs
- GlyphShapingProperties.cs
- AsyncSerializedWorker.cs
- Speller.cs
- CompositeFontFamily.cs
- FolderBrowserDialog.cs
- LineServicesRun.cs
- XmlObjectSerializer.cs
- XmlSchemaComplexContentRestriction.cs