Nota
L'accesso a questa pagina richiede l'autorizzazione. È possibile provare ad accedere o modificare le directory.
L'accesso a questa pagina richiede l'autorizzazione. È possibile provare a modificare le directory.
Logs an information 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
'Dichiarazione
Public Shared Sub LogInformation ( _
source As String, _
message As String _
)
'Utilizzo
Dim source As String
Dim message As String
ActivityLog.LogInformation(source, message)
public static void LogInformation(
string source,
string message
)
public:
static void LogInformation(
String^ source,
String^ message
)
static member LogInformation :
source:string *
message:string -> unit
public static function LogInformation(
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
- 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.