IModel.IsIn(IPackage,IEnumerable<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 in 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
| Name | Type | Description |
|---|---|---|
| scope | IPackage | Scope (the package from which the search begins) |
| classNames | IEnumerable<string> | Enumeration of class names If null or an empty enumeration is specified, this method evaluates to False. If a class with the specified name is not found, this method evaluates to False. |
| fuzzy | bool | Fuzzy 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