Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我的问题很简单......我希望。
问候;
泽山·艾哈迈德·汗
你必须使用
Application.GetResourceStream(new Uri(_filePath, UriKind.Relative));
其中 _filePath 是文件的路径,前面没有“/”,例如“bin/file.txt”。