New-SPOContainerType

此 cmdlet 创建标准或试用状态的新容器类型。 可以使用常规计费结构创建标准容器类型,也可以直接创建到客户计费结构。

语法

Default (默认值)

New-SPOContainerType
    [-ContainerTypeName] <String>
    -OwningApplicationId <Guid>
    [-ApplicationRedirectUrl <String>]
    [-TrialContainerType]
    [-IsPassThroughBilling]
    [-IsGovernableByAdmin <Boolean>]
    [-WhatIf]
    [-Confirm]
    [<CommonParameters>]

说明

此 cmdlet 创建新的标准容器类型或试用版容器类型。 根据定义,标准容器类型具有与之关联的计费配置文件,可以按常规计费或直接向使用者计费。 试用容器类型没有计费配置文件。 对于常规计费,创建后的下一步是使用 Add-SPOContainerTypeBilling cmdlet 添加计费配置文件。 使用 , -IsPassThroughBilling可以创建直接到客户计费的容器类型。 在这种情况下,无需附加计费配置文件。 –TrialContainerType 使用 时创建有效期为 30 天的试用容器类型。

您必须是 SharePoint Embedded 管理员才能运行此 cmdlet。

示例

示例 1

New-SPOContainerType -ContainerTypeName ContosoLegal -OwningApplicationId 2ce03211-353e-45d7-b487-8ac6981332cf

在示例 1 中,cmdlet 创建一个新的常规计费容器类型 ContosoLegal。

示例 2

New-SPOContainerType –IsPassThroughBilling –ContainerTypeName ContosoLegal -OwningApplicationId 2ce03211-353e-45d7-b487-8ac6981332ed

在示例 2 中,cmdlet 创建一个直接到客户计费的容器类型 ContosoLegal。

示例 3

New-SPOContainerType –TrialContainerType -ContainerTypeName ContosoLegal -OwningApplicationId 2ce03211-353e-45d7-b487-8ac6981332fl

在示例 3 中,cmdlet 创建一个试用容器类型 ContosoLegal,有效期为 30 天。

示例 4

New-SPOContainerType -ContainerTypeName ContosoLegal -OwningApplicationId 2ce03211-353e-45d7-b487-8ac6981332cf -GovernableByAdmin $false

在示例 4 中,cmdlet 创建了一个标准容器类型 ContosoLegal,该容器类型已通过已启用 Microsoft 的管理员平台选择退出管理。

参数

-ApplicationRedirectUrl

适用:SharePoint Online

此参数指定应用程序应重定向到的 URL。

参数属性

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

参数集

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

-Confirm

提示你在运行 cmdlet 之前进行确认。

参数属性

类型:System.Management.Automation.SwitchParameter
默认值:None
支持通配符:False
不显示:False
别名:cf

参数集

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

-ContainerTypeName

适用:SharePoint Online

此参数为 SharePoint Embedded 应用程序的容器类型命名。

参数属性

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

参数集

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

-IsGovernableByAdmin

适用:SharePoint Online

使用 -GovernableByAdmin,你可以决定是否应通过 SharePoint 管理中心和 PowerShell 在启用 Microsoft 的管理员支持上为应用程序的租户管理员提供管理功能。 如果未传递,该值将设置为 True。 如果设置为 False,则使用租户管理员只能在 SharePoint 管理中心和 PowerShell 中对容器类型的容器执行只读作。

参数属性

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

参数集

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

-IsPassThroughBilling

适用:SharePoint Online

此参数用于创建直接到客户计费的容器类型。

参数属性

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

参数集

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

-OwningApplicationId

适用:SharePoint Online

此参数指定 SharePoint Embedded 应用程序的 ID。

参数属性

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

参数集

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

-TrialContainerType

适用:SharePoint Online

此参数用于指定 cmdlet 用于创建试用容器类型,因此无需提供计费配置文件。

参数属性

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

参数集

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

-WhatIf

显示在 cmdlet 运行时发生的情况。 此 cmdlet 未运行。

参数属性

类型:System.Management.Automation.SwitchParameter
默认值:None
支持通配符:False
不显示:False
别名:无线

参数集

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

CommonParameters

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