Click or drag to resize
RibbonCustomActionProvision Method (Guid, SPUserCustomActionCollection, String, ListForms, NullableSPBasePermissions)
Provision all pending customizations to specified web. Customizations will be shown on specified list pages, for lists with specified ID (this can be your custom list template ID), to users with appropriate rights.

Namespace: FluentRibbon
Assembly: FluentRibbon (in FluentRibbon.dll) Version: 1.0.5338.15939
Syntax
C#
public Guid Provision(
	Guid featureUniqueGuid,
	SPUserCustomActionCollection userCustomActions,
	string templateId,
	ListForms whichForms,
	Nullable<SPBasePermissions> rights
)

Parameters

featureUniqueGuid
Type: SystemGuid
Guid, needed for feature-scoped cleanup in FeatureDeactivating using RemoveAllCustomizations(SPSite, Guid) method.
userCustomActions
Type: SPUserCustomActionCollection
Collection of custom actions of web or list (web.UserCustomActions or list.UserCustomActions)
templateId
Type: SystemString
Custom list template Id, for which ribbon elements will be registered
whichForms
Type: FluentRibbonListForms
List forms, which will display the ribbon
rights
Type: SystemNullableSPBasePermissions
Rights user needs to access the ribbon

Return Value

Type: Guid
Id of provisioned custom action
See Also