IAdmTrusteeOwnerCondition
The IAdmTrusteeOwnerCondition interface represents the If the initiator is an owner of the object condition.
Inheritance: IAdmCondition
Properties
-
Property
-
Description
-
IsOperator
-
Gets or sets a value indicating whether the operation initiator should or should not be an owner of the object for the condition to be met.
Details
IsOperator
Gets or sets a value indicating whether the operation initiator should or should not be an owner of the object for the condition to be met.
- Type:
- ADM_ISOPERATOR_ENUM
- Access:
- Read/Write
Examples
The following code sample creates a condition that returns true if the initiator is not an owner of the target object.
- PowerShell
-
# The $actionSet variable refers to an action set in a # business rule, custom command, or scheduled task. # Create condition. $condition = $actionSet.Conditions.CreateEx("adm-TrusteeOwnerCondition") $trusteeOwnerCondition = $condition.GetCondition() $trusteeOwnerCondition.IsOperator = "ADM_ISOPERATOR_ISNOT" # Save changes. $condition.SetCondition($trusteeOwnerCondition) $condition.SetInfo() $actionSet.Conditions.Add($condition) - C#
-
// The actionSet variable refers to an action set in a // business rule, custom command, or scheduled task. // Create condition. IAdmBusinessRuleCondition condition = (IAdmBusinessRuleCondition)actionSet.Conditions.CreateEx( "adm-TrusteeOwnerCondition"); IAdmTrusteeOwnerCondition trusteeOwnerCondition = (IAdmTrusteeOwnerCondition)condition.GetCondition(); trusteeOwnerCondition.IsOperator = ADM_ISOPERATOR_ENUM.ADM_ISOPERATOR_ISNOT; // Save changes. condition.SetCondition(trusteeOwnerCondition); condition.SetInfo(); actionSet.Conditions.Add(condition);
Requirements
Minimum required version: 2021.1