Set-SPOOrgNewsSite

将网站标记为多个可能租户的组织新闻网站之一。 至少需要 SharePoint 管理员权限。

语法

Default (默认值)

Set-SPOOrgNewsSite
    -OrgNewsSiteUrl <String>
    [<CommonParameters>]

说明

使用此 cmdlet 将网站标记为组织权威新闻网站。 此类网站在 SharePoint 用户界面中得到主要处理。

如果不存在具有指定 URL 的网站,此 cmdlet 将返回“找不到文件”错误。

示例

示例 1

Set-SPOOrgNewsSite -OrgNewsSiteUrl https://contoso.sharepoint.com/sites/Marketing

此示例将 标记为 https://contoso.sharepoint.com/sites/Marketing 组织新闻网站。

参数

-OrgNewsSiteUrl

适用:SharePoint Online

要标记为组织新闻网站的网站的 URL。

参数属性

类型:System.String
默认值:None
支持通配符:False
不显示:False

参数集

(All)
Position:Named
必需:True
来自管道的值:False
来自管道的值(按属性名称):False
来自剩余参数的值:False

CommonParameters

此 cmdlet 支持通用参数:-Debug、-ErrorAction、-ErrorVariable、-InformationAction、-InformationVariable、-OutBuffer、-OutVariable、-PipelineVariable、-ProgressAction、-Verbose、-WarningAction 和 -WarningVariable。 有关详细信息,请参阅 about_CommonParameters

输入

None

输出

System.Object