Class GrpcVirtualDrive
Specifies a virtual drive.
Namespace: Neon.Kube.GrpcProto.Desktop
Assembly: Neon.Kube.GrpcProto.dll
Syntax
[DataContract]
public class GrpcVirtualDrive
Constructors
GrpcVirtualDrive()
Default constructor.
Declaration
public GrpcVirtualDrive()
GrpcVirtualDrive(string, decimal, bool)
Constructor.
Declaration
public GrpcVirtualDrive(string path, decimal size, bool isDynamic)
Parameters
| Type | Name | Description |
|---|---|---|
| string | path | Specifies the path where the drive is located. |
| decimal | size | The drive size in bytes. |
| bool | isDynamic | Indicates whether a dynamic drive will be created as opposed to a pre-allocated fixed drive. |
Properties
IsDynamic
Indicates whether a dynamic drive will be created as opposed to a pre-allocated fixed drive. This defaults to true.
Declaration
[DataMember(Order = 3)]
public bool IsDynamic { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
Path
Specifies the path where the drive will be located. The drive format is indicated by the file type, either .vhd or .vhdx.
Declaration
[DataMember(Order = 1)]
public string? Path { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Size
The drive size in bytes.
Declaration
[DataMember(Order = 2)]
public long Size { get; set; }
Property Value
| Type | Description |
|---|---|
| long |