SPPictureLibrary class
SharePoint 2013
Represents a document library that contains pictures.
System.Object
Microsoft.SharePoint.SPSecurableObject
Microsoft.SharePoint.SPList
Microsoft.SharePoint.SPDocumentLibrary
Microsoft.SharePoint.SPPictureLibrary
Microsoft.SharePoint.SPSecurableObject
Microsoft.SharePoint.SPList
Microsoft.SharePoint.SPDocumentLibrary
Microsoft.SharePoint.SPPictureLibrary
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
The following code example displays property settings for the size of images used in a picture library on the specified site.
using(SPWeb oWebsite = SPContext.Current.Site.AllWebs["Website_Name"]) { SPPictureLibrary oPictureLibrary = (SPPictureLibrary)oWebsite.Lists["List_Title"]; Response.Write(oPictureLibrary.ThumbnailSize.ToString() + " :: " + oPictureLibrary.WebImageHeight.ToString() + " :: " + oPictureLibrary.WebImageWidth.ToString()); }
Note |
|---|
Certain objects implement the IDisposable interface, and you must avoid retaining these objects in memory after they are no longer needed. For information about good coding practices, see Disposing Objects. |
Caution
Note