SCCM WebService API Reference

SCCMWebService..::..GetComputerVariable Method

Gets the content of a sccm computer variable.

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

Syntax


[SoapHeaderAttribute]
[WebMethodAttribute]
public string GetComputerVariable(
	int resourceID,
	string variableName
)
<SoapHeaderAttribute> _
<WebMethodAttribute> _
Public Function GetComputerVariable ( _
	resourceID As Integer, _
	variableName As String _
) As String
[SoapHeaderAttribute]
[WebMethodAttribute]
public:
String^ GetComputerVariable(
	int^ resourceID, 
	String^ variableName
)

Parameters

resourceID
Type: Int32
The resource identifier.
variableName
Type: String
Name of the variable.

Return Value

System.String.

Exceptions


ExceptionCondition
Exception ResourceID must not be empty! or Computer with ResourceID ' + resourceID + ' does not exist.