IUpdateServer.LogMessage Method (LogLevel, String, Object )
Applies To: Windows Server Update Services
Logs a message in the SoftwareDistribution log file.
Namespace: Microsoft.UpdateServices.Administration
Assembly: Microsoft.UpdateServices.Administration (in Microsoft.UpdateServices.Administration.dll)
Syntax
void LogMessage(
LogLevel logLevel,
string message,
params object[] args
)
void LogMessage(
LogLevel logLevel,
String^ message,
... array<Object^>^ args
)
abstract LogMessage :
logLevel:LogLevel *
message:string *
[<ParamArrayAttribute>] args:Object[] -> unit
Sub LogMessage (
logLevel As LogLevel,
message As String,
ParamArray args As Object()
)
Parameters
logLevel
Type: Microsoft.UpdateServices.Administration.LogLevelThe level of the message to log.
message
Type: System.StringThe message to log.
args
Type: System.Object[]Arguments to insert into message
Remarks
This method internally calls String.Format, and can support any message and arguments that this method can support.
This operation requires WSUS Administrator privileges.
See Also
IUpdateServer Interface
Microsoft.UpdateServices.Administration Namespace
Return to top