Microsoft SDK for Java

hasObject

This method of the MetaObject Interface determines whether the specified Category and Class are supported by the MetaObject. Either one (but not both) of the parameters can be null.

Syntax

public boolean hasObject(Category category, Class cls);

Return Value

Returns true if an object that matches the specified Category and Class is available; otherwise, returns false.

Parameters

category The Category that is requested. If a null Category object is specified, the category is derived from the name of the specified class.
cls The Class that is requested. If a null Class is specified, the request is for any class in the specified category.

© 1999 Microsoft Corporation. All rights reserved. Terms of use.