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

PI Powershell

ImportAFXml.AFObject Property

  • Last UpdatedDec 15, 2025
  • 2 minute read
ImportAFXml.AFObject Property

Single AF Object to import into. If a collection (>1) objects is to be imported into, use the appropriate plural parameter.

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

Syntax

[ParameterAttribute(Position = 2, ParameterSetName = "FileToAFObject", 
	Mandatory = true, ValueFromPipeline = true, HelpMessage = "AF Object to import to")]
[ParameterAttribute(Position = 2, ParameterSetName = "StreamToAFObject", 
	Mandatory = true, ValueFromPipeline = true, HelpMessage = "AF Object to import to")]
[ValidateNotNullOrEmptyAttribute]
public AFObject AFObject { get; set; }
<ParameterAttribute(Position := 2, ParameterSetName := "FileToAFObject", 
	Mandatory := true, ValueFromPipeline := true, HelpMessage := "AF Object to import to")>
<ParameterAttribute(Position := 2, ParameterSetName := "StreamToAFObject", 
	Mandatory := true, ValueFromPipeline := true, HelpMessage := "AF Object to import to")>
<ValidateNotNullOrEmptyAttribute>
Public Property AFObject As AFObject
	Get
	Set

Dim instance As ImportAFXml
Dim value As AFObject

value = instance.AFObject

instance.AFObject = value
public:
[ParameterAttribute(Position = 2, ParameterSetName = L"FileToAFObject", 
	Mandatory = true, ValueFromPipeline = true, HelpMessage = L"AF Object to import to")]
[ParameterAttribute(Position = 2, ParameterSetName = L"StreamToAFObject", 
	Mandatory = true, ValueFromPipeline = true, HelpMessage = L"AF Object to import to")]
[ValidateNotNullOrEmptyAttribute]
property AFObject^ AFObject {
	AFObject^ get ();
	void set (AFObject^ value);
}
[<ParameterAttribute(Position = 2, ParameterSetName = "FileToAFObject", 
	Mandatory = true, ValueFromPipeline = true, HelpMessage = "AF Object to import to")>]
[<ParameterAttribute(Position = 2, ParameterSetName = "StreamToAFObject", 
	Mandatory = true, ValueFromPipeline = true, HelpMessage = "AF Object to import to")>]
[<ValidateNotNullOrEmptyAttribute>]
member AFObject : AFObject with get, set

Property Value

Type: AFObject

See Also

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