VSWebSite.PreCompileWeb 方法

编译网站,并将输出写入指定的文件夹。

命名空间:  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 安全性

请参见

参考

VSWebSite 接口

VsWebSite 命名空间

EnvDTE

其他资源

引用自动化程序集和 DTE2 对象

ASP.NET Web Site Precompilation Overview