Skip to content

M_CommandLine_Text_HeadingInfo_WriteMessage_1

Moh.Hassan edited this page Oct 10, 2019 · 1 revision

HeadingInfo.WriteMessage Method (String, TextWriter)

Writes out a string and a new line using the program name specified in the constructor and message parameter.

Namespace: CommandLine.Text
Assembly: CommandLine (in CommandLine.dll) Version: 0.0.0

Syntax

C#

public void WriteMessage(
	string message,
	TextWriter writer
)

VB

Public Sub WriteMessage ( 
	message As String,
	writer As TextWriter
)

C++

public:
void WriteMessage(
	String^ message, 
	TextWriter^ writer
)

F#

member WriteMessage : 
        message : string * 
        writer : TextWriter -> unit 

Parameters

 

message
Type: System.String
The String message to write.
writer
Type: System.IO.TextWriter
The target TextWriter derived type.

Exceptions

 

Exception Condition
ArgumentException Thrown when parameter message is null or empty string.
ArgumentNullException Thrown when parameter writer is null.

See Also

Reference

HeadingInfo Class
WriteMessage Overload
CommandLine.Text Namespace

Clone this wiki locally