Get-SPWOPIBinding

傳回在目前執行此 Cmdlet 之 SharePoint 伺服器陣列上使用 New-SPWOPIBinding 建立的繫結清單。

Syntax

Get-SPWOPIBinding
   [-Action <String>]
   [-Application <String>]
   [-AssignmentCollection <SPAssignmentCollection>]
   [-Extension <String>]
   [-ProgId <String>]
   [-Server <String>]
   [-WOPIZone <String>]
   [<CommonParameters>]

Description

此Get-SPWOPIBinding會傳回在執行此 Cmdlet 的目前 SharePoint 伺服器陣列上使用 New-SPWOPIBinding 所建立的系結清單。 結果包括針對 WOPI 應用程式設定的動作、應用程式、檔案類型和區域 (例如執行 Office Web Apps Server) 的伺服器。

如需適用於 SharePoint 產品的 Windows PowerShell 權限及最新資訊,請參閱線上文件 SharePoint Server Cmdlet

範例

--------------範例 1-----------------

Get-SPWOPIBinding -Server "Server.corp.Contoso.com"

此範例會傳回在目前 SharePoint 伺服器陣列上建立的系結清單,其中此 Cmdlet 是針對 WOPI 應用程式 「Server.corp.Contoso.com」 執行。WOPI 應用程式可能是執行 Office Web Apps Server 的伺服器。

--------------範例 2-----------------

Get-SPWOPIZone | Get-SPWOPIBinding

此範例會傳回繫結清單,而這些繫結的建立對象,是此 Cmdlet 針對 WOPI 應用程式的設定區域執行所在的 SharePoint 伺服器陣列。

參數

-Action

指定要傳回繫結的動作。

Type:String
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Server 2013, SharePoint Server 2016, SharePoint Server 2019

-Application

指定要傳回繫結的應用程式。

Type:String
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Server 2013, SharePoint Server 2016, SharePoint Server 2019

-AssignmentCollection

管理物件以適當處置它們。 使用 SPWeb 或 SPSite 等物件可能會耗用大量的記憶體,因此在 Windows PowerShell 指令碼中使用這些物件時,必須適當地管理記憶體。 您可以使用 SPAssignment 物件將物件指派給變數,並在不需要時處置這些物件,以釋放記憶體。 使用 SPWeb、SPSite 或 SPSiteAdministration 物件時,若未使用指派集合或 Global 參數,將會自動處置這些物件。

使用 Global 參數時,所有物件會包含在全域儲存區內。 若未立即使用物件,或未使用 Stop-SPAssignment 命令處置物件,將會發生記憶體不足的狀況。

Type:SPAssignmentCollection
Position:Named
Default value:None
Required:False
Accept pipeline input:True
Accept wildcard characters:False
Applies to:SharePoint Server 2013, SharePoint Server 2016, SharePoint Server 2019

-Extension

指定要傳回繫結的副檔名。

Type:String
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Server 2013, SharePoint Server 2016, SharePoint Server 2019

-ProgId

指定要傳回繫結之應用程式的程式設計識別碼 (ProgID)。

Type:String
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Server 2013, SharePoint Server 2016, SharePoint Server 2019

-Server

指定要傳回繫結之 WOPI 應用程式 (例如執行 Office Web Apps Server 的伺服器) 的名稱。

Type:String
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Server 2013, SharePoint Server 2016, SharePoint Server 2019

-WOPIZone

指定要傳回繫結的區域。

Type:String
Position:Named
Default value:None
Required:False
Accept pipeline input:True
Accept wildcard characters:False
Applies to:SharePoint Server 2013, SharePoint Server 2016, SharePoint Server 2019