Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / cdf / src / System.Runtime.DurableInstancing / System / Runtime / DurableInstancing / InstanceOwnerException.cs / 1305376 / InstanceOwnerException.cs
//------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //----------------------------------------------------------- namespace System.Runtime.DurableInstancing { using System.Diagnostics.CodeAnalysis; using System.Runtime.Serialization; using System.Security; using System.Xml.Linq; [Serializable] public class InstanceOwnerException : InstancePersistenceException { const string InstanceOwnerIdName = "instancePersistenceInstanceOwnerId"; public InstanceOwnerException() : base(SRCore.InstanceOwnerDefault) { } public InstanceOwnerException(string message) : base(message) { } public InstanceOwnerException(string message, Exception innerException) : base(message, innerException) { } public InstanceOwnerException(XName commandName, Guid instanceOwnerId) : this(commandName, instanceOwnerId, null) { } public InstanceOwnerException(XName commandName, Guid instanceOwnerId, Exception innerException) : this(commandName, instanceOwnerId, ToMessage(instanceOwnerId), innerException) { } public InstanceOwnerException(XName commandName, Guid instanceOwnerId, string message, Exception innerException) : base(commandName, message, innerException) { InstanceOwnerId = instanceOwnerId; } [SecurityCritical] protected InstanceOwnerException(SerializationInfo info, StreamingContext context) : base(info, context) { InstanceOwnerId = (Guid) info.GetValue(InstanceOwnerIdName, typeof(Guid)); } public Guid InstanceOwnerId { get; private set; } [Fx.Tag.SecurityNote(Critical = "Overrides critical inherited method")] [SecurityCritical] [SuppressMessage(FxCop.Category.Security, FxCop.Rule.SecureGetObjectDataOverrides, Justification = "Method is SecurityCritical")] public override void GetObjectData(SerializationInfo info, StreamingContext context) { base.GetObjectData(info, context); info.AddValue(InstanceOwnerIdName, InstanceOwnerId, typeof(Guid)); } static string ToMessage(Guid instanceOwnerId) { if (instanceOwnerId == Guid.Empty) { return SRCore.InstanceOwnerDefault; } return SRCore.InstanceOwnerSpecific(instanceOwnerId); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu
![Network programming in C#, Network Programming in VB.NET, Network Programming in .NET](/images/book.jpg)
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- SqlDataSourceFilteringEventArgs.cs
- ProfileParameter.cs
- PropertyDescriptor.cs
- EntityDataSourceMemberPath.cs
- DragCompletedEventArgs.cs
- _SslState.cs
- WaitHandle.cs
- StructuredType.cs
- FigureParaClient.cs
- BackgroundWorker.cs
- CreationContext.cs
- MatrixConverter.cs
- typedescriptorpermissionattribute.cs
- PageBuildProvider.cs
- BaseDataList.cs
- MulticastDelegate.cs
- SafeThemeHandle.cs
- StringToken.cs
- OutputWindow.cs
- DbConnectionHelper.cs
- ItemCollection.cs
- PointKeyFrameCollection.cs
- BamlLocalizerErrorNotifyEventArgs.cs
- ToolStripItemClickedEventArgs.cs
- SByteStorage.cs
- SoapSchemaMember.cs
- JsonCollectionDataContract.cs
- QueryCacheManager.cs
- xsdvalidator.cs
- ReflectTypeDescriptionProvider.cs
- QilStrConcatenator.cs
- ActivityExecutorDelegateInfo.cs
- BinaryObjectInfo.cs
- ObjectViewEntityCollectionData.cs
- DropShadowBitmapEffect.cs
- NullableIntAverageAggregationOperator.cs
- GenericsNotImplementedException.cs
- ProxyAttribute.cs
- StateFinalizationActivity.cs
- DeadCharTextComposition.cs
- ColorTransform.cs
- HostProtectionException.cs
- DayRenderEvent.cs
- ResourceDictionary.cs
- CacheModeConverter.cs
- SystemIdentity.cs
- DataServiceRequestException.cs
- ValidationVisibilityAttribute.cs
- PingOptions.cs
- SamlAudienceRestrictionCondition.cs
- DiscardableAttribute.cs
- CompModHelpers.cs
- LockedAssemblyCache.cs
- WindowsFont.cs
- SettingsBindableAttribute.cs
- WindowsScrollBarBits.cs
- SapiAttributeParser.cs
- ComboBox.cs
- AttachmentService.cs
- ZoneIdentityPermission.cs
- AuthenticationException.cs
- _NestedSingleAsyncResult.cs
- ByteStream.cs
- ServiceControllerDesigner.cs
- CounterCreationData.cs
- LocalIdKeyIdentifierClause.cs
- XmlSchemaExporter.cs
- GlyphCache.cs
- CheckBoxAutomationPeer.cs
- designeractionbehavior.cs
- IDispatchConstantAttribute.cs
- Membership.cs
- controlskin.cs
- CorrelationManager.cs
- WebDescriptionAttribute.cs
- URI.cs
- CultureSpecificCharacterBufferRange.cs
- SqlTopReducer.cs
- CookieProtection.cs
- CodeNamespaceImport.cs
- SuppressIldasmAttribute.cs
- UInt16Converter.cs
- VariantWrapper.cs
- CompilationRelaxations.cs
- UserControl.cs
- TransformGroup.cs
- XmlMemberMapping.cs
- ControlCollection.cs
- Calendar.cs
- TextBoxAutoCompleteSourceConverter.cs
- TreeNode.cs
- EnumerableRowCollectionExtensions.cs
- XmlDataSource.cs
- XhtmlBasicSelectionListAdapter.cs
- MethodImplAttribute.cs
- PassportAuthenticationModule.cs
- JournalNavigationScope.cs
- Int32Storage.cs
- BaseProcessor.cs
- DiscreteKeyFrames.cs