/// <summary> /// Internal constructor because we don't want code external to the assembly to be able to instantiate the class. /// </summary> internal StorageMedia(String label, long capacity, long freeSpace, StorageMediaType storageMediaType) { this.StorageMediaType = storageMediaType; this.FreeSpace = freeSpace; this.Capacity = capacity; this.label = label; }
/// <summary> /// 关系型数据库连接配置 /// </summary> /// <param name="type">关系型数据库的类型</param> public RelationDatabaseConfigure(StorageMediaType type) { if (type == StorageMediaType.File) { base.StorageMedia = StorageMediaType.SQLServer; } else { base.StorageMedia = type; } }
public DeviceMediaDiskInfo(long Cylinders, StorageMediaType MediaType, uint TracksPerCylinder, uint SectorsPerTrack, uint BytesPerSector, uint NumberMediaSides, MediaFlags MediaCharacteristics) => (this.Cylinders, this.MediaType, this.TracksPerCylinder, this.SectorsPerTrack, this.BytesPerSector, this.NumberMediaSides, this.MediaCharacteristics)
public DeviceMediaTapInfo(StorageMediaType MediaType, MediaFlags MediaCharacteristics, uint CurrentBlockSize, StorageBusType BusType, DeviceMediaBusSpecificData BusSpecificData) => (this.MediaType, this.MediaCharacteristics, this.CurrentBlockSize, this.BusType, this.BusSpecificData)