SCCM WebService API Reference

SCCMWebService..::..GetWMIInstances Method

Gets (remote) wmi instances.

Namespace:  SCCMWebService
Assembly:  SCCMWebService (in SCCMWebService.dll)

Syntax


[SoapHeaderAttribute]
[WebMethodAttribute]
public DataSet GetWMIInstances(
	string wmiNameSpace,
	string wqlQuery
)
<SoapHeaderAttribute> _
<WebMethodAttribute> _
Public Function GetWMIInstances ( _
	wmiNameSpace As String, _
	wqlQuery As String _
) As DataSet
[SoapHeaderAttribute]
[WebMethodAttribute]
public:
DataSet^ GetWMIInstances(
	String^ wmiNameSpace, 
	String^ wqlQuery
)

Parameters

wmiNameSpace
Type: String
The WMI name space.
wqlQuery
Type: String
The WQL query.

Return Value

DataSet

Exceptions


ExceptionCondition
ExceptionWMINameSpace must not be empty! or WQLQuery must not be empty!