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 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.
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
- FixedSOMPageConstructor.cs
- DataTableMapping.cs
- InterleavedZipPartStream.cs
- MediaScriptCommandRoutedEventArgs.cs
- MultiPageTextView.cs
- DataListDesigner.cs
- ContentDefinition.cs
- EventMetadata.cs
- Keywords.cs
- TextRunCache.cs
- ClockGroup.cs
- FormsAuthentication.cs
- HttpResponseHeader.cs
- ProfileService.cs
- TemplateApplicationHelper.cs
- ArrayHelper.cs
- UpdatePanelControlTrigger.cs
- XamlTemplateSerializer.cs
- InternalMappingException.cs
- SignatureHelper.cs
- MultiAsyncResult.cs
- TableLayoutColumnStyleCollection.cs
- ChtmlFormAdapter.cs
- QueryContinueDragEvent.cs
- TrackBarRenderer.cs
- HasCopySemanticsAttribute.cs
- BypassElement.cs
- XDeferredAxisSource.cs
- JsonObjectDataContract.cs
- QilBinary.cs
- CompositeActivityMarkupSerializer.cs
- ViewStateModeByIdAttribute.cs
- CompositeScriptReferenceEventArgs.cs
- EventRouteFactory.cs
- TraceContextRecord.cs
- AuthenticationException.cs
- GridViewRowCollection.cs
- AttributeCollection.cs
- EnumConverter.cs
- TcpTransportManager.cs
- MarshalByValueComponent.cs
- XmlChoiceIdentifierAttribute.cs
- NativeMethods.cs
- ControlValuePropertyAttribute.cs
- NotImplementedException.cs
- MouseOverProperty.cs
- HGlobalSafeHandle.cs
- VectorValueSerializer.cs
- TreeNode.cs
- DataConnectionHelper.cs
- MetadataArtifactLoaderFile.cs
- RowUpdatingEventArgs.cs
- FlatButtonAppearance.cs
- DataRowCollection.cs
- AssemblyInfo.cs
- RegexRunnerFactory.cs
- RectangleGeometry.cs
- RootBuilder.cs
- DataGridItem.cs
- XmlNotation.cs
- ProvideValueServiceProvider.cs
- PersonalizableTypeEntry.cs
- ExpressionTextBoxAutomationPeer.cs
- prompt.cs
- SearchForVirtualItemEventArgs.cs
- SqlConnectionPoolGroupProviderInfo.cs
- ServerIdentity.cs
- CurrentChangingEventArgs.cs
- StringToken.cs
- ScrollChrome.cs
- NamespaceMapping.cs
- SchemaCollectionCompiler.cs
- iisPickupDirectory.cs
- ProfileManager.cs
- _BasicClient.cs
- XsltInput.cs
- DiscoveryInnerClientAdhocCD1.cs
- ExtensibleClassFactory.cs
- CreatingCookieEventArgs.cs
- Part.cs
- XmlEntityReference.cs
- WebHeaderCollection.cs
- SerializationAttributes.cs
- Vector3dCollection.cs
- KeyTime.cs
- ClientSettingsSection.cs
- DictionaryBase.cs
- EntityUtil.cs
- DuplexChannelBinder.cs
- RewritingSimplifier.cs
- EntityTypeEmitter.cs
- BitmapImage.cs
- WorkflowRuntimeBehavior.cs
- ProgressBarRenderer.cs
- ColumnCollection.cs
- WindowsRichEdit.cs
- SurrogateEncoder.cs
- EventLog.cs
- ThemeDirectoryCompiler.cs
- ContentElementAutomationPeer.cs