Click or drag to resize

IAssetSecurityManagerSetPermission Method


Sets permission for given asset path.

Namespace:  Ingeniux.CMS
Assembly:  Ingeniux.CMS.CSAPI (in Ingeniux.CMS.CSAPI.dll) Version: 10.6.308
Syntax
void SetPermission(
	string assetPath,
	EnumAssetType assetType,
	IEnumerable<IAssetNodeLevelPermission> permissions
)

Parameters

assetPath
Type: SystemString
The path of asset for which you want to set permissions. This path must be relative to the XML folder and cannot start with a "\" character.
assetType
Type: Ingeniux.CMS.EnumsEnumAssetType
The type of asset in the path
permissions
Type: System.Collections.GenericIEnumerableIAssetNodeLevelPermission
The permissions to set to the security entry for the given path
Remarks
If the security entry doesn't exist for the given asset type, a new security entry will be created.
See Also