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
- MatchNoneMessageFilter.cs
- StringReader.cs
- AutoGeneratedField.cs
- ObjectItemAttributeAssemblyLoader.cs
- ScrollItemPattern.cs
- WebEncodingValidatorAttribute.cs
- XmlSerializerFactory.cs
- IsolatedStorage.cs
- TreeNode.cs
- BamlRecordWriter.cs
- WebConfigManager.cs
- DispatcherSynchronizationContext.cs
- ChannelOptions.cs
- ColorDialog.cs
- SecurityTokenTypes.cs
- ChildChangedEventArgs.cs
- FormViewPageEventArgs.cs
- StaticSiteMapProvider.cs
- CompensableActivity.cs
- GregorianCalendar.cs
- FieldInfo.cs
- TraceSection.cs
- InputScopeManager.cs
- XmlWrappingReader.cs
- DeriveBytes.cs
- xml.cs
- ThemeInfoAttribute.cs
- loginstatus.cs
- DataIdProcessor.cs
- BrowserDefinition.cs
- HwndHost.cs
- XmlQueryStaticData.cs
- BinaryConverter.cs
- DeclarationUpdate.cs
- MeasureData.cs
- SelectedGridItemChangedEvent.cs
- Renderer.cs
- DbReferenceCollection.cs
- MetadataPropertyvalue.cs
- TextInfo.cs
- BeginStoryboard.cs
- ButtonBaseDesigner.cs
- KeyMatchBuilder.cs
- VoiceChangeEventArgs.cs
- DataMemberConverter.cs
- ResXResourceSet.cs
- FileDataSourceCache.cs
- GenerateScriptTypeAttribute.cs
- BindToObject.cs
- MediaElementAutomationPeer.cs
- SqlReferenceCollection.cs
- MachineSettingsSection.cs
- XslVisitor.cs
- DataControlCommands.cs
- Decimal.cs
- XsltInput.cs
- MULTI_QI.cs
- XNodeValidator.cs
- ParallelSeparator.xaml.cs
- ArrayListCollectionBase.cs
- WriterOutput.cs
- EntityDataSourceStatementEditorForm.cs
- CellRelation.cs
- XsdDataContractImporter.cs
- UIPermission.cs
- WinInetCache.cs
- HttpCookieCollection.cs
- Rfc2898DeriveBytes.cs
- _IPv6Address.cs
- AnnotationComponentManager.cs
- NativeActivityMetadata.cs
- DrawingCollection.cs
- LineUtil.cs
- ZipFileInfoCollection.cs
- StreamInfo.cs
- BinaryQueryOperator.cs
- DataGridAddNewRow.cs
- Intellisense.cs
- PagerStyle.cs
- HMACSHA512.cs
- RangeContentEnumerator.cs
- ActivityBuilderHelper.cs
- TextDecoration.cs
- FileUpload.cs
- RemoteWebConfigurationHostStream.cs
- TreeView.cs
- CompareValidator.cs
- DataControlField.cs
- WebPartActionVerb.cs
- TransactionWaitAsyncResult.cs
- FormsAuthentication.cs
- MultiByteCodec.cs
- TreeNodeCollection.cs
- Keyboard.cs
- BinaryUtilClasses.cs
- RoleBoolean.cs
- EntityDesignerUtils.cs
- IdentityHolder.cs
- FrameAutomationPeer.cs
- PersonalizationDictionary.cs