Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/322.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# 在C中检索BITS版本#_C#_.net 4.0_Microsoft Bits - Fatal编程技术网

C# 在C中检索BITS版本#

C# 在C中检索BITS版本#,c#,.net-4.0,microsoft-bits,C#,.net 4.0,Microsoft Bits,如何使用C#.NET 4.0检索BITS(后台智能传输服务)版本。我基本上在System32中检索了QMgr.dll的dll版本,因为这是BITS的dll const string bitsDll = "QMgr.dll"; var bitsDllInfo = FileVersionInfo.GetVersionInfo(Path .Combine(System.Environment.SystemDirectory, bitsDll)); updateDeliveryStatusR

如何使用C#.NET 4.0检索BITS(后台智能传输服务)版本。

我基本上在System32中检索了QMgr.dll的dll版本,因为这是BITS的dll

const string bitsDll = "QMgr.dll";

var bitsDllInfo = FileVersionInfo.GetVersionInfo(Path
    .Combine(System.Environment.SystemDirectory, bitsDll));

updateDeliveryStatusRequest.BitsVersion = bitsDllInfo.FileVersion;

在询问之前,你一定没有做过太多的研究;第一次谷歌点击:。