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
- WindowsGraphicsWrapper.cs
- XmlCollation.cs
- Duration.cs
- CellQuery.cs
- UIElement.cs
- PrePostDescendentsWalker.cs
- ISAPIRuntime.cs
- FrameworkContextData.cs
- Button.cs
- ScriptIgnoreAttribute.cs
- ResourceWriter.cs
- precedingquery.cs
- CodeStatementCollection.cs
- RSAPKCS1KeyExchangeDeformatter.cs
- SQLString.cs
- DiffuseMaterial.cs
- DictionaryBase.cs
- MaterialCollection.cs
- WorkflowNamespace.cs
- TimeoutTimer.cs
- BrowserCapabilitiesCodeGenerator.cs
- DrawingAttributeSerializer.cs
- XLinq.cs
- RuntimeHelpers.cs
- CommandEventArgs.cs
- HttpProfileBase.cs
- Comparer.cs
- SQLInt32.cs
- DisposableCollectionWrapper.cs
- MemberRelationshipService.cs
- VisualTreeUtils.cs
- XmlAttribute.cs
- ForceCopyBuildProvider.cs
- ListViewGroup.cs
- InstanceCreationEditor.cs
- PanelStyle.cs
- DataBindingExpressionBuilder.cs
- TextFragmentEngine.cs
- TraceContext.cs
- LocalBuilder.cs
- ArgIterator.cs
- ScriptResourceHandler.cs
- GenericEnumConverter.cs
- TextBoxAutoCompleteSourceConverter.cs
- XamlFilter.cs
- DataDocumentXPathNavigator.cs
- ToolStripDropDownClosingEventArgs.cs
- DbConnectionPoolOptions.cs
- DrawingGroupDrawingContext.cs
- ScriptingScriptResourceHandlerSection.cs
- HandleExceptionArgs.cs
- SiteMapNodeItemEventArgs.cs
- Viewport3DAutomationPeer.cs
- AggregateException.cs
- SingleSelectRootGridEntry.cs
- InstallerTypeAttribute.cs
- ThicknessAnimationUsingKeyFrames.cs
- HostedController.cs
- UniqueIdentifierService.cs
- translator.cs
- DefaultTextStore.cs
- DataGridSortingEventArgs.cs
- CompressStream.cs
- QilXmlWriter.cs
- ItemsControlAutomationPeer.cs
- StateBag.cs
- WebPartMenu.cs
- RelationshipDetailsRow.cs
- OleDbDataAdapter.cs
- WebPartDescriptionCollection.cs
- TextReturnReader.cs
- ClientSettingsStore.cs
- ItemsControlAutomationPeer.cs
- ResourceType.cs
- SiteMap.cs
- MobileUITypeEditor.cs
- ImageMapEventArgs.cs
- UndoManager.cs
- WindowsAltTab.cs
- RoutingExtension.cs
- MessageDescriptionCollection.cs
- COM2PropertyDescriptor.cs
- LinkedResource.cs
- CodeEntryPointMethod.cs
- AbstractDataSvcMapFileLoader.cs
- DbParameterCollectionHelper.cs
- CollectionViewProxy.cs
- SqlPersonalizationProvider.cs
- Task.cs
- SR.cs
- CollectionChangeEventArgs.cs
- FontInfo.cs
- DetailsViewUpdateEventArgs.cs
- TextBox.cs
- OleDbConnection.cs
- ScriptDescriptor.cs
- HttpCapabilitiesEvaluator.cs
- ParseNumbers.cs
- IOException.cs
- RtfToXamlLexer.cs