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

PI Powershell

DisablePropagationOfTargetDeletion Class

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

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

This method is used to disable 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.PowerShellDisablePropagationOfTargetDeletion

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

Syntax

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

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

The DisablePropagationOfTargetDeletion type exposes the following members.

Constructors

Properties

  NameDescription
Public property
AFServer

Instance of the AFServer

Examples

$afServer | Disable-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