Class IsExactTypeFunction
- Namespace
- DevExpress.Xpo.Metadata
- Assembly
- DevExpress.Xpo.v24.1.dll
A custom function that determines whether a particular object has a specified type.
public class IsExactTypeFunction : ICustomFunctionOperatorBrowsable, ICustomFunctionOperator, ICustomFunctionDisplayAttributes, ICustomFunctionOperatorConvertibleToExpression, ICustomFunctionOperatorCompileable
- Inheritance
-
IsExactTypeFunction
- Implements
-
ICustomFunctionOperatorBrowsableICustomFunctionOperatorICustomFunctionDisplayAttributesICustomFunctionOperatorConvertibleToExpressionICustomFunctionOperatorCompileable
- Inherited Members
Fields
FunctionName
Specifies the name of the IsExactTypeFunction custom function operator.
public const string FunctionName = "IsExactType"
Field Value
Properties
Category
Designates the IsExactTypeFunction custom function operator’s category.
public FunctionCategory Category { get; }
Property Value
- FunctionCategory
A DevExpress.Data.Filtering.FunctionCategory value specifying the custom function’s category.
Description
Specifies the IsExactTypeFunction custom function operator’s description.
public string Description { get; }
Property Value
- string
A text describing the custom function’s syntax and purpose.
DisplayName
This member supports the internal infrastructure and is not intended to be used directly from your code.
public string DisplayName { get; }
Property Value
Image
This member supports the internal infrastructure and is not intended to be used directly from your code.
public object Image { get; }
Property Value
MaxOperandCount
Specifies the maximum number of operands (parameters) the IsExactTypeFunction function operator can accept.
public int MaxOperandCount { get; }
Property Value
- int
An integer value specifying the maximum number of function operands (parameters) the custom function can accept. -1 indicates that a custom function accepts an infinite number of operands.
MinOperandCount
Specifies the minimum number of operands (parameters) required by the IsExactTypeFunction function operator.
public int MinOperandCount { get; }
Property Value
- int
An integer value specifying the least possible number of function operands (parameters) required by the custom function. 0 indicates that operands can be omitted.
Name
Specifies name of the IsExactTypeFunction custom function operator.
public string Name { get; }
Property Value
Methods
Convert(ICriteriaToExpressionConverter, params Expression[])
public Expression Convert(ICriteriaToExpressionConverter converter, params Expression[] operands)
Parameters
converter
ICriteriaToExpressionConverteroperands
Expression[]
Returns
Create(params Expression[])
public Expression Create(params Expression[] operands)
Parameters
operands
Expression[]
Returns
Evaluate(params object[])
Evaluates the IsExactTypeFunction custom function operator on the client.
public object Evaluate(params object[] operands)
Parameters
operands
object[]An array of objects specifying function operands (parameters).
Returns
IsExactType(object, Type)
public static bool IsExactType(object obj, Type type)
Parameters
Returns
IsValidOperandCount(int)
Determines whether the IsExactTypeFunction custom function operator can accept a specified number of operands (parameters).
public bool IsValidOperandCount(int count)
Parameters
count
intAn integer value specifying the number of operands (parameters) passed to the custom function.
Returns
- bool
true if the number of operands (parameters) passed as the count is valid for the custom function; otherwise, false.
IsValidOperandType(int, int, Type)
Determines whether a certain type can be passed as a specified operand to the IsExactTypeFunction custom function operator.
public bool IsValidOperandType(int operandIndex, int operandCount, Type type)
Parameters
operandIndex
intA zero-based integer value specifying an operand’s index among a custom function’s operands.
operandCount
intAn integer value specifying the total number of operands passed to the custom function.
type
Type
Returns
- bool
true if the custom function accepts the type; otherwise, false.
Register()
Registers the IsExactTypeFunction custom function operator by calling the CriteriaOperator.RegisterCustomFunction method.
public static void Register()
ResultType(params Type[])
Determines the IsExactTypeFunction custom function operator result type based on the type of operands passed to the operator.
public Type ResultType(params Type[] operands)
Parameters
operands
Type[]An array of function operator (parameter) types.