Msvm_TimeSyncComponentSettingData 类

表示时间同步服务的已配置状态。

以下语法是简化的托管对象格式 (MOF) 代码,其中包含所有继承的属性。

语法

[Dynamic, Provider("VmmsWmiInstanceAndMethodProvider"), AMENDMENT]
class Msvm_TimeSyncComponentSettingData : CIM_ResourceAllocationSettingData
{
  string  InstanceID;
  string  Caption = "Time Synchronization";
  string  Description = "Microsoft Time Synchronization Service Setting Data";
  string  ElementName = "Time Synchronization";
  uint16  ResourceType = 1;
  string  OtherResourceType = "Microsoft:Hyper-V:Time Synchronization Component";
  string  ResourceSubType;
  string  PoolID;
  uint16  ConsumerVisibility = 3;
  string  HostResource[];
  string  AllocationUnits = "count";
  uint64  VirtualQuantity = 1;
  uint64  Reservation = 1;
  uint64  Limit = 1;
  uint32  Weight = 0;
  boolean AutomaticAllocation = True;
  boolean AutomaticDeallocation = True;
  string  Parent;
  string  Connection[];
  string  Address;
  uint16  MappingBehavior;
  string  AddressOnParent;
  string  VirtualQuantityUnits = "count";
  uint16  EnabledState = 2;
};

成员

Msvm_TimeSyncComponentSettingData 类具有以下类型的成员:

属性

Msvm_TimeSyncComponentSettingData 类具有这些属性。

Address

数据类型: string

访问类型:只读

资源的地址。 此属性继承自 CIM_ResourceAllocationSettingData。

AddressOnParent

数据类型: string

访问类型:只读

描述父级上下文中此资源的地址。 Parent 和 AddressOnParent 属性用于描述控制器关系以及控制器上设备的排序。 此属性继承自 CIM_ResourceAllocationSettingData。

AllocationUnits

数据类型: string

访问类型:只读

预留和限制属性使用的分配单位。 此属性继承自 CIM_ResourceAllocationSettingData。

AutomaticAllocation

数据类型: 布尔值

访问类型:只读

指示是否会自动分配资源。 此属性继承自 CIM_ResourceAllocationSettingData。

AutomaticDeallocation

数据类型: 布尔值

访问类型:只读

指示是否会自动取消分配资源。 此属性继承自 CIM_ResourceAllocationSettingData。

Caption

数据类型: string

访问类型:只读

对象的简短说明。 此属性继承自 CIM_ManagedElement。

Connection

数据类型: 字符串 数组

访问类型:只读

此资源所连接到的项。 此属性继承自 CIM_ResourceAllocationSettingData。

ConsumerVisibility

数据类型: uint16

访问类型:只读

使用者对已分配资源的可见性。 此属性继承自 CIM_ResourceAllocationSettingData。

值 含义
3
虚拟

说明

数据类型: string

访问类型:只读

对象的说明。 此属性继承自 CIM_ManagedElement。

ElementName

数据类型: string

访问类型:只读

对象的显示名称。 此属性继承自 CIM_SettingData。

EnabledState

数据类型: uint16

访问类型:只读

元素的启用和禁用状态。 此属性继承自 CIM_EnabledLogicalElement 。

(2)

Enabled

3

已禁用

HostResource

数据类型: 字符串 数组

访问类型:只读

向主机或基础资源公开特定的分配。 此属性继承自 CIM_ResourceAllocationSettingData,并且始终设置为 Null。

InstanceID

数据类型: string

访问类型:只读

限定符: 键

唯一标识此类的实例。 此属性继承自 CIM_ManagedElement。

限制

数据类型: uint64

访问类型:只读

将为此分配授予的资源上限或最大数量。 此属性继承自 CIM_ResourceAllocationSettingData。

MappingBehavior

数据类型: uint16

访问类型:只读

指定此资源如何映射到基础资源。 此属性继承自 CIM_ResourceAllocationSettingData。

OtherResourceType

数据类型: string

访问类型:只读

当定义完善的值不可用且 ResourceType 具有值“Other”时的资源类型。 此属性继承自 CIM_ResourceAllocationSettingData。

Parent

数据类型: 字符串

访问类型:只读

资源的父级。 此属性继承自 CIM_ResourceAllocationSettingData。

PoolID

数据类型: 字符串

访问类型:只读

从中分配资源的资源池的 ID。 此属性继承自 CIM_ResourceAllocationSettingData。

预留

数据类型: uint64

访问类型:只读

保证可用于此分配的资源量。 此属性继承自 CIM_ResourceAllocationSettingData。

ResourceSubType

数据类型: 字符串

访问类型:只读

描述此资源的实现特定子类型的字符串。 此属性继承自 CIM_ResourceAllocationSettingData,并且始终设置为 Null。

ResourceType

数据类型: uint16

访问类型:只读

此分配设置表示的资源类型。 此属性继承自 CIM_ResourceAllocationSettingData。

值 含义
1
其他

VirtualQuantity

数据类型: uint64

访问类型:只读

呈现给使用者的资源数量。 此属性继承自 CIM_ResourceAllocationSettingData。

VirtualQuantityUnits

数据类型: 字符串

访问类型:只读

指定此资源分配的度量单位。 此属性的值必须是 DSP0004 V2.5 或更高版本的附件 C.1 中定义的编程单位限定符的法定值。 此属性继承自 CIM_ResourceAllocationSettingData。

Weight

数据类型: uint32

访问类型:只读

此分配相对于同一资源池中其他分配的相对优先级。 此属性继承自 CIM_ResourceAllocationSettingData。

备注

UAC 筛选可能会限制对 Msvm_TimeSyncComponentSettingData 类的访问。 有关详细信息,请参阅 用户帐户控制和 WMI。

要求

要求 值
最低受支持的客户端
Windows 8 [仅限桌面应用]
最低受支持的服务器
Windows Server 2012 [仅限桌面应用]
命名空间
Root\Virtualization\V2
MOF
WindowsVirtualization.V2.mof
DLL
Vmms.exe

请参阅

CIM_ResourceAllocationSettingData

CIM_ResourceAllocationSettingData