ReadOnlyFile Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
ReadOnlyFile(String) |
Construct a file taking in file path. |
ReadOnlyFile(FileBase) |
Construct a file taking in file. |
ReadOnlyFile(String, String) |
Construct a file taking in file path and content type (MIME type). |
ReadOnlyFile(String)
Construct a file taking in file path.
public ReadOnlyFile (string fullPath);
Parameters
- fullPath
- System.String
Full file path.
Applies to
ReadOnlyFile(FileBase)
Construct a file taking in file.
public ReadOnlyFile (Xamarin.Essentials.FileBase file);
Parameters
- file
- FileBase
File to use for ReadOnlyFile
Applies to
ReadOnlyFile(String, String)
Construct a file taking in file path and content type (MIME type).
public ReadOnlyFile (string fullPath, string contentType);
Parameters
- fullPath
- System.String
Full file path.
- contentType
- System.String
Content type (MIME type) of the file (eg: image/png
).