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
- LogicalTreeHelper.cs
- PropertyValueUIItem.cs
- TreeWalker.cs
- PermissionListSet.cs
- ModuleConfigurationInfo.cs
- ObjectTag.cs
- AnimatedTypeHelpers.cs
- StreamWithDictionary.cs
- AnchorEditor.cs
- InvokeProviderWrapper.cs
- MouseOverProperty.cs
- NamedObjectList.cs
- SecurityContext.cs
- SoapAttributeAttribute.cs
- TemplateControlParser.cs
- SqlCacheDependency.cs
- SqlProfileProvider.cs
- SoapAttributeAttribute.cs
- SystemWebCachingSectionGroup.cs
- WindowsGraphicsWrapper.cs
- CriticalHandle.cs
- HttpListenerContext.cs
- DataGrid.cs
- JsonQNameDataContract.cs
- EditorZoneBase.cs
- bidPrivateBase.cs
- Command.cs
- ErrorHandler.cs
- FixedDocumentPaginator.cs
- DSASignatureFormatter.cs
- CompositeControl.cs
- Command.cs
- DesignerVerbToolStripMenuItem.cs
- Geometry3D.cs
- PnrpPeerResolverElement.cs
- WindowsListViewItemStartMenu.cs
- HttpCacheVary.cs
- ComponentEditorPage.cs
- ActivityInterfaces.cs
- WebBrowserDesigner.cs
- NameValueConfigurationCollection.cs
- StylusLogic.cs
- AddInStore.cs
- ZipIOLocalFileDataDescriptor.cs
- PopupControlService.cs
- AttributeUsageAttribute.cs
- BaseAsyncResult.cs
- ExceptionHandler.cs
- GetReadStreamResult.cs
- PropertyInformation.cs
- DbRetry.cs
- UserValidatedEventArgs.cs
- ListBindingConverter.cs
- ProfileEventArgs.cs
- ServiceOperationWrapper.cs
- RemotingAttributes.cs
- SystemDiagnosticsSection.cs
- HtmlInputReset.cs
- TextRangeAdaptor.cs
- LostFocusEventManager.cs
- Window.cs
- DataGridColumnCollection.cs
- XmlSchemaAny.cs
- D3DImage.cs
- DeviceContext2.cs
- InvalidAsynchronousStateException.cs
- PasswordRecoveryAutoFormat.cs
- OptimalBreakSession.cs
- LoginUtil.cs
- ColumnPropertiesGroup.cs
- StateElementCollection.cs
- OneWayElement.cs
- PlatformCulture.cs
- RequestResizeEvent.cs
- PersonalizationProviderCollection.cs
- UnsettableComboBox.cs
- HelpEvent.cs
- HuffCodec.cs
- WpfPayload.cs
- __TransparentProxy.cs
- DragStartedEventArgs.cs
- PropertyEmitter.cs
- SimpleType.cs
- ProxyElement.cs
- RawStylusInputCustomData.cs
- Metadata.cs
- Filter.cs
- ConnectionManagementSection.cs
- XmlDownloadManager.cs
- ProtectedConfiguration.cs
- TemplateComponentConnector.cs
- EntityChangedParams.cs
- NativeMethods.cs
- BufferBuilder.cs
- ExtensionSimplifierMarkupObject.cs
- DelayedRegex.cs
- TextTreeInsertElementUndoUnit.cs
- DesignerToolboxInfo.cs
- EntityClientCacheEntry.cs
- WebPartZoneDesigner.cs