Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / clr / src / BCL / System / Runtime / Remoting / RemotingException.cs / 1305376 / 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); } [System.Security.SecuritySafeCritical] // auto-generated 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- MetadataPropertyvalue.cs
- _SslSessionsCache.cs
- TrustSection.cs
- WebPartEventArgs.cs
- CollectionBuilder.cs
- SqlDataSourceCustomCommandPanel.cs
- InvalidDataContractException.cs
- DataComponentMethodGenerator.cs
- XamlTypeMapper.cs
- QilInvokeEarlyBound.cs
- CompiledQuery.cs
- ContainerParaClient.cs
- HtmlLink.cs
- XhtmlConformanceSection.cs
- DateTimeFormatInfo.cs
- KernelTypeValidation.cs
- WebPartCloseVerb.cs
- BuildProvider.cs
- AppSettingsSection.cs
- CompoundFileStorageReference.cs
- ProgressBar.cs
- HtmlUtf8RawTextWriter.cs
- SHA256.cs
- FixedLineResult.cs
- StandardRuntimeEnumValidatorAttribute.cs
- SafeNativeMethodsCLR.cs
- EditCommandColumn.cs
- NamespaceQuery.cs
- ReadOnlyTernaryTree.cs
- StringAnimationBase.cs
- MethodBuilder.cs
- Compiler.cs
- XmlUtil.cs
- LogRecordSequence.cs
- WebDescriptionAttribute.cs
- HttpModuleActionCollection.cs
- HyperLinkColumn.cs
- PolyLineSegment.cs
- DelegateBodyWriter.cs
- QualifiedCellIdBoolean.cs
- FamilyTypeface.cs
- ResourceDisplayNameAttribute.cs
- DetailsViewPageEventArgs.cs
- CaseStatementSlot.cs
- DiagnosticTraceSource.cs
- TopClause.cs
- CollaborationHelperFunctions.cs
- Columns.cs
- TcpTransportSecurityElement.cs
- SemanticResultValue.cs
- PaperSize.cs
- RequestCachingSection.cs
- DateTimeParse.cs
- BehaviorEditorPart.cs
- RuleValidation.cs
- FamilyTypefaceCollection.cs
- PenContexts.cs
- Component.cs
- CodeExporter.cs
- SurrogateSelector.cs
- DataGridViewLayoutData.cs
- Row.cs
- TrustManager.cs
- NullableFloatAverageAggregationOperator.cs
- ConstantCheck.cs
- MenuTracker.cs
- PermissionAttributes.cs
- WebPartVerbsEventArgs.cs
- ToolboxBitmapAttribute.cs
- CategoryAttribute.cs
- DownloadProgressEventArgs.cs
- Internal.cs
- SplineKeyFrames.cs
- QilParameter.cs
- SqlProvider.cs
- AuthenticationManager.cs
- DataViewManagerListItemTypeDescriptor.cs
- BaseConfigurationRecord.cs
- HtmlSelect.cs
- PriorityBindingExpression.cs
- _LoggingObject.cs
- ContextInformation.cs
- Cursor.cs
- PolyBezierSegment.cs
- SamlConstants.cs
- SessionStateModule.cs
- TileModeValidation.cs
- SynchronizationContext.cs
- OracleString.cs
- ProcessThread.cs
- ZipIOFileItemStream.cs
- WsdlWriter.cs
- DataGridViewCellCollection.cs
- WebPartConnectionCollection.cs
- DependencyPropertyConverter.cs
- OdbcConnectionStringbuilder.cs
- DecimalConverter.cs
- ExtenderProvidedPropertyAttribute.cs
- SettingsPropertyCollection.cs
- MsmqTransportSecurity.cs