Class YamlStorageSetup
This storage setup extends FileSetupBase to specify parameters for an access to YAML files.
Inherited Members
Namespace: TeleScope.Persistence.Yaml
Assembly: TeleScope.Persistence.Yaml.dll
Syntax
public class YamlStorageSetup : FileSetupBase
Constructors
| Improve this Doc View SourceYamlStorageSetup(FileInfo, WritePermissions)
The constructor calls the according base class constructor and leaves the default settings of the property.
Declaration
public YamlStorageSetup(FileInfo fileInfo, WritePermissions permissions = default(WritePermissions))
Parameters
Type | Name | Description |
---|---|---|
FileInfo | fileInfo | The file information, the storage is attached to. |
WritePermissions | permissions | The permission flag to access the file. |
YamlStorageSetup(String, WritePermissions)
The constructor calls the according base class constructor and leaves the default settings of the property.
Declaration
public YamlStorageSetup(string file, WritePermissions permissions = default(WritePermissions))
Parameters
Type | Name | Description |
---|---|---|
System.String | file | The file represented as string, the storage is attached to. |
WritePermissions | permissions | The permission flag to access the file. |
Properties
| Improve this Doc View SourceEncoder
Gets or sets the encoding of the file.
The default value is
Declaration
public Encoding Encoder { get; set; }
Property Value
Type | Description |
---|---|
Encoding |
ValueHandling
Gets or sets the value handing for default or null values.
The default value is
Declaration
public DefaultValuesHandling ValueHandling { get; set; }
Property Value
Type | Description |
---|---|
DefaultValuesHandling |