Hi everybody,

Here is some code i have tried for registration exception. it seems to
compile but i am not sure what i need else i need to do. can somebody
help me and tell me what i need to do. i have attached my code with this
email.

alex
-- 
Alexander Chan <[EMAIL PROTECTED]>
// 
// System.EnterpriseServices.RegistrationException.cs
//
// Author:
//   Tim Coleman ([EMAIL PROTECTED])
//
// Copyright (C) Tim Coleman, 2002
//

using System;
using System.Runtime.Serialization;

namespace System.EnterpriseServices {
        [Serializable]
        public sealed class RegistrationException : SystemException {

                #region Fields

                RegistrationErrorInfo[] errorInfo;

                #endregion // Fields

                #region Constructors

                [MonoTODO]
                public RegistrationException (string msg)
                        : base (msg)
                {
                }

                #endregion // Constructors

                #region Properties
                        
                public RegistrationErrorInfo[] ErrorInfo {
                        get { return errorInfo; }
                }

                #endregion // Properties

                #region Methods
                //the coding of GetObjectdata() is so far written by alexander chan
                public override void GetObjectData (SerializationInfo info, 
StreamingContext ctx)
                {
                        base.GetObjectData(info,ctx);
                        info.AddValue("ErrorInfo",errorInfo);
                }

                private RegistrationException (SerializationInfo info, 
StreamingContext ctx):base (info,ctx)
                {
                        errorInfo = (RegistrationErrorInfo[]) info.GetValue 
("ErrorInfo", typeof (RegistrationErrorInfo[]));
                }
                #endregion // Methods
        }
}
        

Reply via email to