FindResourceSite Method in Class SMS_Query
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]
The resource number.
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.