分享方式:


Cmdlet 管道處理

管道處理功能可讓您將數個 Cmdlet 串聯在一起。某個 Cmdlet 傳回的物件可做為另一個 Cmdlet 的輸入。Cmdlet 的組合是以單一命令實作,並以管道字元連結兩個連續的 Cmdlet。管道字元左邊之 Cmdlet 傳回的物件,是管道字元右邊之 Cmdlet 的輸入。同樣地,該 Cmdlet 可透過管道字元與另一個 Cmdlet 結合,且以第二個 Cmdlet 輸出的物件做為第三個 Cmdlet 的輸入。此種管道中的命令會依照它們顯示的順序從左至右進行處理;但是,處理的方式如同單一操作,且輸出產生時就會顯示為輸出。

管道處理組合

Microsoft AppFabric 1.1 for Windows Server Cmdlet 需與其他 Cmdlet 搭配使用。並非所有的 Cmdlet 都可使用於管道處理順序中。管道字元左邊之 Cmdlet 的輸出,必須符合管道字元右邊之 Cmdlet 的輸入。有兩種體現方式:其一,第一個 Cmdlet 可以輸出與第二個 Cmdlet 所需輸入物件類型相同的物件。其二,第一個 Cmdlet 的輸出物件屬性可做為第二個 Cmdlet 的參數。第一個條件是預設值,Windows PowerShell 引擎會於命令執行時進行檢查。如果第一個條件未發生,Windows PowerShell 引擎會查看第二個條件。

下列 AppFabric 參數可連結於管道處理順序中:

Cmdlet 產生者 輸出資料類型 Cmdlet 消費者

Get-ASApplication

ApplicationInfo

ServiceInfo 通用:

Get-ASInstanceUnloadPolicy

Set-ASInstanceUnloadPolicy

Get-ASAppServicePersistence

Set-ASAppServicePersistence

Get-ASInstanceExceptionPolicy

Get-ASAppServiceTracking Profile

Get-ASAppServiceTracking

Import-ASAppServiceTrackingProfile

Remove-ASAppServiceTracking Profile

Get-ASAppServiceCertificate

Set-ASAppServiceCertificate

Get-ASAppServiceThrottling

Set-ASAppServiceThrottling

僅 ApplicationInfo:

Enable-ASAppDebugTracing

Disable-ASAppDebugTracing

Get-ASAppDebugTracing

Set-ASAppDebugTracing

Get-ASApplication

Enable-ASAppMessageLogging

Disable-ASAppMessageLogging

Get-ASAppMessageLogging

Set-ASAppMessageLogging

Get-ASAppPerformanceCounter

Set-ASAppPerformanceCounter

Get-ASAppService

Get-ASAppService

ServiceInfo

應用程式資訊通用:

Get-ASInstanceUnloadPolicy

Set-ASInstanceUnloadPolicy

Get-ASAppServicePersistence

Set-ASAppServicePersistence

Get-ASInstanceExceptionPolicy

Get-ASAppServiceTrackingProfile

Import-ASAppServiceTrackingProfile

Remove-ASAppServiceTrackingProfile

Get-ASAppServiceCertificate

Set-ASAppServiceCertificate

Get-ASAppServiceThrottling

Set-ASAppServiceThrottling

僅 ServiceInfo:

Enable-ASAppServiceAutoStart

Disable-ASAppServiceAutoStart

Get-ASAppServiceAutoStart

Get-ASAppServiceTracking

Get-ASAppServiceEndpoint

Set-ASAppServiceEndpoint

Get-ASAppServiceEndpointAuthentication

Get-ASAppServiceEndpointTransportQuota

Set-ASAppServiceEndpointTransportQuota

Get-ASAppServiceInstance

Get-ASAppDebugTracing

DebugTracingInfo

-

Get-ASInstanceExceptionPolicy

InstanceSuspendOn UnhandledExceptionInfo

-

Get-ASInstanceUnloadPolicy

InstanceUnloadInfo

-

Get-ASAppMessageLogging

ApplicationMessageLoggingInfo

-

Get-ASAppMonitoring

-

Get-ASMonitoringDatabaseArchiveConfiguration

DatabaseInfo

-

Get-ASAppPerformanceCounter

PerformanceCounterInfo

-

Get-ASAppServiceAutoStart

ServiceAutoStartInfo

-

Get-ASAppServiceCertificate

ServiceCertificateInfo

-

Get-ASAppServiceEndpoint

ServiceEndpointInfo

Get-ASAppServiceEndpointAuthentication

Get-ASAppServiceEndpointTransportQuota

Set-ASAppServiceEndpointAuthentication

Set-ASAppServiceEndpointTransportQuota

Get-ASAppServiceCertificateEndpointAuthentication

ServiceEndpointAuthenticationInfo

-

Get-ASAppServiceCertificateEndpointTransportQuota

ServiceEndpointTransportQuotaInfo

-

Get-ASAppServiceInstance

ServiceInstanceInfo

Stop-ASAppServiceInstance

Suspend-ASAppServiceInstance

Resume-ASAppServiceInstance

Get-ASAppServicePersistence

ServicePersistenceInfo

-

Get-ASAppServiceThrottling

ServiceThrottlingInfo

-

Get-ASAppServiceTrackingProfile

TrackingProfileInfo

-

  2012-03-05