Udostępnij za pośrednictwem


Document and Documents Object Differences

The following table lists public operations of the Visual Studio Document and Documents objects that differ from or are not usable in Visual Studio Macros.

Operation

Behavior in Visual Studio Macros

FullName

Returns the document's full name

Path

Not available.

Close

The Save parameter is ignored and should not be passed; Visual Studio Macros keeps changes in memory and therefore never prompts for them, nor does it save or discard them

Save

Exports the document to the file name specified as the parameter; equivalent to the Export command on the shortcut menu for the ProjectItem

Add

Not available

Open

Returns an error because Visual Studio Macros does not support text files

CloseAll

The Save parameter is ignored and should not be passed

See Also

Concepts

Extensibility Model Differences

Property Differences

Item Operation Differences

Find2 Method Differences

Project Differences

Tools Options Differences