MajorVersion

ServerVersionInfo.MajorVersion property

public int MajorVersion { get; set; }

也可以看看