.NET Framework Class Library
PDMSystem.AddToEventLog Method

<< Click to Display Table of Contents >>

Navigation:  MwPDMApi Namespace > PDMSystem Class > PDMSystem Methods >

.NET Framework Class Library
PDMSystem.AddToEventLog Method

Allows to add custom events to the EVENT_LOG database table

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

Syntax

Visual Basic

Public Sub AddToEventLog ( _

 action As String, _
 docPathName As String, _
 Optional uid As Integer = 0, _
 Optional arg1Arg2 As String = "" _
)

C#

public void AddToEventLog(

 string action,
 string docPathName,
 int uid = 0,
 string arg1Arg2 = ""
)

Visual C++

public:

void AddToEventLog(
 String^ action,
 String^ docPathName,
 int uid = 0,
 String^ arg1Arg2 = L""
)

JavaScript

function addToEventLog(action, docPathName, uid, arg1Arg2);

Parameters

action

Type: System.String
Action to be logged

docPathName

Type: System.String
Path name of the document referenced in the action

uid (Optional)

Type: System.Int32
Unique id of the document referenced in the action

arg1Arg2 (Optional)

Type: System.String
Additional arguments in the form arg1 separator arg2

Remarks

Examples

In PowerShell

 

Copy imageCopy Code

$app.PDMSystem.AddToEventLog("MyCustomAction", "C:\file.dwg", 12345)

 

Copy imageCopy Code

$app.PDMSystem.AddToEventLog("MyCustomAction", "C:\file.dwg", 0, "UserName = John")

See Also

PDMSystem Class

PDMSystem Members

MwPDMApi Namespace