Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Logs an error message in the activity log with the given source.
Namespace: Microsoft.VisualStudio.Shell
Assembly: Microsoft.VisualStudio.Shell.12.0 (in Microsoft.VisualStudio.Shell.12.0.dll)
Syntax
'Declaration
Public Shared Sub LogError ( _
source As String, _
message As String _
)
public static void LogError(
string source,
string message
)
public:
static void LogError(
String^ source,
String^ message
)
static member LogError :
source:string *
message:string -> unit
public static function LogError(
source : String,
message : String
)
Parameters
source
Type: StringA name associated with the source contributing the message.
message
Type: StringThe 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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.