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

AF SDK Reference

AFSecurityRightsExtension.CanWriteData Method

  • Last UpdatedNov 18, 2025
  • 2 minute read
AFSecurityRightsExtension.CanWriteData Method
This extension method determines if the current user has WriteData access to the object.

Namespace:  OSIsoft.AF
Assembly:  OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.1.1.1182

Syntax

public static bool CanWriteData(
	this AFSecurityRights item
)
<ExtensionAttribute>
Public Shared Function CanWriteData ( 
	item As AFSecurityRights
) As Boolean

Dim item As AFSecurityRights
Dim returnValue As Boolean

returnValue = item.CanWriteData()
public:
[ExtensionAttribute]
static bool CanWriteData(
	AFSecurityRights item
)
[<ExtensionAttribute>]
static member CanWriteData : 
        item : AFSecurityRights -> bool 

Parameters

item
Type: OSIsoft.AFAFSecurityRights
The AFSecurityRights that are be checked for WriteData access.

Return Value

Type: Boolean
Returns if the current user has WriteData access to the object.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type AFSecurityRights. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

Version Information

AFSDK


See Also

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