笔记本资源类型notebook resource type

OneNote 笔记本。A OneNote notebook.

JSON 表示形式JSON representation

下面是资源的 JSON 表示形式。Here is a JSON representation of the resource

{
  "createdBy": {"@odata.type": "microsoft.graph.identitySet"},
  "createdDateTime": "String (timestamp)",
  "id": "string (identifier)",
  "isDefault": true,
  "isShared": true,
  "lastModifiedBy": {"@odata.type": "microsoft.graph.identitySet"},
  "lastModifiedDateTime": "String (timestamp)",
  "links": {"@odata.type": "microsoft.graph.notebookLinks"},
  "displayName": "string",
  "sectionGroupsUrl": "string",
  "sectionsUrl": "string",
  "self": "string",
  "userRole": "String"
}

属性Properties

属性Property 类型Type 说明Description
createdBycreatedBy identitySetidentitySet 识别创建项目的用户、设备和应用程序。只读。Identity of the user, device, and application which created the item. Read-only.
createdDateTimecreatedDateTime DateTimeOffsetDateTimeOffset 笔记本的创建日期和时间。The date and time when the notebook was created. 时间戳表示使用 ISO 8601 格式的日期和时间信息,并且始终处于 UTC 时间。The timestamp represents date and time information using ISO 8601 format and is always in UTC time. 例如,2014 年 1 月 1 日午夜 UTC 如下所示:'2014-01-01T00:00:00Z'For example, midnight UTC on Jan 1, 2014 would look like this: '2014-01-01T00:00:00Z'. 只读。Read-only.
idid StringString 笔记本的唯一标识符。The unique identifier of the notebook. 只读。Read-only.
isDefaultisDefault BooleanBoolean 指示这是否是用户的默认笔记本。Indicates whether this is the user's default notebook. 只读。Read-only.
isSharedisShared BooleanBoolean 指明笔记本是否为共享。Indicates whether the notebook is shared. 如果是,笔记本的内容可供所有者以外的用户查看。If true, the contents of the notebook can be seen by people other than the owner. 只读。Read-only.
lastModifiedBylastModifiedBy identitySetidentitySet 识别创建项目的用户、设备和应用程序。只读。Identity of the user, device, and application which created the item. Read-only.
lastModifiedDateTimelastModifiedDateTime DateTimeOffsetDateTimeOffset 上次修改笔记本的日期和时间。The date and time when the notebook was last modified. 时间戳表示使用 ISO 8601 格式的日期和时间信息,并且始终处于 UTC 时间。The timestamp represents date and time information using ISO 8601 format and is always in UTC time. 例如,2014 年 1 月 1 日午夜 UTC 如下所示:'2014-01-01T00:00:00Z'For example, midnight UTC on Jan 1, 2014 would look like this: '2014-01-01T00:00:00Z'. 只读。Read-only.
linkslinks NotebookLinksNotebookLinks 用于打开笔记本的链接。Links for opening the notebook. 如果oneNoteClientURL安装了 OneNote 本机客户端, 则链接将在其中打开笔记本。The oneNoteClientURL link opens the notebook in the OneNote native client if it's installed. oneNoteWebURL链接将在 web 上的 OneNote 中打开笔记本。The oneNoteWebURL link opens the notebook in OneNote on the web.
displayNamedisplayName 字符串String 笔记本的名称。The name of the notebook.
sectionGroupsUrlsectionGroupsUrl StringString sectionGroups导航属性的 URL, 该 URL 将返回笔记本中的所有分区组。The URL for the sectionGroups navigation property, which returns all the section groups in the notebook. 只读。Read-only.
sectionsUrlsectionsUrl StringString sections导航属性的 URL, 该 URL 将返回笔记本中的所有分区。The URL for the sections navigation property, which returns all the sections in the notebook. 只读。Read-only.
自学self StringString 终结点,您可在此处获取关于笔记本的详细信息。The endpoint where you can get details about the notebook. 只读。Read-only.
userRoleuserRole onenoteUserRoleonenoteUserRole 可取值为:OwnerContributorReaderNonePossible values are: Owner, Contributor, Reader, None. Owner 表示对笔记本的所有者级别访问。Owner represents owner-level access to the notebook. 参与者表示对笔记本的读/写访问权限。Contributor represents read/write access to the notebook. 读取器表示对笔记本的只读访问。Reader represents read-only access to the notebook. 只读。Read-only.

关系Relationships

关系Relationship 类型Type 说明Description
sectionGroupssectionGroups SectionGroup 集合SectionGroup collection 笔记本中的分区组。The section groups in the notebook. 此为只读属性。Read-only. 可为 NULL。Nullable.
sectionssections OnenoteSection 集合OnenoteSection collection 笔记本中的分区。The sections in the notebook. 此为只读属性。Read-only. 可为 Null。Nullable.

方法Methods

方法Method 返回类型Return Type 说明Description
获取笔记本Get notebook 笔记本Notebook 读取笔记本的属性和关系。Read the properties and relationships of the notebook.
getRecentNotebooksgetRecentNotebooks recentNotebook集合recentNotebook collection 获取用户最近访问过的一组笔记本。Get a collection of the most recently accessed notebooks for the user.
getNotebookFromWebUrlgetNotebookFromWebUrl 笔记本Notebook 使用 URL 路径检索笔记本对象的属性和关系。Retrieve the properties and relationships of a notebook object using its URL path.
创建分区组Create section group SectionGroupSectionGroup 通过发布到指定笔记本中的 sectionGroups 集合创建分区组。Create a section group by posting to the sectionGroups collection in the specified notebook.
列出分区组List section groups SectionGroup 集合SectionGroup collection 获取指定笔记本中的分区组的集合。Get a collection of section groups in the specified notebook.
创建分区Create section OnenoteSectionOnenoteSection 通过发布到指定笔记本中的 section 集合来创建一个分区。Create a section by posting to the sections collection in the specified notebook.
列出节List sections OnenoteSection 集合OnenoteSection collection 获取指定笔记本中的分区集合。Get a collection of sections in the specified notebook.
copyNotebookcopyNotebook None 复制笔记本。Copies a notebook.