/// <summary> /// Gets the Targets available from a Portal (i.e. network entity). /// </summary> /// <param name="address">The address of the Portal</param> /// <returns>The list of Targets available</returns> /// <remarks>If you just have an IP address, use this method to discover the available Targets.</remarks> public TargetInfo[] GetTargets(TargetAddress address) { using (Session session = new Session(SessionType.Discovery, null, _userName, _password, new TargetAddress[] { address })) { return(session.EnumerateTargets()); } }