HttpRuntime.IISVersion 属性

定义

获取承载此应用程序的 IIS 版本。Gets the version of IIS that is hosting this application.

public:
 static property Version ^ IISVersion { Version ^ get(); };
public static Version IISVersion { get; }
member this.IISVersion : Version
Public Shared ReadOnly Property IISVersion As Version

属性值

Version

承载此应用程序的 IIS 版本或 null ,如果此应用程序不由 IIS 承载。The version of IIS that is hosting this application, or null if this application is not hosted by IIS.

注解

版本包括主版本和次版本;例如,7.0、7.5、8.0 等。The version includes major version and minor version; for example, 7.0, 7.5, 8.0, etc.

适用于