如何解决这个.... Directory.GetFiles .....没有出现属于哪个名称空间? [英] How to solve this ....Directory.GetFiles.....does not appear which name space belong to ?
本文介绍了如何解决这个.... Directory.GetFiles .....没有出现属于哪个名称空间?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
Directory.GetFiles .....没有出现
名称空间属于哪个?
string [] filesindirectory =目录.GetFiles(Server.MapPath(〜/ Upload / Products / Template / Thumbnail /));
解决方案
添加
使用 System.IO;
到你的文件。
PS。但老实说,使用关键词Directory class .Net进行搜索会比在CodeProject上提交问题更快地给出答案。 :-P
MSDN文档 [ ^ ]帮助:命名空间: System.IO
Directory.GetFiles.....does not appear
which name space belong to ?
string[] filesindirectory = Directory.GetFiles(Server.MapPath("~/Upload/Products/Template/Thumbnail/"));解决方案Add
using System.IO;
to your file.
PS. But honestly, a search using the key words "Directory class .Net" would have given you the answer faster than submitting the question at CodeProject. :-P
The MSDN documentation[^] helps:Namespace: System.IO
这篇关于如何解决这个.... Directory.GetFiles .....没有出现属于哪个名称空间?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文