Cmdlets for CSV

Build 25.0.9540

IncludeEmptyHeaders Parameter (Connect-CSV Cmdlet)

Specifies whether the provider includes columns with empty header values when reading files that contain column headers.

Syntax

Connect-CSV -IncludeEmptyHeaders SwitchParameter

Data Type

bool

Default Value

false

Remarks

This property applies when IncludeColumnHeaders is set to true.

When this property is set to true, the 本製品 assigns generic names based on column numbers to any columns that have empty header values.

When set to false, the 本製品 excludes columns that do not have a header value.

This property is useful for maintaining consistent column positions when some files contain missing or blank header names.

Copyright (c) 2026 CData Software, Inc. - All rights reserved.
Build 25.0.9540