Freigeben über


VSWebSite.PreCompileWeb-Methode

Kompiliert die Website und schreibt die kompilierte Ausgabe in den angegebenen Ordner.

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

Parameter

  • bstrCompilePath
    Typ: System.String
    Der lokale Dateisystempfad des Ordners, in den die kompilierte Website geschrieben wird.
  • bUpdateable
    Typ: System.Boolean
    Ein Flag, das anzeigt, ob die Website aktualisiert werden kann oder eine Neukompilierung erforderlich ist, wenn eine ASPX-Datei geändert wird.

Rückgabewert

Typ: System.Boolean
true, wenn die Kompilierung erfolgreich war, andernfalls false.

Hinweise

Diese Methode kompiliert die Website synchron.

.NET Framework-Sicherheit

Siehe auch

Referenz

VSWebSite Schnittstelle

VsWebSite-Namespace

EnvDTE

Weitere Ressourcen

Verweisen auf Automatisierungsassemblys und das DTE2-Objekt

ASP.NET Web Site Precompilation Overview