Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / cdf / src / NetFx40 / System.Activities / System / Activities / DurableInstancing / TryLoadRunnableWorkflowCommand.cs / 1305376 / TryLoadRunnableWorkflowCommand.cs
//----------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
//---------------------------------------------------------------
namespace System.Activities.DurableInstancing
{
using System.Runtime;
using System.Runtime.DurableInstancing;
[Fx.Tag.XamlVisible(false)]
public sealed class TryLoadRunnableWorkflowCommand : InstancePersistenceCommand
{
public TryLoadRunnableWorkflowCommand()
: base(InstancePersistence.ActivitiesCommandNamespace.GetName("TryLoadRunnableWorkflow"))
{
}
protected internal override bool IsTransactionEnlistmentOptional
{
get
{
return true;
}
}
protected internal override bool AutomaticallyAcquiringLock
{
get
{
return true;
}
}
protected internal override void Validate(InstanceView view)
{
if (!view.IsBoundToInstanceOwner)
{
throw FxTrace.Exception.AsError(new InvalidOperationException(SRCore.OwnerRequired));
}
if (view.IsBoundToInstance)
{
throw FxTrace.Exception.AsError(new InvalidOperationException(SRCore.AlreadyBoundToInstance));
}
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ExtensionWindowHeader.cs
- BrowserDefinitionCollection.cs
- DesignBindingEditor.cs
- TypeNameHelper.cs
- GcHandle.cs
- PassportAuthentication.cs
- SQLCharsStorage.cs
- KoreanCalendar.cs
- BamlStream.cs
- ValueTable.cs
- CompositeControl.cs
- DataPagerFieldCommandEventArgs.cs
- BulletedListEventArgs.cs
- HttpWebRequest.cs
- RSAPKCS1SignatureFormatter.cs
- ListViewItem.cs
- ServiceOperationWrapper.cs
- ClientBuildManagerTypeDescriptionProviderBridge.cs
- LoginCancelEventArgs.cs
- WebPartCatalogAddVerb.cs
- SecurityUtils.cs
- Psha1DerivedKeyGenerator.cs
- CommandValueSerializer.cs
- DecoratedNameAttribute.cs
- PageTheme.cs
- DetailsViewRowCollection.cs
- FixedTextPointer.cs
- VScrollProperties.cs
- FixedSOMGroup.cs
- DesignerLoader.cs
- DataGridViewColumnCollection.cs
- GeometryGroup.cs
- Blend.cs
- DocumentXmlWriter.cs
- CalendarDataBindingHandler.cs
- EdmSchemaError.cs
- HtmlInputControl.cs
- NameValueSectionHandler.cs
- DateTimeFormatInfoScanner.cs
- NotifyParentPropertyAttribute.cs
- ServiceRouteHandler.cs
- ActivityExecutionFilter.cs
- TextEditorCopyPaste.cs
- Overlapped.cs
- COAUTHIDENTITY.cs
- CompressEmulationStream.cs
- XmlSigningNodeWriter.cs
- KerberosSecurityTokenAuthenticator.cs
- DocumentXPathNavigator.cs
- CharacterMetricsDictionary.cs
- FontSource.cs
- HttpModuleActionCollection.cs
- CachedCompositeFamily.cs
- RIPEMD160Managed.cs
- cookie.cs
- HttpProfileGroupBase.cs
- RoleServiceManager.cs
- ToolboxItem.cs
- PropertyEmitter.cs
- MsmqInputChannelListener.cs
- NativeMethods.cs
- ImageCreator.cs
- ConnectionProviderAttribute.cs
- _AutoWebProxyScriptHelper.cs
- SafeEventLogReadHandle.cs
- WebServiceParameterData.cs
- StringConverter.cs
- LocalBuilder.cs
- NopReturnReader.cs
- TextRenderer.cs
- DesignerValidatorAdapter.cs
- XmlValueConverter.cs
- Queue.cs
- ScrollChangedEventArgs.cs
- IntegerValidator.cs
- DllNotFoundException.cs
- SecureConversationDriver.cs
- FontWeightConverter.cs
- DoWorkEventArgs.cs
- VariableQuery.cs
- PlatformCulture.cs
- SimpleHandlerFactory.cs
- Int32.cs
- configsystem.cs
- XamlFigureLengthSerializer.cs
- HTMLTextWriter.cs
- Quad.cs
- Rectangle.cs
- SqlReorderer.cs
- RichTextBoxConstants.cs
- MessageQueuePermissionEntryCollection.cs
- MetabaseReader.cs
- DynamicPropertyReader.cs
- TextElementCollectionHelper.cs
- OledbConnectionStringbuilder.cs
- MethodBuilder.cs
- PersistenceContext.cs
- StateMachineAction.cs
- RefExpr.cs
- FileDialog.cs