AdcsDbReaderAddColumnToView Method

Adds database table column to output.

Definition

Namespace: SysadminsLV.PKI.Management.CertificateServices.Database
Assembly: SysadminsLV.PKI.Win (in SysadminsLV.PKI.Win.dll) Version: 4.0.1.0 (4.0.1.0)
C#
public bool AddColumnToView(
	string columnName
)

Parameters

columnName  String
Column name to include.

Return Value

Boolean
True if column is added to the view. False if column is already added or column name is not valid.

Remarks

Valid column names can be retrieved by running GetTableSchema method. Use '*' (asterisk) in order to add all columns to the output view.

Use GetDefaultColumns(AdcsDbViewTableName) method to retrieve default columns added to the view.

Exceptions

ArgumentNullExceptioncolumnName parameter is null or empty string.
AccessViolationException Database view is already opened and cannot be altered.

See Also