LoggingActivity class

Applies to Windows and Windows Phone

Represents a logging trace on a LoggingChannel.

Syntax


public ref class LoggingActivity sealed : IClosable

Attributes

[MarshalingBehavior(Agile)]
[Threading(Both)]
[Version(0x06030000)]

Members

The LoggingActivity class has these types of members:

Constructors

The LoggingActivity class has these constructors.

ConstructorDescription
LoggingActivity(String, ILoggingChannel) Initializes a new instance of the LoggingActivity class for the specified LoggingChannel.
LoggingActivity(String, ILoggingChannel, LoggingLevel) Initializes a new instance of the LoggingActivity class for the specified LoggingChannel and LoggingLevel.

 

Methods

The LoggingActivity class has these methods. With C#, Visual Basic, and C++, it also inherits methods from the Object class.

MethodDescription
Close [C++, JavaScript]Ends the current logging activity.
Dispose [C#, VB]Performs tasks associated with freeing, releasing, or resetting unmanaged resources.

 

Properties

The LoggingActivity class has these properties.

PropertyAccess typeDescription

Id

Read-onlyGets the identifier for the current logging activity.

Name

Read-onlyGets the name of the current logging activity.

 

Requirements

Minimum supported client

Windows 8.1 [Windows Store apps only]

Minimum supported server

Windows Server 2012 R2 [Windows Store apps only]

Minimum supported phone

Windows Phone 8.1 [Windows Phone Silverlight 8.1 and Windows Runtime apps]

Namespace

Windows.Foundation.Diagnostics
Windows::Foundation::Diagnostics [C++]

Metadata

Windows.winmd

See also

Object
IClosable
LoggingChannel

 

 

Show:
© 2014 Microsoft