IABACEvaluateCallback.AttrValue

Syntax

AttrValue(Id: String, Var Success: Boolean): Variant;

Parameters

Id. Attribute identifier.

Success. Indicates whether attribute has available value. The parameter takes values:

Description

The AttrValue method returns attribute value.

Comments

The method is set as a function:

Public Class Callback:Object, IABACEvaluateCallback
    Public Function AttrValueRaw(Id: String; Var Result: Variant): Boolean;
    Var
        Success: Boolean;
    Begin
        If Id = "<attribute identifier>" Then
            Result := <attributevalue>;
            Success := True;
        Else
            Success := False;
        End If;
        Return Success;
    End Function AttrValueRaw;

    Public Function AttrValue(Id: String; Var Success: Boolean): Variant;
    Begin
        Success := False;
    Return Null;
    End Function AttrValue;
End Class Callback;

If attribute value is empty and is not set in the AttrValue function, the attribute-based access control calculator skips the empty attribute. Make sure that all attributes have value or set checking values of all attributes in the function.

Example

The method use is given in the example for IABACEngine.Evaluate.

See also:

IABACEvaluateCallback