Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Compiles the Web site and writes the compiled output to the specified folder.
Namespace: VsWebSite
Assembly: VsWebSite.Interop (in VsWebSite.Interop.dll)
Syntax
'Declaration
Function PreCompileWeb ( _
bstrCompilePath As String, _
bUpdateable As Boolean _
) As Boolean
bool PreCompileWeb(
string bstrCompilePath,
bool bUpdateable
)
bool PreCompileWeb(
[InAttribute] String^ bstrCompilePath,
[InAttribute] bool bUpdateable
)
abstract PreCompileWeb :
bstrCompilePath:string *
bUpdateable:bool -> bool
function PreCompileWeb(
bstrCompilePath : String,
bUpdateable : boolean
) : boolean
Parameters
- bstrCompilePath
Type: System.String
The local file system path of the folder where the compiled Web site will be written.
- bUpdateable
Type: System.Boolean
A flag indicating whether the Web site is updatable or whether it requires recompilation when an .aspx file is changed.
Return Value
Type: System.Boolean
true if the compilation was successful; otherwise false.
Remarks
This method compiles the site synchronously.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.