BuildProvider::GetCustomString Method
Generates a string to be persisted in the compiled assembly.
Assembly: System.Web (in System.Web.dll)
Parameters
- results
- Type: System.CodeDom.Compiler::CompilerResults
The compilation results for the build provider's virtual path.
Return Value
Type: System::StringA string to be persisted in the build environment, or nullptr if the BuildProvider instance does not implement GetCustomString.
The GetCompiledCustomString method of a BuildManager object creates an instance of a build provider for an input virtual path, and calls the GetCustomString method on the BuildProvider object.
The base BuildProvider class returns nullptr for the GetCustomString method, indicating that GetCustomString is not implemented.
Certain build provider implementations can implement GetCustomString in place of the GetGeneratedType method. A BuildProvider object typically uses GetGeneratedType to return a Type object for a virtual path. However, the GetCustomString method can be used to indicate that a BuildProvider object can generate multiple types from a virtual path.
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.