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

AF SDK Reference

PIIdentityMappings.Add Method (String, String, String)

PIIdentityMappings.Add Method (String, String, String)

  • Last UpdatedNov 18, 2025
  • 2 minute read
PIIdentityMappings.Add Method (String, String, String)
Creates a new PIIdentityMapping with the passed in name.

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

Syntax

public PIIdentityMapping Add(
	string name,
	string principalName,
	string identity
)
Public Function Add ( 
	name As String,
	principalName As String,
	identity As String
) As PIIdentityMapping

Dim instance As PIIdentityMappings
Dim name As String
Dim principalName As String
Dim identity As String
Dim returnValue As PIIdentityMapping

returnValue = instance.Add(name, principalName, 
	identity)
public:
PIIdentityMapping^ Add(
	String^ name, 
	String^ principalName, 
	String^ identity
)
member Add : 
        name : string * 
        principalName : string * 
        identity : string -> PIIdentityMapping 

Parameters

name
Type: SystemString
Name of the new PIIdentityMapping
principalName
Type: SystemString
Account Name of the new PIIdentityMapping
identity
Type: SystemString
The existing identity name that the new PIIdentityMapping will be mapped to

Return Value

Type: PIIdentityMapping
Reference to the new PIIdentityMapping.

Exceptions

ExceptionCondition
InvalidOperationExceptionIf a PIIdentityMapping with the same name already exists.

Remarks

The PIIdentityMapping is not committed to the PIServer until CheckIn is called.

Version Information

AFSDK

Supported in: 3.1.1, 3.1.0, 3.0.2, 3.0.1, 3.0.0, 2.10.11, 2.10.5, 2.10.0, 2.10, 2.9.5, 2.9, 2.8.5, 2.8, 2.7.5, 2.7

See Also

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