コマンドレット パイプ

パイプを使用すると、コマンドレットを連結できます。1 つのコマンドレットで返されたオブジェクトは別のコマンドレットの入力として使用されます。コマンドレットの組み合わせは 1 つのコマンドに実装され、2 つの連続するコマンドレットはパイプ文字でリンクされます。パイプ文字の左側にあるコマンドレットで返されたオブジェクトは文字の右側にあるコマンドレットの入力になります。同様に、そのコマンドレットはパイプ文字で別のコマンドレットと組み合わせることができ、2 番目のコマンドレットで出力されたオブジェクトは 3 番目のコマンドレットへの入力として使用されます。そのようなパイプラインのコマンドは表示順に左から右に処理されます。ただし、処理は 1 つの操作として扱われ、出力は生成されるに従い表示されます。

パイプの組み合わせ

Windows Server AppFabric のコマンドレットは他のコマンドレットと組み合わせて使用するように設計されています。すべてのコマンドレットがパイプ シーケンスで使用できるわけではありません。パイプ文字の左側にあるコマンドレットの出力はパイプ文字の右側にあるコマンドレットの入力と一致する必要があります。これには、次の 2 とおりの方法があります。第 1 に、最初のコマンドレットが 2 番目のコマンドレットに必要な入力オブジェクトと同じ型のオブジェクトを出力できる場合があります。第 2 に、最初のコマンドレットの出力オブジェクトの属性が 2 番目のコマンドレットのパラメーターとして使用できる場合があります。第 1 の条件が既定であり、Windows PowerShell エンジンでは、コマンドが実行されると、この条件を確認します。第 1 の条件がない場合、Windows PowerShell エンジンでは第 2 の条件を探します。

次の AppFabric パラメーターはパイプ シーケンスでリンクできます。

コマンドレット プロデューサー 出力データ型 コマンドレット コンシューマー

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

Application Info と共通:

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

-

  2011-12-05