Click or drag to resize

AdcsDbReaderAddColumnToView Method

Adds database table column to output.

Namespace:  SysadminsLV.PKI.Management.CertificateServices.Database
Assembly:  SysadminsLV.PKI (in SysadminsLV.PKI.dll) Version: 3.7.0.0 (3.7.0.0)
Syntax
public bool AddColumnToView(
	string columnName
)

Parameters

columnName
Type: SystemString
Column name to include.

Return Value

Type: Boolean
True if column is added to the view. False if column is already added or column name is not valid.
Exceptions
ExceptionCondition
ArgumentNullExceptioncolumnName parameter is null or empty string.
AccessViolationException Database view is already opened and cannot be altered.
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.

See Also