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
- ChooseAction.cs
- CollectionView.cs
- DocumentPageTextView.cs
- XPathException.cs
- QueryPageSettingsEventArgs.cs
- EditorPartChrome.cs
- EntityPropertyMappingAttribute.cs
- InlineObject.cs
- XmlSchemaSimpleType.cs
- VectorCollectionConverter.cs
- StringComparer.cs
- DrawingContext.cs
- ControlPaint.cs
- StreamGeometry.cs
- OdbcTransaction.cs
- FlowDocumentPage.cs
- ProfileGroupSettingsCollection.cs
- UndoManager.cs
- LoginAutoFormat.cs
- ValidationEventArgs.cs
- TraceSwitch.cs
- SelectionWordBreaker.cs
- ComponentDesigner.cs
- MetaType.cs
- Boolean.cs
- GcHandle.cs
- ReferenceEqualityComparer.cs
- MasterPage.cs
- RemotingSurrogateSelector.cs
- TableChangeProcessor.cs
- DropShadowBitmapEffect.cs
- X509SubjectKeyIdentifierClause.cs
- OleCmdHelper.cs
- GetLedgerEntryForRecipientRequest.cs
- SoapIncludeAttribute.cs
- ZoneLinkButton.cs
- Utils.cs
- PropertyKey.cs
- IfAction.cs
- SecurityTokenResolver.cs
- AngleUtil.cs
- ASCIIEncoding.cs
- _CommandStream.cs
- Vector.cs
- _Rfc2616CacheValidators.cs
- MimeParameterWriter.cs
- Library.cs
- HttpTransportSecurityElement.cs
- ThousandthOfEmRealDoubles.cs
- ColorAnimation.cs
- FixedFindEngine.cs
- InputReferenceExpression.cs
- Configuration.cs
- WebPartManagerInternals.cs
- SecurityRuntime.cs
- Char.cs
- RelOps.cs
- SQlBooleanStorage.cs
- DelegateSerializationHolder.cs
- CannotUnloadAppDomainException.cs
- Point.cs
- ContentHostHelper.cs
- Accessors.cs
- SecurityToken.cs
- PasswordBoxAutomationPeer.cs
- CrossContextChannel.cs
- Attribute.cs
- SystemGatewayIPAddressInformation.cs
- EncodingNLS.cs
- KeyFrames.cs
- VisualStyleElement.cs
- SystemInfo.cs
- ToolboxItemFilterAttribute.cs
- Baml2006SchemaContext.cs
- GridViewRowEventArgs.cs
- XmlSchemaAttributeGroup.cs
- SQLGuid.cs
- CodeMemberProperty.cs
- uribuilder.cs
- PropertyGridEditorPart.cs
- Timeline.cs
- SHA384Cng.cs
- UserControl.cs
- StreamGeometry.cs
- StylusPointPropertyUnit.cs
- LiteralLink.cs
- TimeZoneInfo.cs
- SByteStorage.cs
- GenericPrincipal.cs
- Literal.cs
- ProcessProtocolHandler.cs
- MembershipSection.cs
- HtmlGenericControl.cs
- DetailsViewRowCollection.cs
- dataSvcMapFileLoader.cs
- StringPropertyBuilder.cs
- Table.cs
- ResourceKey.cs
- XmlUnspecifiedAttribute.cs
- HotCommands.cs