منتدى فيجوال بيسك لكل العرب | منتدى المبرمجين العرب

نسخة كاملة : Environment.FailFast Method بال C# و VB.net
أنت حالياً تتصفح نسخة خفيفة من المنتدى . مشاهدة نسخة كاملة مع جميع الأشكال الجمالية .
كاتب الموضوع : AhmedEssawy

VB


كود :
[align=left]' Sample for the Environment.HasShutdownStarted property
Imports System

Class Sample
Public Shared Sub Main()
Console.WriteLine()
Console.WriteLine("HasShutdownStarted: {0}", Environment.HasShutdownStarted)
End Sub 'Main
End Class 'Sample
'
'This example produces the following results:
'
'HasShutdownStarted: False
'[/align]
C#

كود :
[align=left]// Sample for the Environment.HasShutdownStarted property
using System;

class Sample
{
public static void Main()
{
Console.WriteLine();
Console.WriteLine("HasShutdownStarted: {0}", Environment.HasShutdownStarted);
}
}
/*
This example produces the following results:

HasShutdownStarted: False
*/[/align]