Skip to content

Latest commit

 

History

History
138 lines (103 loc) · 2.86 KB

Add-KshDocumentSetDefaultDocument.md

File metadata and controls

138 lines (103 loc) · 2.86 KB
external help file Module Name online version schema
SPClientCore.dll-Help.xml
SPClientCore
2.0.0

Add-KshDocumentSetDefaultDocument

SYNOPSIS

Creates a new document set default document.

SYNTAX

Add-KshDocumentSetDefaultDocument -ContentType <ContentType> -DocumentContentType <ContentType>
 -Content <Byte[]> -FileName <String> [-PushChanges] [-ProgressAction <ActionPreference>] [<CommonParameters>]

DESCRIPTION

The Add-KshDocumentSetDefaultDocument adds a new default document to the specified document set template.

EXAMPLES

Example 1

PS C:\> Add-KshDocumentSetDefaultDocument -ContentType (Get-KshContentType -ContentTypeId '0x0120D5200014BC33BECFD5C340922C6D6CECC7830D') -DocumentContentType (Get-KshContentType -ContentTypeId '0x101') -Content ([System.Text.Encoding]::UTF8.GetBytes('Contact: admin@example.onmicrosoft.com')) -FileName 'README.txt' -PushChanges

Creates a new document set default document.

PARAMETERS

-Content

Specifies the contents.

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

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

-ContentType

Specifies the content type.

Type: ContentType
Parameter Sets: (All)
Aliases:

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

-DocumentContentType

Specifies the document content type.

Type: ContentType
Parameter Sets: (All)
Aliases:

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

-FileName

Specifies the file name.

Type: String
Parameter Sets: (All)
Aliases:

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

-PushChanges

If Specified, propagates changes to all content types that use the content type.

Type: SwitchParameter
Parameter Sets: (All)
Aliases:

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

None

OUTPUTS

Karamem0.SharePoint.PowerShell.Models.V1.DefaultDocument

NOTES

RELATED LINKS