IModel.AsIn(IPackage,IEnumerable<string>,bool) Method
Namespace: NextDesign.Core
Description
Checks if this instance is compatible with any of the specified class types.
The specified classes are identified within the package specified in the scope.
Returns True if this instance is an instance of any of the specified classes or their subclasses.
See the IModel documentation for information on 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 no class with the specified name is found, this method evaluates to False. |
| fuzzy | bool | Fuzzy matching option Whether to treat the classNames argument as the name of the class rather than its 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