AFSecurityRightsExtension.CanDelete Method
- Last UpdatedJan 12, 2026
- 2 minute read
- PI System
- AF SDK 3.2.0
- Developer
This extension method determines if the current user has
Delete rights on the object.
Namespace: OSIsoft.AF
Assembly: OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.2.0.7
Syntax
public static bool CanDelete( this AFSecurityRights item )
<ExtensionAttribute> Public Shared Function CanDelete ( item As AFSecurityRights ) As Boolean Dim item As AFSecurityRights Dim returnValue As Boolean returnValue = item.CanDelete()
public: [ExtensionAttribute] static bool CanDelete( AFSecurityRights item )
[<ExtensionAttribute>] static member CanDelete : item : AFSecurityRights -> bool
Parameters
- item
- Type: OSIsoft.AFAFSecurityRights
The AFSecurityRights that are be checked for Delete rights.
Return Value
Type: BooleanReturns if the current user has Write and Delete rights on the object.