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
![Network programming in C#, Network Programming in VB.NET, Network Programming in .NET](/images/book.jpg)
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- InkCanvas.cs
- TypeUtil.cs
- GridView.cs
- CommonProperties.cs
- DefaultPropertyAttribute.cs
- XmlSchemaIdentityConstraint.cs
- XmlRawWriter.cs
- ArrayWithOffset.cs
- WizardStepBase.cs
- ContractHandle.cs
- ApplicationSecurityInfo.cs
- NoneExcludedImageIndexConverter.cs
- WindowsComboBox.cs
- JavascriptCallbackMessageInspector.cs
- EntityViewGenerator.cs
- Authorization.cs
- cache.cs
- MgmtResManager.cs
- PublisherMembershipCondition.cs
- DesigntimeLicenseContextSerializer.cs
- PartialClassGenerationTask.cs
- SocketInformation.cs
- FaultCallbackWrapper.cs
- CodeNamespace.cs
- MsmqQueue.cs
- ObjectSecurity.cs
- MailAddress.cs
- ScalarType.cs
- FormViewDeletedEventArgs.cs
- TypeSemantics.cs
- EntryPointNotFoundException.cs
- BufferedGraphicsContext.cs
- RelationshipDetailsRow.cs
- InternalTypeHelper.cs
- _DynamicWinsockMethods.cs
- BamlLocalizabilityResolver.cs
- ChangeBlockUndoRecord.cs
- XamlTreeBuilder.cs
- EventDescriptor.cs
- Identifier.cs
- DrawingGroup.cs
- AssemblyGen.cs
- CollectionDataContractAttribute.cs
- DescendantBaseQuery.cs
- DoubleConverter.cs
- AnimatedTypeHelpers.cs
- XPathArrayIterator.cs
- PackUriHelper.cs
- SchemaObjectWriter.cs
- LineBreak.cs
- WebPartConnectionsCloseVerb.cs
- PostBackOptions.cs
- HtmlWindowCollection.cs
- ConnectionConsumerAttribute.cs
- EventListenerClientSide.cs
- HelpPage.cs
- Vector3D.cs
- SymbolMethod.cs
- RbTree.cs
- CapabilitiesUse.cs
- SvcMapFileLoader.cs
- DispatcherHookEventArgs.cs
- GB18030Encoding.cs
- ToolStripRendererSwitcher.cs
- SoapSchemaImporter.cs
- ReadOnlyDataSource.cs
- ListItemCollection.cs
- NumberSubstitution.cs
- RenderTargetBitmap.cs
- UnsafeNativeMethods.cs
- ConfigurationSettings.cs
- InstanceCreationEditor.cs
- OrthographicCamera.cs
- BulletedList.cs
- DBConcurrencyException.cs
- SQLChars.cs
- NameValuePair.cs
- PolyLineSegmentFigureLogic.cs
- DataGridViewColumnDesignTimeVisibleAttribute.cs
- DrawingVisual.cs
- RenderData.cs
- Odbc32.cs
- Item.cs
- Padding.cs
- TypeResolver.cs
- ContravarianceAdapter.cs
- LicenseContext.cs
- JsonDeserializer.cs
- PerformanceCounterLib.cs
- KeyProperty.cs
- Error.cs
- WebServiceParameterData.cs
- KeyValuePairs.cs
- NamespaceImport.cs
- RtfControls.cs
- HttpModuleAction.cs
- CssClassPropertyAttribute.cs
- BatchStream.cs
- ProxyWebPartManagerDesigner.cs
- SmiConnection.cs