Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Limitation in the System.IO.FileInfo.get_Length()
Message
De
05/03/2010 03:07:45
 
 
À
05/03/2010 03:04:44
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Versions des environnements
Environment:
VB 9.0
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01452685
Message ID:
01452693
Vues:
41
>What is get_Length() ? (I'ts certainly not a static method of System.IO.FileInfo)
>IAC this works :
System.IO.FileInfo fi = new   System.IO.FileInfo("d:\\tmp\\longfilenamelongfilenamelongfilenamelongfilenamelongfilenamelongfilenamelongfilenamelongfilenamelongfilenamelongfilenamelongfilenamelongfilenamelongfilenamelongfilenamelongfilenamelongfilename.txt");
>
>long i = fi.Length;
Length of the file name is 196.....

A reference from fileinfo will work. The problem is with the DirectoryInfo class. This ones uses a get_Length function when we call the GetFiles() method.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform