Logging.Error Method (String, String, Object[])
Display messages that represent a problem.
Namespace: Microsoft.Uii.Common.Logging
Assembly: Microsoft.Uii.Common.Logging (in Microsoft.Uii.Common.Logging.dll)
Usage
'Usage
Dim appName As String
Dim format As String
Dim parameters As Object()
Logging.Error(appName, format, parameters)
Syntax
'Declaration
Public Shared Sub Error ( _
appName As String, _
format As String, _
ParamArray parameters As Object() _
)
public static void Error (
string appName,
string format,
params Object[] parameters
)
public:
static void Error (
String^ appName,
String^ format,
... array<Object^>^ parameters
)
public static void Error (
String appName,
String format,
Object[] parameters
)
public static function Error (
appName : String,
format : String,
... parameters : Object[]
)
Parameters
- appName
Specifies the name of the application
- format
Specifies the format
- parameters
Specifies the parameters to be substituted into the stirng format.
Exceptions
Exception type | Condition |
---|---|
ConfigurationErrorsException | Configuration-related exceptions are wrapped in this common exception type. |
InvalidOperationException | Logging listeners are not permitted to call methods of the Logging class. |
Remarks
It only displays when the TraceSwitch is assigned TraceError. It takes the string passed in and sends it to any trace listener. It also will display it in a list control if one has been made available or in the various logs.
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Platforms
See Also
Reference
Logging Class
Logging Members
Microsoft.Uii.Common.Logging Namespace
Unified Service Desk
Send comments about this topic to Microsoft.
© 2015 Microsoft. All rights reserved.