Syntax
Visual Basic (Declaration) |
|
<SourceCode.Diagnostics.Logging.LogMessageAttribute(Id=3,
Level=LogLevel.Informational,
Version=1)>
<SourceCode.Diagnostics.Logging.ExitLogMessageAttribute(Id=4,
Level=LogLevel.Informational,
Version=1)>
Function Transient() As SourceCode.Diagnostics.Logging.ActivityScope
|
Visual Basic (Usage) |
Copy Code
|
Dim instance As IDataLoggingProvider
Dim value As SourceCode.Diagnostics.Logging.ActivityScope
value = instance.Transient()
|
C# |
|
[SourceCode.Diagnostics.Logging.LogMessage(Id=3,
Level=LogLevel.Informational,
Version=1)]
[SourceCode.Diagnostics.Logging.ExitLogMessage(Id=4,
Level=LogLevel.Informational,
Version=1)]
SourceCode.Diagnostics.Logging.ActivityScope Transient()
|
C++/CLI |
|
[SourceCode.Diagnostics.Logging.LogMessage(Id=3,
Level=LogLevel.Informational,
Version=1)]
[SourceCode.Diagnostics.Logging.ExitLogMessage(Id=4,
Level=LogLevel.Informational,
Version=1)]
SourceCode.Diagnostics.Logging.ActivityScope Transient();
|
Requirements
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
See Also