共用方式為


ThmxTheme.ApplyTo method (SPWeb, Boolean)

目前的佈景主題套用至指定的網站。

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

Syntax

'宣告
Public Sub ApplyTo ( _
    web As SPWeb, _
    shareGenerated As Boolean _
)
'用途
Dim instance As ThmxTheme
Dim web As SPWeb
Dim shareGenerated As Boolean

instance.ApplyTo(web, shareGenerated)
public void ApplyTo(
    SPWeb web,
    bool shareGenerated
)

參數

  • shareGenerated
    Type: System.Boolean

    true如果產生的階層式樣式表應該儲存在根 web。否則, false。

Implements

ISPTheme.ApplyTo(SPWeb, Boolean)

Exceptions

Exception Condition
ArgumentNullException

web是 null 。

InvalidOperationException

佈景主題檔案不正確。

備註

如果web是a null reference (Nothing in Visual Basic),這個方法會擲回ArgumentNullException

請參閱

參照

ThmxTheme class

ThmxTheme members

ApplyTo overload

Microsoft.SharePoint.Utilities namespace