AssemblyBuilder::CreateEmbeddedResource Method
Allows a build provider to create a resource file to include in the assembly compilation.
Assembly: System.Web (in System.Web.dll)
Parameters
- buildProvider
- Type: System.Web.Compilation::BuildProvider
The build provider generating the resource.
- name
- Type: System::String
The name of the resource file to be created.
Return Value
Type: System.IO::StreamAn open Stream that can be used to write resources, which are included in the assembly compilation.
After calling the CreateEmbeddedResource method, a BuildProvider object writes the resource file contents using the returned Stream object. For example, the build provider can write the resources using a ResourceWriter object. After writing the resource file, the build provider must use the Close method to close the Stream object and free associated system resources.
Windows 7, Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98
The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.