Share via


FindResourceSite Method in Class SMS_Query

 

Applies To: System Center 2012 Configuration Manager, System Center 2012 Configuration Manager SP1, System Center 2012 R2 Configuration Manager

The FindResourceSite Windows Management Instrumentation (WMI) class method, in Configuration Manager, gets site code information for resources from SQL.

The following syntax is simplified from Managed Object Format (MOF) code and defines the method.

Syntax

SInt32 FindResourceSite(
   Boolean IncludeSubCollections,
   String SiteCode[],
   UInt32 ResourceNumber[]
);

Parameters

  • IncludeSubCollections
    Data type: Boolean

    Qualifiers: [in, optional]

    true if subcollections should be included. The default value is false.  

  • SiteCode
    Data type: String Array

    Qualifiers: [out]

    Site code of the Configuration Manager site.  

  • ResourceNumber
    Data type: UInt32 Array

    Qualifiers: [out]

    …. 

Return Values

An SInt32 data type that is 0 to indicate success or non-zero to indicate failure.

For information about handling returned errors, see About Configuration Manager Errors.

Requirements

Runtime Requirements

For more information, see Configuration Manager Server Runtime Requirements.

Development Requirements

For more information, see Configuration Manager Server Development Requirements.

See Also

SMS_Query Server WMI Class