获取资源
描述
从可执行程序中读取嵌入的文件(例如xml,图像等),使您可以分发一个程序-exe,但仍可以访问该程序所需的数据和图像。
更多信息
除了设计时,这仅允许您读取数据,而不能更新/删除/添加数据。
提交时间
经过
等级
初学者
用户评分
4.7(3个用户的14个地球仪)
兼容性
VB.NET
类别
世界
存档文件
源代码
Public Function GetResource(ByVal filename As String) As System.IO.Stream
' Demo Instructions:
'
' Add an XML document to your project called "test.xml"
'
' Click the file and under properties, set BuildAction