1. Stylelabs.M.Sdk.WebClient.Models.Upload

Class LocalUploadSource

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

Inheritance

object

LocalUploadSource

Implements

IUploadSource

Namespace: StylelabsStylelabs.MSdkWebClientModelsUpload

Assembly: Stylelabs.M.Sdk.WebClient.dll

Syntax

public class LocalUploadSource : IUploadSource

Constructors

LocalUploadSource(string, string)

Initializes a new instance of the LocalUploadSource class.

Declaration

public LocalUploadSource(string path, string name = "")

Parameters

TypeNameDescription
stringpathThe local file path pointing to the file.
stringnameThe file name.

Properties

Name

Gets the name of the file.

Declaration

public string Name { get; }

Property Value

TypeDescription
string

Methods

GetStreamAsync()

Gets a to access the underlying source.

Declaration

public Task<Stream> GetStreamAsync()

Returns

TypeDescription
Task<>StreamA .

Implements

IUploadSource

If you have suggestions for improving this article, let us know!