共用方式為


Export-SPBusinessDataCatalogModel

 

適用版本: SharePoint Foundation 2010, SharePoint Server 2010

上次修改主題的時間: 2015-03-09

匯出 Business Data Connectivity 模型。

Syntax

Export-SPBusinessDataCatalogModel -Identity <MetadataObject> -Path <String> [-AssignmentCollection <SPAssignmentCollection>] [-Force <SwitchParameter>] [-LocalizedNamesIncluded <SwitchParameter>] [-ModelsIncluded <SwitchParameter>] [-PermissionsIncluded <SwitchParameter>] [-PropertiesIncluded <SwitchParameter>] [-ProxiesIncluded <SwitchParameter>] [-SettingId <String>]

詳細描述

Export-SPBusinessDataCatalogModel Cmdlet 會匯出 Business Data Connectivity 模型。Business Data Connectivity 模型有兩類:Model 類型 (.bdcm) 與 Resource 類型 (.bdcr)。Model 類型包含基礎 XML 中繼資料,而且也可能包含資源屬性。Resource 類型只包含資源屬性。

Parameters

參數 必要 類型 描述

Identity

必要

Microsoft.SharePoint.BusinessData.Administration.MetadataObject

指定 Business Data Connectivity 中繼資料儲存區中繼資料物件,從其中匯出 Business Data Connectivity 模型。

Path

必要

System.String

指定建立匯出檔案要使用的路徑與名稱。

此類型必須是下列其中一種格式的有效路徑:

- C:\folder_name \file.bdcm

- \\server_name\folder_name \file.bdcm

- …\folder_name\file.bdcm

AssignmentCollection

選用

Microsoft.SharePoint.PowerShell.SPAssignmentCollection

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

注意

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

Force

選用

System.Management.Automation.SwitchParameter

若檔案已存在,則覆寫輸出檔。

LocalizedNamesIncluded

選用

System.Management.Automation.SwitchParameter

指定匯出多語系的商務資料欄位名稱。

ModelsIncluded

選用

System.Management.Automation.SwitchParameter

指定模型包含在匯出的 Business Data Connectivity 模型檔案中。模型包含系統的基礎 XML 中繼資料。

PermissionsIncluded

選用

System.Management.Automation.SwitchParameter

指定匯出 Business Data Connectivity 模型中的權限。

PropertiesIncluded

選用

System.Management.Automation.SwitchParameter

指定匯出應用程式定義中的屬性。

ProxiesIncluded

選用

System.Management.Automation.SwitchParameter

指定匯出 Business Data Connectivity Service 應用程式的 Proxy。

SettingId

選用

System.String

指定要匯出的自訂環境設定模型圖塊。

此類型必須是可識別模型圖塊的有效字串,例如 ModelSlice1。

輸入類型

傳回類型

Example

------------------範例------------------

$Model = Get-SPBusinessDataCatalogMetadataObject -BdcObjectType "Model" -Name "ContosoModel" -ServiceConext http://contoso

Export-SPBusinessDataCatalogModel -Identity $Model -Path "C:\folder\model.bdcm"

此範例會從 Business Data Connectivity 中繼資料儲存區取得 Business Data Connectivity 模型,然後以 model 名稱匯出到指定的位置,而且使用 bdcm 副檔名。

See Also

Reference

Import-SPBusinessDataCatalogModel
Remove-SPBusinessDataCatalogModel