Class LocalUploadSource

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

Inheritance
object
LocalUploadSource
Implements
Namespace: StylelabsStylelabs.MSdkWebClientModelsUpload
Assembly: Stylelabs.M.Sdk.WebClient.dll
Syntax
RequestResponse
public class LocalUploadSource : IUploadSource

Constructors

LocalUploadSource(string, string)

Initializes a new instance of the LocalUploadSource class.

Declaration
RequestResponse
public LocalUploadSource(string path, string name = "")
Parameters
TypeNameDescription
stringpath

The local file path pointing to the file.

stringname

The file name.

Properties

Name

Gets the name of the file.

Declaration
RequestResponse
public string Name { get; }
Property Value
TypeDescription
string

Methods

GetStreamAsync()

Gets a to access the underlying source.

Declaration
RequestResponse
public Task<Stream> GetStreamAsync()
Returns
TypeDescription
Task<>Stream

A .

Implements

Do you have some feedback for us?

If you have suggestions for improving this article,