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

AF SDK Reference

PICollective.AllowWriteValues Property

  • Last UpdatedNov 18, 2025
  • 2 minute read
PICollective.AllowWriteValues Property
Indicates whether values are allowed to be written to the currently active collective member.

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

Syntax

public bool AllowWriteValues { get; }
Public ReadOnly Property AllowWriteValues As Boolean
	Get

Dim instance As PICollective
Dim value As Boolean

value = instance.AllowWriteValues
public:
property bool AllowWriteValues {
	bool get ();
}
member AllowWriteValues : bool with get

Property Value

Type: Boolean
If , then values are allowed to be written to the currently active collective member. Otherwise, calls to write PI event data are not supported on this collective member.

Remarks

The PI Data Archive has a tuning parameter (Replication_EnableSDKWriteValues) which allows PI secondaries to be read-only for SDK access. The value of this tuning parameter is exposed by this property. When , writing values to a PICollectiveMember using methods such as AFAttribute.SetValue Overload, AFData.UpdateValue, PIPoint.UpdateValue Overload, or UpdateValues Overload will fail.
Important note Important
A direct connection to a collective member (see Connect Overload or ConnectDirect Overload) will also allow data to be written to the collective member regardless of this property's setting.

Version Information

AFSDK


See Also

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