Skip to main content

IModel.AsIn(IPackage,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 by 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

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