Skip to content

Latest commit

 

History

History
215 lines (165 loc) · 3.75 KB

Add-KshView.md

File metadata and controls

215 lines (165 loc) · 3.75 KB
external help file Module Name online version schema
SPClientCore.dll-Help.xml
SPClientCore
2.0.0

Add-KshView

SYNOPSIS

Creates a new view.

SYNTAX

Add-KshView [-List] <List> [-BaseViewId <Int32>] [-Paged <Boolean>] [-PersonalView <Boolean>]
 [-RowLimit <Int32>] [-SetAsDefaultView <Boolean>] -Title <String> [-ViewColumns <String[]>]
 [-ViewQuery <String>] [-ViewType <ViewType>] [-ProgressAction <ActionPreference>] [<CommonParameters>]

DESCRIPTION

The Add-KshUser cmdlet adds a new view to the specified list.

EXAMPLES

Example 1

PS C:\> Add-KshView -List (Get-KshList -ListTitle 'Announcements') -Title 'My Items' -ViewColumns @('Id', 'Title')

Creates a new view to the list.

PARAMETERS

-BaseViewId

Specifies the base view ID.

Type: Int32
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-List

Specifies the list.

Type: List
Parameter Sets: (All)
Aliases:

Required: True
Position: 0
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: False

-Paged

Specifies whether the view is a paged view.

Type: Boolean
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-PersonalView

Specifies whether the view is a personal view.

Type: Boolean
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-RowLimit

Specifies the number of items.

Type: Int32
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-SetAsDefaultView

Specifies whether to set as default view.

Type: Boolean
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Title

Specifies the title.

Type: String
Parameter Sets: (All)
Aliases:

Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-ViewColumns

Specifies the view column names.

Type: String[]
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-ViewQuery

Specifies the view query XML.

Type: String
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-ViewType

Specifies the view type.

Type: ViewType
Parameter Sets: (All)
Aliases:
Accepted values: None, Html, Grid, Recurrence, Chart, Calendar, Gantt

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-ProgressAction

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

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

Karamem0.SharePoint.PowerShell.Models.V1.List

OUTPUTS

Karamem0.SharePoint.PowerShell.Models.V1.View

NOTES

RELATED LINKS