Developing Windows Clients |
Describes the available result package file entry object actions.
ResultPackageFileEntry Full Description
Attributes
ResultPackage Property
Index Property
Description Property
NameValues Property
MIMEType Property
OriginalFileName Property
Methods
GetNameValuePairs Method
Open Method
This object facilitates result package file entry manipulation. You may obtain attributes associated with the file entry, retrieve the file associated with the file entry, or create the file associated with the file entry.
The parent of this object.
Type: ResultPackage
Description
Use this property to navigate back to the ResultPackage object which is the parent of this object.
Example
Usage
Index of file entry within containing result package.
Type: Long
Description
Identifies which result package entry corresponds to this object.
Example
Usage
File entry description.
Type: String
Description
Use this property to obtain the description associated with this file entry. The description is assigned when the file entry is created.
Example
Usage
File entry name/value pairs.
Type: String
Description
Use this property to obtain the name/value pairs associated with this file entry. The name/value pairs are assigned when the file entry is created.
Example
Usage
File entry MIME type.
Type: String
Description
Use this property to obtain the MIME type associated with this file entry. The MIME type is assigned when the file entry is created.
Example
Usage
Original file name.
Type: String
Description
Use this property to obtain the original file name associated with this file entry.
Example
Usage
File entry parsed name/value pairs.
Description
Call this method to return a two dimensional string array containing the parsed name/value pairs.
Usage
Parameters
Name | Direction | Type | Description |
---|---|---|---|
nvPairs | out | String(row,col) | A two dimensional string array containing the parsed name/value pairs.
The two dimensional string array is populated in the following manner:
For the NameValues: "name1 name2=a name3=(b,c)" GetNameValuePairs would return: Column 0 Column 1 Row 0 "name1" Row 1 "name2" "a" Row 2 "name3" "b" Row 3 "c" |
Example
See Also
Open the file associated with this file entry.
Description
Call this method to open the file associated with this file entry.
Usage
Parameters
Name | Direction | Type | Description |
---|---|---|---|
mode | in | StreamOpenMode | Specifies whether the stream will allow reading, writing, or update. If the containing ResultPackage is read-only (see BrowseResultPackage or BrowseOnly), the Open::mode must be StreamOpenModeForReading. |
maxLineLength | in | Long | The maximum length of any line that will be in the file. This is only applicable to text files. Binary files ignore this parameter. This is typically set to some larger value than is actually used. If a huge number is specified, some hosts will adjust this down to a more reasonable value. This value can be obtained from TruncationLength. Lines longer than this specified maxLineLength will be truncated. |
Returns Object
Example
See Also
Developing Windows Clients |