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.

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

Parameters

IncludeSubCollections

Data type: BooleanQualifiers: [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 ArrayQualifiers: [out]Site code of the site with which the resource is associated.
ResourceNumber

Data type: UInt32 ArrayQualifiers: [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

Development Requirements

See Also