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

PI Powershell

ImportAFXml.AFServer Property

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

AF Server object to import AF Objects to. Note that the AF Server object only includes: AFContact, AFNotificationContactTemplate, and UOMDatabase objects. All other objects must be imported via the AF Database object or other collection.

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

Syntax

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

Dim instance As ImportAFXml
Dim value As AFServer

value = instance.AFServer

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

Property Value

Type: AFServer

See Also

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