Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / cdf / src / NetFx35 / System.WorkflowServices / System / ServiceModel / Persistence / InstanceNotFoundException.cs / 1305376 / InstanceNotFoundException.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 InstanceNotFoundException : PersistenceException { Guid id; public InstanceNotFoundException() : this(SR2.GetString(SR2.InstanceNotFoundDefault), null) { } public InstanceNotFoundException(string message) : this(message, null) { } public InstanceNotFoundException(string message, Exception innerException) : base(message, innerException) { } public InstanceNotFoundException(Guid id) : this(SR2.GetString(SR2.InstanceNotFoundSpecific, id)) { this.id = id; } public InstanceNotFoundException(Guid id, string message) : this(message, null) { this.id = id; } public InstanceNotFoundException(Guid id, string message, Exception innerException) : base(message, innerException) { this.id = id; } public InstanceNotFoundException(Guid id, Exception innerException) : this(SR2.GetString(SR2.InstanceNotFoundSpecific, id), innerException) { this.id = id; } protected InstanceNotFoundException(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
- SqlProfileProvider.cs
- MaterialGroup.cs
- StreamWithDictionary.cs
- PartialCachingControl.cs
- UnionExpr.cs
- GridViewRowEventArgs.cs
- TextComposition.cs
- BufferedGraphicsContext.cs
- Single.cs
- ToolZone.cs
- CodeLinePragma.cs
- SmtpReplyReaderFactory.cs
- Wildcard.cs
- CategoryGridEntry.cs
- InstanceLockLostException.cs
- CodeArgumentReferenceExpression.cs
- XmlQualifiedName.cs
- TabletCollection.cs
- Expression.cs
- TreeViewHitTestInfo.cs
- SchemaAttDef.cs
- WpfKnownType.cs
- ReversePositionQuery.cs
- UserControl.cs
- RealProxy.cs
- ShaderEffect.cs
- HotSpot.cs
- JsonReaderWriterFactory.cs
- Brushes.cs
- Stroke.cs
- GeneralTransform3DTo2DTo3D.cs
- GeometryModel3D.cs
- BroadcastEventHelper.cs
- TextSegment.cs
- Vector.cs
- OracleInternalConnection.cs
- SmiContext.cs
- UnionCodeGroup.cs
- SchemaImporterExtension.cs
- XamlDebuggerXmlReader.cs
- StringComparer.cs
- CustomDictionarySources.cs
- DateTimeFormatInfo.cs
- xmlglyphRunInfo.cs
- sqlpipe.cs
- StorageSetMapping.cs
- ServiceMetadataPublishingElement.cs
- GenericEnumConverter.cs
- RadioButton.cs
- QuerySafeNavigator.cs
- SRef.cs
- TableItemPatternIdentifiers.cs
- SelectionPattern.cs
- PropertyGridEditorPart.cs
- SystemException.cs
- CodeNamespace.cs
- CSharpCodeProvider.cs
- GridViewActionList.cs
- SettingsAttributes.cs
- ClassicBorderDecorator.cs
- CultureSpecificStringDictionary.cs
- ProcessStartInfo.cs
- CodePropertyReferenceExpression.cs
- VisualStateGroup.cs
- File.cs
- InheritanceContextChangedEventManager.cs
- SqlDataSourceTableQuery.cs
- CngUIPolicy.cs
- BitmapEffectState.cs
- ExceptionHelpers.cs
- ProcessModelInfo.cs
- DesignerValidationSummaryAdapter.cs
- safemediahandle.cs
- TextOnlyOutput.cs
- SendActivity.cs
- SignedInfo.cs
- ConstructorBuilder.cs
- sitestring.cs
- DispatcherProcessingDisabled.cs
- DataGridPagingPage.cs
- Atom10FormatterFactory.cs
- NCryptSafeHandles.cs
- MailBnfHelper.cs
- ValueConversionAttribute.cs
- complextypematerializer.cs
- errorpatternmatcher.cs
- TableRow.cs
- Stack.cs
- JournalEntryListConverter.cs
- ClientConfigurationHost.cs
- MsmqQueue.cs
- ValidationRuleCollection.cs
- Range.cs
- QilXmlWriter.cs
- Slider.cs
- DataGridState.cs
- GroupBox.cs
- BindingOperations.cs
- BaseProcessor.cs
- SerializationInfoEnumerator.cs