编译网站,并将输出写入指定的文件夹。
命名空间:  VsWebSite
程序集:  VsWebSite.Interop(在 VsWebSite.Interop.dll 中)
语法
声明
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
参数
- bstrCompilePath
 类型:System.String
 文件夹的本地文件系统路径,在此文件夹中将写入编译后的网站。
- bUpdateable
 类型:System.Boolean
 一个标志,用于指示更改一个 .aspx 文件时是可以更新此网站,还是需要对其重新进行编译。
返回值
类型:System.Boolean
如果编译成功,则为 true,否则为 false。
备注
此方法同步编译此网站。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。