.NET Framework Class Library
PDMSystem.AddToEventLog Method
|
<< Click to Display Table of Contents >> Navigation: MwPDMApi Namespace > PDMSystem Class > PDMSystem Methods > .NET Framework Class Library |
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, _ |
C# |
|---|
public void AddToEventLog( string action, |
Visual C++ |
|---|
public: void AddToEventLog( |
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
|
|
|---|---|
$app.PDMSystem.AddToEventLog("MyCustomAction", "C:\file.dwg", 12345) |
|
|
|
|---|---|
$app.PDMSystem.AddToEventLog("MyCustomAction", "C:\file.dwg", 0, "UserName = John") |
|
See Also