Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / cdf / src / NetFx40 / System.Activities / System / Activities / DurableInstancing / CreateWorkflowOwnerCommand.cs / 1305376 / CreateWorkflowOwnerCommand.cs
//---------------------------------------------------------------- // Copyright (c) Microsoft Corporation. All rights reserved. //--------------------------------------------------------------- namespace System.Activities.DurableInstancing { using System; using System.Collections.Generic; using System.Runtime; using System.Runtime.DurableInstancing; using System.Xml.Linq; [Fx.Tag.XamlVisible(false)] public sealed class CreateWorkflowOwnerCommand : InstancePersistenceCommand { DictionaryinstanceOwnerMetadata; public CreateWorkflowOwnerCommand() : base(InstancePersistence.ActivitiesCommandNamespace.GetName("CreateWorkflowOwner")) { } public IDictionary InstanceOwnerMetadata { get { if (this.instanceOwnerMetadata == null) { this.instanceOwnerMetadata = new Dictionary (); } return this.instanceOwnerMetadata; } } protected internal override bool IsTransactionEnlistmentOptional { get { return this.instanceOwnerMetadata == null || this.instanceOwnerMetadata.Count == 0; } } protected internal override void Validate(InstanceView view) { if (view.IsBoundToInstanceOwner) { throw FxTrace.Exception.AsError(new InvalidOperationException(SRCore.AlreadyBoundToOwner)); } InstancePersistence.ValidatePropertyBag(this.instanceOwnerMetadata); } } } // 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
- WithParamAction.cs
- Visual3D.cs
- BindingBase.cs
- LongValidatorAttribute.cs
- CompositeCollectionView.cs
- COM2PictureConverter.cs
- COM2ComponentEditor.cs
- ExpressionBuilderContext.cs
- ScopelessEnumAttribute.cs
- AttachInfo.cs
- SimpleFileLog.cs
- WinEventWrap.cs
- ApplicationActivator.cs
- XmlSchemaFacet.cs
- BrowserDefinitionCollection.cs
- XComponentModel.cs
- WindowsRegion.cs
- VisualTarget.cs
- TaiwanLunisolarCalendar.cs
- DynamicFilterExpression.cs
- PkcsUtils.cs
- NameValueFileSectionHandler.cs
- Compiler.cs
- DragDeltaEventArgs.cs
- EntityClientCacheEntry.cs
- DocumentAutomationPeer.cs
- Enum.cs
- ColorConverter.cs
- ExpanderAutomationPeer.cs
- WinInetCache.cs
- InputScopeNameConverter.cs
- DateBoldEvent.cs
- ReadOnlyNameValueCollection.cs
- WebPartsPersonalizationAuthorization.cs
- ToolStripItem.cs
- SafeNativeMethods.cs
- ToolboxItemFilterAttribute.cs
- HashLookup.cs
- ListBoxAutomationPeer.cs
- PermissionSet.cs
- ActionMessageFilter.cs
- WindowsSecurityToken.cs
- HttpModuleAction.cs
- ChangePassword.cs
- EntityDataSourceChangingEventArgs.cs
- UnsafeNativeMethods.cs
- AlphaSortedEnumConverter.cs
- TrackingQuery.cs
- FixedSOMPageConstructor.cs
- AdapterDictionary.cs
- DataMisalignedException.cs
- StorageMappingItemCollection.cs
- DownloadProgressEventArgs.cs
- WSHttpBindingBase.cs
- AnonymousIdentificationSection.cs
- PasswordBoxAutomationPeer.cs
- ProfileParameter.cs
- RemotingSurrogateSelector.cs
- TextWriterTraceListener.cs
- DataGridCell.cs
- TemplateColumn.cs
- EditorZone.cs
- PriorityQueue.cs
- ComponentCommands.cs
- SequentialActivityDesigner.cs
- IPAddressCollection.cs
- Accessible.cs
- ScrollableControlDesigner.cs
- dataprotectionpermission.cs
- SeekableReadStream.cs
- ExpressionCopier.cs
- ReceiveActivityValidator.cs
- SecurityDescriptor.cs
- StrongNameMembershipCondition.cs
- TimersDescriptionAttribute.cs
- ByteAnimationBase.cs
- XmlException.cs
- RolePrincipal.cs
- LeaseManager.cs
- WebPartChrome.cs
- Message.cs
- DocumentViewerBase.cs
- MTConfigUtil.cs
- _NativeSSPI.cs
- RequestSecurityTokenResponseCollection.cs
- TextTreeObjectNode.cs
- NavigatorInput.cs
- DbCommandTree.cs
- InternalConfigHost.cs
- ScriptServiceAttribute.cs
- MergablePropertyAttribute.cs
- WpfMemberInvoker.cs
- XamlTypeMapper.cs
- XmlFormatExtensionAttribute.cs
- XmlSchemaException.cs
- SiteMapProvider.cs
- RuntimeConfigLKG.cs
- MetadataItemSerializer.cs
- LockCookie.cs
- Resources.Designer.cs