Export (0) Print
Expand All

RelatedObjectQuery.ClassDefinitionsOnly Property

Gets or sets a value indicating that for all instances that adhere to the query, only their class definitions be returned. This parameter is only valid for instance queries.

[Visual Basic]
Public Property ClassDefinitionsOnly As Boolean
public bool ClassDefinitionsOnly {get; set;}
public: __property bool get_ClassDefinitionsOnly();
public: __property void set_ClassDefinitionsOnly(bool);
public function get ClassDefinitionsOnly() : Boolean;
public function set ClassDefinitionsOnly(Boolean);

Property Value

true if the query requests only class definitions of the result set; otherwise, false.


Setting this property value overrides any previous value stored in the object. The query string is rebuilt to reflect the new flag.


Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

.NET Framework Security: 

See Also

RelatedObjectQuery Class | RelatedObjectQuery Members | System.Management Namespace

© 2014 Microsoft