Skip to main content
Namespace: VM.API.Pre
Assembly: VM.API.Pre.dll
This class implements APIs for Function class.

Inheritance

object ← FunctionAPI

Extension Methods

LinkPropertyItemCache.GetLinkProperties(object, LinkPropertyType), LinkPropertyItemCache.GetLinkPropertiesAndValues(object, LinkPropertyType), LinkPropertyItemCache.GetLinkedObjects<T>(object, LinkPropertyType)

Methods

CreateFunction(SubSystemDocument, string, IEnumerable<(string, Obj)>, string, SymmetricType, bool)

Create Function.

Parameters

document SubSystemDocument The document to create a function. expression string The expression of a function. arguments IEnumerable<(string, Obj)> The arguments of a function. name string The name of a function. symmetricType SymmetricType The symmetric type of the new Function isInterface bool ‘true’ if it is interface body. Otherwise, ‘false’.

Returns

Obj The new Function object that is created by this API.

Exceptions

ArgumentNullException Will be thrown if ‘document’, ‘expression’ argument is null. ArgumentException Will be thrown if the second element of ‘arguments’ is not IArgument.