Logging.Warn Method (String, String, Object[])
Displays messages that may 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.Warn(appName, format, parameters)
Syntax
'Declaration
Public Shared Sub Warn ( _
appName As String, _
format As String, _
ParamArray parameters As Object() _
)
public static void Warn (
string appName,
string format,
params Object[] parameters
)
public:
static void Warn (
String^ appName,
String^ format,
... array<Object^>^ parameters
)
public static void Warn (
String appName,
String format,
Object[] parameters
)
public static function Warn (
appName : String,
format : String,
... parameters : Object[]
)
Parameters
- appName
Specifies the name of the application
- format
Specifies the string format of the message
- parameters
Specifies the parameters to be substituted into the string 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 TraceWarning. 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.