SCCMWebService..::..GetComputerVariable Method
Gets the content of a sccm computer variable.
Namespace:
SCCMWebServiceAssembly: 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
Exception | Condition |
---|---|
Exception | ResourceID must not be empty! or Computer with ResourceID ' + resourceID + ' does not exist. |