MajorBuildNumber

ServerVersionInfo.MajorBuildNumber property

public int MajorBuildNumber { get; set; }

也可以看看