Constructor UploadSource
UploadSource(string, long, string?)
Initializes a new instance of the UploadSource class with the specified file name, length and content type.
Declaration
protected UploadSource(string fileName, long length, string? contentType = null)
Parameters
| Type | Name | Description |
|---|---|---|
| string | fileName | The name of the file, which the service receives. |
| long | length | The length of the content in bytes. |
| string | contentType | The content type of the file, such as |
Exceptions
| Type | Condition |
|---|---|
| ArgumentException |
|
| ArgumentOutOfRangeException |
|