检查 MINOR #对文件系统进行一个简单的检查 cp [FROM-DEVICE] FROM-MINOR TO-MINOR #将文件系统复制到另一个分区 help [COMMAND] #打印通用求助信息,或关于 COMMAND 的信息 mklabel 标签类型 #创建新的磁盘标签 (分区表) mkfs MINOR 文件系统类型 #在 MINOR 创建类型为“文件系统类型”的文件系统 mkpart 分区类型 [文件系统类型] 起始点 终止点 #创建一个分区 mkpartfs 分区类型 文件系统类型 起始点 终止点 #创建一个带有文件系统的分区 move MINOR 起始点 终止点 #移动编号为 MINOR 的分区 name MINOR 名称 #将编号为 MINOR 的分区命名为“名称” print [MINOR] #打印分区表,或者分区 quit #退出程序 rescue 起始点 终止点 #挽救临近“起始点”、“终止点”的遗失的分区 resize MINOR 起始点 终止点 #改变位于编号为 MINOR 的分区中文件系统的大小 rm MINOR #删除编号为 MINOR 的分区 select 设备 #选择要编辑的设备 set MINOR 标志 状态 #改变编号为 MINOR 的分区的标志
publicclassPersonValidateInSetter : ObservableObject { privatestring name; privateint age; publicstring Name { get { returnthis.name; } set { if (string.IsNullOrWhiteSpace(value)) { thrownew ArgumentException("Name cannot be empty!"); } if (value.Length < 4) { thrownew ArgumentException("Name must have more than 4 char!"); } this.name = value; this.OnPropertyChanged(() => this.Name); } } publicint Age { get { returnthis.age; } set { if (value < 18) { thrownew ArgumentException("You must be an adult!"); } this.age = value; this.OnPropertyChanged(() => this.Age); } } }
publicclassPersonDerivedFromIDataErrorInfo : ObservableObject, IDataErrorInfo { privatestring name; privateint age; publicstring Name { get { returnthis.name; } set { this.name = value; this.OnPropertyChanged(() => this.Name); } } publicint Age { get { returnthis.age; } set { this.age = value; this.OnPropertyChanged(() => this.Age); } } // never called by WPF publicstring Error { get { returnnull; } } publicstringthis\[string propertyName\] { get { switch (propertyName) { case"Name": if (string.IsNullOrWhiteSpace(this.Name)) { return"Name cannot be empty!"; } if (this.Name.Length < 4) { return"Name must have more than 4 char!"; } break; case"Age": if (this.Age < 18) { return"You must be an adult!"; } break; } returnnull; } } }
publicclassMinAgeValidation : ValidationRule { publicint MinAge { get; set; } publicoverride ValidationResult Validate(objectvalue, CultureInfo cultureInfo) { ValidationResult result \= null; if (value != null) { int age; if (int.TryParse(value.ToString(), out age)) { if (age < this.MinAge) { result \= new ValidationResult(false, "Age must large than " + this.MinAge.ToString(CultureInfo.InvariantCulture)); } } else { result \= new ValidationResult(false, "Age must be a number!"); } } else { result \= new ValidationResult(false, "Age must not be null!"); } returnnew ValidationResult(true, null); } }
本文整理了丰富的 Windows Azure 学习资源,帮助开发者能全面地学习 Windows Azure 知识,并将 Windows Azure 运用在项目和实际工作中。
通过本系列博客,先来了解一下 Windows Azure 平台的基本知识。Windows Azure,正如同桌面操作系统 Windows 和服务器操作系统 Windows Server 一样,是一个云端的操作系统。开发人员可以使用同一套技术:.NET(包括 Silverlight),或者 Win32,同时针对桌面,服务器,以及云,开发程序,而不需要针对某个平台学习专门的技术。Visual Studio 和 Expression Studio 为开发人员提供了强大的工具支持。
Windows Azure 提供了三种不同类型的存储服务(这里的存储是非关系型数据,比如图片、文档等文件),用来提供给 Windows Azure 上运行的应用程序存储数据使用。依据不同的存储格式会有不同的限制,因为这些存储服务都是以分散式巨量存储(Distributed Mass Storage)为核心概念所设计出来的,为了要达成快速在分散式存储空间中存储与管理数据(还包含高可用度的赘余存储管理),微软有在数据的存储上做一些限制。
SQL Azure 是微软基于 Microsoft SQL Server Denali,也就是 SQL Server 2012 构建的云端关系型数据库服务。SQL Azure 是 SQL Server 的一个大子集,能够实现 SQL Server 的绝大部分功能,并且将它们作为云端的服务来扩展。SQL Azure Database 提供内置的高精准、可用性、功效与其他功能。