SCCM WebService API Reference

SCCMWebService..::..GetLogFile Method

Gets the given log file from specified unc path.

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

Syntax


[SoapHeaderAttribute]
[WebMethodAttribute]
public string[] GetLogFile(
	string computerName,
	string uncPath,
	string logFile
)
<SoapHeaderAttribute> _
<WebMethodAttribute> _
Public Function GetLogFile ( _
	computerName As String, _
	uncPath As String, _
	logFile As String _
) As String()
[SoapHeaderAttribute]
[WebMethodAttribute]
public:
array<String^>^ GetLogFile(
	String^ computerName, 
	String^ uncPath, 
	String^ logFile
)

Parameters

computerName
Type: String
Name of the computer.
uncPath
Type: String
The unc path.
logFile
Type: String
The log file.

Return Value

System.String[][].

Exceptions


ExceptionCondition
ExceptionComputer name must not be empty! or Unable to get DNS host name for computer + computerName + ! or Unable to get SCCM client properties for computer + computerName + because host is unreachable!