Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

PI Powershell

GetAFEventFrame Class

  • Last UpdatedDec 15, 2025
  • 3 minute read
GetAFEventFrame Class

Get an AF Event Frame(s)

The Get-AFEventFrame cmdlet gets a child AF Event Frame(s) on a specified AF Event Frame, or gets an AF Event Frame by GUID on an AF Server.

Inheritance Hierarchy

SystemObject
  InternalCommand
    Cmdlet
      PSCmdlet
        OSIsoft.PowerShellOSICmdletBase
          OSIsoft.PowerShellGetAFEventFrame

Namespace:  OSIsoft.PowerShell
Assembly:  OSIsoft.PowerShell (in OSIsoft.PowerShell.dll) Version: 2.2.3.0 (2.2.3.952)

Syntax

[CmdletAttribute("Get", "AFEventFrame", DefaultParameterSetName = "EventFrameName", 
	SupportsShouldProcess = true)]
public class GetAFEventFrame : OSICmdletBase
<CmdletAttribute("Get", "AFEventFrame", DefaultParameterSetName := "EventFrameName", 
	SupportsShouldProcess := true)>
Public Class GetAFEventFrame
	Inherits OSICmdletBase

Dim instance As GetAFEventFrame
[CmdletAttribute(L"Get", L"AFEventFrame", DefaultParameterSetName = L"EventFrameName", 
	SupportsShouldProcess = true)]
public ref class GetAFEventFrame : public OSICmdletBase
[<CmdletAttribute("Get", "AFEventFrame", DefaultParameterSetName = "EventFrameName", 
	SupportsShouldProcess = true)>]
type GetAFEventFrame =  
    class
        inherit OSICmdletBase
    end

The GetAFEventFrame type exposes the following members.

Constructors

  NameDescription
Public method
GetAFEventFrame

Properties

  NameDescription
Public property
AFEventFrame

Parent AF Event Frame for which to retrieve child event frames

Public property
AFServer

AF Server from which to get the AF Event Frame

Public property
ID

GUID of the AF Event Frame to get

Public property
Index

Index of the child AF Event Frame to get

Public property
Name

Name of the child AF Event Frame to get

Public property
QueryDate

Query date for the AF Event Frame to get

Public property
Refresh

Refresh the container before accessing

Examples

Get-AFEventFrame -ID 7570ec51-31c6-4611-0000-000000015f31 -AFServer $afServer

Where:

$afServer = Get-AFServer -Name "PIAF1"

This example gets the AF Event Frame with the specified GUID from the AF Server "PIAF1".

Examples

Get-AFEventFrame -Name * -Refresh -AFEventFrame $MyEventFrame

Where:

$afDB = Get-AFDatabase "AFDatabase1" -AFServer (Get-AFServer -Name "PIAF1")

$MyEventFrame = Find-AFEventFrame -StartTime (ConvertFrom-AFRelativeTime "T") -EndTime (ConvertFrom-AFRelativeTime "*") -AFSearchMode Inclusive -MaxCount 1 -AFDatabase $afDB

This example gets all child AF Event Frames on the parent AF Event Frame stored in $MyEventFrame on the AF Database "AFDatabase1" on the AF Server "PIAF1".

See Also

TitleResults for “How to create a CRG?”Also Available in