Cmdlets for Microsoft SharePoint

Build 23.0.8839

QueryResults Output Object (Invoke-SharePoint Cmdlet)

クエリの結果。

Syntax

PSObject QueryResults

Remarks

検索を実行すると、結果がPSObject のパイプラインに一度に一行ずつ返されます。各行オブジェクトは対応する値を持つテーブルのカラムを含みます。行オブジェクトにはテーブルと接続も含まれ、パイプライン経由でこれらの値をほかのcmdlet に簡単にインプットできます。以下に、JSON 形式の行オブジェクトの例を示します。

PS C:\> $conn  = Connect-SharePoint -User 'MyUserAccount' -Password 'MyPassword' -AuthScheme 'NTLM' -URL 'http://sharepointserver/mysite;'
PS C:\> $row = Select-SharePoint -Connection $conn -Table "Calendar" -Columns (Id, Location)  -Where "Location <> 'Chapel Hill'" | select -first 1
PS C:\> $row | ConvertTo-Json
{
  "Connection":  {

  },
    "Table":  "Calendar",
    "Columns":  [

    ],
    "Id":  "MyId",
    "Location":  "MyLocation"
}

Copyright (c) 2024 CData Software, Inc. - All rights reserved.
Build 23.0.8839