SiteImageRenditions.GetRenditions method
Gets the image renditions for the specified SPSite object.
Namespace: Microsoft.SharePoint.Publishing
Assembly: Microsoft.SharePoint.Publishing (in Microsoft.SharePoint.Publishing.dll)
Syntax
'Declaration
Public Shared Function GetRenditions ( _
site As SPSite _
) As ImageRenditionCollection
'Usage
Dim site As SPSite
Dim returnValue As ImageRenditionCollection
returnValue = SiteImageRenditions.GetRenditions(site)
public static ImageRenditionCollection GetRenditions(
SPSite site
)
Parameters
site
Type: Microsoft.SharePoint.SPSiteA SPSiteCollection object from which to obtain image renditions.
Return value
Type: Microsoft.SharePoint.Publishing.ImageRenditionCollection
A collection that contains the image renditions of a site collection.
Remarks
Use this method to read the collection of image renditions of a site collection. This collection can be used to add/update/modify the renditions.