ContentIDBuilder
用于创建ContentId对象的构建器。
构造函数
new ContentIdBuilder()
new ContentIdBuilder(): ContentIdBuilder
返回值
方法
build()
build():
ContentId
使用在构建器上设置的字段构建ContentId对象。
返回值
ContentId
ContentId 创建的ContentId对象。
id()
id(id:
string): ContentIdBuilder
设置要在关联的命名空间下解析的ID。此项是必填字段。
参数
id
string
可在关联的命名空间下解析的ID。
返回值
ContentIdBuilder 当前的ContentIdBuilder对象。
idNamespace()
idNamespace(idNamespace:
string): ContentIdBuilder
设置应在其下解析ID的命名空间。有关可接受的值,请参阅ContentIdNamespaces。此项是必填字段。
参数
idNamespace
string
用于在其下解析ID的命名空间。
返回值
ContentIdBuilder 当前的ContentIdBuilder对象。
Last updated: 2026年8月2日

