MSBTS_ReceiveLocation.PipelineName 屬性 (WMI)

 

包含會在提交文件至 MessageBox 資料庫前處理該文件之管線的名稱。

所顯示的語法為非語言相關。

語法

  
string PipelineName;  

備註

這是一個讀寫屬性。

在建立執行個體時,需要這個屬性。

此屬性的最大長度為 256 個字元。

範例

下列範例取自 SDK\Samples\Admin\WMI\Enumerate Receive Locations\VBScript\EnumRecLocs.vbs 檔案。

  
Sub EnumRecLocs()  
  
   'error handling is done by explicity checking the err object rather than using  
   'the VB ON ERROR construct, so set to resume next on error.  
   on error resume next  
  
   Dim InstSet, Inst  
   set InstSet = GetObject ("winmgmts:\root\MicrosoftBizTalkServer").InstancesOf("MSBTS_ReceiveLocation")  
  
   'Check for error condition before continuing.  
   If Err <> 0   Then  
      PrintWMIErrorThenExit Err.Description, Err.Number  
   End If  
  
   'Report on number of receive locations found and list each one.  
   wscript.echo "A Total of " & InstSet.Count & " Receive Locations were found."  
   If InstSet.Count > 0 Then  
      For Each Inst In InstSet  
         wscript.echo  
         wscript.echo "Receive Location Name: " & Inst.Name  
         wscript.echo "  Disabled           : " & Inst.IsDisabled  
         wscript.echo "  Pipeline Name      : " & Inst.PipelineName  
         wscript.echo "  Receive Port Name  : " & Inst.ReceivePortName  
         wscript.echo  
      next  
   End If   
  
End Sub  
  

沒有提供 C# 的範例。

規格需求

頭: 在 BTSWMISchemaXP.mof 中宣告。

命名空間: 包含在 \root\MicrosoftBizTalkServer 中。