Get-SPOContentType

Retrieves the Content Types for the Site or List.

Get-SPOContentType -Web <SPOWebPipeBind> [-Identity [<String>]]

Get-SPOContentType -Web <SPOWebPipeBind> -List <SPOListPipeBind> [-Identity [<String>]]

Parameters

1

ParameterRequiredTypeDescription
WebTrueSPOWebPipeBind

Specifies the identity of the Site whose Content Types will be retrieved.

The type must be a valid server relative URL, in the form /site_name, or an SPOWeb object, Microsoft.SharePoint.Client.Web object, or GUID representing the Site ID.

If not specified then the current Site Collection's Event Receiver Definitions will be retrieved.

IdentityFalseString

The name or ID of the Content Type to retrieve.

2

ParameterRequiredTypeDescription
WebTrueSPOWebPipeBind

Specifies the identity of the Site whose Content Types will be retrieved.

The type must be a valid server relative URL, in the form /site_name, or an SPOWeb object, Microsoft.SharePoint.Client.Web object, or GUID representing the Site ID.

If not specified then the current Site Collection's Event Receiver Definitions will be retrieved.

ListTrueSPOListPipeBind

Specifies the identity of the List whose Content Types will be retrieved.

The type must be a valid absolute URL, in the form http://contoso.sharepoint.com/site_name/lists/list_name, or an SPOList object, Microsoft.SharePoint.Client.List object, List title, or GUID representing the List ID.

IdentityFalseString

The name or ID of the Content Type to retrieve.

Detailed Description

Retrieves the Content Types for the Site or List.

Copyright 2016 Falchion Consulting, LLC

> For more information on this cmdlet and others:

> http://blog.falchionconsulting.com/

> Use of this cmdlet is at your own risk.

> Gary Lapointe assumes no liability.

Examples

------------------EXAMPLE 1-----------------------

PS C:\> Get-SPOContentType -Web "/"

Retrieves all the Content Types for the root Site of the current Site Collection.

------------------EXAMPLE 2-----------------------

PS C:\> Get-SPOContentType -Web "/" -Identity "Document"

Retrieves the Document Content Types from the root Site of the current Site Collection.