次の方法で共有


SPTheme.OpenAppliedTheme method

Open the theme applied to the specified SPWeb if applicable.

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

Syntax

'Declaration
Public Shared Function OpenAppliedTheme ( _
    web As SPWeb _
) As SPTheme
'Usage
Dim web As SPWeb
Dim returnValue As SPTheme

returnValue = SPTheme.OpenAppliedTheme(web)
public static SPTheme OpenAppliedTheme(
    SPWeb web
)

Parameters

Return value

Type: Microsoft.SharePoint.Utilities.SPTheme
An SPTheme object for the theme applied to the specified SPWeb or null if no theme is applied or if a theme is applied but corrupted.

Exceptions

Exception Condition
ArgumentNullException

web is null.

See also

Reference

SPTheme class

SPTheme members

Microsoft.SharePoint.Utilities namespace