共用方式為


SPSolution.Deploy method (DateTime, Boolean, Boolean)

會建立計時器工作,以將非語言相關方案部署在指定的時間。

Namespace:  Microsoft.SharePoint.Administration
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'宣告
Public Sub Deploy ( _
    dt As DateTime, _
    globalInstallWPPackDlls As Boolean, _
    force As Boolean _
)
'用途
Dim instance As SPSolution
Dim dt As DateTime
Dim globalInstallWPPackDlls As Boolean
Dim force As Boolean

instance.Deploy(dt, globalInstallWPPackDlls, _
    force)
public void Deploy(
    DateTime dt,
    bool globalInstallWPPackDlls,
    bool force
)

參數

  • dt
    Type: System.DateTime

    DateTime物件,其中包含要執行的計時器工作的時間。

  • globalInstallWPPackDlls
    Type: System.Boolean

    未使用。

    如果true,則強式組件安裝在 GAC 中 ;如果false,其會安裝至應用程式的 bin 目錄。

  • force
    Type: System.Boolean

    如果true,然後再將解決方案可以要重新部署高度模糊 ;如果false,與解決方案已經部署時,則會引發例外狀況。

備註

如果解決方案包含組件您可以設定DeploymentTarget屬性來GlobalAssemblyCache放在全域組件快取或WebApplication以將其部署至的 bin 目錄中的組件方案資訊清單中。如果未指定屬性,則組件部署至的 bin 目錄預設。

部署時使用物件模型的組件,不會顯示警告所發出的組件所要安裝到全域組件快取。( -allowgacdeploymentflag標幟時使用 stsadm,是必要的並使用使用者介面時,會發出警告的組件所要安裝到全域組件快取)。

如果您執行多個工作及所執行的順序很重要,請確定指定時間是否已足以完成之前送出下一個工作每個工作。集區中多個工作時,所執行的順序是不可預期。

若要部署的語言套件,請參閱 < SPSolutionLanguagePack

請參閱

參照

SPSolution class

SPSolution members

Deploy overload

Microsoft.SharePoint.Administration namespace