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

PI Powershell

ImportAFXml.AFElements Property

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

AF Elements collections to import AF Objects to. To import to a single collection, use the AFObject parameter instead.

Namespace:  OSIsoft.PowerShell
Assembly:  OSIsoft.PowerShell (in OSIsoft.PowerShell.dll) Version: 2.2.3.0 (2.2.3.952)

Syntax

[ParameterAttribute(Position = 2, ParameterSetName = "FileToAFElements", 
	Mandatory = true, ValueFromPipeline = true, HelpMessage = "AF Elements collection to import to")]
[ParameterAttribute(Position = 2, ParameterSetName = "StreamToAFElements", 
	Mandatory = true, ValueFromPipeline = true, HelpMessage = "AF Elements collection to import to")]
[ValidateNotNullAttribute]
[AllowEmptyCollectionAttribute]
public AFElements AFElements { get; set; }
<ParameterAttribute(Position := 2, ParameterSetName := "FileToAFElements", 
	Mandatory := true, ValueFromPipeline := true, HelpMessage := "AF Elements collection to import to")>
<ParameterAttribute(Position := 2, ParameterSetName := "StreamToAFElements", 
	Mandatory := true, ValueFromPipeline := true, HelpMessage := "AF Elements collection to import to")>
<ValidateNotNullAttribute>
<AllowEmptyCollectionAttribute>
Public Property AFElements As AFElements
	Get
	Set

Dim instance As ImportAFXml
Dim value As AFElements

value = instance.AFElements

instance.AFElements = value
public:
[ParameterAttribute(Position = 2, ParameterSetName = L"FileToAFElements", 
	Mandatory = true, ValueFromPipeline = true, HelpMessage = L"AF Elements collection to import to")]
[ParameterAttribute(Position = 2, ParameterSetName = L"StreamToAFElements", 
	Mandatory = true, ValueFromPipeline = true, HelpMessage = L"AF Elements collection to import to")]
[ValidateNotNullAttribute]
[AllowEmptyCollectionAttribute]
property AFElements^ AFElements {
	AFElements^ get ();
	void set (AFElements^ value);
}
[<ParameterAttribute(Position = 2, ParameterSetName = "FileToAFElements", 
	Mandatory = true, ValueFromPipeline = true, HelpMessage = "AF Elements collection to import to")>]
[<ParameterAttribute(Position = 2, ParameterSetName = "StreamToAFElements", 
	Mandatory = true, ValueFromPipeline = true, HelpMessage = "AF Elements collection to import to")>]
[<ValidateNotNullAttribute>]
[<AllowEmptyCollectionAttribute>]
member AFElements : AFElements with get, set

Property Value

Type: AFElements

See Also

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