.NET Framework Class Library
Messages.SendNotificationMessageToUser Method

<< Click to Display Table of Contents >>

Navigation:  Programming Mechworks PDM > .NET API > MwPDMApi Namespace > Messages Class > Messages Methods >

.NET Framework Class Library
Messages.SendNotificationMessageToUser Method

Shows a pop-up window to a specific user with a message of multiple line.

Namespace: MwPDMApi
Assembly:  MwPDMApi (in MwPDMApi.dll) Version: 1.0.0.0 (1.0.0.0)

Syntax

Visual Basic

Public Sub SendNotificationMessageToUser ( _

userName As String, _
sender As String, _
message As String, _
xSize As Integer, _
ySize As Integer, _
delay As Integer, _
ParamArray scripts As Object() _
)

C#

public void SendNotificationMessageToUser(

string userName,
string sender,
string message,
int xSize,
int ySize,
int delay,
params Object[] scripts
)

Visual C++

public:

void SendNotificationMessageToUser(
String^ userName,
String^ sender,
String^ message,
int xSize,
int ySize,
int delay,
... array<Object^>^ scripts
)

JavaScript

function sendNotificationMessageToUser(userName, sender, message, xSize, ySize, delay, ... scripts);

Parameters

userName

Type: System.String
user receiver of the message

sender

Type: System.String
user sender of the message

message

Type: System.String
message to be displayed in the window. It's possible to insert the new line command throught the "\n" keyword.

xSize

Type: System.Int32
width size of the popup message

ySize

Type: System.Int32
height size of the popup message

delay

Type: System.Int32
number of seconds after which the dialog disappears. if "0" it won't disappear

scripts

Type: System.Object[]
Optional. Shows a button for each script (up to 4 buttons) in the lower side of the message. If existing the script as LST\PopUpScripts\_ScriptName_, it's run at click time.

Remarks

See Also

Messages Class

Messages Members

MwPDMApi Namespace