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
- RbTree.cs
- SpAudioStreamWrapper.cs
- QilScopedVisitor.cs
- CodeDirectionExpression.cs
- XsltSettings.cs
- XPathBinder.cs
- SspiNegotiationTokenProviderState.cs
- HideDisabledControlAdapter.cs
- DataViewManager.cs
- PreApplicationStartMethodAttribute.cs
- EtwTrackingBehaviorElement.cs
- TextDecorationCollection.cs
- ExtendedProperty.cs
- ReflectionUtil.cs
- RenderDataDrawingContext.cs
- DocumentPageTextView.cs
- DataGridViewRowPrePaintEventArgs.cs
- PrintPreviewGraphics.cs
- ColorEditor.cs
- DummyDataSource.cs
- ObjectListDesigner.cs
- ManagementObjectCollection.cs
- FormViewAutoFormat.cs
- DescriptionAttribute.cs
- SqlPersonalizationProvider.cs
- MediaPlayer.cs
- StyleCollection.cs
- ToolStripArrowRenderEventArgs.cs
- DesignerDataColumn.cs
- MarshalByValueComponent.cs
- StaticExtension.cs
- DbParameterCollectionHelper.cs
- streamingZipPartStream.cs
- NamespaceInfo.cs
- FormsAuthenticationCredentials.cs
- ConnectionPoolManager.cs
- PrintDialogException.cs
- HasActivatableWorkflowEvent.cs
- FixedPageStructure.cs
- ActivityTypeDesigner.xaml.cs
- BaseTemplateParser.cs
- XmlDictionaryWriter.cs
- HandlerMappingMemo.cs
- ViewStateModeByIdAttribute.cs
- FrameworkPropertyMetadata.cs
- OleDbRowUpdatingEvent.cs
- DtdParser.cs
- TabItemAutomationPeer.cs
- ThreadAbortException.cs
- DataRelationPropertyDescriptor.cs
- DPTypeDescriptorContext.cs
- UrlMappingCollection.cs
- UrlMappingsModule.cs
- xamlnodes.cs
- FilteredAttributeCollection.cs
- ZipIOExtraFieldElement.cs
- AttributeUsageAttribute.cs
- SessionStateModule.cs
- RemoveStoryboard.cs
- SeekableReadStream.cs
- BufferedGraphicsContext.cs
- ConfigXmlCDataSection.cs
- ping.cs
- Axis.cs
- SqlDelegatedTransaction.cs
- DataKey.cs
- InputManager.cs
- GeneralTransformCollection.cs
- ProxyOperationRuntime.cs
- PrinterSettings.cs
- X509ChainElement.cs
- ListViewAutomationPeer.cs
- PathStreamGeometryContext.cs
- TextServicesDisplayAttributePropertyRanges.cs
- DesignerWithHeader.cs
- Single.cs
- PrintPreviewGraphics.cs
- CalculatedColumn.cs
- RegistrationContext.cs
- _TransmitFileOverlappedAsyncResult.cs
- DataGridHeaderBorder.cs
- NullableIntSumAggregationOperator.cs
- HttpDateParse.cs
- HostingEnvironmentSection.cs
- BufferedGenericXmlSecurityToken.cs
- BinaryObjectInfo.cs
- OAVariantLib.cs
- SettingsAttributeDictionary.cs
- CroppedBitmap.cs
- ResolveMatchesApril2005.cs
- DataControlPagerLinkButton.cs
- PreDigestedSignedInfo.cs
- SpecialTypeDataContract.cs
- ISessionStateStore.cs
- AccessibleObject.cs
- XmlWriterTraceListener.cs
- DetailsViewInsertEventArgs.cs
- RenderOptions.cs
- CaseExpr.cs
- FormsAuthenticationUserCollection.cs