65 references to Platform
mscorlib (3)
system\environment.cs (1)
1179
s_IsWindows8OrAbove = (OS.
Platform
== PlatformID.Win32NT &&
system\globalization\culturedata.cs (2)
648
return Environment.OSVersion.
Platform
== PlatformID.Win32NT &&
653
return Environment.OSVersion.
Platform
== PlatformID.Win32NT &&
PresentationCore (1)
Core\CSharp\System\Windows\Interop\OperatingSystemVersionCheck.cs (1)
53
return (os.
Platform
== platform) &&
System (16)
compmod\microsoft\win32\SystemEvents.cs (1)
116
if (Environment.OSVersion.
Platform
== System.PlatformID.Win32NT) {
compmod\microsoft\win32\UnsafeNativeMethods.cs (1)
239
bool osSupportsPackagedProcesses = os.
Platform
== PlatformID.Win32NT && os.Version >= windows8Version;
net\System\Net\Internal.cs (1)
700
Debug.Assert(operatingSystem.
Platform
!= PlatformID.Win32Windows, "Windows 9x is not supported");
services\io\system\io\FileSystemWatcher.cs (1)
948
if (Environment.OSVersion.
Platform
!= PlatformID.Win32NT) {
services\monitoring\system\diagnosticts\EventLog.cs (1)
62
s_SkipRegPatch = (os.
Platform
== PlatformID.Win32NT) && (os.Version.Major > 5);
services\monitoring\system\diagnosticts\Process.cs (4)
486
if (OperatingSystem.
Platform
== PlatformID.Win32NT) {
795
(OperatingSystem.
Platform
!= PlatformID.Win32NT || OperatingSystem.Version.Major < 5)) {
1337
if (OperatingSystem.
Platform
!= PlatformID.Win32NT || OperatingSystem.Version.Major < 5)
1344
if (OperatingSystem.
Platform
!= PlatformID.Win32NT)
services\monitoring\system\diagnosticts\ProcessManager.cs (1)
133
return Environment.OSVersion.
Platform
== PlatformID.Win32NT;
services\monitoring\system\diagnosticts\ProcessModule.cs (1)
45
if (Environment.OSVersion.
Platform
!= PlatformID.Win32NT)
services\monitoring\system\diagnosticts\ProcessThread.cs (1)
318
if (Environment.OSVersion.
Platform
!= PlatformID.Win32NT) {
services\monitoring\system\diagnosticts\SharedUtils.cs (1)
74
if (Environment.OSVersion.
Platform
== PlatformID.Win32NT) {
sys\System\EnvironmentHelpers.cs (2)
18
if(Environment.OSVersion.
Platform
!= PlatformID.Win32NT) {
54
return os.
Platform
== PlatformID.Win32NT && os.Version.Major >= 6;
sys\system\io\ports\SerialStream.cs (1)
644
if (Environment.OSVersion.
Platform
== PlatformID.Win32Windows) {
System.Configuration (1)
System\Configuration\Internal\WriteFileContext.cs (1)
313
_osPlatform = Environment.OSVersion.
Platform
;
System.Core (2)
System\IO\Pipes\Pipe.cs (1)
503
if (Environment.OSVersion.
Platform
== PlatformID.Win32Windows) {
System\IO\Pipes\PipeStream.cs (1)
71
private static readonly bool _canUseAsync = (Environment.OSVersion.
Platform
== PlatformID.Win32NT);
System.Data (1)
fx\src\data\System\Data\Common\AdapterUtil.cs (1)
1879
static internal readonly bool IsWindowsNT = (PlatformID.Win32NT == Environment.OSVersion.
Platform
);
System.Drawing (4)
commonui\System\Drawing\Graphics.cs (1)
4579
if (!(Environment.OSVersion.
Platform
== System.PlatformID.Win32Windows)) {
commonui\System\Drawing\Printing\PrinterSettings.cs (1)
222
if (Environment.OSVersion.
Platform
== System.PlatformID.Win32NT) {
commonui\System\Drawing\SystemFonts.cs (2)
311
if (Environment.OSVersion.
Platform
== System.PlatformID.Win32NT &&
422
} else if (Environment.OSVersion.
Platform
== System.PlatformID.Win32Windows) {
System.Management (5)
Instrumentation\WMICapabilities.cs (3)
141
if(Environment.OSVersion.
Platform
== PlatformID.Win32Windows)
162
if(os.
Platform
==PlatformID.Win32NT && os.Version >= new Version(5, 1))
182
if(os.
Platform
==PlatformID.Win32NT && os.Version >= new Version(5, 1))
InteropClasses\WMIInterop.cs (1)
2153
if(os.
Platform
==PlatformID.Win32NT && os.Version >= new Version(5, 0))
managementscope.cs (1)
1142
if (Environment.OSVersion.
Platform
== PlatformID.Win32NT)
System.Messaging (1)
System\Messaging\AccessControlList.cs (1)
45
if (Environment.OSVersion.
Platform
== PlatformID.Win32NT) {
System.Runtime.Remoting (2)
channels\core\exclusivetcplistener.cs (1)
33
Environment.OSVersion.
Platform
== PlatformID.Win32NT &&
channels\ipc\ipcport.cs (1)
67
if (Environment.OSVersion.
Platform
!= PlatformID.Win32NT) {
System.Security (4)
system\security\cryptography\dataprotection.cs (4)
43
if (Environment.OSVersion.
Platform
== PlatformID.Win32Windows)
118
if (Environment.OSVersion.
Platform
== PlatformID.Win32Windows)
183
if (Environment.OSVersion.
Platform
== PlatformID.Win32Windows)
214
if (Environment.OSVersion.
Platform
== PlatformID.Win32Windows)
System.ServiceModel (1)
System\ServiceModel\Channels\UnsafeNativeMethods.cs (1)
1166
bool osSupportsPackagedProcesses = os.
Platform
== PlatformID.Win32NT && os.Version >= windows8Version;
System.Transactions (1)
System\Transactions\TransactionManager.cs (1)
758
if ( PlatformID.Win32NT != Environment.OSVersion.
Platform
)
System.Web (6)
Hosting\ApplicationHost.cs (1)
41
if (Environment.OSVersion.
Platform
!= PlatformID.Win32NT)
HttpRuntime.cs (1)
300
if (Environment.OSVersion.
Platform
!= PlatformID.Win32NT)
Util\SmtpMail.cs (2)
457
if (Environment.OSVersion.
Platform
!= PlatformID.Win32NT) {
484
if (Environment.OSVersion.
Platform
!= PlatformID.Win32NT) {
Util\Transactions.cs (1)
69
if (Environment.OSVersion.
Platform
!= PlatformID.Win32NT || Environment.OSVersion.Version.Major <= 4)
Util\WorkItem.cs (1)
40
if (Environment.OSVersion.
Platform
!= PlatformID.Win32NT)
System.Windows.Forms (16)
misc\DpiHelper.cs (1)
176
if ((Environment.OSVersion.
Platform
== System.PlatformID.Win32NT) &&
winforms\Managed\System\WinForms\Application.cs (2)
4067
if (Environment.OSVersion.
Platform
== PlatformID.Win32NT) {
4120
if (Environment.OSVersion.
Platform
== PlatformID.Win32NT) {
winforms\Managed\System\WinForms\Clipboard.cs (3)
334
if (Environment.OSVersion.
Platform
!= System.PlatformID.Win32NT ||
425
if (Environment.OSVersion.
Platform
!= System.PlatformID.Win32NT ||
548
if (Environment.OSVersion.
Platform
!= System.PlatformID.Win32NT ||
winforms\Managed\System\WinForms\FileDialog.cs (1)
1011
if (Environment.OSVersion.
Platform
!= System.PlatformID.Win32NT ||
winforms\Managed\System\WinForms\ListBox.cs (1)
804
if (Environment.OSVersion.
Platform
!= System.PlatformID.Win32NT ||
winforms\Managed\System\WinForms\OSFeature.cs (3)
69
if (Environment.OSVersion.
Platform
== System.PlatformID.Win32NT
97
if (Environment.OSVersion.
Platform
== System.PlatformID.Win32NT) {
107
if (Environment.OSVersion.
Platform
== System.PlatformID.Win32NT) {
winforms\Managed\System\WinForms\Printing\PrintDialog.cs (2)
248
if (!UseEXDialog || (Environment.OSVersion.
Platform
!= System.PlatformID.Win32NT ||
358
if (!UseEXDialog || (Environment.OSVersion.
Platform
!= System.PlatformID.Win32NT ||
winforms\Managed\System\WinForms\SystemInformation.cs (1)
1125
if (Environment.OSVersion.
Platform
== System.PlatformID.Win32NT) {
winforms\Managed\System\WinForms\Timer.cs (1)
332
if (Environment.OSVersion.
Platform
== PlatformID.Win32NT) {
winforms\Managed\System\WinForms\UnsafeNativeMethods.cs (1)
258
return (os.
Platform
== PlatformID.Win32NT) &&
System.Xml (1)
parent\parent\parent\parent\InternalApis\NDP_Common\inc\Win8Helpers.cs (1)
70
if(os.
Platform
== PlatformID.Win32NT && os.Version >= new Version(6,2,0,0) && DoesWin32MethodExist(KERNEL32, "GetCurrentPackageId"))