Skip to main content

IModel.IsIn(IPackage,string,bool) Method

Namespace: NextDesign.Core

Description

Checks whether this instance is an instance of one of the specified classes.
The specified class is identified from the package specified by the scope.
Returns True if the instance is one of the specified classes.

See the IModel description for how to specify the class name and the fuzzy match option.

Arguments

NameTypeDescription
scopeIPackageScope (Package that is the base point of the search range)
classNamesstringClass names (Comma-separated if multiple classes are specified)
If null or an empty string is specified, this method evaluates to False.
If a class with the specified name is not found, this method evaluates to False.
fuzzyboolFuzzy match option
Whether to treat the classNames argument as the name of a class instead of a fully qualified name.
If False, it is evaluated as if a class whose fully qualified name matches classNames is specified.
If True, it is evaluated as if a class whose class name matches classNames is specified.
If multiple matches are true, this method evaluates to True if the instance is any one of them.

The default value is True.

Return value

  • bool