ActivityLog.LogWarning(String, String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Logs a warning message in the activity log with the given source.
public:
static void LogWarning(System::String ^ source, System::String ^ message);
public:
static void LogWarning(Platform::String ^ source, Platform::String ^ message);
static void LogWarning(std::wstring const & source, std::wstring const & message);
public static void LogWarning (string source, string message);
static member LogWarning : string * string -> unit
Public Shared Sub LogWarning (source As String, message As String)
Parameters
- source
- String
A name associated with the source contributing the message.
- message
- String
The message to be written to the activity log.
Remarks
Can throw if the SVsActivityLog service is not available, or if the LogEntry method fails.