共用方式為


Msvm_KvpExchangeDataItem class

Represents a key/value pair.

The following syntax is simplified Managed Object Format (MOF) code, and it includes all of the inherited properties.

Syntax

[Dynamic, Provider("VmmsWmiInstanceAndMethodProvider")]
class Msvm_KvpExchangeDataItem : CIM_ManagedElement
{
  string Caption;
  string Description;
  string ElementName;
  uint16 Source;
  string Name;
  string Data;
};

Members

The Msvm_KvpExchangeDataItem class has these types of members:

Properties

The Msvm_KvpExchangeDataItem class has these properties.

Caption

Data type: string

Access type: Read-only

Qualifiers: MaxLen (64)

A short textual description of the object.

This property is always set to "Key-Value Pair Exchange Data Item".

This property is inherited from CIM_ManagedElement.

Data

Data type: string

Access type: Read-only

Qualifiers: MAXLEN (1024)

The value portion of the key/value pair.

Description

Data type: string

Access type: Read-only

A textual description of the object.

This property is always set to "Microsoft Key-Value Pair Exchange Data Item".

This property is inherited from CIM_ManagedElement.

ElementName

Data type: string

Access type: Read-only

A user-friendly name for the object. This property allows each instance to define a user-friendly name in addition to its key properties, identity data, and description information.

This property is always set to "Key-Value Pair Exchange Data Item".

This property is inherited from CIM_ManagedElement.

Name

Data type: string

Access type: Read-only

Qualifiers: MAXLEN (1024)

The key portion of the key/value pair.

Key Description
"CSDVersion"
A string that represents the latest service pack installed on the guest system. For example, "Service Pack 2". If no service pack has been installed, this string is empty.
"FullyQualifiedDomainName"
A string that represents the fully qualified DNS name that uniquely identifies the local computer. This name is a combination of the DNS host name and the DNS domain name, using the format HostName.DomainName. If the local computer is a node in a cluster, this value is the fully qualified DNS name of the cluster virtual server. This value matches the name returned by the GetComputerNameEx function when the NameType parameter is "ComputerNameDnsFullyQualified".
"IntegrationServicesVersion"
A string representing the version of the Integration Services currently installed in the guest VM (for example, "6.1.7000.0").
Windows Server 2008: This value is not supported until Windows Server 2008 R2.
"NetworkAddressIPv4"
A string that contains a semicolon-delimited list of the IPv4 addresses currently assigned to the guest VM. The list is automatically updated whenever a TCP/IP configuration change occurs within the guest VM. Each address is represented in dot-decimal notation.
Windows Server 2008: This value is not supported until Windows Server 2008 R2.
"NetworkAddressIPv6"
A string that contains a semicolon-delimited list of the IPv6 addresses currently assigned to the guest VM. The list is automatically updated whenever a TCP/IP configuration change occurs within the guest VM. Each address is represented in colon-hexadecimal notation. The IPv4 and IPv6 lists are not guaranteed to be in sync at all times.
Windows Server 2008: This value is not supported until Windows Server 2008 R2.
"OSBuildNumber"
A string that represents the build number of the operating system.
"OSEditionId"
A string representing the edition (SKU) of the guest VM operating system. For a list of possible values, see the GetProductInfo function.
Windows Server 2008: This value is not supported until Windows Server 2008 R2.
"OSName"
A string that represents the name of the operating system. This value comes from the following registry entry:HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\ProductName

"OSMajorVersion"
A string that represents the major version number of the operating system.
"OSMinorVersion"
A string that represents the minor version number of the operating system.
"OSPlatformId"
A string that represents the operating system platform. The possible values of the Data property are "1" to indicate an unsupported Windows system and "2" to indicate a supported Windows system.
"OSVersion"
A string that represents the operating system version. The format of this string is MajorVersion.MinorVersion.BuildNumber. For example, "5.2.3790" for Windows Server 2003.
"ProcessorArchitecture"
A string that represents the processor architecture of the operating system. For a list of values, see the wProcessorArchitecture member of the SYSTEM_INFO structure.
"ProductType"
A string that represents the product type. For a list of values, see the wProductType member of the OSVERSIONINFOEX structure.
"RDPAddressIPv4"
A string that contains a semicolon-delimited list of the IPv4 addresses that the guest VM RDP stack is currently listening on. If the RDP stack is not currently running, the string will be empty. The list is automatically updated whenever a TCP/IP configuration change affects the RDP stack within the guest VM. Each address is represented in dot-decimal notation.
Windows Server 2008: This value is not supported until Windows Server 2008 R2.
"RDPAddressIPv6"
A string that contains a semicolon-delimited list of the IPv6 addresses that the guest VM RDP stack is currently listening on. If the RDP stack is not currently running, the string will be empty. The list is automatically updated whenever a TCP/IP configuration change affects the RDP stack within the guest VM. Each address is represented in colon-hexadecimal notation.
Windows Server 2008: This value is not supported until Windows Server 2008 R2.
"ServicePackMajor"
A string that represents the major version number of the latest service pack installed on the system.
"ServicePackMinor"
A string that represents the minor version number of the latest service pack installed on the system.
"SuiteMask"
A string that represents the product suites available on the system. This string is a combination of any of the values of the wSuiteMask member of the OSVERSIONINFOEX structure.

Source

Data type: uint16

Access type: Read-only

The source of the data.

Value Meaning
0
"HostExchangeItems" when pushed by the host.
1
"GuestExchangeItems" when pushed by the guest virtual machine (VM).
2
"GuestIntrinsicExchangeItems" when automatically populated by the guest VM.
4
Indicates that the item is host-only and not shared with the guest VM. Used with the HostOnlyItems property of the Msvm_KvpExchangeComponentSettingData class.
Windows Server 2008: This value is not supported until Windows Server 2008 R2.

Remarks

Access to the Msvm_KvpExchangeDataItem class might be restricted by UAC Filtering. For more information, see User Account Control and WMI.

Requirements

Minimum supported client
None supported
Minimum supported server
Windows Server 2008
End of client support
None supported
End of server support
Windows Server 2012 R2
Namespace
Root\Virtualization
MOF
WindowsVirtualization.mof

See also

CIM_ManagedElement

CIM_ManagedElement

Integration Services Classes