AFAnalysis.GetSecurity Method
- Last UpdatedNov 18, 2025
- 2 minute read
- PI System
- AF SDK 2024 R2
- Developer
Gets the AFSecurity information of the specified security item
associated with the object.
Namespace: OSIsoft.AF.Analysis
Assembly: OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.1.1.1182
Syntax
public AFSecurity GetSecurity( AFSecurityItem securityItem )
Public Function GetSecurity ( securityItem As AFSecurityItem ) As AFSecurity Dim instance As AFAnalysis Dim securityItem As AFSecurityItem Dim returnValue As AFSecurity returnValue = instance.GetSecurity(securityItem)
public: virtual AFSecurity^ GetSecurity( AFSecurityItem securityItem ) sealed
abstract GetSecurity : securityItem : AFSecurityItem -> AFSecurity override GetSecurity : securityItem : AFSecurityItem -> AFSecurity
Parameters
- securityItem
- Type: OSIsoft.AFAFSecurityItem
Specifies the security item of the desired AFSecurity information to be returned.
Return Value
Type: AFSecurityReturns the AFSecurity information of the specified security item associated with the object.
Implements
IAFSecurableGetSecurity(AFSecurityItem)
Remarks
Returns the security information of the current user for the specified item type. This
method is primarily used to access the collection wide security settings available on the
PISystem and AFDatabase objects. The security settings
for the collections controls who has rights to create new objects of that type, as well
as defines the default security for new items of that type.
The Security property accesses the object's primary (or default) security setting.