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

PI Powershell

LockAFEventFrame Class

  • Last UpdatedDec 15, 2025
  • 2 minute read
LockAFEventFrame Class

Lock an AF Event Frame

The Lock-AFEventFrame cmdlet will lock an existing AF Event Frame. Locking an AF Event Frame marks it as read-only and changes can no longer be made to it.

Inheritance Hierarchy

SystemObject
  InternalCommand
    Cmdlet
      PSCmdlet
        OSIsoft.PowerShellOSICmdletBase
          OSIsoft.PowerShellLockAFEventFrame

Namespace:  OSIsoft.PowerShell
Assembly:  OSIsoft.PowerShell (in OSIsoft.PowerShell.dll) Version: 3.1.1.0 (3.1.1.466)

Syntax

[CmdletAttribute("Lock", "AFEventFrame", SupportsShouldProcess = true)]
public class LockAFEventFrame : OSICmdletBase
<CmdletAttribute("Lock", "AFEventFrame", SupportsShouldProcess := true)>
Public Class LockAFEventFrame
	Inherits OSICmdletBase

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

The LockAFEventFrame type exposes the following members.

Constructors

  NameDescription
Public method
LockAFEventFrame

Properties

  NameDescription
Public property
AFEventFrame

AF Event Frame to lock

Public property
CheckIn

Check in changes immediately

Examples

Lock-AFEventFrameParent -AFEventFrame $MyEventFrame -CheckIn

Where:

$afServer = Get-AFServer -Name PIAF1

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

This example locks the AF Event Frame stored in $MyEventFrame. The change is checked in immediately.

See Also

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