Description: The IXenConnection DuplicateSession property is a boolean value that determines whether a session can have multiple instances or not.
Code Example 1: if (connection.DuplicateSession) { Console.WriteLine("Multiple sessions allowed."); } else { Console.WriteLine("Multiple sessions not allowed."); }
In this example, the DuplicateSession property of the connection object is checked to see if multiple sessions are allowed or not. If it returns true, the message "Multiple sessions allowed." is printed, otherwise the message "Multiple sessions not allowed." is printed.
Code Example 2: connection.DuplicateSession = false;
This example sets the DuplicateSession property of the connection object to false, which disables the ability to have multiple instances of the session.
Package Library: This property is a part of the Citrix XenServer API for C#, which is included in the Citrix XenServer SDK package.
C# (CSharp) IXenConnection.DuplicateSession - 18 examples found. These are the top rated real world C# (CSharp) examples of IXenConnection.DuplicateSession extracted from open source projects. You can rate examples to help us improve the quality of examples.