Redigera

Dela via


Win32_RDSHCollection class

Manages a collection of Remote Desktop Session Hosts.

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

Syntax

[dynamic, provider("Win32_RDManagement_Prov"), AMENDMENT]
class Win32_RDSHCollection
{
  string Alias;
  string Name;
  string Description;
  uint32 Type;
};

Members

The Win32_RDSHCollection class has these types of members:

Methods

The Win32_RDSHCollection class has these methods.

Method Description
GetInt32Property Retrieves an integer property value of a Win32_RDSHCollection object.
GetStringProperty Retrieves a string property value of a Win32_RDSHCollection object.
KeyValueCompareAndSet Compares the specified key in the collection with a comparand; if they match, the key is set to a new value. If the key does not exist, the method will insert the key into the collection.
KeyValueDelete Deletes the specified key (and associated value) from the collection.
KeyValueGet Retrieves the value associated with the specified key in the collection.
SetInt32Property Updates an integer property value of a Win32_RDSHCollection object.
SetStringProperty Updates a string property value of a Win32_RDSHCollection object.

Properties

The Win32_RDSHCollection class has these properties.

Alias

Data type: string

Access type: Read/write

Qualifiers: key

Gets and sets the alias of the collection.

Description

Data type: string

Access type: Read/write

Qualifiers: optional

Gets and sets the description of the collection.

Name

Data type: string

Access type: Read/write

Gets and sets the name of the collection.

Type

Data type: uint32

Access type: Read/write

Windows Server 2012 R2 and Windows Server 2012: This property is unavailable prior to Windows Server 2016.

The type of collection.

Regular (0)

(2)

Reserved

(3)

Reserved

ManualPersonal (4)

AutoPersonal (5)

Requirements

Requirement Value
Minimum supported client
None supported
Minimum supported server
Windows Server 2012
Namespace
Root\cimv2\rdms
MOF
RDManagement.mof
DLL
RDMS.dll

See also

Remote Desktop Management Services Provider