FindResourceSite Method in Class SMS_Collection

 

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 System Center 2012 R2 Configuration Manager, gets site code information for resources.

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

Syntax

sint32 FindResourceSite(
        boolean IncludeSubCollections = false, 
        string SiteCode[],
        uint32 ResourceNumber[]
);

Parameters

  • IncludeSubCollections
    Data type: Boolean

    Qualifiers: [in, optional, deprecated]

    true if subcollections are also marked for evaluation. If this parameter is set to false, subcollections are not included. The value defaults to false, if not specified.

  • SiteCode[]
    Data type: String Array

    Qualifiers: [out]

    Site code of the site with which the resource is associated.

  • ResourceNumber
    Data type: UInt32 Array

    Qualifiers: [out]

    Configuration Manager supplied ID that uniquely identifies a client resource.

Return Values

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

For more 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_Collection Server WMI Class
SMS_Site Server WMI Class