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
- RoleServiceManager.cs
- Polyline.cs
- IODescriptionAttribute.cs
- TemplatePagerField.cs
- Viewport3DVisual.cs
- OutputWindow.cs
- ZipPackage.cs
- SqlDataSourceRefreshSchemaForm.cs
- PerformanceCounterPermission.cs
- HuffCodec.cs
- CreateUserErrorEventArgs.cs
- ConfigurationPropertyCollection.cs
- GridViewRowCollection.cs
- ReadOnlyDataSource.cs
- Animatable.cs
- fixedPageContentExtractor.cs
- MediaPlayerState.cs
- CompositeDuplexElement.cs
- TypeListConverter.cs
- MetadataException.cs
- SelectionPattern.cs
- AsyncStreamReader.cs
- NamespaceInfo.cs
- DebugHandleTracker.cs
- ControlParameter.cs
- XmlSiteMapProvider.cs
- EndPoint.cs
- Subordinate.cs
- FormViewPageEventArgs.cs
- ObjectDataSourceFilteringEventArgs.cs
- TagMapCollection.cs
- IisTraceWebEventProvider.cs
- SpeakProgressEventArgs.cs
- DependencyPropertyConverter.cs
- ProviderConnectionPointCollection.cs
- TrustManagerMoreInformation.cs
- GifBitmapDecoder.cs
- AttributeSetAction.cs
- DependencyPropertyKind.cs
- BasicExpressionVisitor.cs
- XmlEntityReference.cs
- NativeCppClassAttribute.cs
- EntitySqlQueryCacheKey.cs
- UrlMappingsModule.cs
- ClusterRegistryConfigurationProvider.cs
- CompensatableTransactionScopeActivity.cs
- DataGridTable.cs
- SimpleTypeResolver.cs
- MetadataWorkspace.cs
- KnownColorTable.cs
- TabControl.cs
- WizardPanel.cs
- WebPartDisplayModeCancelEventArgs.cs
- StreamSecurityUpgradeInitiatorBase.cs
- InlineUIContainer.cs
- Codec.cs
- ReferentialConstraint.cs
- ExpressionParser.cs
- PropertySegmentSerializationProvider.cs
- DeviceContext2.cs
- ExceptionList.cs
- ToolStripMenuItem.cs
- InlineObject.cs
- ColumnProvider.cs
- ModelItemDictionaryImpl.cs
- WindowsClaimSet.cs
- TypeNameConverter.cs
- RTLAwareMessageBox.cs
- TextViewSelectionProcessor.cs
- TextMetrics.cs
- SafeNativeHandle.cs
- Part.cs
- ControlTemplate.cs
- ScrollPattern.cs
- IdentitySection.cs
- NamedObject.cs
- UnsafeNativeMethods.cs
- AssemblyInfo.cs
- UndoManager.cs
- TextTreeDeleteContentUndoUnit.cs
- ValidationErrorCollection.cs
- XmlILCommand.cs
- Message.cs
- ListViewGroupConverter.cs
- NamedPipeTransportSecurityElement.cs
- ToolStripProfessionalLowResolutionRenderer.cs
- AnonymousIdentificationModule.cs
- ProgressBarAutomationPeer.cs
- ImmutableCollection.cs
- DeviceSpecificChoiceCollection.cs
- GridViewRowCollection.cs
- InputBuffer.cs
- DrawingVisual.cs
- WinFormsSpinner.cs
- ReachDocumentReferenceSerializer.cs
- UIElementPropertyUndoUnit.cs
- OLEDB_Enum.cs
- BamlResourceContent.cs
- DataGridViewImageColumn.cs
- WebPartMenuStyle.cs