Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Weird behavior with Imports System.IO
Message
De
23/08/2005 09:59:05
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Titre:
Weird behavior with Imports System.IO
Divers
Thread ID:
01042897
Message ID:
01042897
Vues:
64
I have a weird behavior with the use of Imports System.IO.

I have the following code in File.vb:
Imports System.IO
Imports System.Text

Public Class FileFunction

    ' Create a directory
    ' expC1 Directory
    Public Shared Function MD(ByVal tcDirectory As String)
        Directory.CreateDirectory(tcDirectory)
    End Function

End Class
The Directory line in the MD() function is with error. Basically, the processor can't find the Directory reference. However, the proper imports has been done at the top. If I put the full reference such as:
        System.IO.Directory.CreateDirectory(tcDirectory)
It will work.

Anyone can explain that to me?
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform