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

PI Powershell

ConnectAFServer.ClientCredential Property

  • Last UpdatedDec 15, 2025
  • 2 minute read
ConnectAFServer.ClientCredential Property

Client id and secret to get access token to use when connecting to the AF Server

Namespace:  OSIsoft.PowerShell
Assembly:  OSIsoft.PowerShell (in OSIsoft.PowerShell.dll) Version: 3.1.1.0 (3.1.1.466)

Syntax

[ParameterAttribute(Position = 0, Mandatory = true, ParameterSetName = "ClientCredentials", 
	HelpMessage = "Client id and secret")]
[ValidateNotNullOrEmptyAttribute]
public NetworkCredential ClientCredential { get; set; }
<ParameterAttribute(Position := 0, Mandatory := true, ParameterSetName := "ClientCredentials", 
	HelpMessage := "Client id and secret")>
<ValidateNotNullOrEmptyAttribute>
Public Property ClientCredential As NetworkCredential
	Get
	Set

Dim instance As ConnectAFServer
Dim value As NetworkCredential

value = instance.ClientCredential

instance.ClientCredential = value
public:
[ParameterAttribute(Position = 0, Mandatory = true, ParameterSetName = L"ClientCredentials", 
	HelpMessage = L"Client id and secret")]
[ValidateNotNullOrEmptyAttribute]
property NetworkCredential^ ClientCredential {
	NetworkCredential^ get ();
	void set (NetworkCredential^ value);
}
[<ParameterAttribute(Position = 0, Mandatory = true, ParameterSetName = "ClientCredentials", 
	HelpMessage = "Client id and secret")>]
[<ValidateNotNullOrEmptyAttribute>]
member ClientCredential : NetworkCredential with get, set

Property Value

Type: NetworkCredential

See Also

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