Method File
| Improve this Doc View SourceFile(ByteArrayFileContent)
Represents a situation in which the service returns the contents of a file as an array of bytes.
Declaration
public static Result<ByteArrayFileContent> File(ByteArrayFileContent fileContent)
Parameters
| Type | Name | Description |
|---|---|---|
| ByteArrayFileContent | fileContent | The contents of a file. |
Returns
| Type | Description |
|---|---|
| Result<ByteArrayFileContent> |
File(StreamFileContent)
Represents a situation in which the service returns the contents of a file as a stream.
Declaration
public static Result<StreamFileContent> File(StreamFileContent fileContent)
Parameters
| Type | Name | Description |
|---|---|---|
| StreamFileContent | fileContent | The contents of a file. |
Returns
| Type | Description |
|---|---|
| Result<StreamFileContent> |