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
- CommandHelper.cs
- DragEvent.cs
- MSHTMLHost.cs
- FrameworkTextComposition.cs
- UIAgentInitializationException.cs
- DBDataPermission.cs
- AxisAngleRotation3D.cs
- TimerEventSubscriptionCollection.cs
- DefaultBindingPropertyAttribute.cs
- NativeMethods.cs
- SecUtil.cs
- MappingMetadataHelper.cs
- FilterException.cs
- Cursor.cs
- SoapRpcMethodAttribute.cs
- Block.cs
- StackOverflowException.cs
- BaseValidator.cs
- BuildResult.cs
- RNGCryptoServiceProvider.cs
- NativeMethods.cs
- BasicDesignerLoader.cs
- Random.cs
- NameValuePair.cs
- AttributeCollection.cs
- ActivityExecutorDelegateInfo.cs
- ThrowHelper.cs
- ConfigDefinitionUpdates.cs
- ResponseBodyWriter.cs
- RoutedEventConverter.cs
- ZoomingMessageFilter.cs
- StringFunctions.cs
- RepeatInfo.cs
- StateMachine.cs
- ProjectedSlot.cs
- XamlPoint3DCollectionSerializer.cs
- BasePropertyDescriptor.cs
- ByteViewer.cs
- TextBoxLine.cs
- TouchDevice.cs
- ContentDisposition.cs
- ApplicationSettingsBase.cs
- xmlfixedPageInfo.cs
- QueueProcessor.cs
- DataSourceCache.cs
- XmlSchemaImporter.cs
- Quaternion.cs
- Italic.cs
- TablePattern.cs
- PresentationAppDomainManager.cs
- XmlAttributeOverrides.cs
- QueryContinueDragEvent.cs
- ControlPaint.cs
- Screen.cs
- PeerApplication.cs
- HMACRIPEMD160.cs
- DatePicker.cs
- FilteredAttributeCollection.cs
- WebSysDescriptionAttribute.cs
- SQLMoney.cs
- StaticExtension.cs
- DataContext.cs
- Semaphore.cs
- ProtocolsSection.cs
- HttpRuntimeSection.cs
- CellCreator.cs
- CompositeFontInfo.cs
- ListItemConverter.cs
- PhysicalFontFamily.cs
- GridViewDeleteEventArgs.cs
- CodeSubDirectoriesCollection.cs
- BooleanExpr.cs
- TextEditorTables.cs
- Set.cs
- XmlElementList.cs
- SafeNativeMethods.cs
- MessageQueueConverter.cs
- StartUpEventArgs.cs
- _AuthenticationState.cs
- LazyTextWriterCreator.cs
- StrongNamePublicKeyBlob.cs
- Vector3D.cs
- HMACRIPEMD160.cs
- safelink.cs
- DynamicDataRouteHandler.cs
- ButtonStandardAdapter.cs
- BufferedOutputAsyncStream.cs
- AndMessageFilter.cs
- PackageStore.cs
- TemplateModeChangedEventArgs.cs
- FlowDocument.cs
- HMACSHA1.cs
- RepeaterDesigner.cs
- DataMember.cs
- DataGridViewColumnEventArgs.cs
- SchemaContext.cs
- WindowsListViewItemStartMenu.cs
- ImageMap.cs
- DictionaryBase.cs
- GlyphingCache.cs