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
- ClockGroup.cs
- TextRangeProviderWrapper.cs
- Matrix.cs
- TextPointerBase.cs
- XPathBuilder.cs
- UITypeEditor.cs
- SQLDateTimeStorage.cs
- ValueType.cs
- DbConnectionFactory.cs
- XmlSchemaProviderAttribute.cs
- TypeDescriptorFilterService.cs
- Message.cs
- Assert.cs
- EventLogPermission.cs
- TextEndOfParagraph.cs
- _LoggingObject.cs
- Dynamic.cs
- SqlConnectionString.cs
- TableParagraph.cs
- XPathChildIterator.cs
- LogRestartAreaEnumerator.cs
- BitmapEffect.cs
- AuthenticateEventArgs.cs
- RowUpdatedEventArgs.cs
- ConstantSlot.cs
- ConfigurationPropertyCollection.cs
- RuleSettings.cs
- Splitter.cs
- AbandonedMutexException.cs
- Repeater.cs
- SmiRequestExecutor.cs
- BitmapEffectInput.cs
- Object.cs
- ProofTokenCryptoHandle.cs
- SqlConnectionHelper.cs
- InputLanguageManager.cs
- SqlBuilder.cs
- UnmanagedMarshal.cs
- SafeHandle.cs
- TimeSpanOrInfiniteValidator.cs
- WindowsListViewItemStartMenu.cs
- ErrorHandlingReceiver.cs
- Main.cs
- AttributeData.cs
- XmlQueryStaticData.cs
- TextInfo.cs
- PreviousTrackingServiceAttribute.cs
- ExpressionParser.cs
- DBConnection.cs
- UnmanagedBitmapWrapper.cs
- GetIndexBinder.cs
- ImageDesigner.cs
- Binding.cs
- COM2IProvidePropertyBuilderHandler.cs
- IISUnsafeMethods.cs
- DataGridViewCellCancelEventArgs.cs
- Opcode.cs
- AdapterDictionary.cs
- TraceXPathNavigator.cs
- ImageList.cs
- AccessedThroughPropertyAttribute.cs
- WebServiceResponse.cs
- ItemContainerGenerator.cs
- BoolExpr.cs
- PropertyTabChangedEvent.cs
- Rule.cs
- KeyValuePair.cs
- CustomCategoryAttribute.cs
- SqlProviderServices.cs
- XmlSerializerFactory.cs
- MarshalByRefObject.cs
- SqlUDTStorage.cs
- WsdlImporterElement.cs
- HtmlInputText.cs
- XmlQueryContext.cs
- WindowVisualStateTracker.cs
- ToolStripDropDownButton.cs
- SessionState.cs
- IDReferencePropertyAttribute.cs
- Util.cs
- BooleanAnimationUsingKeyFrames.cs
- Math.cs
- elementinformation.cs
- TextBoxBase.cs
- TreeViewAutomationPeer.cs
- ToolStripStatusLabel.cs
- TransformGroup.cs
- SecurityPolicySection.cs
- TdsParserStateObject.cs
- StateManager.cs
- BlobPersonalizationState.cs
- pingexception.cs
- GridLengthConverter.cs
- XmlSchemaDocumentation.cs
- DescendantQuery.cs
- AuthenticateEventArgs.cs
- BitmapInitialize.cs
- UIElement3DAutomationPeer.cs
- HierarchicalDataTemplate.cs
- WCFBuildProvider.cs