次の方法で共有


SP へPublishing.PageLayoutCreationInformation.associatedContentTypeId プロパティ (sp.publishing)

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

var value = SP.Publishing.PageLayoutCreationInformation.get_associatedContentTypeId()
          
SP.Publishing.PageLayoutCreationInformation.set_associatedContentTypeId(value)