Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / ndp / clr / src / BCL / System / Runtime / Remoting / RemotingException.cs / 1 / RemotingException.cs
// ==++== // // Copyright (c) Microsoft Corporation. All rights reserved. // // ==--== /*============================================================================== ** ** Class: RemotingException ** ** ** Purpose: Exception class for remoting ** ** =============================================================================*/ namespace System.Runtime.Remoting { using System.Runtime.Remoting; using System; using System.Runtime.Serialization; // The Exception thrown when something has gone // wrong during remoting // [Serializable()] [System.Runtime.InteropServices.ComVisible(true)] public class RemotingException : SystemException { private static String _nullMessage = Environment.GetResourceString("Remoting_Default"); // Creates a new RemotingException with its message // string set to a default message. public RemotingException() : base(_nullMessage) { SetErrorCode(__HResults.COR_E_REMOTING); } public RemotingException(String message) : base(message) { SetErrorCode(__HResults.COR_E_REMOTING); } public RemotingException(String message, Exception InnerException) : base(message, InnerException) { SetErrorCode(__HResults.COR_E_REMOTING); } protected RemotingException(SerializationInfo info, StreamingContext context) : base(info, context) {} } // The Exception thrown when something has gone // wrong on the server during remoting. This exception is thrown // on the client. // [Serializable()] [System.Runtime.InteropServices.ComVisible(true)] public class ServerException : SystemException { private static String _nullMessage = Environment.GetResourceString("Remoting_Default"); // Creates a new ServerException with its message // string set to a default message. public ServerException() : base(_nullMessage) { SetErrorCode(__HResults.COR_E_SERVER); } public ServerException(String message) : base(message) { SetErrorCode(__HResults.COR_E_SERVER); } public ServerException(String message, Exception InnerException) : base(message, InnerException) { SetErrorCode(__HResults.COR_E_SERVER); } internal ServerException(SerializationInfo info, StreamingContext context) : base(info, context) {} } [Serializable()] [System.Runtime.InteropServices.ComVisible(true)] public class RemotingTimeoutException : RemotingException { private static String _nullMessage = Environment.GetResourceString("Remoting_Default"); // Creates a new RemotingException with its message // string set to a default message. public RemotingTimeoutException() : base(_nullMessage) { } public RemotingTimeoutException(String message) : base(message) { SetErrorCode(__HResults.COR_E_REMOTING); } public RemotingTimeoutException(String message, Exception InnerException) : base(message, InnerException) { SetErrorCode(__HResults.COR_E_REMOTING); } internal RemotingTimeoutException(SerializationInfo info, StreamingContext context) : base(info, context) {} } // RemotingTimeoutException } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // ==++== // // Copyright (c) Microsoft Corporation. All rights reserved. // // ==--== /*============================================================================== ** ** Class: RemotingException ** ** ** Purpose: Exception class for remoting ** ** =============================================================================*/ namespace System.Runtime.Remoting { using System.Runtime.Remoting; using System; using System.Runtime.Serialization; // The Exception thrown when something has gone // wrong during remoting // [Serializable()] [System.Runtime.InteropServices.ComVisible(true)] public class RemotingException : SystemException { private static String _nullMessage = Environment.GetResourceString("Remoting_Default"); // Creates a new RemotingException with its message // string set to a default message. public RemotingException() : base(_nullMessage) { SetErrorCode(__HResults.COR_E_REMOTING); } public RemotingException(String message) : base(message) { SetErrorCode(__HResults.COR_E_REMOTING); } public RemotingException(String message, Exception InnerException) : base(message, InnerException) { SetErrorCode(__HResults.COR_E_REMOTING); } protected RemotingException(SerializationInfo info, StreamingContext context) : base(info, context) {} } // The Exception thrown when something has gone // wrong on the server during remoting. This exception is thrown // on the client. // [Serializable()] [System.Runtime.InteropServices.ComVisible(true)] public class ServerException : SystemException { private static String _nullMessage = Environment.GetResourceString("Remoting_Default"); // Creates a new ServerException with its message // string set to a default message. public ServerException() : base(_nullMessage) { SetErrorCode(__HResults.COR_E_SERVER); } public ServerException(String message) : base(message) { SetErrorCode(__HResults.COR_E_SERVER); } public ServerException(String message, Exception InnerException) : base(message, InnerException) { SetErrorCode(__HResults.COR_E_SERVER); } internal ServerException(SerializationInfo info, StreamingContext context) : base(info, context) {} } [Serializable()] [System.Runtime.InteropServices.ComVisible(true)] public class RemotingTimeoutException : RemotingException { private static String _nullMessage = Environment.GetResourceString("Remoting_Default"); // Creates a new RemotingException with its message // string set to a default message. public RemotingTimeoutException() : base(_nullMessage) { } public RemotingTimeoutException(String message) : base(message) { SetErrorCode(__HResults.COR_E_REMOTING); } public RemotingTimeoutException(String message, Exception InnerException) : base(message, InnerException) { SetErrorCode(__HResults.COR_E_REMOTING); } internal RemotingTimeoutException(SerializationInfo info, StreamingContext context) : base(info, context) {} } // RemotingTimeoutException } // 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
- Int16Animation.cs
- HttpListenerRequest.cs
- DataGridViewHitTestInfo.cs
- AppDomainShutdownMonitor.cs
- MetadataPropertyAttribute.cs
- GridEntryCollection.cs
- ManipulationPivot.cs
- SecurityTokenSerializer.cs
- Group.cs
- InfiniteTimeSpanConverter.cs
- DragCompletedEventArgs.cs
- DataBindEngine.cs
- UriParserTemplates.cs
- StateMachineHistory.cs
- ResourceProperty.cs
- PropertyChangeTracker.cs
- SqlStream.cs
- BindStream.cs
- TimeSpanMinutesConverter.cs
- IsolatedStoragePermission.cs
- ToolStripLocationCancelEventArgs.cs
- RepeaterItem.cs
- CatalogPart.cs
- DataGridViewComboBoxCell.cs
- Path.cs
- CommandLineParser.cs
- ExpressionParser.cs
- CachedBitmap.cs
- ItemCollectionEditor.cs
- DataSourceBooleanViewSchemaConverter.cs
- Freezable.cs
- ViewGenerator.cs
- Descriptor.cs
- WebServiceMethodData.cs
- SystemNetHelpers.cs
- xmlsaver.cs
- PassportAuthenticationModule.cs
- CaseInsensitiveHashCodeProvider.cs
- CodeTypeMember.cs
- SqlExpander.cs
- ISCIIEncoding.cs
- SelectionPattern.cs
- EllipseGeometry.cs
- WinFormsComponentEditor.cs
- SHA512.cs
- HttpCookie.cs
- RandomNumberGenerator.cs
- DrawingAttributeSerializer.cs
- SQLInt16Storage.cs
- CreateUserWizard.cs
- BamlRecordReader.cs
- DateTimeOffsetStorage.cs
- StringBlob.cs
- DbParameterHelper.cs
- sortedlist.cs
- ResourceSetExpression.cs
- DataGridViewSelectedCellCollection.cs
- RadioButtonFlatAdapter.cs
- Transform.cs
- DataBoundControlAdapter.cs
- DeploymentSection.cs
- TemplatePropertyEntry.cs
- WebPartCloseVerb.cs
- Win32MouseDevice.cs
- ScrollData.cs
- PKCS1MaskGenerationMethod.cs
- TraceData.cs
- ButtonChrome.cs
- MethodToken.cs
- ReturnEventArgs.cs
- StorageInfo.cs
- ISAPIApplicationHost.cs
- TaskFormBase.cs
- DateTimeFormat.cs
- WebPartCatalogAddVerb.cs
- PrefixHandle.cs
- BaseTreeIterator.cs
- BitmapMetadata.cs
- KernelTypeValidation.cs
- DataBindingList.cs
- PropertyGrid.cs
- Image.cs
- GenericXmlSecurityToken.cs
- ToolStripContextMenu.cs
- TextRangeAdaptor.cs
- ShaperBuffers.cs
- ApplicationSettingsBase.cs
- GroupBox.cs
- GB18030Encoding.cs
- ScaleTransform3D.cs
- MouseActionValueSerializer.cs
- TypefaceMetricsCache.cs
- ImmutableCollection.cs
- HtmlGenericControl.cs
- StylusButtonEventArgs.cs
- InvalidAsynchronousStateException.cs
- AppDomain.cs
- ExtractorMetadata.cs
- InternalConfigSettingsFactory.cs
- CodeAccessPermission.cs