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
- log.cs
- XmlArrayItemAttributes.cs
- BasicViewGenerator.cs
- OdbcParameterCollection.cs
- SortDescription.cs
- WebReference.cs
- InplaceBitmapMetadataWriter.cs
- IPipelineRuntime.cs
- TableProviderWrapper.cs
- EntitySqlQueryCacheEntry.cs
- BamlTreeNode.cs
- ExpressionParser.cs
- DeploymentSection.cs
- Constraint.cs
- UpdatableWrapper.cs
- DataFormats.cs
- FloaterBaseParaClient.cs
- Model3DCollection.cs
- SelectionListComponentEditor.cs
- PropertyConverter.cs
- VersionValidator.cs
- StreamMarshaler.cs
- IteratorDescriptor.cs
- UserControlDesigner.cs
- WebConfigurationFileMap.cs
- RelationshipEnd.cs
- ItemDragEvent.cs
- RemotingServices.cs
- DataGridViewCellEventArgs.cs
- MsmqHostedTransportConfiguration.cs
- ObjectTokenCategory.cs
- PageThemeBuildProvider.cs
- MobileResource.cs
- CompiledRegexRunnerFactory.cs
- DataTableMappingCollection.cs
- WindowCollection.cs
- TranslateTransform.cs
- StoreAnnotationsMap.cs
- MasterPageBuildProvider.cs
- DynamicILGenerator.cs
- NonClientArea.cs
- AuthenticatingEventArgs.cs
- XmlSignatureProperties.cs
- TypeContext.cs
- CurrencyWrapper.cs
- InputLanguageEventArgs.cs
- MiniLockedBorderGlyph.cs
- DataSourceHelper.cs
- IndexObject.cs
- TreeView.cs
- arabicshape.cs
- AggregationMinMaxHelpers.cs
- XmlSubtreeReader.cs
- PageWrapper.cs
- CompilerTypeWithParams.cs
- PeerCollaboration.cs
- SerializerDescriptor.cs
- PublishLicense.cs
- ErrorWrapper.cs
- SqlServer2KCompatibilityCheck.cs
- CacheMemory.cs
- DatagridviewDisplayedBandsData.cs
- ResXBuildProvider.cs
- NewItemsContextMenuStrip.cs
- SchemaRegistration.cs
- CharAnimationUsingKeyFrames.cs
- SystemIPv4InterfaceProperties.cs
- BevelBitmapEffect.cs
- RubberbandSelector.cs
- XmlChildEnumerator.cs
- HttpModuleCollection.cs
- Rect3D.cs
- activationcontext.cs
- Int32AnimationUsingKeyFrames.cs
- FlowDocumentScrollViewerAutomationPeer.cs
- UIEndRequest.cs
- RegexCompiler.cs
- ValidatorCompatibilityHelper.cs
- MouseEventArgs.cs
- RC2.cs
- GridItemPattern.cs
- DialogResultConverter.cs
- AttributeUsageAttribute.cs
- Expressions.cs
- TraceEventCache.cs
- NonSerializedAttribute.cs
- TypeUtils.cs
- Brush.cs
- ApplyTemplatesAction.cs
- SymbolUsageManager.cs
- SecurityException.cs
- CanonicalFontFamilyReference.cs
- SqlCrossApplyToCrossJoin.cs
- BaseResourcesBuildProvider.cs
- CompilerParameters.cs
- SmtpNetworkElement.cs
- HorizontalAlignConverter.cs
- HttpHeaderCollection.cs
- XmlBindingWorker.cs
- DataQuery.cs