StoreOptions
Namespace: Proffer.Storage.Configuration
Generic options for an IStore.
public class StoreOptions : IStoreOptions, Proffer.Configuration.INamedElementOptions
Inheritance Object → StoreOptions
Implements IStoreOptions, INamedElementOptions
Properties
Name
Gets or sets the name.
public string Name { get; set; }
Property Value
ProviderName
Gets or sets the name of the provider.
public string ProviderName { get; set; }
Property Value
ProviderType
Gets or sets the type of the provider.
public string ProviderType { get; set; }
Property Value
AccessLevel
Gets or sets the access level.
public AccessLevel AccessLevel { get; set; }
Property Value
FolderName
Gets or sets the name of the folder.
public string FolderName { get; set; }
Property Value
Constructors
StoreOptions()
public StoreOptions()
Methods
Validate(Boolean)
Validates the options.
public IEnumerable<IOptionError> Validate(bool throwOnError)
Parameters
throwOnError
Boolean
If set to true, throws an exception when the validation fails with any .
Returns
The returned by the validation, if any.
Exceptions
PushMissingPropertyError(List<OptionError>, String)
Pushes a missing property Proffer.Configuration.IOptionError to the list or errors.
protected void PushMissingPropertyError(List<OptionError> optionErrors, string propertyName)
Parameters
optionErrors
List<OptionError>
The option errors.
propertyName
String
The name of the missing property.