Click or drag to resize

CustomHooksOnBeforeAssignAsset Method

This method is invoked before an Asset is assigned to a User. DO NOT call contentItem.AssignUser or contentItem.AssignGroup inside this method, otherwise it will cause an infinite loop.

Namespace:  Ingeniux.CMS
Assembly:  Ingeniux_API_Extensions_Development_Harness (in Ingeniux_API_Extensions_Development_Harness.dll) Version: 10.3.169
Syntax
C#
public void OnBeforeAssignAsset(
	IAssetItem contentItem,
	IUserWriteSession session
)

Parameters

contentItem
Type: IAssetItem
The content item that will change assignment.
session
Type: IUserWriteSession
The session that must be used to perform tasks on additional objects.

Implements

IAssetHooks.OnBeforeAssignAsset(IAssetItem, IUserWriteSession)
Remarks
When this action is invoked, the objects involved have yet to be saved to the Content Store.
See Also