Skip to main content

IModel.IsIn(IPackage,string,bool) Method

Namespace: NextDesign.Core

Description

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

See the IModel documentation for how to specify class names and fuzzy matching options.

Argument

NameTypeDescription
scopeIPackageScope (the package from which the search begins)
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 class name rather than the fully qualified name.
If False, it evaluates as specifying a class whose fully qualified name matches classNames.
If True, it evaluates as specifying a class whose class name matches classNames.
If multiple matches, this method evaluates to True if any one of them is an instance.

The default value is True.

Return value

  • bool