external help file | Module Name | online version | schema |
---|---|---|---|
SPClientCore.dll-Help.xml |
SPClientCore |
2.0.0 |
Retrieves one or more list items.
Get-KshListItem [-Identity] <ListItem> [-ProgressAction <ActionPreference>] [<CommonParameters>]
Get-KshListItem [-Folder] <Folder> [-ProgressAction <ActionPreference>] [<CommonParameters>]
Get-KshListItem [-File] <File> [-ProgressAction <ActionPreference>] [<CommonParameters>]
Get-KshListItem [-DriveItem] <DriveItem> [-ProgressAction <ActionPreference>] [<CommonParameters>]
Get-KshListItem [-ItemUrl] <String> [-ProgressAction <ActionPreference>] [<CommonParameters>]
Get-KshListItem [-List] <List> [-ItemId] <Int32> [-ProgressAction <ActionPreference>] [<CommonParameters>]
Get-KshListItem [-List] <List> [-All] [-NoEnumerate] [-ProgressAction <ActionPreference>] [<CommonParameters>]
Get-KshListItem [-List] <List> [-FolderServerRelativeUrl <String>]
[-ListItemCollectionPosition <ListItemCollectionPosition>] [-ViewXml <String>] [-NoEnumerate]
[-ProgressAction <ActionPreference>] [<CommonParameters>]
The Get-KshListItem cmdlet retrieves list items of the specified list.
PS C:\> Get-KshListItem -Folder (Get-KshFolder -FolderUrl '/sites/japan/hr/Shared%20Documents/Templates')
Retrieves a list item from the folder.
PS C:\> Get-KshListItem -File (Get-KshFile -FileUrl '/sites/japan/hr/Shared%20Documents/README.txt')
Retrieves a list item from the file.
PS C:\> Get-KshListItem -List (Get-KshList -ListTitle 'Announcements') -ItemId 1
Retrieves a list item by list item ID.
PS C:\> Get-KshListItem -List (Get-KshList -ListTitle 'Announcements') -All
Retrieves all list items.
PS C:\> Get-KshListItem -List (Get-KshList -ListTitle 'Announcements') -ViewXml '<View><RowLimit>10</RowLimit><View>'
Retrieves list items by CAML query.
if specified, returns all items. This parameter is effective if there are more than 5000 items.
Type: SwitchParameter
Parameter Sets: ParamSet7
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Specifies the drive item.
Type: DriveItem
Parameter Sets: ParamSet4
Aliases:
Required: True
Position: 0
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: False
Specifies the file.
Type: File
Parameter Sets: ParamSet3
Aliases:
Required: True
Position: 0
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: False
Specifies the folder.
Type: Folder
Parameter Sets: ParamSet2
Aliases:
Required: True
Position: 0
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: False
Specifies the site relative URL of folder.
Type: String
Parameter Sets: ParamSet8
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Specifies the list item.
Type: ListItem
Parameter Sets: ParamSet1
Aliases:
Required: True
Position: 0
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: False
Specifies the list item ID.
Type: Int32
Parameter Sets: ParamSet6
Aliases:
Required: True
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Specifies the list item URL.
Type: String
Parameter Sets: ParamSet5
Aliases:
Required: True
Position: 0
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Specifies the list.
Type: List
Parameter Sets: ParamSet6, ParamSet7, ParamSet8
Aliases:
Required: True
Position: 0
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Specifies the starting position.
Type: ListItemCollectionPosition
Parameter Sets: ParamSet8
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
If specified, suppresses to enumerate objects.
Type: SwitchParameter
Parameter Sets: ParamSet7, ParamSet8
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Specifies the CAML query XML representation. For more information, see reference.
Type: String
Parameter Sets: ParamSet8
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Determines how PowerShell responds to progress updates generated by a script, cmdlet, or provider.
Type: ActionPreference
Parameter Sets: (All)
Aliases: proga
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.