VolumeDriverOptionCollection Class

A collection of driver-specific options applied to a volume.

public sealed class VolumeDriverOptionCollection : IEnumerable<KeyValuePair<string, string>>, IEnumerable
Implements

Properties

NameDescription
CountGets the number of options in the collection.

Gets the number of options in the collection.

public int Count { get; }

Property value

int

Methods

NameDescription
Add(string, string)Adds or replaces an option.
Contains(string)Determines whether an option is defined.
GetEnumerator()Returns an enumerator over the options.
Remove(string)Removes an option.
System.Collections.IEnumerable.GetEnumerator()

Adds or replaces an option.

public void Add(string name, string value)

Parameters

name string
The option name.
value string
The option value.

Determines whether an option is defined.

public bool Contains(string name)

Parameters

name string
The option name.

Returns

bool true if the option is defined; otherwise, false.

Returns an enumerator over the options.

public IEnumerator<KeyValuePair<string, string>> GetEnumerator()

Removes an option.

public bool Remove(string name)

Parameters

name string
The option name.

Returns

bool true if the option was removed; otherwise, false.

System.Collections.IEnumerable.GetEnumerator()

VolumeDriverOptionCollection.cs
IEnumerator IEnumerable.GetEnumerator()

No documentation is available.