次の方法で共有


ActivityLog.LogWarning Method

Logs a warning message in the activity log with the given source.

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

Syntax

'宣言
Public Shared Sub LogWarning ( _
    source As String, _
    message As String _
)
'使用
Dim source As String
Dim message As String

ActivityLog.LogWarning(source, message)
public static void LogWarning(
    string source,
    string message
)
public:
static void LogWarning(
    String^ source, 
    String^ message
)
static member LogWarning : 
        source:string * 
        message:string -> unit 
public static function LogWarning(
    source : String, 
    message : String
)

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, or if the LogEntry method fails.

.NET Framework Security

See Also

Reference

ActivityLog Class

ActivityLog Members

Microsoft.VisualStudio.Shell Namespace