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
- VirtualPath.cs
- RootBrowserWindowProxy.cs
- ClientConfigurationSystem.cs
- CodeEntryPointMethod.cs
- Rect.cs
- DataGridViewBand.cs
- Int32Storage.cs
- ErrorTableItemStyle.cs
- SerialStream.cs
- ComponentCollection.cs
- HostingPreferredMapPath.cs
- PointIndependentAnimationStorage.cs
- PresentationAppDomainManager.cs
- TemplateManager.cs
- TagPrefixCollection.cs
- ServiceContractGenerationContext.cs
- ItemCheckEvent.cs
- TreePrinter.cs
- InfoCardRSAPKCS1KeyExchangeFormatter.cs
- FilterException.cs
- GridViewSelectEventArgs.cs
- CodeGroup.cs
- OdbcDataAdapter.cs
- NativeMethods.cs
- AbsoluteQuery.cs
- LogManagementAsyncResult.cs
- UxThemeWrapper.cs
- IItemContainerGenerator.cs
- FontConverter.cs
- SqlDataSource.cs
- ObjectDataSourceEventArgs.cs
- RenameRuleObjectDialog.cs
- FontNamesConverter.cs
- NumericExpr.cs
- DependencyPropertyChangedEventArgs.cs
- UICuesEvent.cs
- CompareValidator.cs
- SecurityException.cs
- DataGridClipboardCellContent.cs
- InputLanguageEventArgs.cs
- ConfigurationProperty.cs
- EntityDataSourceDesignerHelper.cs
- ObjectQueryExecutionPlan.cs
- DrawItemEvent.cs
- RepeatButton.cs
- PathFigureCollection.cs
- ErrorCodes.cs
- HttpServerVarsCollection.cs
- BmpBitmapEncoder.cs
- HWStack.cs
- WorkflowInstanceRecord.cs
- PluggableProtocol.cs
- FileLevelControlBuilderAttribute.cs
- AssemblyUtil.cs
- Timer.cs
- DefaultMemberAttribute.cs
- CellCreator.cs
- HtmlUtf8RawTextWriter.cs
- Clause.cs
- EmptyQuery.cs
- TypeUsage.cs
- InstanceNotReadyException.cs
- SqlXmlStorage.cs
- XmlDocument.cs
- XmlIlGenerator.cs
- Latin1Encoding.cs
- DetailsViewCommandEventArgs.cs
- WebServiceResponseDesigner.cs
- _CommandStream.cs
- ToolStripItemRenderEventArgs.cs
- BulletedListEventArgs.cs
- TraceSwitch.cs
- ProjectedSlot.cs
- Column.cs
- CodeExporter.cs
- DataContext.cs
- PerformanceCounterPermissionEntry.cs
- AppSettingsExpressionBuilder.cs
- GregorianCalendarHelper.cs
- VisualStyleTypesAndProperties.cs
- EdmTypeAttribute.cs
- EditorPartCollection.cs
- NameValueConfigurationCollection.cs
- ValidateNames.cs
- DesignConnectionCollection.cs
- COM2ICategorizePropertiesHandler.cs
- ControlEvent.cs
- SystemThemeKey.cs
- AuthenticationSection.cs
- ActivityUtilities.cs
- SecurityTokenException.cs
- PipeConnection.cs
- DataObject.cs
- SHA384Managed.cs
- TransformCollection.cs
- ValidateNames.cs
- Missing.cs
- RangeValidator.cs
- SessionPageStateSection.cs
- FacetDescriptionElement.cs