Compartilhar via


Logging.TryInitialize Method

Provides explicit initialization of logging listeners, rather than defering to first use of the Logging class. Use of this method is not required.

Namespace: Microsoft.Uii.Common.Logging
Assembly: Microsoft.Uii.Common.Logging (in Microsoft.Uii.Common.Logging.dll)

Usage

'Usage

Logging.TryInitialize

Syntax

'Declaration
Public Shared Sub TryInitialize
public static void TryInitialize ()
public:
static void TryInitialize ()
public static void TryInitialize ()
public static function TryInitialize ()

Exceptions

Exception type Condition
ConfigurationErrorsException

Configuration-related exceptions are wrapped in this common exception type.

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.