IAssetSecurityManagerSetPermission Method
|
Sets permission for given asset path.
Namespace:
Ingeniux.CMS
Assembly:
Ingeniux.CMS.CSAPI (in Ingeniux.CMS.CSAPI.dll) Version: 10.3.169
Syntax void SetPermission(
string assetPath,
EnumAssetType assetType,
IEnumerable<IAssetNodeLevelPermission> permissions
)
Sub SetPermission (
assetPath As String,
assetType As EnumAssetType,
permissions As IEnumerable(Of IAssetNodeLevelPermission)
)
void SetPermission(
String^ assetPath,
EnumAssetType assetType,
IEnumerable<IAssetNodeLevelPermission^>^ permissions
)
abstract SetPermission :
assetPath : string *
assetType : EnumAssetType *
permissions : IEnumerable<IAssetNodeLevelPermission> -> unit
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