public FileInfo WithProperties(StorageItemContentProperties value) { Contract.Ensures(Contract.Result<FileInfo>() != null, nameof(WithProperties)); return value == Properties ? this : new FileInfo(Attributes, ContentType, DateCreated, DisplayName, DisplayType, FileType, FolderRelativeId, FutureAccessListToken, Name, value, Path, Thumbnail); }
private FileInfo(FileAttributes attributes, string contentType, DateTimeOffset dateCreated, string displayName, string displayType, string fileType, string folderRelativeId, string futureAccessListToken, string name, StorageItemContentProperties properties, string path, StorageItemThumbnail thumbnail) { Attributes = attributes; ContentType = contentType; DateCreated = dateCreated; FileType = fileType; Path = path; FutureAccessListToken = futureAccessListToken; Thumbnail = thumbnail; Name = name; }
public static FileInfo Create(FileAttributes attributes = FileAttributes.Normal, string contentType = null, DateTimeOffset dateCreated = default(DateTimeOffset), string displayName = null, string displayType = null, string fileType = null, string folderRelativeId = null, string futureAccessListToken = null, string path = null, string name = null, StorageItemContentProperties properties = null, StorageItemThumbnail thumbnail = null) { Contract.Ensures(Contract.Result<FileInfo>() != null, nameof(Create)); return new FileInfo(attributes, contentType, dateCreated, displayName, displayType, fileType, folderRelativeId, futureAccessListToken, name, properties, path, thumbnail); }