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
- CompareValidator.cs
- MailMessage.cs
- InvalidPrinterException.cs
- SpellerHighlightLayer.cs
- XpsFixedDocumentSequenceReaderWriter.cs
- InteropBitmapSource.cs
- DoubleIndependentAnimationStorage.cs
- WindowsGraphics2.cs
- Splitter.cs
- CannotUnloadAppDomainException.cs
- LinkGrep.cs
- ExpressionSelection.cs
- ClientSideProviderDescription.cs
- PEFileEvidenceFactory.cs
- XslCompiledTransform.cs
- CompatibleComparer.cs
- RootBrowserWindow.cs
- SessionPageStatePersister.cs
- SamlAdvice.cs
- ObjectManager.cs
- webclient.cs
- XmlComplianceUtil.cs
- BindStream.cs
- DynamicRouteExpression.cs
- Lease.cs
- QueryContinueDragEventArgs.cs
- Odbc32.cs
- DataGridItemCollection.cs
- ResourceDefaultValueAttribute.cs
- Hex.cs
- CheckoutException.cs
- _ConnectionGroup.cs
- BinaryFormatter.cs
- VirtualizingStackPanel.cs
- AutoGeneratedField.cs
- WindowsGraphicsCacheManager.cs
- Reference.cs
- GenericIdentity.cs
- GridEntryCollection.cs
- DataPagerCommandEventArgs.cs
- FileUtil.cs
- IResourceProvider.cs
- SchemaEntity.cs
- AvtEvent.cs
- PathStreamGeometryContext.cs
- FormClosingEvent.cs
- EntityObject.cs
- DataRecordObjectView.cs
- DataGridViewCheckBoxColumn.cs
- XmlComment.cs
- HTMLTextWriter.cs
- OpenTypeCommon.cs
- COAUTHINFO.cs
- EntityPropertyMappingAttribute.cs
- EncryptedKeyIdentifierClause.cs
- AsymmetricAlgorithm.cs
- RectAnimationBase.cs
- OrCondition.cs
- StyleXamlTreeBuilder.cs
- TransportChannelFactory.cs
- XmlWrappingReader.cs
- CheckBoxList.cs
- UserControlParser.cs
- DataSourceHelper.cs
- XmlSchemaSimpleType.cs
- SQLGuidStorage.cs
- RadioButtonList.cs
- ExtensionQuery.cs
- BamlVersionHeader.cs
- ConfigurationValidatorBase.cs
- TextDecorationCollection.cs
- RegexCharClass.cs
- WhitespaceRuleLookup.cs
- parserscommon.cs
- HttpException.cs
- XmlSerializationReader.cs
- PtsHost.cs
- XmlSchemaElement.cs
- UnmanagedBitmapWrapper.cs
- SoapEnumAttribute.cs
- ScriptIgnoreAttribute.cs
- DrawListViewItemEventArgs.cs
- DataObjectSettingDataEventArgs.cs
- Visual3D.cs
- TableCellsCollectionEditor.cs
- XPathNodeHelper.cs
- CompModSwitches.cs
- OracleBoolean.cs
- ClientTarget.cs
- WindowsGraphics.cs
- CaseInsensitiveComparer.cs
- WhitespaceRuleLookup.cs
- ScriptingSectionGroup.cs
- OdbcDataReader.cs
- MenuItem.cs
- WebPartVerbCollection.cs
- smtpconnection.cs
- SiteMapNode.cs
- XmlWriterSettings.cs
- TraversalRequest.cs