OnTime Extension SDK Documentation
OnTime.Extensions.SDK Namespace / DataAccess Class / UpdateDepartment Method
A comprehensive Department object.



In This Topic
    UpdateDepartment Method
    In This Topic
    Updates an existing Department record.
    Syntax
    'Declaration
     
    
    Public Function UpdateDepartment( _
       ByVal department As Customer.Department _
    ) As Boolean
    'Usage
     
    
    Dim instance As DataAccess
    Dim department As Customer.Department
    Dim value As Boolean
     
    value = instance.UpdateDepartment(department)
    public bool UpdateDepartment( 
       Customer.Department department
    )
    public:
    bool UpdateDepartment( 
       Customer.Department^ department
    ) 

    Parameters

    department
    A comprehensive Department object.

    Return Value

    Returns true if the Department record was successfully updated. Otherwise, returns false.
    Remarks
    A reference to an existing Customer must be provided in the Department.CustomerID field of department.
    Requirements

    Target Platforms: Windows 7, Windows 8, Windows 8.1, Windows 10, Windows 11, Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2012, Windows Server 2012 R2, Windows Server 2016, Windows Server 2019, Windows Server 2022

    See Also