GetVersionInfo() публичный Метод

Requests the version information from the device.
public GetVersionInfo ( string packageName ) : SharpAdbClient.DeviceCommands.VersionInfo
packageName string /// The name of the package from which to get the application version. ///
Результат SharpAdbClient.DeviceCommands.VersionInfo
Пример #1
0
        /// <summary>
        /// Requests the version information from the device.
        /// </summary>
        /// <param name="device">
        /// The device on which to uninstall the package.
        /// </param>
        /// <param name="packageName">
        /// The name of the package from which to get the application version.
        /// </param>
        public static VersionInfo GetPackageVersion(this DeviceData device, string packageName)
        {
            PackageManager manager = new PackageManager(device);

            return(manager.GetVersionInfo(packageName));
        }
Пример #2
0
 /// <summary>
 /// Requests the version information from the device.
 /// </summary>
 /// <param name="device">
 /// The device on which to uninstall the package.
 /// </param>
 /// <param name="packageName">
 /// The name of the package from which to get the application version.
 /// </param>
 public static VersionInfo GetPackageVersion(this DeviceData device, string packageName)
 {
     PackageManager manager = new PackageManager(device);
     return manager.GetVersionInfo(packageName);
 }