Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / cdf / src / WF / Common / AuthoringOM / Behaviors / TransactionScopeDesigner.cs / 1305376 / TransactionScopeDesigner.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 TransactionScopeActivityDesigner internal sealed class TransactionScopeActivityDesigner : 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 TransactionScopeActivityDesigner internal sealed class TransactionScopeActivityDesigner : 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
- TriState.cs
- StringConcat.cs
- Pkcs7Signer.cs
- SystemKeyConverter.cs
- ConfigurationErrorsException.cs
- VectorAnimation.cs
- DetailsViewRowCollection.cs
- dataobject.cs
- HyperLinkDesigner.cs
- TextParaClient.cs
- BitmapPalettes.cs
- Properties.cs
- DateTimeStorage.cs
- FontInfo.cs
- ProfilePropertySettings.cs
- Figure.cs
- RoleGroup.cs
- WebBrowserSiteBase.cs
- ObjectKeyFrameCollection.cs
- TdsParser.cs
- XmlSchema.cs
- Exceptions.cs
- EntityProviderFactory.cs
- SqlException.cs
- XmlStreamStore.cs
- TemplateKeyConverter.cs
- CollectionViewGroupInternal.cs
- Module.cs
- NegationPusher.cs
- TextChangedEventArgs.cs
- Soap11ServerProtocol.cs
- ToolStripHighContrastRenderer.cs
- UnauthorizedWebPart.cs
- CodeConditionStatement.cs
- COM2IPerPropertyBrowsingHandler.cs
- XpsFont.cs
- ListDataBindEventArgs.cs
- GenericUriParser.cs
- EntityType.cs
- safemediahandle.cs
- TransactionWaitAsyncResult.cs
- ConfigXmlComment.cs
- ProviderCommandInfoUtils.cs
- ClientFactory.cs
- TypedTableBase.cs
- RenderingEventArgs.cs
- CallbackTimeoutsBehavior.cs
- Int32CollectionConverter.cs
- SizeAnimationBase.cs
- ResXBuildProvider.cs
- SimpleMailWebEventProvider.cs
- XmlSerializationReader.cs
- HttpContext.cs
- COM2TypeInfoProcessor.cs
- EventItfInfo.cs
- GeometryDrawing.cs
- PassportIdentity.cs
- ChtmlLinkAdapter.cs
- ParameterReplacerVisitor.cs
- OSEnvironmentHelper.cs
- SiteMapProvider.cs
- RuleInfoComparer.cs
- IPPacketInformation.cs
- XmlSigningNodeWriter.cs
- DataGridRow.cs
- Collection.cs
- ToolboxBitmapAttribute.cs
- CheckBox.cs
- URLMembershipCondition.cs
- DataBindingCollection.cs
- SmiSettersStream.cs
- ModelItem.cs
- RelationshipFixer.cs
- DynamicPropertyReader.cs
- cryptoapiTransform.cs
- CodeGroup.cs
- TableDetailsRow.cs
- TypeBuilder.cs
- ToolStripSplitButton.cs
- Utility.cs
- CapacityStreamGeometryContext.cs
- XmlSchemaInfo.cs
- WorkflowElementDialog.cs
- PropertyItem.cs
- ProxySimple.cs
- TextAction.cs
- VisualProxy.cs
- MinimizableAttributeTypeConverter.cs
- ValidationEventArgs.cs
- UnicodeEncoding.cs
- Cell.cs
- X509SecurityTokenAuthenticator.cs
- UrlMapping.cs
- ColorConverter.cs
- Frame.cs
- BitmapData.cs
- SecurityTokenSerializer.cs
- Substitution.cs
- DataGridPagingPage.cs
- StrokeSerializer.cs