Skip to main content

IModel.As method

Namespace: NextDesign.Core

Description

Checks if this instance is compatible with the specified class type. Returns True if this instance is an instance of the specified class or its subclasses.

argument

NameTypeDescription
classNamestringclass name
Specify the name of the class or the fully qualified name.
If null or an empty string is specified, this method evaluates to False.
If the class with the specified name is not found, the evaluation of this method will be False.
fuzzyboolclassName Whether to treat the argument as a class name rather than a fully qualified name.
If False, evaluate as specifying a class whose fully qualified name matches className.
If True, evaluate as specifying a class whose class name matches className.
If there are multiple cases, and if it is an instance of any one of them, the evaluation of this method is True.

The default value is True.

Return value

  • bool