Click here to Skip to main content
12,358,699 members (57,311 online)
Click here to Skip to main content

Stats

51.5K views
606 downloads
24 bookmarked
Posted

The case for a channel-schema concept

, 17 May 2003 CPOL
An article about .NET remoting channel schemas
// Stephen Toub
// stoub@microsoft.com
// SecureRemotingException.cs

using System;
using System.Security.Permissions;
using System.Runtime.Remoting;
using System.Runtime.Serialization;

namespace MsdnMag.Remoting
{
	/// <summary>The exception that is thrown when something goes wrong in the secure remoting channel.</summary>
	[Serializable]
	public class SecureRemotingException : RemotingException, ISerializable
	{
		#region Construction and Serialization
		/// <summary>Initializes a new instance of the SecureRemotingException class with default properties.</summary>
		public SecureRemotingException()
		{
		}
		
		/// <summary>Initializes a new instance of the SecureRemotingException class with the given message.</summary>
		/// <param name="message">The error message that explains why the exception occurred.</param>
		public SecureRemotingException(string message) : 
			base(message)
		{
		}

		/// <summary>Initializes a new instance of the SecureRemotingException class with the specified properties.</summary>
		/// <param name="message">The error message that explains why the exception occurred.</param>
		/// <param name="innerException">The exception that is the cause of the current exception.</param>
		public SecureRemotingException(string message, System.Exception innerException) : 
			base(message, innerException)
		{
		}

		/// <summary>Initializes the exception with serialized information.</summary>
		/// <param name="info">Serialization information.</param>
		/// <param name="context">Streaming context.</param>
		protected SecureRemotingException(SerializationInfo info, StreamingContext context) :
			base(info, context)
		{
		}

		/// <summary>Provides serialization functionality.</summary>
		/// <param name="info">Serialization information.</param>
		/// <param name="context">Streaming context.</param>
		public override void GetObjectData(SerializationInfo info, StreamingContext context)
		{
			base.GetObjectData(info, context);
		}
		#endregion
	}
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author

Wytek Szymanski
Web Developer
United States United States
I am a consultant, trainer, software archtect/engineer, since the early 1980s, working in the greater area of Boston, MA, USA.

My work comprises the entire spectrum of software, shrink-wrapped applications, IT client-server, systems and protocol related work, compilers and operating systems, and more ....

I am currently focused on platform development for distributed computing in service oriented data centers.

You may also be interested in...

| Advertise | Privacy | Terms of Use | Mobile
Web01 | 2.8.160621.1 | Last Updated 18 May 2003
Article Copyright 2003 by Wytek Szymanski
Everything else Copyright © CodeProject, 1999-2016
Layout: fixed | fluid