Locations.AddFileLocation

Syntax

Locations.AddFileLocation( file, lookupString, elem = PropertyObjectElement_None, selectionStart = 0, selectionLength = -1)

Return Value

Location

The Location added to the collection.

Purpose

Adds a new file location to the collection.

Parameters

file As PropertyObjectFile

[In] Specifies ss the file to initialize the Location.FileDisplayName , Location.FileId , and Location.FilePath properties.

lookupString As String

[In] Specifies a subproperty of the file parameter. This method sets the Location.PropertyPath property of the new Location to the lookup string to lookupString from file. This method also sets as many properties of the new Location as this method can obtain from the object you pass. This method specifies the lookupString parameter relative to the root of the PropertyObjectFile object. For example, if the location is underneath the PropertyObjectFile.Data element, the lookup string must use the Data. prefix.

elem As PropertyObjectElements

[In] Specifies the value of the Location.Element property of the new location.

This parameter has a default value of PropertyObjectElement_None .

selectionStart As Long

[In] Specifies the value of the Location.SelStart property of the new location.

This parameter has a default value of 0 .

selectionLength As Long

[In] Specifies the value of the Location.SelLength property of the new location.

This parameter has a default value of -1 .

See Also

Location

Location.Element

Location.FileDisplayName

Location.FileId

Location.FilePath

Location.Kind

Location.PropertyPath

Location.SelLength

Location.SelStart

Locations.AddExecutionLocation

Locations.AddTypeLocation

PropertyObjectElements

PropertyObjectFile