Condividi tramite


Quando si usano argomenti di tipo "Object", utilizzare "FileGetObject" anziché "FileGet"

Aggiornamento: novembre 2007

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

Il metodo FileGet include un argomento di tipo Object. Per evitare ambiguità, è necessario utilizzare FileGetObject anzichéFileGet.

Si noti che la funzionalità offerta da My.Computer.Filesystem garantisce una maggiore facilità d'uso e prestazioni superiori sia rispetto a FileGet che a FileGetObject.

Per correggere l'errore

  1. Sostituire FileGet con FileGetObject.

  2. Eseguire il cast dell'argomento Object su un tipo più specifico.

Vedere anche

Riferimenti

Funzione FileGetObject

Oggetto My.Computer.FileSystem