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

AF SDK Reference

AFDatabase.GetSecurity Method

  • Last UpdatedNov 18, 2025
  • 2 minute read
AFDatabase.GetSecurity Method
Gets the AFSecurity information of the specified security item associated with the object.

Namespace:  OSIsoft.AF
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 AFDatabase
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: AFSecurity
Returns 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.

Version Information

AFSDK


See Also

In This Topic
Related Links
TitleResults for “How to create a CRG?”Also Available in