Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / cdf / src / NetFx35 / System.WorkflowServices / System / ServiceModel / Persistence / InstanceLockException.cs / 1305376 / InstanceLockException.cs
//------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //----------------------------------------------------------- namespace System.ServiceModel.Persistence { using System; using System.Runtime.Serialization; using System.Security.Permissions; [Serializable] public class InstanceLockException : PersistenceException { Guid id; public InstanceLockException() : this(SR2.GetString(SR2.CannotAcquireLockDefault), null) { } public InstanceLockException(string message) : this(message, null) { } public InstanceLockException(string message, Exception innerException) : base(message, innerException) { } public InstanceLockException(Guid id) : this(SR2.GetString(SR2.CannotAcquireLockSpecific, id)) { this.id = id; } public InstanceLockException(Guid id, string message) : this(message, null) { this.id = id; } public InstanceLockException(Guid id, string message, Exception innerException) : base(message, innerException) { this.id = id; } public InstanceLockException(Guid id, Exception innerException) : this(SR2.GetString(SR2.CannotAcquireLockSpecific, id), innerException) { this.id = id; } protected InstanceLockException(SerializationInfo info, StreamingContext context) : base(info, context) { this.id = (Guid) info.GetValue("id", typeof(Guid)); } public Guid InstanceId { get { return this.id; } } [SecurityPermissionAttribute(SecurityAction.Demand, SerializationFormatter = true)] public override void GetObjectData(SerializationInfo info, StreamingContext context) { base.GetObjectData(info, context); info.AddValue("id", id); } } } // 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
- DelegateArgumentValue.cs
- HostingEnvironmentException.cs
- ListChangedEventArgs.cs
- String.cs
- MimeTypeMapper.cs
- DataPointer.cs
- _TLSstream.cs
- MaterializeFromAtom.cs
- MessageBodyDescription.cs
- NavigationWindow.cs
- DelegateBodyWriter.cs
- ShapeTypeface.cs
- TemplateBaseAction.cs
- EnumValAlphaComparer.cs
- SingleConverter.cs
- ConnectionOrientedTransportChannelFactory.cs
- XPathDescendantIterator.cs
- PassportPrincipal.cs
- DictionarySectionHandler.cs
- TextContainer.cs
- SettingsPropertyIsReadOnlyException.cs
- sqlinternaltransaction.cs
- ResourceDictionary.cs
- SqlConnectionPoolGroupProviderInfo.cs
- LZCodec.cs
- FunctionImportMapping.ReturnTypeRenameMapping.cs
- XmlWrappingReader.cs
- basenumberconverter.cs
- ArgumentOutOfRangeException.cs
- PeerMaintainer.cs
- ErrorWebPart.cs
- EditorPartCollection.cs
- ReflectionUtil.cs
- StateRuntime.cs
- PasswordBoxAutomationPeer.cs
- Axis.cs
- ArcSegment.cs
- XmlSchemaAnyAttribute.cs
- FixedLineResult.cs
- D3DImage.cs
- BitStack.cs
- TaskSchedulerException.cs
- Rect.cs
- FontInfo.cs
- DbProviderFactories.cs
- SpeechUI.cs
- TreeViewDesigner.cs
- filewebresponse.cs
- Baml2006ReaderFrame.cs
- DiscardableAttribute.cs
- WebServiceHandlerFactory.cs
- TypeViewSchema.cs
- MetadataArtifactLoaderCompositeResource.cs
- VisualProxy.cs
- StreamSecurityUpgradeAcceptor.cs
- ResXFileRef.cs
- EventArgs.cs
- ExpressionDumper.cs
- BitmapSourceSafeMILHandle.cs
- Util.cs
- SmtpNetworkElement.cs
- QuerySubExprEliminator.cs
- ReachPrintTicketSerializerAsync.cs
- RemoteCryptoTokenProvider.cs
- ToolStripRenderer.cs
- SqlRetyper.cs
- BCryptHashAlgorithm.cs
- WebConfigurationHostFileChange.cs
- ConfigXmlWhitespace.cs
- StrokeNodeEnumerator.cs
- ByteAnimation.cs
- RadioButtonList.cs
- IPAddressCollection.cs
- ExternalFile.cs
- AgileSafeNativeMemoryHandle.cs
- AnnotationObservableCollection.cs
- WizardForm.cs
- SafeRegistryHandle.cs
- XmlSchemaExternal.cs
- TableCellCollection.cs
- ArrayElementGridEntry.cs
- SortedDictionary.cs
- CompilerErrorCollection.cs
- ISSmlParser.cs
- DictionaryKeyPropertyAttribute.cs
- SettingsContext.cs
- NavigationHelper.cs
- NodeInfo.cs
- Root.cs
- OutOfMemoryException.cs
- ComboBox.cs
- UnhandledExceptionEventArgs.cs
- SelectedGridItemChangedEvent.cs
- GeometryHitTestResult.cs
- ProgramNode.cs
- DSGeneratorProblem.cs
- RijndaelManaged.cs
- SqlSupersetValidator.cs
- TextAdaptor.cs
- XmlSchemaAny.cs