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
- TreeNodeBinding.cs
- DataException.cs
- CleanUpVirtualizedItemEventArgs.cs
- ItemMap.cs
- CodeTypeMemberCollection.cs
- ProtocolsSection.cs
- StylusPointPropertyInfo.cs
- DbParameterCollectionHelper.cs
- EdmItemCollection.cs
- X509AudioLogo.cs
- HostingPreferredMapPath.cs
- AnnotationAdorner.cs
- IdentityHolder.cs
- LoginDesigner.cs
- HostElement.cs
- filewebresponse.cs
- LinqDataSourceContextEventArgs.cs
- ControlIdConverter.cs
- LogAppendAsyncResult.cs
- ServiceHostFactory.cs
- securestring.cs
- ProjectionPath.cs
- ToolStripSettings.cs
- LinkDescriptor.cs
- PeerToPeerException.cs
- XPathSelfQuery.cs
- EntityContainerRelationshipSetEnd.cs
- BitmapEffectInput.cs
- EventKeyword.cs
- Converter.cs
- EmissiveMaterial.cs
- XmlTextWriter.cs
- UpdatePanelControlTrigger.cs
- ProfessionalColors.cs
- OracleBFile.cs
- NumericExpr.cs
- URLMembershipCondition.cs
- SessionStateSection.cs
- CardSpaceShim.cs
- RequestDescription.cs
- HtmlElementErrorEventArgs.cs
- DocumentSequenceHighlightLayer.cs
- TailCallAnalyzer.cs
- ContainerParagraph.cs
- TraceHandlerErrorFormatter.cs
- ApplicationManager.cs
- FixedTextContainer.cs
- EdmComplexPropertyAttribute.cs
- LogicalExpressionEditor.cs
- XmlEncoding.cs
- GeometryDrawing.cs
- PropertyTabAttribute.cs
- AddInStore.cs
- UrlPath.cs
- SiteIdentityPermission.cs
- ClientEventManager.cs
- InfiniteTimeSpanConverter.cs
- SchemaTableOptionalColumn.cs
- FontFaceLayoutInfo.cs
- FontNamesConverter.cs
- IImplicitResourceProvider.cs
- DataRecordInternal.cs
- SafeSerializationManager.cs
- KnownBoxes.cs
- CryptoProvider.cs
- WebServiceHandler.cs
- SmtpLoginAuthenticationModule.cs
- x509store.cs
- SystemResourceHost.cs
- UIHelper.cs
- InternalSafeNativeMethods.cs
- TemplateEditingVerb.cs
- ConnectionManagementElement.cs
- MenuRendererStandards.cs
- DynamicDataResources.Designer.cs
- DbProviderManifest.cs
- FullTrustAssembly.cs
- SqlStream.cs
- Color.cs
- DesignerOptionService.cs
- Overlapped.cs
- SerTrace.cs
- MergeFilterQuery.cs
- ProcessInputEventArgs.cs
- Msec.cs
- SqlClientWrapperSmiStream.cs
- WindowsPrincipal.cs
- HtmlGenericControl.cs
- Rule.cs
- OleTxTransactionInfo.cs
- BoundField.cs
- DownloadProgressEventArgs.cs
- TypeLoadException.cs
- WebRequestModulesSection.cs
- DefaultTextStore.cs
- TableItemPatternIdentifiers.cs
- LinkUtilities.cs
- ControlTemplate.cs
- ResourceIDHelper.cs
- SyndicationSerializer.cs