⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 sqlfileproperties.cs

📁 wrox c#高级编程
💻 CS
字号:
using System;

namespace SqlAdmin {
    /// <summary>
    /// Represents the properties of a data file or a transaction log file of a database.
    /// </summary>
	public class SqlFileProperties {
        private SqlFileGrowthType fileGrowthType;
        private int fileGrowth;
        private int maximumSize;


        /// <summary>
        /// Initializes a new instance of the SqlFileProperties class.
        /// </summary>
        /// <param name="fileGrowthType">
        /// A SqlFileGrowthType value representing the growth type of the file.
        /// </param>
        /// <param name="fileGrowth">
        /// The amount in which the file grows, either in percent or megabytes, depending on the value of fileGrowthType.
        /// </param>
        /// <param name="maximumSize">
        /// The maximum size of the database in megabytes.
        /// </param>
		public SqlFileProperties(SqlFileGrowthType fileGrowthType, int fileGrowth, int maximumSize) {
            this.fileGrowthType          = fileGrowthType;
            this.fileGrowth              = fileGrowth;
            this.maximumSize             = maximumSize;
        }


        /// <summary>
        /// A SqlFileGrowthType value representing the type of growth of this file.
        /// </summary>
        public SqlFileGrowthType FileGrowthType {
            get {
                return fileGrowthType;
            }
            set {
                fileGrowthType = value;
            }
        }

        /// <summary>
        /// The amount in which the file grows, either in percent of megabytes, depending on the value of FileGrowthType.
        /// A value of 0 indicates that the file does not automatically grow.
        /// </summary>
        public int FileGrowth {
            get {
                return fileGrowth;
            }
            set {
                fileGrowth = value;
            }
        }

        /// <summary>
        /// The maximum size of the database in megabytes.
        /// A value of -1 indicates unrestricted growth.
        /// </summary>
        public int MaximumSize {
            get {
                return maximumSize;
            }
            set {
                maximumSize = value;
            }
        }
	}
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -