204 references to Major
ComSvcConfig (7)
ComAdminWrapper.cs (6)
691if (clrVersion.Major == installedClrVersion.Major && clrVersion.Minor == installedClrVersion.Minor) 706if (clrVersion.Major == releasedCLRVersion.Major && clrVersion.Minor == releasedCLRVersion.Minor) 769if (appClrVersion.Major == 4 && appClrVersion.Minor == 0) 773else if (appClrVersion.Major == 2 && appClrVersion.Minor == 0)
Tool.cs (1)
917if ((Environment.OSVersion.Version.Major == 5) && (Environment.OSVersion.Version.Minor == 1))
mscorlib (11)
system\AppContext\AppContextDefaultValues.cs (1)
139version = realVersion.Major * 10000;
system\diagnostics\eventing\eventsource.cs (1)
1520var osVer = Environment.OSVersion.Version.Major * 10 + Environment.OSVersion.Version.Minor;
system\environment.cs (2)
1180((OS.Version.Major == 6 && OS.Version.Minor >= 2) || (OS.Version.Major > 6)));
system\operatingsystem.cs (2)
132if ((_version.Major > 4) || 133((_version.Major == 4) && (_version.Minor > 0)))
system\runtime\versioning\binarycompatibility.cs (1)
425version = realVersion.Major * 10000;
system\security\cryptography\cryptoconfig.cs (1)
62if (Environment.OSVersion.Version.Major >= 6) {
system\security\cryptography\utils.cs (1)
527Contract.Assert(Environment.OSVersion.Version.Major < 6, "CryptGetFIPSAlgorithmMode should be used on Vista+");
system\security\policy\strongname.cs (1)
218bw.Write(m_version.Major);
system\version.cs (1)
93_Major = v.Major;
PresentationCore (5)
Core\CSharp\MS\Internal\FontCache\FamilyCollection.cs (2)
268_usePrivateFontCollectionForLegacyArabicFonts = (osInfo.Version.Major < 6) 269|| (osInfo.Version.Major == 6
Core\CSharp\System\Windows\Input\TextServicesContext.cs (1)
132if (!appDomainShutdown || System.Environment.OSVersion.Version.Major >= 6)
Core\CSharp\System\Windows\Interop\OperatingSystemVersionCheck.cs (2)
54(((os.Version.Major == major) && (os.Version.Minor >= minor)) || (os.Version.Major > major));
PresentationFramework (8)
parent\InternalApis\Clr\inc\AppContextDefaultValues.cs (1)
139version = realVersion.Major * 10000;
src\Framework\Microsoft\Win32\FileDialog.cs (2)
1567if (dereferenceLinks && System.Environment.OSVersion.Version.Major >= 5) 2100get { return Environment.OSVersion.Version.Major >= 6; }
src\Framework\System\Windows\Controls\WebBrowser.cs (1)
1069if (osver.Major == 5 && osver.Minor == 2 && osver.MajorRevision == 0)
src\Framework\System\Windows\Documents\TextFindEngine.cs (1)
488if (System.Environment.OSVersion.Version.Major >= 6)
src\Framework\System\Windows\Documents\TextServicesHost.cs (1)
461if (_thread == Thread.CurrentThread || System.Environment.OSVersion.Version.Major >= 6)
src\Framework\System\Windows\Interop\DocobjHost.cs (1)
434if (os.Version.Major == 5 && os.Version.Minor == 1)
src\Framework\System\Windows\SystemParameters.cs (1)
1306if (System.Environment.OSVersion.Version.Major >= 6)
System (19)
net\System\Net\Cache\_Rfc2616CacheValidators.cs (4)
135if (ctx.CacheHttpVersion.Major <= 1 && ctx.CacheHttpVersion.Minor < 1) { 260if (ctx.CacheHttpVersion.Major <= 1 && resp.ProtocolVersion.Major <=1 && 1668if (ctx.CacheHttpVersion.Major == 1 && ctx.CacheHttpVersion.Minor == 0)
net\System\Net\HttpListenerResponse.cs (2)
329if (value.Major!=1 || (value.Minor!=0 && value.Minor!=1)) { 332m_NativeResponse.Version.MajorVersion = (ushort)value.Major;
parent\parent\parent\InternalApis\Clr\inc\AppContextDefaultValues.cs (1)
139version = realVersion.Major * 10000;
services\monitoring\system\diagnosticts\EventLog.cs (1)
62s_SkipRegPatch = (os.Platform == PlatformID.Win32NT) && (os.Version.Major > 5);
services\monitoring\system\diagnosticts\Process.cs (2)
795(OperatingSystem.Platform != PlatformID.Win32NT || OperatingSystem.Version.Major < 5)) { 1337if (OperatingSystem.Platform != PlatformID.Win32NT || OperatingSystem.Version.Major < 5)
services\monitoring\system\diagnosticts\ProcessManager.cs (4)
139return Environment.OSVersion.Version.Major < 5 || 140(Environment.OSVersion.Version.Major == 5 && Environment.OSVersion.Version.Minor == 0); 151if (!isRemoteMachine && IsNt && (Environment.OSVersion.Version.Major >= 5)) { 178(Environment.OSVersion.Version.Major >= 5 )) {
services\monitoring\system\diagnosticts\SharedUtils.cs (2)
75if (Environment.OSVersion.Version.Major >= 5) 252string versionPrefix = "v" + Environment.Version.Major + "." + Environment.Version.Minor;
sys\System\EnvironmentHelpers.cs (3)
20} else if(Environment.OSVersion.Version.Major < 6 || (Environment.OSVersion.Version.Major == 6 && Environment.OSVersion.Version.Minor <= 1)) { 54return os.Platform == PlatformID.Win32NT && os.Version.Major >= 6;
System.Activities.DurableInstancing (2)
System\Activities\DurableInstancing\SerializationUtilities.cs (2)
277version = new Version(id.Version.Major, id.Version.Minor, id.Version.Build); 409xmlWriter.WriteElementString("Major", id.Version.Major.ToString(CultureInfo.InvariantCulture));
System.Activities.Presentation (8)
Microsoft.Tools.Common\Microsoft\Activities\Presentation\ExpressionSettingHelper.cs (2)
55return frameworkName.Version.Major > 4 || (frameworkName.Version.Major == 4 && frameworkName.Version.Minor >= 5);
Microsoft.Tools.Common\Microsoft\Activities\Presentation\FrameworkNameExtensions.cs (5)
13return frameworkName.Version.Major > 4 || (frameworkName.Version.Major == 4 && frameworkName.Version.Minor >= 5); 18return frameworkName.Version.Major < 4 || (frameworkName.Version.Major == 4 && frameworkName.Version.Minor < 5); 23return frameworkName.Version.Major < 4;
System.Activities.Presentation\System\Activities\Presentation\View\TypeBrowser.xaml.cs (1)
544sb.Append(name.Version.Major);
System.AddIn (1)
System\Addin\MiniReflection\MetadataReader\AssemblyInfo.cs (1)
114m_FullName = m_SimpleName + ", Version=" + Version.Major + "." +
System.ComponentModel.DataAnnotations (1)
parent\parent\parent\parent\parent\parent\InternalApis\Clr\inc\AppContextDefaultValues.cs (1)
139version = realVersion.Major * 10000;
System.Core (6)
System\Diagnostics\Eventing\EventProvider.cs (3)
34private static bool s_platformNotSupported = (Environment.OSVersion.Version.Major < 6); 35private static bool s_preWin7 = (Environment.OSVersion.Version.Major < 6 || (Environment.OSVersion.Version.Major == 6 && Environment.OSVersion.Version.Minor < 1));
System\Diagnostics\Eventing\Reader\NativeWrapper.cs (1)
32private static bool s_platformNotSupported = (Environment.OSVersion.Version.Major < 6);
System\Diagnostics\PerformanceData\CounterSet.cs (1)
28private static readonly bool s_platformNotSupported = (Environment.OSVersion.Version.Major < 6);
System\Security\Cryptography\AesCryptoServiceProvider.cs (1)
43if (Environment.OSVersion.Version.Major == 5 && Environment.OSVersion.Version.Minor == 1) {
System.Data (10)
cdf\src\NetFx40\Tools\Microsoft.Tools.Common\Microsoft\Activities\Presentation\ExpressionSettingHelper.cs (2)
55return frameworkName.Version.Major > 4 || (frameworkName.Version.Major == 4 && frameworkName.Version.Minor >= 5);
cdf\src\NetFx40\Tools\Microsoft.Tools.Common\Microsoft\Activities\Presentation\FrameworkNameExtensions.cs (5)
13return frameworkName.Version.Major > 4 || (frameworkName.Version.Major == 4 && frameworkName.Version.Minor >= 5); 18return frameworkName.Version.Major < 4 || (frameworkName.Version.Major == 4 && frameworkName.Version.Minor < 5); 23return frameworkName.Version.Major < 4;
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\TypeBrowser.xaml.cs (1)
544sb.Append(name.Version.Major);
fx\src\data\System\Data\Common\AdapterUtil.cs (1)
1880static internal readonly bool IsPlatformNT5 = (ADP.IsWindowsNT && (Environment.OSVersion.Version.Major >= 5));
fx\src\data\System\Data\SqlClient\TdsParser.cs (1)
754payload[payloadLength++] = (byte)(systemDataVersion.Major & 0xff);
System.Data.Entity (2)
System\Data\Common\EntityUtil.cs (2)
1923if ((targetAssemblyName.Version.Major != assemblyName.Version.Major) ||
System.Data.Entity.Design (2)
System\Data\Entity\Design\EntityFrameworkVersions.cs (2)
84if (entityFrameworkVersion.Major == 1) 95else if (entityFrameworkVersion.Major == 2)
System.Data.Services (5)
System\Data\Services\RequestDescription.cs (2)
634if (major > versionToRaise.Major || 635(major == versionToRaise.Major && minor > versionToRaise.Minor))
System\Data\Services\WebUtil.cs (3)
1558requestDescription.RequireMinimumVersion.Major, 1582requestDescription.ResponseVersion.Major, 1594RequestDescription.DataServiceDefaultResponseVersion.Major,
System.Data.Services.Client (3)
System\Data\Services\Client\ALinq\UriWriter.cs (2)
556if (major > this.uriVersion.Major || 557(major == this.uriVersion.Major && minor > this.uriVersion.Minor))
System\Data\Services\Client\DataServiceContext.cs (1)
1988if (requestVersion != null && requestVersion.Major > 0)
System.Data.Services.Design (1)
System\Data\EntityModel\DataServiceBuildProvider.cs (1)
387if (BuildManager.TargetFramework.Version.Major < 4)
System.Drawing (3)
commonui\System\Drawing\SystemFonts.cs (1)
312Environment.OSVersion.Version.Major <= 4) {
commonui\System\Drawing\SystemIcons.cs (1)
174if(Environment.OSVersion.Version.Major >= 6) {
parent\parent\parent\InternalApis\Clr\inc\AppContextDefaultValues.cs (1)
139version = realVersion.Major * 10000;
System.IdentityModel (4)
parent\parent\parent\parent\parent\InternalApis\Clr\inc\AppContextDefaultValues.cs (1)
139version = realVersion.Major * 10000;
System\IdentityModel\Claims\ClaimsHelper.cs (1)
27if (Environment.OSVersion.Version.Major >= CryptoHelper.WindowsVistaMajorNumber)
System\IdentityModel\SecurityUtils.cs (1)
188if (Environment.OSVersion.Version.Major >= WindowsVistaMajorNumber)
System\IdentityModel\Selectors\X509SecurityTokenAuthenticator.cs (1)
95if (Environment.OSVersion.Version.Major >= SecurityUtils.WindowsVistaMajorNumber)
System.IO.Compression.FileSystem (1)
parent\parent\parent\InternalApis\Clr\inc\AppContextDefaultValues.cs (1)
139version = realVersion.Major * 10000;
System.Management (5)
Instrumentation\AssemblyNameUtility.cs (3)
31 return an.Name + "_SN_"+BinToString(an.GetPublicKeyToken()) + "_Version_"+an.Version.Major +"."+ an.Version.Minor; // +"."+ an.Version.Build+"."+an.Version.Revision; 37 return an.Name + "_SN_"+BinToString(an.GetPublicKeyToken()) + "_Version_"+an.Version.Major +"."+ an.Version.Minor+"."+ an.Version.Build+"."+an.Version.Revision; 44return an.Name + "_SN_"+BinToString(an.GetPublicKeyToken()) + "_Version_"+an.Version.Major +"."+ an.Version.Minor+"."+an.Version.Build +"."+ an.Version.Revision;
managementscope.cs (2)
1145if( ((Environment.OSVersion.Version.Major == 5) && (Environment.OSVersion.Version.Minor >= 1)) || (Environment.OSVersion.Version.Major >= 6) )
System.Messaging (1)
System\Messaging\AccessControlList.cs (1)
46if (Environment.OSVersion.Version.Major >= 5)
System.ServiceModel (15)
parent\parent\parent\parent\parent\InternalApis\Clr\inc\AppContextDefaultValues.cs (1)
139version = realVersion.Major * 10000;
System\ServiceModel\Channels\Msmq.cs (1)
26if (osVersion.Major == 5 && osVersion.Minor == 1)
System\ServiceModel\ComIntegration\ComPlusInstanceProvider.cs (2)
162if (Environment.OSVersion.Version.Major > 5) 164else if (Environment.OSVersion.Version.Major == 5)
System\ServiceModel\Dispatcher\SecurityValidationBehavior.cs (2)
387if ((osVersion.Major < WindowsServerMajorNumber) 388|| ((osVersion.Major == WindowsServerMajorNumber) && (osVersion.Minor < WindowsServerMinorNumber)))
System\ServiceModel\OSEnvironmentHelper.cs (1)
18int major = Environment.OSVersion.Version.Major;
System\ServiceModel\Security\SecurityUtils.cs (8)
316return ((Environment.OSVersion.Version.Major >= SecurityUtils.XPMajorNumber && Environment.OSVersion.Version.Minor > SecurityUtils.XPMinorNumber) || 317Environment.OSVersion.Version.Major > SecurityUtils.XPMajorNumber); 323return (Environment.OSVersion.Version.Major >= windows7Version.Major && Environment.OSVersion.Version.Minor >= windows7Version.Minor); 2307if ((Environment.OSVersion.Version.Major > WindowsServerMajorNumber) 2308|| (Environment.OSVersion.Version.Major == WindowsServerMajorNumber && Environment.OSVersion.Version.Minor > WindowsServerMinorNumber)) 2313if (Environment.OSVersion.Version.Major == XPMajorNumber && Environment.OSVersion.Version.Minor == XPMinorNumber) 2325else if (Environment.OSVersion.Version.Major == WindowsServerMajorNumber && Environment.OSVersion.Version.Minor == WindowsServerMinorNumber)
System.ServiceModel.Internals (1)
System\Runtime\Diagnostics\EtwDiagnosticTrace.cs (1)
40static bool isVistaOrGreater = Environment.OSVersion.Version.Major >= WindowsVistaMajorNumber;
System.Web (25)
Compilation\AssemblyBuilder.cs (1)
606if (MultiTargetingUtil.TargetFrameworkVersion.Major >= 4) {
Compilation\MultiTargetingUtil.cs (3)
201int majorVersion = ver.Major; 247var runtimeVersion = runtime.Major + "." + runtime.Minor + "." + runtime.Build; 428return MultiTargetingUtil.TargetFrameworkVersion.Major >= 4;
UI\HtmlForm.cs (3)
382(page.RequestInternal.Browser.W3CDomVersion.Major == 0 || 424(page.RequestInternal.Browser.EcmaScriptVersion.Major > 0) && 425(page.RequestInternal.Browser.W3CDomVersion.Major > 0)) {
UI\Page.cs (1)
2418(_request.Browser.W3CDomVersion.Major > 0);
UI\WebControls\BaseValidator.cs (1)
476&& page.Request.Browser.W3CDomVersion.Major >= 1
UI\WebControls\DetailsView.cs (2)
2165bool hasEcmaScript = browserCaps.EcmaScriptVersion.Major > 0; 2166bool hasDOM = browserCaps.W3CDomVersion.Major > 0;
UI\WebControls\GridView.cs (2)
2731bool hasEcmaScript = browserCaps.EcmaScriptVersion.Major > 0; 2732bool hasDOM = browserCaps.W3CDomVersion.Major > 0;
UI\WebControls\MenuRendererClassic.cs (1)
38Menu._isNotIE = (Menu.Page.Request.Browser.MSDomVersion.Major < 4);
UI\WebControls\Panel.cs (2)
289(Page.Request.Browser.EcmaScriptVersion.Major > 0) && 290(Page.Request.Browser.W3CDomVersion.Major > 0)) {
UI\WebControls\TreeView.cs (3)
1735_isNotIE = (Page.Request.Browser.MSDomVersion.Major < 4); 2260(caps.EcmaScriptVersion.Major > 0) && 2261(caps.W3CDomVersion.Major > 0) &&
UI\WebControls\ValidationSummary.cs (1)
330&& page.Request.Browser.W3CDomVersion.Major >= 1
Util\SmtpMail.cs (4)
296if ((osVersion.Major >= 7 || (osVersion.Major == 6 && osVersion.Minor >= 1))) { 463else if (Environment.OSVersion.Version.Major <= 4) { 490else if (Environment.OSVersion.Version.Major <= 4) {
Util\Transactions.cs (1)
69if (Environment.OSVersion.Platform != PlatformID.Win32NT || Environment.OSVersion.Version.Major <= 4)
System.Web.Entity.Design (1)
System\Data\WebControls\Design\EntityDataSourceDesignerHelper.cs (1)
671&& assembly.GetName().Version.Major > 5)
System.Web.Extensions (1)
Compilation\WCFBuildProvider.cs (1)
121if (BuildManager.TargetFramework.Version.Major < 4)
System.Windows.Forms (14)
misc\GDI\WindowsFont.cs (1)
575if (Environment.OSVersion.Version.Major == 5 && Environment.OSVersion.Version.Minor >= 1)
parent\parent\parent\InternalApis\Clr\inc\AppContextDefaultValues.cs (1)
139version = realVersion.Major * 10000;
winforms\Managed\System\WinForms\Clipboard.cs (3)
335Environment.OSVersion.Version.Major < 5) 426Environment.OSVersion.Version.Major < 5) 549Environment.OSVersion.Version.Major < 5)
winforms\Managed\System\WinForms\FileDialog.cs (2)
832if (dereferenceLinks && System.Environment.OSVersion.Version.Major >= 5) 1012Environment.OSVersion.Version.Major < 5) {
winforms\Managed\System\WinForms\InputLanguage.cs (1)
313if (layoutDisplayName != null && Environment.OSVersion.Version.Major >= 5) {
winforms\Managed\System\WinForms\ListBox.cs (1)
805Environment.OSVersion.Version.Major < 5) {
winforms\Managed\System\WinForms\Printing\PrintDialog.cs (4)
249Environment.OSVersion.Version.Major < 5)) { 359Environment.OSVersion.Version.Major < 5)) { 441if (Environment.OSVersion.Version.Major >= 6) { 539if(Environment.OSVersion.Version.Major >= 6) {
winforms\Managed\System\WinForms\PropertyGridInternal\GridEntry.cs (1)
2220if (Environment.OSVersion.Version.Major > 4) {
System.Workflow.ComponentModel (4)
AuthoringOM\Compiler\XomlCompiler.cs (1)
228string normalizedVersionString = string.Format(CultureInfo.InvariantCulture, "v{0}.{1}", targetVersion.Major, targetVersion.Minor);
AuthoringOM\Compiler\XomlCompilerParameters.cs (2)
98if (targetFrameworkVersion.Major == 4) 104versionKey = new Version(targetFrameworkVersion.Major, targetFrameworkVersion.Minor);
AuthoringOM\Serializer\WorkflowMarkupSerializer.cs (1)
2269string normalizedVersionString = string.Format(CultureInfo.InvariantCulture, "v{0}.{1}", targetVersion.Major, targetVersion.Minor);
System.Workflow.Runtime (4)
Tracking.cs (1)
1418if (0 == versionId.Major)
Tracking\TrackingProfileSerializer.cs (3)
895version = string.Format(NumberFormatInfo.InvariantInfo, "{0}.{1}.{2}.{3}", profile.Version.Major, profile.Version.Minor, profile.Version.Build, profile.Version.Revision); 897version = string.Format(NumberFormatInfo.InvariantInfo, "{0}.{1}.{2}", profile.Version.Major, profile.Version.Minor, profile.Version.Build); 899version = string.Format(NumberFormatInfo.InvariantInfo, "{0}.{1}", profile.Version.Major, profile.Version.Minor);
System.Xml (1)
parent\parent\parent\parent\InternalApis\Clr\inc\AppContextDefaultValues.cs (1)
139version = realVersion.Major * 10000;
UIAutomationClient (3)
MS\Internal\Automation\HwndProxyElementProvider.cs (1)
1759if (Environment.OSVersion.Version.Major >= 6)
MS\Internal\Automation\Misc.cs (1)
559&& System.Environment.OSVersion.Version.Major >= 6)
MS\Win32\UnsafeNativeMethods.cs (1)
190if (System.Environment.OSVersion.Version.Major >= 6)
UIAutomationClientsideProviders (27)
MS\Internal\AutomationProxies\Accessible.cs (1)
173if(Environment.OSVersion.Version.Major >= 6)
MS\Internal\AutomationProxies\CommonGetThemePartSize.cs (1)
23if (Environment.OSVersion.Version.Major >= 5)
MS\Internal\AutomationProxies\CommonXSendMessage.cs (6)
634if (Environment.OSVersion.Version.Major == 5) 646if (Environment.OSVersion.Version.Major == 5) 658if (Environment.OSVersion.Version.Major == 5) 1495if (Environment.OSVersion.Version.Major > 5 || (Environment.OSVersion.Version.Major == 5 && Environment.OSVersion.Version.Minor == 1)) 1517else if (Environment.OSVersion.Version.Major == 5)
MS\Internal\AutomationProxies\Misc.cs (6)
302bool result = (System.Environment.OSVersion.Version.Major >= 6) ? UnsafeNativeMethods.GetPhysicalCursorPos(ref pt) 1042&& System.Environment.OSVersion.Version.Major >= 6) 1231if (System.Environment.OSVersion.Version.Major >= 6) 1890if (Environment.OSVersion.Version.Major >= 6 && commonControlVersion >= 6) 2004Debug.Assert(System.Environment.OSVersion.Version.Major < 6); 2075Debug.Assert(System.Environment.OSVersion.Version.Major >= 6);
MS\Internal\AutomationProxies\WindowsButton.cs (3)
205if (Environment.OSVersion.Version.Major < 6) 305if (idEvent == InvokePattern.InvokedEvent && Environment.OSVersion.Version.Major >= 6) 575if (Environment.OSVersion.Version.Major >= 6)
MS\Internal\AutomationProxies\WindowsListView.cs (1)
922if (Environment.OSVersion.Version.Major < 6)
MS\Internal\AutomationProxies\WindowsMenu.cs (2)
829if ((Environment.OSVersion.Version.Major < 6) && (Misc.IsLayoutRTL(_hwnd))) 1275if ((Environment.OSVersion.Version.Major < 6) && (Misc.IsLayoutRTL(_hwnd)))
MS\Internal\AutomationProxies\WindowsScrollBar.cs (2)
177if ((Environment.OSVersion.Version.Major < 6) && (Misc.IsLayoutRTL(_parent._hwnd))) 602if ((Environment.OSVersion.Version.Major < 6) && (_sbFlag == NativeMethods.SB_HORZ) && (Misc.IsControlRTL(_parent._hwnd)))
MS\Internal\AutomationProxies\WindowsScrollBarBits.cs (2)
245if ((Environment.OSVersion.Version.Major < 6) && (Misc.IsLayoutRTL(parent._parent._hwnd))) 426if ((Environment.OSVersion.Version.Major < 6) && (Misc.IsLayoutRTL(hwnd)))
MS\Internal\AutomationProxies\WindowsTooltip.cs (1)
224if (System.Environment.OSVersion.Version.Major >= 6)
MS\Internal\AutomationProxies\WindowsTreeView.cs (1)
828if (_nativeAcc == null && System.Environment.OSVersion.Version.Major >= 6 && Misc.IsWindowInGivenProcess(_hwnd, "explorer"))
MS\Win32\UnsafeNativeMethods.cs (1)
329if (System.Environment.OSVersion.Version.Major >= 6)
WindowsBase (1)
Shared\MS\Utility\Trace.cs (1)
137if (Environment.OSVersion.Version.Major < 6 ||
WsatConfig (1)
Configuration\Utilities.cs (1)
34get { return System.Environment.OSVersion.Version.Major; }
WsatUI (1)
Configuration\Utilities.cs (1)
34get { return System.Environment.OSVersion.Version.Major; }