logo
logo

Class LocalUploadSource

Provides access to a file in the local file system that will be uploaded to Content Hub.

Inheritance
System.Object
LocalUploadSource
Implements
Namespace: Stylelabs.M.Sdk.WebClient.Models.Upload
Assembly: Stylelabs.M.Sdk.WebClient.dll
Syntax
public class LocalUploadSource : object, IUploadSource

Constructors

LocalUploadSource(String, String)

Initializes a new instance of the LocalUploadSource class.

Declaration
public LocalUploadSource(string path, string name = "")
Parameters
Type Name Description
System.String path

The local file path pointing to the file.

System.String name

The file name.

Properties

Name

Declaration
public string Name { get; }
Property Value
Type Description
System.String

Methods

GetStreamAsync()

Declaration
public Task<Stream> GetStreamAsync()
Returns
Type Description
Task<Stream>

Implements

Can we improve this article ? Provide feedback