Condividi tramite


SPListCollection.EnsureSiteAssetsLibrary Method

A list that is designated as a default asset location for images or other files which the users upload to their wiki pages.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online

Syntax

'Declaration
<ClientCallableMethodAttribute(Name := "EnsureSiteAssetsLibrary", ReturnObjectIdentity := True)> _
Public Function EnsureSiteAssetsLibrary As SPList
'Usage
Dim instance As SPListCollection
Dim returnValue As SPList

returnValue = instance.EnsureSiteAssetsLibrary()
[ClientCallableMethodAttribute(Name = "EnsureSiteAssetsLibrary", ReturnObjectIdentity = true)]
public SPList EnsureSiteAssetsLibrary()

Return Value

Type: Microsoft.SharePoint.SPList
A SPList object designated as a default location for wiki page assets.

Remarks

If this list does not exist one is created and returned. If multiple such lists exist only one is returned.

See Also

Reference

SPListCollection Class

SPListCollection Members

Microsoft.SharePoint Namespace