次の方法で共有


ThmxTheme.Open method (SPSite, String)

Opens the theme package associated with the specified SharePoint Web site and server-relative URL.

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

Syntax

'Declaration
Public Shared Function Open ( _
    site As SPSite, _
    url As String _
) As ThmxTheme
'Usage
Dim site As SPSite
Dim url As String
Dim returnValue As ThmxTheme

returnValue = ThmxTheme.Open(site, url)
public static ThmxTheme Open(
    SPSite site,
    string url
)

Parameters

  • url
    Type: System.String

    A string providing the server-relative URL.

Return value

Type: Microsoft.SharePoint.Utilities.ThmxTheme
A ThmxTheme object that represents the opened theme.

Exceptions

Exception Condition
ArgumentNullException

url is null .

Remarks

This method calls the Open(SPFile) method with site.OpenWeb(url, false). GetFile(url).

See also

Reference

ThmxTheme class

ThmxTheme members

Open overload

Microsoft.SharePoint.Utilities namespace