Trustee.cs source code in C# .NET

Source code for the .NET framework in C#

                        

Code:

/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Services / Messaging / System / Messaging / Trustee.cs / 1305376 / Trustee.cs

                            using System; 
using System.Collections;
using System.Runtime.InteropServices;
using System.ComponentModel;
using System.Text; 
using System.Messaging.Interop;
using System.Messaging; 
 
namespace System.Messaging {
 
    /// 
    /// 
    ///    [To be supplied.]
    ///  
    public class Trustee {
        string name; 
        string systemName; 
        TrusteeType trusteeType;
 
        /// 
        /// 
        ///    [To be supplied.]
        ///  
        public string Name {
            get { return name; } 
            set { 
                if (value == null)
                    throw new ArgumentNullException("value"); 

                name = value;
            }
        } 

        ///  
        ///  
        ///    [To be supplied.]
        ///  
        public string SystemName {
            get { return systemName; }
            set { systemName = value; }
        } 

        ///  
        ///  
        ///    [To be supplied.]
        ///  
        public TrusteeType TrusteeType {
            get { return trusteeType; }
            set {
                if (!ValidationUtility.ValidateTrusteeType(value)) 
                    throw new InvalidEnumArgumentException("value", (int)value, typeof(TrusteeType));
 
                trusteeType = value; 
            }
        } 

        /// 
        /// 
        ///    [To be supplied.] 
        /// 
        public Trustee() { 
        } 

        ///  
        /// 
        ///    [To be supplied.]
        /// 
        public Trustee(string name) : this(name, null) {} 

        ///  
        ///  
        ///    [To be supplied.]
        ///  
        public Trustee(string name, string systemName) : this(name, systemName, System.Messaging.TrusteeType.Unknown) {}

        /// 
        ///  
        ///    [To be supplied.]
        ///  
        public Trustee(string name, string systemName, TrusteeType trusteeType) { 
            this.Name = name;
            this.SystemName = systemName; 
            this.TrusteeType = trusteeType;
        }
    }
} 

// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
// Copyright (c) Microsoft Corporation. All rights reserved.
using System; 
using System.Collections;
using System.Runtime.InteropServices;
using System.ComponentModel;
using System.Text; 
using System.Messaging.Interop;
using System.Messaging; 
 
namespace System.Messaging {
 
    /// 
    /// 
    ///    [To be supplied.]
    ///  
    public class Trustee {
        string name; 
        string systemName; 
        TrusteeType trusteeType;
 
        /// 
        /// 
        ///    [To be supplied.]
        ///  
        public string Name {
            get { return name; } 
            set { 
                if (value == null)
                    throw new ArgumentNullException("value"); 

                name = value;
            }
        } 

        ///  
        ///  
        ///    [To be supplied.]
        ///  
        public string SystemName {
            get { return systemName; }
            set { systemName = value; }
        } 

        ///  
        ///  
        ///    [To be supplied.]
        ///  
        public TrusteeType TrusteeType {
            get { return trusteeType; }
            set {
                if (!ValidationUtility.ValidateTrusteeType(value)) 
                    throw new InvalidEnumArgumentException("value", (int)value, typeof(TrusteeType));
 
                trusteeType = value; 
            }
        } 

        /// 
        /// 
        ///    [To be supplied.] 
        /// 
        public Trustee() { 
        } 

        ///  
        /// 
        ///    [To be supplied.]
        /// 
        public Trustee(string name) : this(name, null) {} 

        ///  
        ///  
        ///    [To be supplied.]
        ///  
        public Trustee(string name, string systemName) : this(name, systemName, System.Messaging.TrusteeType.Unknown) {}

        /// 
        ///  
        ///    [To be supplied.]
        ///  
        public Trustee(string name, string systemName, TrusteeType trusteeType) { 
            this.Name = name;
            this.SystemName = systemName; 
            this.TrusteeType = trusteeType;
        }
    }
} 

// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
// Copyright (c) Microsoft Corporation. All rights reserved.
                        

Link Menu

Network programming in C#, Network Programming in VB.NET, Network Programming in .NET
This book is available now!
Buy at Amazon US or
Buy at Amazon UK