IModel.AsIn(IPackage,string,bool) Method
Namespace: NextDesign.Core
Description
Checks whether this instance is compatible with any of the specified class types.
The specified class is identified from the package specified by the scope.
Returns True if this instance is an instance of any of the specified classes or their subclasses.
See the IModel description for how to specify the class name and the fuzzy match option.
Arguments
Name | Type | Description |
---|---|---|
scope | IPackage | Scope (Package that is the base point of the search range) |
classNames | string | Class 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. |
fuzzy | bool | Fuzzy 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 specifying a class whose fully qualified name matches classNames. If True, it is evaluated as specifying a class whose class name matches classNames. 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