Update Method (Site)
- Last UpdatedNov 06, 2025
- 2 minute read
The Update() method updates all columns for the specified site records in the site table.
'Declaration
Public Shared Sub Update( _
ByVal sessionId As Integer, _
ByVal entId As Integer, _
ByVal siteName As DBString, _
ByVal corporation As DBString, _
ByVal division As DBString, _
ByVal subDivision As DBString, _
ByVal regionId As String, _
ByVal spare1 As DBString, _
ByVal spare2 As DBString, _
ByVal spare3 As DBString, _
ByVal spare4 As DBString, _
ByVal lastEditComment As DBString, _
ByRef lastEditAt As Date _
)
'Usage
Dim sessionId As Integer
Dim entId As Integer
Dim siteName As DBString
Dim corporation As DBString
Dim division As DBString
Dim subDivision As DBString
Dim regionId As String
Dim spare1 As DBString
Dim spare2 As DBString
Dim spare3 As DBString
Dim spare4 As DBString
Dim lastEditComment As DBString
Dim lastEditAt As Date
Site.Update(sessionId, entId, siteName, corporation, division, subDivision, regionId, spare1, spare2, spare3, spare4, lastEditComment, lastEditAt)
public static void Update(
int sessionId,
int entId,
DBString siteName,
DBString corporation,
DBString division,
DBString subDivision,
string regionId,
DBString spare1,
DBString spare2,
DBString spare3,
DBString spare4,
DBString lastEditComment,
ref DateTime lastEditAt
)
Parameters
- sessionId
- Required. Holds the session ID and thus the user who is making this method call.
- entId
- Required. An integer value holds the entity id
- siteName
- Required. A string value holds the site at which this entity is located. If null, sites are not being used.
- corporation
- Required.A string value holds the corporation to which this site belongs
- division
- Required. A string value holds the division within the corporation to which this site belongs.
- subDivision
- Required. A string value holds the sub-division within this division of the corporation to which this site belongs.
- regionId
- Required. A string value holds region id associated with this site. This is the Id value obtained from the .Net TimeZoneInfo class.
- spare1
- Required. A string value holds Spare1 field
- spare2
- Required. A string value holds Spare2 field
- spare3
- Required. A string value holds Spare3 field
- spare4
- Required. A string value holds Spare4 field
- lastEditComment
- Required. A string value holds comments about why this record is being added.
- lastEditAt
- Output. Holds the date/time value when the record was updated by this called method.