Get Distinct Columns

Returns a new DataTable containing the unique (distinct) rows of a DataTable based on the specified columns.


⬅️INPUT

Parameter

Type

Required

Description

Input

DataTable

✅Yes

Source DataTable to process

ColumnNames

String

❌No

Names of the columns the distinct operation is applied to


➡️OUTPUT

Parameter

Type

Description

IsGetDistinctColumnsSuccessful

Boolean

Whether the operation succeeded

GetDistinctColumnsMessage

String

Result message or error description

GetDistinctColumnsResult

DataTable

DataTable containing the unique rows


⬇️MISC

Parameter

Type

Default

Description

ThrowException

Boolean

❌No

Specifies whether an exception is thrown when the operation fails. The default value is "No".