SP へUserCustomAction.scriptBlock プロパティ (sp.js)
ロールの割り当てがこのセキュリティ設定可能なオブジェクトで一意に定義されるか、それともセキュリティ設定可能な親オブジェクトから継承されるかを指定する値を取得します。
**適用対象:**apps for SharePoint | SharePoint Foundation 2013 | SharePoint Server 2013
var value = SP.UserCustomAction.get_scriptBlock ()
var value = SP.UserCustomAction.set_scriptBlock ()
戻り値
[Type]: String
注釈
場所が"ScriptLink"である場合nullである必要があります。この標準 ECMAScript スクリプト言語を定義します。
他のリソースのエンドポイント
詳細については、 UserCustomAction リソースを参照してください。
エンドポイント URI 構造
http://<sitecollection>/<site>/_api/web/UserCustomActions(usercustomactionid)/scriptBlock
HTTP 要求
このリソースには、次の HTTP コマンドがサポートしています。
- 投稿
投稿の書式
POST http://<sitecollection>/<site>/_api/web/UserCustomActions(usercustomactionid)/scriptBlock
書式を取得します。
GET http://<sitecollection>/<site>/_api/web/UserCustomActions(usercustomactionid)/scriptBlock