Get-SPBusinessDataCatalogMetadataObject

返回业务数据连接元数据存储元数据对象。

语法

Get-SPBusinessDataCatalogMetadataObject
   -BdcObjectType <PSBdcObjectType>
   -ServiceContext <SPServiceContextPipeBind>
   [-AssignmentCollection <SPAssignmentCollection>]
   [-Name <String>]
   [-Namespace <String>]
   [-ContainingLobSystem <String>]
   [<CommonParameters>]

说明

Get-SPBusinessDataCatalogMetadataObject cmdlet 从 Business Data Connectivity Service 应用程序中读取 Business Data Connectivity Metadata Store 元数据对象。

此 cmdlet 的输出可以是一系列对象。

有关适用于 SharePoint 产品的 Windows PowerShell 的权限和最新信息,请参阅 https://go.microsoft.com/fwlink/p/?LinkId=251831 上的联机文档。

示例

------------------示例------------------

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

本示例从给定站点上的业务数据连接元数据存储中获取名为 ContosoModel 的 Model 类型的元数据对象。

参数

-BdcObjectType

指定要返回的元数据对象的类型。

该类型必须是以下有效的元数据对象类型之一:Catalog、Model、LobSystem、LobSystemInstance 或 Entity。

Type:PSBdcObjectType
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Server Subscription Edition

-ContainingLobSystem

指定 LobSystem 的名称。

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Server Subscription Edition

-Namespace

指定元数据对象的命名空间。

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Server Subscription Edition

-ServiceContext

指定要返回的业务数据连接元数据存储元数据对象的服务上下文。

Type:SPServiceContextPipeBind
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Server Subscription Edition

-名称

指定元数据对象的名称。

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Server Subscription Edition

-工作分配

Manages objects for the purpose of proper disposal. Use of objects, such as SPWeb or SPSite, can use large amounts of memory and use of these objects in Windows PowerShell scripts requires proper memory management. Using the SPAssignment object, you can assign objects to a variable and dispose of the objects after they are needed to free up memory. When SPWeb, SPSite, or SPSiteAdministration objects are used, the objects are automatically disposed of if an assignment collection or the Global parameter is not used.

When the Global parameter is used, all objects are contained in the global store. If objects are not immediately used, or disposed of by using the Stop-SPAssignment command, an out-of-memory scenario can occur.

Type:SPAssignmentCollection
Position:Named
Default value:None
Accept pipeline input:True
Accept wildcard characters:False
Applies to:SharePoint Server Subscription Edition