78 references to Version
mscorlib (3)
system\globalization\culturedata.cs (2)
645static readonly Version s_win7Version = new Version(6, 1); 654Environment.OSVersion.Version < new Version(6, 2); // Win7 is 6.1.Build.Revision so we have to check for anything less than 6.2
system\version.cs (1)
418result.m_parsedVersion = new Version(major, minor);
PresentationFramework (3)
src\Framework\System\Windows\Standard\Utilities.cs (3)
96get { return _osVersion >= new Version(6, 0); } 102get { return _osVersion >= new Version(6, 1); } 114get { return _presentationFrameworkVersion < new Version(4, 0); }
System (10)
net\System\Net\Cache\_Rfc2616CacheValidators.cs (2)
1707ctx.CacheHttpVersion = new Version(1,1); 1721ctx.CacheHttpVersion = new Version(1,1);
net\System\Net\Cache\HttpRequestCacheValidator.cs (2)
493CacheHttpVersion = new Version(1, 0); 628CacheHttpVersion = new Version(major, minor);
net\System\Net\HttpListenerRequest.cs (1)
278m_Version = new Version(memoryBlob.RequestBlob->Version.MajorVersion, memoryBlob.RequestBlob->Version.MinorVersion);
net\System\Net\HttpListenerResponse.cs (1)
322return new Version(m_NativeResponse.Version.MajorVersion, m_NativeResponse.Version.MinorVersion);
net\System\Net\HttpVersion.cs (2)
20public static readonly Version Version10 = new Version(1,0); 24public static readonly Version Version11 = new Version(1,1);
net\System\Net\Internal.cs (2)
712IsWin7orLater = (operatingSystem.Version >= new Version(6, 1)); 716IsWin8orLater = (operatingSystem.Version >= new Version(6, 2));
System.Activities.DurableInstancing (1)
System\Activities\DurableInstancing\SerializationUtilities.cs (1)
281version = new Version(id.Version.Minor, id.Version.Minor);
System.Activities.Presentation (2)
Microsoft.Tools.Common\Microsoft\Activities\Presentation\FrameworkNameConstants.cs (2)
14public static readonly FrameworkName NetFramework40 = new FrameworkName(NetFramework, new Version(4, 0)); 15public static readonly FrameworkName NetFramework45 = new FrameworkName(NetFramework, new Version(4, 5));
System.Data (4)
cdf\src\NetFx40\Tools\Microsoft.Tools.Common\Microsoft\Activities\Presentation\FrameworkNameConstants.cs (2)
14public static readonly FrameworkName NetFramework40 = new FrameworkName(NetFramework, new Version(4, 0)); 15public static readonly FrameworkName NetFramework45 = new FrameworkName(NetFramework, new Version(4, 5));
fx\src\data\System\Data\DataSet.cs (1)
271info.AddValue("DataSet.RemotingVersion", new Version(2, 0));
fx\src\data\System\Data\DataTable.cs (1)
235info.AddValue("DataTable.RemotingVersion", new Version(2, 0));
System.Data.Entity (1)
System\Data\Common\EntityUtil.cs (1)
2104Version fxv45 = new Version(4, 5);
System.Data.Entity.Design (3)
System\Data\Entity\Design\AspNet\EntityModelBuildProvider.cs (3)
108Debug.Assert(targetFrameworkVersion >= new Version(3, 5), "This assembly doesn't exist pre-3.5."); 110if (targetFrameworkVersion < new Version(4, 0)) 114if (targetFrameworkVersion < new Version(4, 5))
System.Data.Services (10)
System\Data\Services\DataService.cs (1)
790Debug.Assert(description.RequireMinimumVersion == new Version(1, 0), "description.RequireMinimumVersion == new Version(1, 0)");
System\Data\Services\DataServiceConfiguration.cs (1)
853new Version(this.DataServiceBehavior.MaxProtocolVersion == DataServiceProtocolVersion.V1 ? 1 : 2, 0);
System\Data\Services\RequestDescription.cs (8)
51internal static readonly Version DataServiceDefaultResponseVersion = new Version(1, 0); 58private static readonly Version[] KnownDataServiceVersions = new Version[] { new Version(1, 0), new Version(2, 0) }; 119this.requireMinimumVersion = new Version(1, 0); 121this.maxFeatureVersion = new Version(1, 0); 149this.requireMinimumVersion = new Version(1, 0); 151this.maxFeatureVersion = new Version(1, 0); 637versionToRaise = new Version(major, minor);
System.Data.Services.Client (4)
System\Data\Services\Client\ALinq\UriWriter.cs (1)
559this.uriVersion = new Version(major, minor);
System\Data\Services\Client\Util.cs (3)
38internal static readonly Version DataServiceVersionEmpty = new Version(0, 0); 43internal static readonly Version DataServiceVersion1 = new Version(1, 0); 48internal static readonly Version DataServiceVersion2 = new Version(2, 0);
System.Management (3)
Instrumentation\WMICapabilities.cs (2)
162if(os.Platform==PlatformID.Win32NT && os.Version >= new Version(5, 1)) 182if(os.Platform==PlatformID.Win32NT && os.Version >= new Version(5, 1))
InteropClasses\WMIInterop.cs (1)
2153if(os.Platform==PlatformID.Win32NT && os.Version >= new Version(5, 0))
System.Messaging (1)
System\Messaging\MessageQueue.cs (1)
77internal static readonly Version WinXP = new Version(5, 1);
System.ServiceModel (1)
System\ServiceModel\Channels\Msmq.cs (1)
11static Version longhornVersion = new Version(4, 0);
System.Web (16)
Compilation\MultiTargetingUtil.cs (2)
28internal static Version Version40 = new Version(4, 0); 29internal static Version Version35 = new Version(3, 5);
Hosting\IIS7WorkerRequest.cs (3)
38private static readonly Version IIS_VERSION_70 = new Version(7, 0); 39private static readonly Version IIS_VERSION_75 = new Version(7, 5); 40private static readonly Version IIS_VERSION_80 = new Version(8, 0);
HttpRuntime.cs (1)
1392_iisVersion = new Version((int)(dwVersion >> 16), (int)(dwVersion & 0xffff));
UI\WebControls\BaseValidator.cs (1)
477&& page.Request.Browser.EcmaScriptVersion.CompareTo(new Version(1, 2)) >= 0);
UI\WebControls\ValidationSummary.cs (1)
331&& page.Request.Browser.EcmaScriptVersion.CompareTo(new Version(1, 2)) >= 0);
UI\WebParts\WebPartManager.cs (1)
1156if (browserCaps.Win32 && (browserCaps.MSDomVersion.CompareTo(new Version(5, 5)) >= 0)) {
Util\VersionUtil.cs (7)
18public static readonly Version Framework00 = new Version(0, 0); 19public static readonly Version Framework20 = new Version(2, 0); 20public static readonly Version Framework35 = new Version(3, 5); 21public static readonly Version Framework40 = new Version(4, 0); 22public static readonly Version Framework45 = new Version(4, 5); 25public static readonly Version Framework46 = new Version(4, 6); 29public static readonly Version Framework48 = new Version(4, 8);
System.Web.Entity (1)
System\Data\WebControls\EntityDataSource.cs (1)
808return _targetFrameworkVersion == new Version(4, 0);
System.Web.Extensions (2)
UI\PageRequestManager.cs (2)
58private static readonly Version MinimumW3CDomVersion = new Version(1, 0); 59private static readonly Version MinimumEcmaScriptVersion = new Version(1, 0);
System.Windows.Forms (2)
misc\DpiHelper.cs (1)
63private static readonly Version dpiChangedMessageHighDpiImprovementsMinimumFrameworkVersion = new Version(4, 8);
winforms\Managed\System\WinForms\UnsafeNativeMethods.cs (1)
245private static readonly Version VistaOSVersion = new Version(6, 0);
System.Workflow.ComponentModel (3)
AuthoringOM\Compiler\CompileXomlTask.cs (2)
491defaultFrameworkName = new FrameworkName(NetFrameworkIdentifier, new Version(3, 5)).ToString(); 519defaultFrameworkName = new FrameworkName(NetFrameworkIdentifier, new Version(2, 0)).ToString();
AuthoringOM\Compiler\XomlCompilerParameters.cs (1)
104versionKey = new Version(targetFrameworkVersion.Major, targetFrameworkVersion.Minor);
System.Workflow.Runtime (5)
Tracking.cs (4)
983profileVersionId = new Version(0, 0); 1043Version _profileVersionId = new Version(0, 0); 1396return TryGetFromCache(serviceType, workflowType, new Version(0, 0), out profile); // 0 is an internal signal to get the most current 1536internal Version VersionId = new Version(0, 0);
Tracking\SqlTrackingService.cs (1)
51private static Version UnknownProfileVersionId = new Version(0, 0);
WindowsBase (3)
Base\MS\Internal\Utilities.cs (3)
22get { return _osVersion >= new Version(6, 0); } 27get { return _osVersion >= new Version(6, 1); } 32get { return _osVersion >= new Version(6, 2); }