#Add-SPOContentTypeToList Topic automatically generated on: 2015-10-13
Adds a new content type to a list ##Syntax
Add-SPOContentTypeToList -List <ListPipeBind> -ContentType <ContentTypePipeBind> [-DefaultContentType [<SwitchParameter>]] [-Web <WebPipeBind>]
##Parameters
Parameter | Type | Required | Description |
---|---|---|---|
ContentType | ContentTypePipeBind | True | |
DefaultContentType | SwitchParameter | False | |
List | ListPipeBind | True | |
Web | WebPipeBind | False | The web to apply the command to. Omit this parameter to use the current web. |
##Examples |
###Example 1
PS:> Add-SPOContentTypeToList -List "Documents" -ContentType "Project Document" -DefaultContentType
This will add an existing content type to a list and sets it as the default content type