次の方法で共有


SP へFolder.parentFolder プロパティ (sp.js)

Gets the parent list folder of the folder.

**適用対象:**apps for SharePoint | SharePoint Foundation 2013 | SharePoint Server 2013

var value = SP.Folder.get_parentFolder ()

戻り値

Type: SP.Folder

Remarks

If the folder is the root folder, then the ParentFolder property returns that folder.

REST resource endpoint

See Folder resource for more information.

Endpoint URI structure

http://<sitecollection>/<site>/_api/web/folders/getbyurl(folderrelativeurl)/parentFolder

HTTP requests

This resource supports the following HTTP commands:

  • POST

POST syntax

POST http://<sitecollection>/<site>/_api/web/folders/getbyurl(folderrelativeurl)/parentFolder

GET syntax

GET http://<sitecollection>/<site>/_api/web/folders/getbyurl(folderrelativeurl)/parentFolder