Compartilhar via


ActivityLog.LogError Method

Logs an error message in the activity log with the given source.

Namespace:  Microsoft.VisualStudio.Shell
Assembly:  Microsoft.VisualStudio.Shell.11.0 (in Microsoft.VisualStudio.Shell.11.0.dll)

Syntax

'Declaração
Public Shared Sub LogError ( _
    source As String, _
    message As String _
)
public static void LogError(
    string source,
    string message
)

Parameters

  • source
    Type: System.String
    A name associated with the source contributing the message.
  • message
    Type: System.String
    The message to be written to the activity log.

Remarks

This method may throw an exception if the SVsActivityLog service is not available.

.NET Framework Security

See Also

Reference

ActivityLog Class

Microsoft.VisualStudio.Shell Namespace