diff options
Diffstat (limited to 'src/dtf/WixToolset.Dtf.WindowsInstaller/MediaDisk.cs')
-rw-r--r-- | src/dtf/WixToolset.Dtf.WindowsInstaller/MediaDisk.cs | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/src/dtf/WixToolset.Dtf.WindowsInstaller/MediaDisk.cs b/src/dtf/WixToolset.Dtf.WindowsInstaller/MediaDisk.cs new file mode 100644 index 00000000..7b196b3e --- /dev/null +++ b/src/dtf/WixToolset.Dtf.WindowsInstaller/MediaDisk.cs | |||
@@ -0,0 +1,58 @@ | |||
1 | // Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information. | ||
2 | |||
3 | namespace WixToolset.Dtf.WindowsInstaller | ||
4 | { | ||
5 | using System; | ||
6 | using System.Diagnostics.CodeAnalysis; | ||
7 | |||
8 | /// <summary> | ||
9 | /// Represents a media disk source of a product or a patch. | ||
10 | /// </summary> | ||
11 | [SuppressMessage("Microsoft.Performance", "CA1815:OverrideEqualsAndOperatorEqualsOnValueTypes")] | ||
12 | public struct MediaDisk | ||
13 | { | ||
14 | private int diskId; | ||
15 | private string volumeLabel; | ||
16 | private string diskPrompt; | ||
17 | |||
18 | /// <summary> | ||
19 | /// Creates a new media disk. | ||
20 | /// </summary> | ||
21 | /// <param name="diskId"></param> | ||
22 | /// <param name="volumeLabel"></param> | ||
23 | /// <param name="diskPrompt"></param> | ||
24 | public MediaDisk(int diskId, string volumeLabel, string diskPrompt) | ||
25 | { | ||
26 | this.diskId = diskId; | ||
27 | this.volumeLabel = volumeLabel; | ||
28 | this.diskPrompt = diskPrompt; | ||
29 | } | ||
30 | |||
31 | /// <summary> | ||
32 | /// Gets or sets the disk id of the media disk. | ||
33 | /// </summary> | ||
34 | public int DiskId | ||
35 | { | ||
36 | get { return this.diskId; } | ||
37 | set { this.diskId = value; } | ||
38 | } | ||
39 | |||
40 | /// <summary> | ||
41 | /// Gets or sets the volume label of the media disk. | ||
42 | /// </summary> | ||
43 | public string VolumeLabel | ||
44 | { | ||
45 | get { return this.volumeLabel; } | ||
46 | set { this.volumeLabel = value; } | ||
47 | } | ||
48 | |||
49 | /// <summary> | ||
50 | /// Gets or sets the disk prompt of the media disk. | ||
51 | /// </summary> | ||
52 | public string DiskPrompt | ||
53 | { | ||
54 | get { return this.diskPrompt; } | ||
55 | set { this.diskPrompt = value; } | ||
56 | } | ||
57 | } | ||
58 | } | ||