Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / clr / src / BCL / System / Runtime / Remoting / RemotingException.cs / 1305376 / 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); } [System.Security.SecuritySafeCritical] // auto-generated 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
- PageResolution.cs
- BitmapDecoder.cs
- HttpRequest.cs
- ArrayExtension.cs
- SafeNativeMemoryHandle.cs
- HttpPostedFileBase.cs
- X509RecipientCertificateServiceElement.cs
- LinearGradientBrush.cs
- DataTableClearEvent.cs
- LicenseException.cs
- DataControlFieldCell.cs
- ClusterRegistryConfigurationProvider.cs
- HttpRuntime.cs
- HtmlContainerControl.cs
- SendKeys.cs
- SimpleBitVector32.cs
- COM2PictureConverter.cs
- EpmHelper.cs
- ProjectionCamera.cs
- DataGridViewLinkColumn.cs
- DataGridViewAutoSizeModeEventArgs.cs
- TouchPoint.cs
- TransportSecurityProtocol.cs
- ApplicationInfo.cs
- MemberHolder.cs
- RbTree.cs
- PassportAuthenticationModule.cs
- SHA1CryptoServiceProvider.cs
- SystemBrushes.cs
- DataFormat.cs
- TypeConverterAttribute.cs
- CommandField.cs
- DisableDpiAwarenessAttribute.cs
- RegionInfo.cs
- MetadataArtifactLoaderXmlReaderWrapper.cs
- DataGridCommandEventArgs.cs
- CodeAttributeDeclarationCollection.cs
- MultipleViewPattern.cs
- SqlServices.cs
- VBCodeProvider.cs
- DataGridViewCellStyle.cs
- MissingMemberException.cs
- CachingParameterInspector.cs
- MergePropertyDescriptor.cs
- BindingExpression.cs
- EventLogEntry.cs
- EntityPropertyMappingAttribute.cs
- RuntimeEnvironment.cs
- DataGridAddNewRow.cs
- WindowsFormsHelpers.cs
- GlyphRunDrawing.cs
- SystemTcpConnection.cs
- ParameterSubsegment.cs
- DesignerActionHeaderItem.cs
- ParsedAttributeCollection.cs
- XsdBuildProvider.cs
- basemetadatamappingvisitor.cs
- TextEffectCollection.cs
- BuildProviderCollection.cs
- UICuesEvent.cs
- HandlerFactoryWrapper.cs
- BufferedStream2.cs
- PrivilegedConfigurationManager.cs
- QilIterator.cs
- InvalidCommandTreeException.cs
- JsonReaderWriterFactory.cs
- LinqTreeNodeEvaluator.cs
- HtmlTextViewAdapter.cs
- XPathCompileException.cs
- ZipPackage.cs
- TextElementEnumerator.cs
- QilVisitor.cs
- DataKeyCollection.cs
- FontEditor.cs
- ISFTagAndGuidCache.cs
- StructuralComparisons.cs
- HttpCookie.cs
- BindingCompleteEventArgs.cs
- HashAlgorithm.cs
- SendKeys.cs
- HandlerFactoryWrapper.cs
- SystemGatewayIPAddressInformation.cs
- OfTypeExpression.cs
- HttpWebRequest.cs
- HtmlControl.cs
- XmlSerializerAssemblyAttribute.cs
- AsymmetricCryptoHandle.cs
- Environment.cs
- LabelEditEvent.cs
- MultiBindingExpression.cs
- Point.cs
- DataSourceHelper.cs
- ListViewItemMouseHoverEvent.cs
- SHA384.cs
- XmlSchemas.cs
- Manipulation.cs
- ExceptionUtil.cs
- DataGridColumn.cs
- TextTreeRootNode.cs
- UserControl.cs