共用方式為


Get-MasterDataServicesSystemSettings (PowerShell)

從指定的 Master Data Services 資料庫中取得系統設定。

語法

Get-MasterDataServicesSystemSettings [-Database] <Microsoft.MasterDataServices.Configuration.DatabaseInformation>

說明

Get-MasterDataServicesSystemSettings 會傳回物件集合,其中包含指定之 Master Data Services 資料庫的系統設定。這個指令程式會從 Master Data Services 資料庫中的 mdm.tblSystemSetting 傳回系統設定子集。

參數

-Database

Database 參數是來自 Get-MasterDataServicesDatabase 的資料庫資訊物件。這個物件包含用來連接 SQL Server 執行個體和指定之 Master Data Services 資料庫的資訊。

必要項?

true

位置?

0

預設值

接受管線輸入

true (ByValue)

接受萬用字元?

false

輸入和輸出

輸入類型是可透過管道傳送至指令程式的物件類型。傳回類型是指令程式所傳回的物件類型。

輸入

Microsoft.MasterDataServices.Configuration.DatabaseInformation

輸入是來自 Get-MasterDataServicesDatabase 的資料庫資訊物件。

輸出

System.Collections.ObjectModel.Collection{Microsoft.MasterDataServices.Services.DataContracts.SystemSetting}

Get-MasterDataServicesSystemSettings 會從指定的 Master Data Services 資料庫傳回系統設定物件的集合。

範例

輸出

下列是使用這個指令程式時傳回的輸出範例。

Identifier       : Microsoft.MasterDataServices.Services.DataContracts.Identifier
Permission       : NotSpecified
AuditInfo        : Microsoft.MasterDataServices.Services.DataContracts.AuditInfo
DisplayName      : Server Timeout
Description      : Number of seconds the MDM server will process an action
SettingType      : FreeForm
DataType         : Number
SettingValue     : 120000
SystemDomainList : Microsoft.MasterDataServices.Services.DataContracts.SystemDomainList
MinValue         : 900
MaxValue         : 240000
IsVisible        : True
DisplaySequence  : 2

Identifier       : Microsoft.MasterDataServices.Services.DataContracts.Identifier
Permission       : NotSpecified
AuditInfo        : Microsoft.MasterDataServices.Services.DataContracts.AuditInfo
DisplayName      : Notification Interval
Description      : Frequency that e-mail notifications are issued (seconds)
SettingType      : FreeForm
DataType         : Number
SettingValue     : 120
SystemDomainList : Microsoft.MasterDataServices.Services.DataContracts.SystemDomainList
MinValue         : 120
MaxValue         : 240000
IsVisible        : True
DisplaySequence  : 8

...

透過管道傳送輸出以及使用位置參數

這個範例會從指定的 Master Data Services 資料庫中的 mdm.tblSystemSetting 傳回系統設定子集。 針對 Get-MasterDataServicesSystemSettings 中的 Database 參數,這個範例透過管道將輸出從 Get-MasterDataServicesDatabase 傳送到 Get-MasterDataServicesSystemSettings。範例示範 -Database 參數做為位置參數的用法。

C:\PS> Get-MasterDataServicesDatabase -Server "Data Source=MyServer\MyInstance;Integrated Security=True" -DatabaseName "MyDatabase" | Get-MasterDataServicesSystemSettings