Class UofxService.File
檔案服務
Inheritance
System.Object
UofxService.File
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Ede.Uofx.PubApi.Sdk.NetStd.Service
Assembly: Ede.Uofx.PubApi.Sdk.NetStd.dll
Syntax
public static class File
Methods
View SourceFileUpload(FileStream)
檔案上傳
Declaration
public static async Task<FileViewModel> FileUpload(FileStream file)
Parameters
Type | Name | Description |
---|---|---|
System.IO.FileStream | file | 檔案串流 |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<FileViewModel> | 檔案資訊 |
FileUpload(String)
檔案上傳
Declaration
public static async Task<FileViewModel> FileUpload(string filePath)
Parameters
Type | Name | Description |
---|---|---|
System.String | filePath | 檔案路徑 |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<FileViewModel> | 檔案資訊 |