SCCM WebService API Reference

SCCMWebService..::..ReadRemoteFile Method

Reads a file remotely.

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

Syntax


[SoapHeaderAttribute]
[WebMethodAttribute]
public LogEntry[] ReadRemoteFile(
	string uncPath,
	string logFile,
	int maxLines
)
<SoapHeaderAttribute> _
<WebMethodAttribute> _
Public Function ReadRemoteFile ( _
	uncPath As String, _
	logFile As String, _
	maxLines As Integer _
) As LogEntry()
[SoapHeaderAttribute]
[WebMethodAttribute]
public:
array<LogEntry^>^ ReadRemoteFile(
	String^ uncPath, 
	String^ logFile, 
	int^ maxLines
)

Parameters

uncPath
Type: String
The unc path.
logFile
Type: String
The log file.
maxLines
Type: Int32
The maximum lines.

Return Value

System.String[][].

Exceptions


ExceptionCondition
Exception Computer 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!