Redigera

Dela via


Session.BatchItems property

Sets and gets the number of items in each enumeration batch. This value cannot be changed during an enumeration. The resource provider may set a limit.

This property is read/write.

Syntax

Session.BatchItems As long

Property value

Specifies the maximum number of elements returned for each underlying network call to the service. The default is 20.

Remarks

This is an optimization feature that controls how often network calls are made between the client and the server. Currently, it is used only for enumerations. For more information about enumerating resources, see Enumerate.

Requirements

Requirement Value
Minimum supported client
Windows Vista
Minimum supported server
Windows Server 2008
Header
WSManDisp.h
IDL
WSManDisp.idl
Library
WSManDisp.tlb
DLL
WSMAuto.dll

See also

Session

Enumerate

Enumerator.ReadItem