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
- RoleService.cs
- DataObjectSettingDataEventArgs.cs
- MainMenu.cs
- WindowsListViewGroupSubsetLink.cs
- ExpressionSelection.cs
- WebPartUserCapability.cs
- WebBrowserHelper.cs
- FillBehavior.cs
- RubberbandSelector.cs
- CanonicalXml.cs
- ListManagerBindingsCollection.cs
- XmlObjectSerializerReadContextComplexJson.cs
- Table.cs
- XPathChildIterator.cs
- RelationshipFixer.cs
- DecimalConverter.cs
- TimelineClockCollection.cs
- EntityRecordInfo.cs
- EmbeddedMailObject.cs
- ContainerParaClient.cs
- AssemblyEvidenceFactory.cs
- Compiler.cs
- ToolboxDataAttribute.cs
- CheckableControlBaseAdapter.cs
- FormsAuthenticationUser.cs
- TypedDataSetSchemaImporterExtensionFx35.cs
- ToolStripCollectionEditor.cs
- SQLMoney.cs
- TextBoxAutoCompleteSourceConverter.cs
- ViewSimplifier.cs
- ActivityCodeDomReferenceService.cs
- ProjectedSlot.cs
- JournalEntryListConverter.cs
- WindowsScroll.cs
- InvokeHandlers.cs
- ProcessHostConfigUtils.cs
- DownloadProgressEventArgs.cs
- NotImplementedException.cs
- CorrelationScope.cs
- Scripts.cs
- TabPage.cs
- UnicodeEncoding.cs
- SingleConverter.cs
- HtmlControl.cs
- baseaxisquery.cs
- ProfilePropertySettings.cs
- Panel.cs
- SizeF.cs
- UnsafeNativeMethods.cs
- DataRelationCollection.cs
- Roles.cs
- InputLangChangeEvent.cs
- HtmlImage.cs
- MsmqIntegrationSecurityElement.cs
- SubMenuStyleCollection.cs
- PolyBezierSegment.cs
- ReliableChannelFactory.cs
- MemberDomainMap.cs
- DriveNotFoundException.cs
- TextBoxAutoCompleteSourceConverter.cs
- FormDocumentDesigner.cs
- TextReader.cs
- ThreadInterruptedException.cs
- AssemblyResourceLoader.cs
- WindowsStreamSecurityUpgradeProvider.cs
- CustomExpressionEventArgs.cs
- ToolBar.cs
- HtmlEncodedRawTextWriter.cs
- ConstructorArgumentAttribute.cs
- ControlCollection.cs
- _ListenerRequestStream.cs
- UIHelper.cs
- Light.cs
- AllowedAudienceUriElementCollection.cs
- TrackingExtract.cs
- DataBindingCollection.cs
- RectangleGeometry.cs
- HtmlCalendarAdapter.cs
- TableCell.cs
- SchemaElementLookUpTable.cs
- UshortList2.cs
- SerializationException.cs
- JsonWriter.cs
- TextParagraphCache.cs
- Viewport3DVisual.cs
- WmlObjectListAdapter.cs
- Function.cs
- TextCharacters.cs
- Classification.cs
- AdornerLayer.cs
- DataGridViewCellCancelEventArgs.cs
- SpnEndpointIdentity.cs
- MemberPath.cs
- OdbcEnvironment.cs
- LineServicesRun.cs
- PopupControlService.cs
- BinaryObjectWriter.cs
- ProfileWorkflowElement.cs
- HMACSHA256.cs
- NamespaceEmitter.cs