Freigeben über


ClusRegistryKeys.AddItem method

[The AddItem method is available for use in the operating systems specified in the Requirements section. It may be altered or unavailable in subsequent versions.]

Adds a registry key to a ClusRegistryKeys collection.

Syntax

ClusRegistryKeys.AddItem( _
  ByVal strName _
)

Parameters

strName

String identifying the new key.

Return value

A string that receives the added key.

Remarks

For more information on checkpoints, see Checkpointing.

Examples

Use the AddItem method to add a registry key to a resource's list of checkpointed registry keys.

Public Function AddKey(ByRef objRes as ClusResource, _
                       ByVal strKey as String)

  Dim colRegKeys as ClusRegistryKeys
  Set colRegKeys = objRes.RegistryKeys
  colRegKeys.AddItem( strKey )
  Set colRegKeys = Nothing

End Function

Requirements

Minimum supported client
None supported
Minimum supported server
Windows Server 2008 Enterprise, Windows Server 2008 Datacenter
Header
MsClus.h
IDL
MsClus.idl
Type library
MsClus.tlb
DLL
MsClus.dll
IID
IID_ISClusRegistryKeys is defined as F2E6072A-2631-11D1-89F1-00A0C90D061E

See also

ClusRegistryKeys

ClusProperty