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
- AutomationProperty.cs
- ApplicationServiceHelper.cs
- XMLSchema.cs
- DataSet.cs
- SchemaAttDef.cs
- FrameworkContentElement.cs
- WorkflowCompensationBehavior.cs
- CommonDialog.cs
- BulletedListEventArgs.cs
- WinFormsUtils.cs
- AutomationIdentifier.cs
- TransformPattern.cs
- PieceDirectory.cs
- ContentType.cs
- MultilineStringConverter.cs
- EventLogPermissionEntry.cs
- SectionXmlInfo.cs
- StdValidatorsAndConverters.cs
- MemoryPressure.cs
- ControlAdapter.cs
- RequestCachingSection.cs
- GeneralTransform3DCollection.cs
- DispatcherHookEventArgs.cs
- HostProtectionPermission.cs
- IriParsingElement.cs
- FontInfo.cs
- LocalizationParserHooks.cs
- StringArrayConverter.cs
- TemplateControlBuildProvider.cs
- sqlcontext.cs
- ControlValuePropertyAttribute.cs
- AttributeEmitter.cs
- AsyncSerializedWorker.cs
- EntityWrapper.cs
- coordinator.cs
- XmlSchemaValidationException.cs
- GetPageNumberCompletedEventArgs.cs
- SemaphoreSecurity.cs
- EqualityComparer.cs
- DBConnection.cs
- StdValidatorsAndConverters.cs
- CredentialCache.cs
- NetworkAddressChange.cs
- TextProviderWrapper.cs
- TabControl.cs
- FastEncoderWindow.cs
- GroupStyle.cs
- SystemThemeKey.cs
- MasterPageParser.cs
- IPHostEntry.cs
- BooleanKeyFrameCollection.cs
- HandlerWithFactory.cs
- VisualBrush.cs
- XmlReaderSettings.cs
- DockPanel.cs
- DataReceivedEventArgs.cs
- ValidatingCollection.cs
- CustomTypeDescriptor.cs
- RadialGradientBrush.cs
- TableRow.cs
- ScaleTransform3D.cs
- System.Data.OracleClient_BID.cs
- EntityDataSourceQueryBuilder.cs
- CultureInfo.cs
- TextTrailingCharacterEllipsis.cs
- HttpHostedTransportConfiguration.cs
- DynamicILGenerator.cs
- TextParagraphView.cs
- ImageListUtils.cs
- AssociationSetEnd.cs
- ObjectSecurity.cs
- AffineTransform3D.cs
- DataGridViewCellMouseEventArgs.cs
- HttpCacheParams.cs
- TileBrush.cs
- ArrangedElementCollection.cs
- CompilerInfo.cs
- XhtmlTextWriter.cs
- SmiXetterAccessMap.cs
- ImpersonateTokenRef.cs
- EventData.cs
- OdbcError.cs
- TrackBarRenderer.cs
- DoubleAnimation.cs
- TabPageDesigner.cs
- SchemaElement.cs
- Literal.cs
- PropertyPathConverter.cs
- Run.cs
- OrderedHashRepartitionStream.cs
- TopClause.cs
- TimeSpanMinutesOrInfiniteConverter.cs
- SignatureHelper.cs
- TcpTransportSecurityElement.cs
- Point3DKeyFrameCollection.cs
- IssuedTokenClientCredential.cs
- StoreContentChangedEventArgs.cs
- ThrowHelper.cs
- SuppressMessageAttribute.cs
- shaperfactoryquerycachekey.cs