Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / untmp / whidbey / QFE / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- FocusWithinProperty.cs
- HorizontalAlignConverter.cs
- RuntimeEnvironment.cs
- CurrentChangingEventArgs.cs
- CharConverter.cs
- filewebresponse.cs
- MultipartIdentifier.cs
- SpeechEvent.cs
- CaseKeyBox.xaml.cs
- SendMessageContent.cs
- NetPeerTcpBindingCollectionElement.cs
- Funcletizer.cs
- GeneralTransform3D.cs
- ButtonBase.cs
- XmlSchemaExporter.cs
- HandleCollector.cs
- RelationshipSet.cs
- IDQuery.cs
- XsltCompileContext.cs
- ReverseQueryOperator.cs
- DBConnectionString.cs
- SupportingTokenAuthenticatorSpecification.cs
- DeploymentSection.cs
- SyndicationItemFormatter.cs
- XPathBuilder.cs
- AnnotationResourceCollection.cs
- Columns.cs
- EventMappingSettings.cs
- ToolZone.cs
- ChannelServices.cs
- StreamUpdate.cs
- InstanceContextManager.cs
- DesignerSerializerAttribute.cs
- SingleAnimation.cs
- Visitors.cs
- FilterElement.cs
- XmlAttributes.cs
- EdmFunction.cs
- WsatTransactionFormatter.cs
- ValidationHelpers.cs
- CapabilitiesUse.cs
- PointKeyFrameCollection.cs
- SignedXmlDebugLog.cs
- ToolStripCustomTypeDescriptor.cs
- ScrollBarRenderer.cs
- WeakReference.cs
- FontDriver.cs
- FormViewRow.cs
- SequentialOutput.cs
- SelectionRange.cs
- RowVisual.cs
- QilLiteral.cs
- PocoEntityKeyStrategy.cs
- GridViewUpdateEventArgs.cs
- ResourceAssociationType.cs
- XmlArrayAttribute.cs
- FixedSOMPageConstructor.cs
- MethodBuilder.cs
- CacheDependency.cs
- StreamGeometry.cs
- ListViewInsertionMark.cs
- SettingsPropertyNotFoundException.cs
- IdentityModelStringsVersion1.cs
- SendKeys.cs
- ProviderException.cs
- ObjectDataSourceSelectingEventArgs.cs
- SubstitutionResponseElement.cs
- RemoteWebConfigurationHostStream.cs
- LayoutEngine.cs
- ToolboxItemWrapper.cs
- StringFreezingAttribute.cs
- DataSourceBooleanViewSchemaConverter.cs
- CodeSubDirectory.cs
- TypeResolver.cs
- SQLDecimal.cs
- WebSysDisplayNameAttribute.cs
- IERequestCache.cs
- ListViewGroupItemCollection.cs
- AmbientValueAttribute.cs
- CodeDomConfigurationHandler.cs
- UiaCoreApi.cs
- OracleRowUpdatedEventArgs.cs
- SelfIssuedTokenFactoryCredential.cs
- XmlSerializerFaultFormatter.cs
- DuplicateWaitObjectException.cs
- Command.cs
- TemplateBuilder.cs
- ExpandableObjectConverter.cs
- ButtonRenderer.cs
- AspNetSynchronizationContext.cs
- XmlValidatingReader.cs
- CodeGenerator.cs
- SByteConverter.cs
- PnrpPermission.cs
- OptimizedTemplateContentHelper.cs
- ACE.cs
- InputMethodStateChangeEventArgs.cs
- MemberRestriction.cs
- UIElementAutomationPeer.cs
- XmlSchemaAttribute.cs