MSCluster_DiskPartition class
A dynamic WMI class that represents a disk partition.
**Windows Server 2008 R2 and Windows Server 2008: **
Before Windows Server 2012 this class inherited directly from MSCluster_LogicalElement. Beginning in Windows Server 2012 it inherits from MSCluster_ClusterDiskPartition and does not add any properties of its own.
The following syntax is simplified from Managed Object Format (MOF) code and includes all of the inherited properties.
Syntax
[Dynamic, Provider("MS_CLUSTER_PROVIDER"), UUID("{A514C185-BE72-4C75-8225-FF1A4FFAA7C8}")]
class MSCluster_DiskPartition : MSCluster_ClusterDiskPartition
{
string Caption;
string Description;
datetime InstallDate;
string Name;
string Status;
uint32 Flags;
uint32 Characteristics;
string Path;
string VolumeLabel;
uint32 SerialNumber;
uint32 MaximumComponentLength;
uint32 FileSystemFlags;
string FileSystem;
uint32 TotalSize;
uint32 FreeSpace;
uint32 PartitionNumber;
string VolumeGuid;
string MountPoints[];
};
Members
The MSCluster_DiskPartition class has these types of members:
Properties
The MSCluster_DiskPartition class has these properties.
-
Caption
-
-
Data type: string
-
Access type: Read-only
-
Qualifiers: MaxLen (64)
A short textual description (one-line string) of the partition.
This property is inherited from CIM_ManagedSystemElement.
-
-
Characteristics
-
-
Data type: uint32
-
Access type: Read-only
Provides the characteristics of the partition. The cluster defines characteristics only for resources. For a description of these characteristics, see CLUSCTL_RESOURCE_GET_CHARACTERISTICS.
**Windows Server 2008 R2 and Windows Server 2008: **
This property is read/write before Windows Server 2012.
This property is inherited from MSCluster_LogicalElement.
-
-
Description
-
-
Data type: string
-
Access type: Read-only
Provides a textual description of the partition.
This property is inherited from CIM_ManagedSystemElement.
-
-
FileSystem
-
-
Data type: string
-
Access type: Read-only
Provides access to the FileSystem property, which is the file system defined for the partition.
This property is inherited from MSCluster_ClusterDiskPartition.
-
-
FileSystemFlags
-
-
Data type: uint32
-
Access type: Read-only
Provides access to the FileSystemFlags property, which is any descriptive flags set for the partition's file system.
This property is inherited from MSCluster_ClusterDiskPartition.
Values include the following:
-
-
1
-
The file system supports case-sensitive file names.
-
2
-
The file system preserves the case of file names when it places a name on the storage class resource.
-
4
-
The file system supports Unicode in file names as they appear on storage class resource.
-
8
-
The file system preserves and enforces access control lists (ACLs).
Flags
-
Data type: uint32
-
Access type: Read-only
Provides access to the flags set for the partition. The cluster defines flags only for resources. For a description of these flags, see CLUSCTL_RESOURCE_GET_FLAGS.
**Windows Server 2008 R2 and Windows Server 2008: **
This property is read/write before Windows Server 2012.
This property is inherited from MSCluster_LogicalElement.
FreeSpace
-
Data type: uint32
-
Access type: Read-only
Provides the total space available for the partition, in megabytes.
This property is inherited from MSCluster_ClusterDiskPartition.
InstallDate
-
Data type: datetime
-
Access type: Read-only
-
Qualifiers: MappingStrings ("MIF.DMTF|ComponentID|001.5")
Indicates when the partition was installed. A lack of a value does not indicate that the partition is not installed.
This property is inherited from CIM_ManagedSystemElement.
MaximumComponentLength
-
Data type: uint32
-
Access type: Read-only
Provides access to the MaximumComponentLength property, which is the maximum file name component length, in characters, allowed by the partition's file system.
This property is inherited from MSCluster_ClusterDiskPartition.
MountPoints
-
Data type: string array
-
Access type: Read-only
The mount points of the partition.
**Windows Server 2008 R2 and Windows Server 2008: **
Due to inheritance restructuring, this property is not available on this class before Windows Server 2012.
This property is inherited from MSCluster_ClusterDiskPartition.
Name
-
Data type: string
-
Access type: Read-only
-
Qualifiers: MaxLen (256)
Defines the label by which the partition is known.
This property is inherited from CIM_ManagedSystemElement.
PartitionNumber
-
Data type: uint32
-
Access type: Read-only
Provides the partition number of the partition.
This property is inherited from MSCluster_ClusterDiskPartition.
Path
-
Data type: string
-
Access type: Read-only
-
Qualifiers: Key
Provides the path, including the drive letter if present, of the clustered disk partition.
This property is inherited from MSCluster_ClusterDiskPartition.
SerialNumber
-
Data type: uint32
-
Access type: Read-only
Provides access to the SerialNumber property, which is the partition serial number.
This property is inherited from MSCluster_ClusterDiskPartition.
Status
-
Data type: string
-
Access type: Read-only
-
Qualifiers: MaxLen (10)
A string indicating the current status of the partition.
This property is inherited from CIM_ManagedSystemElement.
("OK")
("Error")
("Degraded")
("Unknown")
("Pred Fail")
("Starting")
("Stopping")
("Service")
("Stressed")
("NonRecover")
TotalSize
-
Data type: uint32
-
Access type: Read-only
Provides the total size for the partition, in megabytes.
This property is inherited from MSCluster_ClusterDiskPartition.
VolumeGuid
-
Data type: string
-
Access type: Read-only
Provides the volume GUID of the partition.
This property is inherited from MSCluster_ClusterDiskPartition.
VolumeLabel
-
Data type: string
-
Access type: Read-only
Provides access to the VolumeLabel property, which is the volume label of the partition.
This property is inherited from MSCluster_ClusterDiskPartition.
Requirements
Minimum supported client |
None supported |
Minimum supported server |
Windows Server 2008 |
Namespace |
Root\MSCluster |
MOF |
|
DLL |
|