Table of contents
TOC
Collapse the table of content
Expand the table of content

New-PnPExtensbilityHandlerObject

Bert Jansen|Last Updated: 2/20/2017
|
1 Contributor

Creates an ExtensibilityHandler Object, to be used by the Get-SPOProvisioningTemplate cmdlet

Syntax

New-PnPExtensbilityHandlerObject -Type <String>
                                 -Assembly <String>
                                 [-Configuration <String>]
                                 [-Disabled [<SwitchParameter>]]

Returns

OfficeDevPnP.Core.Framework.Provisioning.Model.ExtensibilityHandler

Parameters

ParameterTypeRequiredDescription
AssemblyStringTrueThe full assembly name of the handler
TypeStringTrueThe type of the handler
ConfigurationStringFalseAny configuration data you want to send to the handler
DisabledSwitchParameterFalseIf set, the handler will be disabled

Examples

Example 1


PS:> $handler = New-PnPExtensbilityHandlerObject -Assembly Contoso.Core.Handlers -Type Contoso.Core.Handlers.MyExtensibilityHandler
PS:> Get-PnPProvisioningTemplate -Out NewTemplate.xml -ExtensibilityHandlers $handler

This will create a new ExtensibilityHandler object that is run during extraction of the template

© 2017 Microsoft