public static IsActionAllowed ( this obj, string action ) : bool? | ||
obj | this | Cmis Object. |
action | string | Action name. |
return | bool? |
public static bool? IsActionAllowed(this ICmisObject obj, string action) {
try {
return obj.AllowableActions.Actions.Contains(action);
} catch(NullReferenceException) {
return null;
}
}
}