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
- PlatformCulture.cs
- SizeConverter.cs
- JoinCqlBlock.cs
- RectangleHotSpot.cs
- HistoryEventArgs.cs
- ColorMap.cs
- DataGridViewCheckBoxCell.cs
- IDQuery.cs
- DescendentsWalker.cs
- Axis.cs
- PenLineJoinValidation.cs
- CollectionViewGroupInternal.cs
- UnsafeNativeMethods.cs
- VariableAction.cs
- TCPListener.cs
- RegexInterpreter.cs
- RestClientProxyHandler.cs
- WindowsFont.cs
- HebrewCalendar.cs
- ProcessHostConfigUtils.cs
- MSAAEventDispatcher.cs
- SchemaElementDecl.cs
- AnnotationComponentChooser.cs
- BindingMemberInfo.cs
- AcceleratedTokenAuthenticator.cs
- CustomAssemblyResolver.cs
- NameTable.cs
- WebPartConnectionsCancelVerb.cs
- ComponentDispatcher.cs
- XmlSchemaComplexContent.cs
- BooleanKeyFrameCollection.cs
- IERequestCache.cs
- Light.cs
- Panel.cs
- SqlDependencyListener.cs
- MessageBox.cs
- WorkflowClientDeliverMessageWrapper.cs
- DispatcherSynchronizationContext.cs
- PTConverter.cs
- EdmType.cs
- InsufficientExecutionStackException.cs
- documentsequencetextpointer.cs
- XamlStyleSerializer.cs
- GeometryHitTestResult.cs
- ObjectViewListener.cs
- TextSpan.cs
- SafeEventLogWriteHandle.cs
- XmlQuerySequence.cs
- MenuItemBinding.cs
- ClientTargetSection.cs
- C14NUtil.cs
- SystemWebSectionGroup.cs
- PowerModeChangedEventArgs.cs
- DataExchangeServiceBinder.cs
- XmlCharType.cs
- ToolboxItemFilterAttribute.cs
- NameSpaceExtractor.cs
- FormClosedEvent.cs
- DataGridViewAutoSizeModeEventArgs.cs
- FixUpCollection.cs
- ProxyWebPartManager.cs
- ReadOnlyCollectionBase.cs
- LingerOption.cs
- ClientUtils.cs
- IsolatedStorageException.cs
- TextParagraphProperties.cs
- Canvas.cs
- EdmProviderManifest.cs
- SqlInternalConnection.cs
- StateDesigner.LayoutSelectionGlyph.cs
- ChineseLunisolarCalendar.cs
- TraceLevelHelper.cs
- ViewService.cs
- CharEnumerator.cs
- ModifiableIteratorCollection.cs
- TableParagraph.cs
- PolyBezierSegment.cs
- XmlReaderDelegator.cs
- __Filters.cs
- DeploymentExceptionMapper.cs
- MergeFilterQuery.cs
- MultiView.cs
- ApplicationException.cs
- NamespaceMapping.cs
- TransactionManagerProxy.cs
- ActionFrame.cs
- Section.cs
- XmlSchemaSubstitutionGroup.cs
- SqlMethods.cs
- ResourceSetExpression.cs
- UpDownEvent.cs
- SerializableTypeCodeDomSerializer.cs
- GACMembershipCondition.cs
- XPathMultyIterator.cs
- CommandBinding.cs
- WebServiceAttribute.cs
- ImageAnimator.cs
- WinInetCache.cs
- CookielessHelper.cs
- DependencyPropertyKey.cs