共用方式為


MSCluster_ClusterDiskPartition class

The base class which provides the common properties for cluster disk partitions. This is the parent class of the MSCluster_DiskPartition and MSCluster_AvailableDiskPartition classes.

The following syntax is simplified from MOF code and includes all inherited properties.

Syntax

[Abstract, Provider("MS_CLUSTER_PROVIDER"), UUID("{1C6677C6-B636-4A27-9831-4FBCB3582F8A}"), AMENDMENT]
class MSCluster_ClusterDiskPartition : MSCluster_LogicalElement
{
  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_ClusterDiskPartition class has these types of members:

Properties

The MSCluster_ClusterDiskPartition class has these properties.

Caption

Data type: string

Access type: Read-only

Qualifiers: MaxLen (64)

A short textual description (one-line string) of the disk partition.

This property is inherited from CIM_ManagedSystemElement.

Characteristics

Data type: uint32

Access type: Read-only

Provides the characteristics of the disk 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 disk 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.

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.

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 disk 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.

InstallDate

Data type: datetime

Access type: Read-only

Qualifiers: MappingStrings ("MIF.DMTF|ComponentID|001.5")

Indicates when the disk partition was installed. A lack of a value does not indicate that the disk 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.

MountPoints

Data type: string array

Access type: Read-only

The mount points of the partition.

Name

Data type: string

Access type: Read-only

Qualifiers: MaxLen (256)

Defines the label by which the disk partition is known. When subclassed, the Name property can be overridden to be a Key property.

This property is inherited from CIM_ManagedSystemElement.

PartitionNumber

Data type: uint32

Access type: Read-only

Provides the partition number of the partition.

Path

Data type: string

Access type: Read-only

Qualifiers: Key

Provides the path, including the drive letter if present, of the clustered disk partition.

SerialNumber

Data type: uint32

Access type: Read-only

Provides access to the SerialNumber property, which is the partition serial number.

Status

Data type: string

Access type: Read-only

Qualifiers: MaxLen (10)

A string indicating the current status of the disk 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.

VolumeGuid

Data type: string

Access type: Read-only

Provides the volume GUID of the partition.

VolumeLabel

Data type: string

Access type: Read-only

Provides access to the VolumeLabel property, which is the volume label of the partition.

Requirements

Minimum supported client
None supported
Minimum supported server
Windows Server 2012
Namespace
Root\MSCluster
MOF
ClusWMI.Mof
DLL
ClusWMI.dll

See also

MSCluster_LogicalElement

Failover Cluster Provider Reference