次の方法で共有


View::ExportList method

The ExportList method exports the selected list to the specified file.

Syntax

View.ExportList( _
  ByVal File As String, _
  ByVal exportoptions As ExportListOptions _
)

Parameters

File

The name of the export file.

exportoptions

This parameter can be one or more of the following ExportListOptions values. These flags can be combined using a bitwise OR operation.

ExportListOptions_Default

Default list export option. If this is the only flag specified in the call to View.ExportList, then the list view contents are exported as comma-delimited ANSI text.

ExportListOptions_Unicode

The list is exported as Unicode text.

ExportListOptions_TabDelimited

The list is exported as tab-delimited text.

ExportListOptions_SelectedItemsOnly

The exported list contains only selected items.

Return value

This method does not return a value.

Examples

' Export the list view contents.
objView.ExportList "D:\output.txt", _
            ExportListOptions_TabDelimited Or _
            ExportListOptions_SelectedItemsOnly

Requirements

Minimum supported client
Windows Vista
Minimum supported server
Windows Server 2008
Header
MMCObj.h
IDL
MMCObj.idl
DLL
Mmc.exe
IID
IID_View is defined as 6EFC2DA2-B38C-457E-9ABB-ED2D189B8C38

See also

ExportListOptions