Class CanProvisionRulesManager
This class manages all the CanProvision rules
Inheritance
Namespace: PnP.Framework.Provisioning.CanProvisionRules
Assembly: PnP.Framework.dll
Syntax
public static class CanProvisionRulesManager : object
Methods
CanProvision(ProvisioningHierarchy, String, ProvisioningTemplateApplyingInformation)
This method allows to check if a template can be provisioned
Declaration
public static CanProvisionResult CanProvision(ProvisioningHierarchy hierarchy, string sequenceId, ProvisioningTemplateApplyingInformation applyingInformation)
Parameters
Provisioning The Template to hierarchy |
System. The sequence to test within the hierarchy |
Provisioning Any custom provisioning settings |
Returns
Can A boolean stating whether the current object handler can be run during provisioning or if there are any missing requirements |
CanProvision(Tenant, ProvisioningHierarchy, String, ProvisioningTemplateApplyingInformation)
This method allows to check if a template can be provisioned in the currently selected target
Declaration
public static CanProvisionResult CanProvision(Tenant tenant, ProvisioningHierarchy hierarchy, string sequenceId, ProvisioningTemplateApplyingInformation applyingInformation)
Parameters
Tenant
tenant
The target Tenant |
Provisioning The Template to hierarchy |
System. The sequence to test within the hierarchy |
Provisioning Any custom provisioning settings |
Returns
Can A boolean stating whether the current object handler can be run during provisioning or if there are any missing requirements |
CanProvision(Web, ProvisioningTemplate, ProvisioningTemplateApplyingInformation)
This method allows to check if a template can be provisioned in the currently selected target
Declaration
public static CanProvisionResult CanProvision(Web web, ProvisioningTemplate template, ProvisioningTemplateApplyingInformation applyingInformation)
Parameters
Web
web
The target Web |
Provisioning The Template to provision |
Provisioning Any custom provisioning settings |
Returns
Can A boolean stating whether the current object handler can be run during provisioning or if there are any missing requirements |