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

PI Powershell

EnablePropagationOfTargetDeletion Class

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

Enables support for propagating the deletion of targets (elements) to the referencing analyses and notifications.

This method is used to enable the PISystemFeatures.EnablePropagationOfTargetDeletion feature in the PI AF SQL Server database. When this feature is enabled, the deletion of an Asset.AFElementTemplate will delete any Analysis.AFAnalysisTemplate or AFNotificationTemplate that targets the element template. Also when enabled, the deletion of an AFElement will delete any AFAnalysis or AFNotification that targets the element.

Inheritance Hierarchy

SystemObject
  InternalCommand
    Cmdlet
      PSCmdlet
        OSIsoft.PowerShellOSICmdletBase
          OSIsoft.PowerShellEnablePropagationOfTargetDeletion

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

Syntax

[CmdletAttribute("Enable", "AFPropagationOfTargetDeletion", SupportsShouldProcess = true)]
public class EnablePropagationOfTargetDeletion : OSICmdletBase
<CmdletAttribute("Enable", "AFPropagationOfTargetDeletion", SupportsShouldProcess := true)>
Public Class EnablePropagationOfTargetDeletion
	Inherits OSICmdletBase

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

The EnablePropagationOfTargetDeletion type exposes the following members.

Constructors

Properties

  NameDescription
Public property
AFServer

Instance of the AFServer

Examples

$afServer | Enable-AFPropagationOfTargetDeletion

Where:

$afServer = Get-AFServer -Name "AFServerMachineName"

Enables support for propagating the deletion of targets (elements) to the referencing analyses and notifications.

See Also

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