Export (0) Print
Expand All
Expand Minimize

Use 'FileGetObject' instead of 'FileGet' when using argument of type 'Object'

The FileGet method includes an argument of type Object. FileGetObject should be used in place of FileGet to avoid ambiguities.

Notice that the functionality offered by My.Computer.Filesystem offers greater ease of use and performance than either FileGet or FileGetObject.

To correct this error

  1. Replace FileGet with FileGetObject.

  2. Cast the Object argument to a more specific type.

Community Additions

ADD
Show:
© 2014 Microsoft