Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / 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 }
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ConfigXmlComment.cs
- ParallelSeparator.xaml.cs
- TailPinnedEventArgs.cs
- SqlFormatter.cs
- IDQuery.cs
- ActivationServices.cs
- X500Name.cs
- xdrvalidator.cs
- RadioButtonFlatAdapter.cs
- WindowCollection.cs
- CodeGotoStatement.cs
- TouchEventArgs.cs
- GridViewUpdatedEventArgs.cs
- DataSourceBooleanViewSchemaConverter.cs
- LayoutTableCell.cs
- MutexSecurity.cs
- PageAsyncTaskManager.cs
- BinaryFormatterWriter.cs
- StrokeFIndices.cs
- File.cs
- DispatcherEventArgs.cs
- ServiceReference.cs
- UnsafeNativeMethods.cs
- CreateUserWizardStep.cs
- ToolboxDataAttribute.cs
- ServiceOperation.cs
- AppearanceEditorPart.cs
- ToolStripPanel.cs
- NodeFunctions.cs
- DataContractJsonSerializer.cs
- DPAPIProtectedConfigurationProvider.cs
- IdentitySection.cs
- ChannelCacheSettings.cs
- EmulateRecognizeCompletedEventArgs.cs
- IdentifierCreationService.cs
- GlobalizationAssembly.cs
- MailDefinition.cs
- LocalizabilityAttribute.cs
- DetailsViewUpdatedEventArgs.cs
- InstanceDataCollectionCollection.cs
- FormViewUpdatedEventArgs.cs
- Point3DKeyFrameCollection.cs
- UTF8Encoding.cs
- Int32Storage.cs
- ImageListStreamer.cs
- CompilerParameters.cs
- CSharpCodeProvider.cs
- X509ChainElement.cs
- SafeRightsManagementQueryHandle.cs
- XmlDeclaration.cs
- PartitionedDataSource.cs
- ListControl.cs
- XmlSiteMapProvider.cs
- GridViewRowCollection.cs
- DataColumn.cs
- ConfigurationManager.cs
- PropertyAccessVisitor.cs
- CompensationDesigner.cs
- XmlTextReaderImpl.cs
- OpenFileDialog.cs
- EditorZoneAutoFormat.cs
- EventMappingSettings.cs
- BindStream.cs
- CheckBoxFlatAdapter.cs
- BaseCAMarshaler.cs
- KeyValueInternalCollection.cs
- PageClientProxyGenerator.cs
- InputMethod.cs
- SortFieldComparer.cs
- OperandQuery.cs
- KeyInfo.cs
- DataGridViewRowStateChangedEventArgs.cs
- GPPOINT.cs
- DataMember.cs
- DataSourceControlBuilder.cs
- PropertyEntry.cs
- XamlInt32CollectionSerializer.cs
- EditorPartChrome.cs
- MessageDroppedTraceRecord.cs
- TemplateBindingExpressionConverter.cs
- GC.cs
- WebPartDescription.cs
- ConfigXmlAttribute.cs
- ToolStripPanelRenderEventArgs.cs
- MenuItem.cs
- DrawingGroupDrawingContext.cs
- MachineKeySection.cs
- SimpleRecyclingCache.cs
- CharEnumerator.cs
- LoginUtil.cs
- DeviceContexts.cs
- ThreadStateException.cs
- ScrollProviderWrapper.cs
- Floater.cs
- SqlColumnizer.cs
- ObjectHelper.cs
- ContourSegment.cs
- MultiSelectRootGridEntry.cs
- TypefaceMap.cs
- Authorization.cs