Partager via


PowerShellTraceSource.WriteMessage Method

Definition

Overloads

WriteMessage(String)
WriteMessage(String, Guid)
WriteMessage(String, String)
WriteMessage(String, String, Guid, String, String[])
WriteMessage(String, String, Guid, Job, String, String[])
WriteMessage(String, String, Guid, String, Guid, String, String[])

WriteMessage(String)

public:
 bool WriteMessage(System::String ^ message);
public:
 bool WriteMessage(Platform::String ^ message);
bool WriteMessage(std::wstring const & message);
public bool WriteMessage (string message);
member this.WriteMessage : string -> bool
Public Function WriteMessage (message As String) As Boolean

Parameters

message
String

Returns

Applies to

WriteMessage(String, Guid)

public:
 bool WriteMessage(System::String ^ message, Guid instanceId);
public bool WriteMessage (string message, Guid instanceId);
member this.WriteMessage : string * Guid -> bool
Public Function WriteMessage (message As String, instanceId As Guid) As Boolean

Parameters

message
String
instanceId
Guid

Returns

Applies to

WriteMessage(String, String)

public:
 bool WriteMessage(System::String ^ message1, System::String ^ message2);
public:
 bool WriteMessage(Platform::String ^ message1, Platform::String ^ message2);
bool WriteMessage(std::wstring const & message1, std::wstring const & message2);
public bool WriteMessage (string message1, string message2);
member this.WriteMessage : string * string -> bool
Public Function WriteMessage (message1 As String, message2 As String) As Boolean

Parameters

message1
String
message2
String

Returns

Applies to

WriteMessage(String, String, Guid, String, String[])

public:
 void WriteMessage(System::String ^ className, System::String ^ methodName, Guid workflowId, System::String ^ message, ... cli::array <System::String ^> ^ parameters);
public void WriteMessage (string className, string methodName, Guid workflowId, string message, params string[] parameters);
member this.WriteMessage : string * string * Guid * string * string[] -> unit
Public Sub WriteMessage (className As String, methodName As String, workflowId As Guid, message As String, ParamArray parameters As String())

Parameters

className
String
methodName
String
workflowId
Guid
message
String
parameters
String[]

Applies to

WriteMessage(String, String, Guid, Job, String, String[])

public:
 void WriteMessage(System::String ^ className, System::String ^ methodName, Guid workflowId, System::Management::Automation::Job ^ job, System::String ^ message, ... cli::array <System::String ^> ^ parameters);
public void WriteMessage (string className, string methodName, Guid workflowId, System.Management.Automation.Job job, string message, params string[] parameters);
member this.WriteMessage : string * string * Guid * System.Management.Automation.Job * string * string[] -> unit
Public Sub WriteMessage (className As String, methodName As String, workflowId As Guid, job As Job, message As String, ParamArray parameters As String())

Parameters

className
String
methodName
String
workflowId
Guid
job
Job
message
String
parameters
String[]

Applies to

WriteMessage(String, String, Guid, String, Guid, String, String[])

public:
 void WriteMessage(System::String ^ className, System::String ^ methodName, Guid workflowId, System::String ^ activityName, Guid activityId, System::String ^ message, ... cli::array <System::String ^> ^ parameters);
public void WriteMessage (string className, string methodName, Guid workflowId, string activityName, Guid activityId, string message, params string[] parameters);
member this.WriteMessage : string * string * Guid * string * Guid * string * string[] -> unit
Public Sub WriteMessage (className As String, methodName As String, workflowId As Guid, activityName As String, activityId As Guid, message As String, ParamArray parameters As String())

Parameters

className
String
methodName
String
workflowId
Guid
activityName
String
activityId
Guid
message
String
parameters
String[]

Applies to