System.Diagnostics Przestrzeń nazw
Zawiera klasy, które umożliwiają współdziałanie z procesami systemowymi, dziennikami zdarzeń i licznikami wydajności. Provides classes that allow you to interact with system processes, event logs, and performance counters.
Klasy
Activity |
Reprezentuje operację z kontekstem, który ma być używany do rejestrowania.Represents an operation with context to be used for logging. |
ActivityListener |
Umożliwia nasłuchiwanie zdarzeń uruchamiania i zatrzymywania działania oraz możliwość podjęcia decyzji o utworzeniu działania na potrzeby scenariuszy próbkowania.Allows listening to the start and stop activity events and gives the opportunity to decide creating an activity for sampling scenarios. |
ActivitySource |
Udostępnia interfejsy API do tworzenia i uruchamiania Activity obiektów oraz rejestrowania ActivityListener obiektów w celu nasłuchiwania Activity zdarzeń.Provides APIs to create and start Activity objects and to register ActivityListener objects to listen to the Activity events. |
ActivityTagsCollection |
ActivityTagsCollection jest klasą kolekcji służącą do przechowywania tagów śledzenia.ActivityTagsCollection is a collection class used to store tracing tags. Ta kolekcja zostanie użyta z klasami takimi jak ActivityEvent i ActivityLink .This collection will be used with classes like ActivityEvent and ActivityLink. Ta kolekcja zachowuje się w następujący sposób: — elementy kolekcji będą uporządkowane według sposobu ich dodawania.This collection behaves as follows: - The collection items will be ordered according to how they are added.
— Nie Zezwalaj na duplikowanie elementów z tym samym kluczem.- Don't allow duplication of items with the same key.
— W przypadku używania indeksatora do przechowywania elementu w kolekcji: — Jeśli element zawiera klucz, który wcześniej istniał w kolekcji, a wartość to |
BooleanSwitch |
Zapewnia prosty przełącznik włączania/wyłączania, który kontroluje debugowanie i śledzenie danych wyjściowych.Provides a simple on/off switch that controls debugging and tracing output. |
ConditionalAttribute |
Wskazuje kompilatorom, że wywołanie metody lub atrybut należy zignorować, chyba że zdefiniowany jest określony symbol kompilacji warunkowej.Indicates to compilers that a method call or attribute should be ignored unless a specified conditional compilation symbol is defined. |
ConsoleTraceListener |
Kieruje śledzenie lub debugowanie danych wyjściowych do standardowego wyjścia lub standardowego strumienia błędów.Directs tracing or debugging output to either the standard output or the standard error stream. |
CorrelationManager |
Korelacje śladów, które są częścią transakcji logicznej.Correlates traces that are part of a logical transaction. |
CounterCreationData |
Definiuje typ licznika, nazwę i ciąg pomocy dla licznika niestandardowego.Defines the counter type, name, and Help string for a custom counter. |
CounterCreationDataCollection |
Zapewnia silnie wpisaną kolekcję CounterCreationData obiektów.Provides a strongly typed collection of CounterCreationData objects. |
CounterSampleCalculator |
Udostępnia zestaw funkcji narzędzi do interpretacji danych licznika wydajności.Provides a set of utility functions for interpreting performance counter data. |
DataReceivedEventArgs |
Dostarcza dane dla OutputDataReceived zdarzeń i ErrorDataReceived .Provides data for the OutputDataReceived and ErrorDataReceived events. |
Debug |
Zawiera zestaw metod i właściwości, które ułatwiają Debugowanie kodu.Provides a set of methods and properties that help debug your code. |
DebuggableAttribute |
Modyfikuje generowanie kodu dla debugowania JIT (just-in-Time).Modifies code generation for runtime just-in-time (JIT) debugging. Klasa ta nie może być dziedziczona.This class cannot be inherited. |
Debugger |
Umożliwia komunikację z debugerem.Enables communication with a debugger. Klasa ta nie może być dziedziczona.This class cannot be inherited. |
DebuggerBrowsableAttribute |
Określa, czy i w jaki sposób element członkowski jest wyświetlany w oknach zmiennych debugera.Determines if and how a member is displayed in the debugger variable windows. Klasa ta nie może być dziedziczona.This class cannot be inherited. |
DebuggerDisplayAttribute |
Określa sposób wyświetlania klasy lub pola w oknach zmiennych debugera.Determines how a class or field is displayed in the debugger variable windows. |
DebuggerHiddenAttribute |
Określa DebuggerHiddenAttribute .Specifies the DebuggerHiddenAttribute. Klasa ta nie może być dziedziczona.This class cannot be inherited. |
DebuggerNonUserCodeAttribute |
Identyfikuje typ lub składową, która nie jest częścią kodu użytkownika dla aplikacji.Identifies a type or member that is not part of the user code for an application. |
DebuggerStepperBoundaryAttribute |
Wskazuje, że kod następujący po atrybucie ma być wykonywany w trybie Run, a nie Step.Indicates the code following the attribute is to be executed in run, not step, mode. |
DebuggerStepThroughAttribute |
Nakazuje debugerowi przechodzenie przez kod, a nie krokowe przechodzenie do kodu.Instructs the debugger to step through the code instead of stepping into the code. Klasa ta nie może być dziedziczona.This class cannot be inherited. |
DebuggerTypeProxyAttribute |
Określa serwer proxy wyświetlania dla danego typu.Specifies the display proxy for a type. |
DebuggerVisualizerAttribute |
Określa, że typ ma wizualizator.Specifies that the type has a visualizer. Klasa ta nie może być dziedziczona.This class cannot be inherited. |
DefaultTraceListener |
Dostarcza domyślne metody wyjściowe i zachowanie dla śledzenia.Provides the default output methods and behavior for tracing. |
DelimitedListTraceListener |
Kieruje śledzenie lub debugowanie danych wyjściowych do składnika zapisywania tekstu, takiego jak składnik zapisywania strumienia lub strumień, taki jak strumień pliku.Directs tracing or debugging output to a text writer, such as a stream writer, or to a stream, such as a file stream. |
DiagnosticListener |
Zapewnia implementację klasy abstrakcyjnej DiagnosticSource , która reprezentuje nazwane miejsce, do którego źródło wysyła informacje (zdarzenia).Provides an implementation of the abstract DiagnosticSource class that represents a named place to which a source sends its information (events). |
DiagnosticListenerExtensions | |
DiagnosticsConfigurationHandler |
Obsługuje sekcję Diagnostyka plików konfiguracji.Handles the diagnostics section of configuration files. |
DiagnosticSource |
Klasa abstrakcyjna, która pozwala na instrumentację kodu na potrzeby rejestrowania w czasie produkcyjnym bogatych ładunków danych do użycia w ramach procesu, który został objęty Instrumentacją.An abstract class that allows code to be instrumented for production-time logging of rich data payloads for consumption within the process that was instrumented. |
EntryWrittenEventArgs |
Udostępnia dane dla zdarzenia EntryWritten.Provides data for the EntryWritten event. |
EventInstance |
Przedstawia informacje neutralne od języka dla wpisu dziennika zdarzeń.Represents language-neutral information for an event log entry. |
EventLog |
Zapewnia interakcję z dziennikami zdarzeń systemu Windows.Provides interaction with Windows event logs. |
EventLogEntry |
Hermetyzuje pojedynczy rekord w dzienniku zdarzeń.Encapsulates a single record in the event log. Klasa ta nie może być dziedziczona.This class cannot be inherited. |
EventLogEntryCollection |
Definiuje rozmiar i moduł wyliczający dla kolekcji EventLogEntry wystąpień.Defines size and enumerators for a collection of EventLogEntry instances. |
EventLogInstaller |
Umożliwia zainstalowanie i skonfigurowanie dziennika zdarzeń, z którego aplikacja odczytuje lub zapisuje dane podczas uruchamiania.Allows you to install and configure an event log that your application reads from or writes to when running. |
EventLogPermission |
Kontroluje uprawnienia dostępu kodu do rejestrowania zdarzeń.Controls code access permissions for event logging. |
EventLogPermissionAttribute |
Zezwala na sprawdzanie uprawnień deklaratywnych na potrzeby rejestrowania zdarzeń.Allows declarative permission checks for event logging. |
EventLogPermissionEntry |
Definiuje najmniejszą jednostkę uprawnienia zabezpieczeń dostępu kodu, która jest ustawiona dla EventLog .Defines the smallest unit of a code access security permission that is set for an EventLog. |
EventLogPermissionEntryCollection |
Zawiera silnie wpisaną kolekcję EventLogPermissionEntry obiektów.Contains a strongly typed collection of EventLogPermissionEntry objects. |
EventLogTraceListener |
Udostępnia prosty odbiornik, który kieruje śledzenie lub debugowanie danych wyjściowych do EventLog .Provides a simple listener that directs tracing or debugging output to an EventLog. |
EventSchemaTraceListener |
Kieruje śledzenie lub debugowanie danych wyjściowych z kompleksowych zdarzeń do pliku dziennika zgodnego ze schematem XML.Directs tracing or debugging output of end-to-end events to an XML-encoded, schema-compliant log file. |
EventSourceCreationData |
Reprezentuje ustawienia konfiguracji służące do tworzenia źródła dziennika zdarzeń na komputerze lokalnym lub komputerze zdalnym.Represents the configuration settings used to create an event log source on the local computer or a remote computer. |
EventTypeFilter |
Wskazuje, czy odbiornik powinien śledzić na podstawie typu zdarzenia.Indicates whether a listener should trace based on the event type. |
FileVersionInfo |
Zawiera informacje o wersji pliku fizycznego na dysku.Provides version information for a physical file on disk. |
InstanceData |
Przechowuje dane wystąpienia skojarzone z przykładem licznika wydajności.Holds instance data associated with a performance counter sample. |
InstanceDataCollection |
Zapewnia silnie wpisaną kolekcję InstanceData obiektów.Provides a strongly typed collection of InstanceData objects. |
InstanceDataCollectionCollection |
Zapewnia silnie wpisaną kolekcję InstanceDataCollection obiektów.Provides a strongly typed collection of InstanceDataCollection objects. |
MonitoringDescriptionAttribute |
Określa opis właściwości lub zdarzenia.Specifies a description for a property or event. |
PerformanceCounter |
Reprezentuje składnik licznika wydajności systemu Windows NT.Represents a Windows NT performance counter component. |
PerformanceCounterCategory |
Reprezentuje obiekt wydajności, który definiuje kategorię liczników wydajności.Represents a performance object, which defines a category of performance counters. |
PerformanceCounterInstaller |
Określa Instalatora PerformanceCounter składnika.Specifies an installer for the PerformanceCounter component. |
PerformanceCounterManager |
Przygotowuje dane wydajności performance.dll ładowania systemu podczas pracy z licznikami wydajności.Prepares performance data for the performance.dll the system loads when working with performance counters. |
PerformanceCounterPermission |
Umożliwia kontrolę uprawnień dostępu kodu dla programu PerformanceCounter .Allows control of code access permissions for PerformanceCounter. |
PerformanceCounterPermissionAttribute |
Zezwala na sprawdzanie uprawnień deklaracyjnego licznika wydajności.Allows declarative performance counter permission checks. |
PerformanceCounterPermissionEntry |
Definiuje najmniejszą jednostkę uprawnienia zabezpieczeń dostępu kodu, która jest ustawiana dla PerformanceCounter .Defines the smallest unit of a code access security permission that is set for a PerformanceCounter. |
PerformanceCounterPermissionEntryCollection |
Zawiera silnie wpisaną kolekcję PerformanceCounterPermissionEntry obiektów.Contains a strongly typed collection of PerformanceCounterPermissionEntry objects. |
PresentationTraceSources |
Zapewnia obsługę śledzenia debugowania, która jest przeznaczona dla aplikacji Windows Presentation Foundation (WPF).Provides debug tracing support that is specifically targeted for Windows Presentation Foundation (WPF) applications. |
Process |
Zapewnia dostęp do procesów lokalnych i zdalnych oraz umożliwia uruchamianie i zatrzymywanie procesów systemu lokalnego.Provides access to local and remote processes and enables you to start and stop local system processes. |
ProcessModule |
Reprezentuje plik a.dll lub exe, który jest ładowany do określonego procesu.Represents a.dll or .exe file that is loaded into a particular process. |
ProcessModuleCollection |
Zapewnia silnie wpisaną kolekcję ProcessModule obiektów.Provides a strongly typed collection of ProcessModule objects. |
ProcessStartInfo |
Określa zestaw wartości, które są używane podczas uruchamiania procesu.Specifies a set of values that are used when you start a process. |
ProcessThread |
Reprezentuje wątek procesu systemu operacyjnego.Represents an operating system process thread. |
ProcessThreadCollection |
Zapewnia silnie wpisaną kolekcję ProcessThread obiektów.Provides a strongly typed collection of ProcessThread objects. |
SourceFilter |
Wskazuje, czy odbiornik powinien śledzić komunikat na podstawie źródła śladu.Indicates whether a listener should trace a message based on the source of a trace. |
SourceSwitch |
Udostępnia przełącznik wielopoziomowy umożliwiający sterowanie śledzeniem i debugowaniem danych wyjściowych bez konieczności ponownego kompilowania kodu.Provides a multilevel switch to control tracing and debug output without recompiling your code. |
StackFrame |
Zawiera informacje na temat elementu StackFrame , który reprezentuje wywołanie funkcji na stosie wywołań dla bieżącego wątku.Provides information about a StackFrame, which represents a function call on the call stack for the current thread. |
StackFrameExtensions |
Dostarcza metody rozszerzające dla StackFrame klasy, która reprezentuje wywołanie funkcji na stosie wywołań dla bieżącego wątku.Provides extension methods for the StackFrame class, which represents a function call on the call stack for the current thread. |
StackTrace |
Reprezentuje ślad stosu, który jest uporządkowaną kolekcją co najmniej jednej ramki stosu.Represents a stack trace, which is an ordered collection of one or more stack frames. |
Stopwatch |
Zawiera zestaw metod i właściwości, których można użyć do dokładnego mierzenia czasu, który upłynął.Provides a set of methods and properties that you can use to accurately measure elapsed time. |
Switch |
Zapewnia abstrakcyjną klasę bazową do tworzenia nowych przełączników debugowania i śledzenia.Provides an abstract base class to create new debugging and tracing switches. |
SwitchAttribute |
Identyfikuje przełącznik używany w zestawie, klasie lub składowej.Identifies a switch used in an assembly, class, or member. |
SwitchLevelAttribute |
Określa typ poziomu dla przełącznika.Identifies the level type for a switch. |
TextWriterTraceListener |
Kieruje śledzenie lub debugowanie danych wyjściowych do a, na przykład TextWriter Stream FileStream .Directs tracing or debugging output to a TextWriter or to a Stream, such as FileStream. |
Trace |
Zawiera zestaw metod i właściwości, które ułatwiają śledzenie wykonywania kodu.Provides a set of methods and properties that help you trace the execution of your code. Klasa ta nie może być dziedziczona.This class cannot be inherited. |
TraceEventCache |
Udostępnia dane zdarzeń śledzenia specyficzne dla wątku i procesu.Provides trace event data specific to a thread and a process. |
TraceFilter |
Udostępnia klasę bazową dla implementacji filtru śledzenia.Provides the base class for trace filter implementations. |
TraceListener |
Udostępnia |
TraceListenerCollection |
Zawiera bezpieczną wątkowo listę TraceListener obiektów.Provides a thread-safe list of TraceListener objects. |
TraceSource |
Zawiera zestaw metod i właściwości, które umożliwiają aplikacjom śledzenie wykonywania kodu i kojarzenie komunikatów śledzenia ze źródłem.Provides a set of methods and properties that enable applications to trace the execution of code and associate trace messages with their source. |
TraceSwitch |
Udostępnia przełącznik wielopoziomowy umożliwiający sterowanie śledzeniem i debugowaniem danych wyjściowych bez konieczności ponownego kompilowania kodu.Provides a multilevel switch to control tracing and debug output without recompiling your code. |
UnescapedXmlDiagnosticData |
Dostarcza nieucieczkne dane XML do rejestrowania danych śledzenia dostarczonych przez użytkownika.Provides unescaped XML data for the logging of user-provided trace data. |
XmlWriterTraceListener |
Kieruje śledzenie lub debugowanie danych wyjściowych jako dane zakodowane w formacie XML do TextWriter lub do Stream , takich jak FileStream .Directs tracing or debugging output as XML-encoded data to a TextWriter or to a Stream, such as a FileStream. |
Struktury
ActivityContext |
Reprezentacja, która jest zgodna ze specyfikacją W3C TraceContext — śledzenie.A representation that conforms to the W3C TraceContext specification. Zawiera dwa identyfikatory: TraceId i SpanId, wraz z zestawem wspólnych wartości TraceFlags i określonych przez system.It contains two identifiers: a TraceId and a SpanId, along with a set of common TraceFlags and system-specific TraceState values. |
ActivityCreationOptions<T> |
Hermetyzuje wszystkie informacje wysyłane do odbiornika aktywności, aby podejmować decyzje dotyczące tworzenia wystąpienia działania, a także jego stanu.Encapsulates all the information that is sent to the activity listener, to make decisions about the creation of the activity instance, as well as its state. Możliwe parametry typu ogólnego to ActivityContext lub String .The possible generic type parameters are ActivityContext or String. |
ActivityEvent |
Reprezentuje zdarzenie zawierające nazwę i sygnaturę czasową oraz opcjonalną listę tagów.Represents an event containing a name and a timestamp, as well as an optional list of tags. |
ActivityLink |
Działania mogą być połączone z zero lub więcej wystąpieniami kontekstu działania, które są ze sobą powiązane.Activities may be linked to zero or more activity context instances that are causally related. Linki działania mogą wskazywać konteksty aktywności wewnątrz pojedynczego śladu lub do różnych śladów.Activity links can point to activity contexts inside a single trace or across different traces. Linki działania mogą służyć do reprezentowania operacji wsadowych, w których działanie zostało zainicjowane przez wiele działań inicjujących, z których każdy reprezentuje pojedynczy element przychodzący w partii.Activity links can be used to represent batched operations where an activity was initiated by multiple initiating activities, each representing a single incoming item being processed in the batch. |
ActivitySpanId |
Reprezentuje SpanId sformatowaną na podstawie standardu W3C.Represents a SpanId formatted based on a W3C standard. |
ActivityTagsCollection.Enumerator |
Wylicza elementy |
ActivityTraceId |
Reprezentuje, TraceId którego formatu bazuje na standardzie W3C.Represents a TraceId whose format is based on a W3C standard. |
CounterSample |
Definiuje strukturę, która przechowuje dane pierwotne dla licznika wydajności.Defines a structure that holds the raw data for a performance counter. |
Interfejsy
ICollectData |
Przygotowuje dane wydajności dla biblioteki DLL wydajności ładowanych przez system podczas pracy z licznikami wydajności.Prepares performance data for the performance DLL the system loads when working with performance counters. |
Wyliczenia
ActivityIdFormat |
Określa format Id właściwości.Specifies the format of the Id property. |
ActivityKind |
Opisuje relację między działaniem, jego elementami nadrzędnymi i jego elementami podrzędnymi w śladie.Describes the relationship between the activity, its parents and its children in a trace. |
ActivitySamplingResult |
Wartości wyliczenia używane przez program ActivityListener wskazują ilość danych do zebrania dla pokrewnych Activity . Żądanie większej ilości danych powoduje zwiększenie wydajności.Requesting more data causes a greater performance overhead. |
ActivityTraceFlags |
Określa flagi zdefiniowane przez standard W3C, które są skojarzone z działaniem.Specifies flags defined by the W3C standard that are associated with an activity. |
DebuggableAttribute.DebuggingModes |
Określa tryb debugowania dla kompilatora just-in-Time (JIT).Specifies the debugging mode for the just-in-time (JIT) compiler. |
DebuggerBrowsableState |
Zawiera instrukcje wyświetlania debugera.Provides display instructions for the debugger. |
EventLogEntryType |
Określa typ zdarzenia wpisu dziennika zdarzeń.Specifies the event type of an event log entry. |
EventLogPermissionAccess |
Definiuje poziomy dostępu używane przez EventLog klasy uprawnień.Defines access levels used by EventLog permission classes. |
OverflowAction |
Określa sposób obsługi wpisów w dzienniku zdarzeń, który osiągnął maksymalny rozmiar pliku.Specifies how to handle entries in an event log that has reached its maximum file size. |
PerformanceCounterCategoryType |
Wskazuje, czy kategoria licznika wydajności może mieć wiele wystąpień.Indicates whether the performance counter category can have multiple instances. |
PerformanceCounterInstanceLifetime |
Określa okres istnienia wystąpienia licznika wydajności.Specifies the lifetime of a performance counter instance. |
PerformanceCounterPermissionAccess |
Definiuje poziomy dostępu używane przez PerformanceCounter klasy uprawnień.Defines access levels used by PerformanceCounter permission classes. |
PerformanceCounterType |
Określa typy liczników wydajności, które są mapowane bezpośrednio na typy natywne.Specifies performance counter types that map directly to native types. |
PresentationTraceLevel |
Opisuje poziom szczegółowości śledzenia określonego obiektu.Describes the level of detail to trace about a particular object. |
ProcessPriorityClass |
Wskazuje priorytet, który system kojarzy z procesem.Indicates the priority that the system associates with a process. Ta wartość wraz z wartością priorytetu każdego wątku procesu określa poziom priorytetu podstawowego każdego wątku.This value, together with the priority value of each thread of the process, determines each thread's base priority level. |
ProcessWindowStyle |
Określono, jak nowe okno ma być wyświetlane, gdy system uruchamia proces.Specified how a new window should appear when the system starts a process. |
SourceLevels |
Określa poziomy komunikatów śledzenia filtrowanych przez przełącznik źródłowy i filtr typu zdarzenia.Specifies the levels of trace messages filtered by the source switch and event type filter. |
ThreadPriorityLevel |
Określa poziom priorytetu wątku.Specifies the priority level of a thread. |
ThreadState |
Określa bieżący stan wykonywania wątku.Specifies the current execution state of the thread. |
ThreadWaitReason |
Określa przyczynę oczekiwania wątku.Specifies the reason a thread is waiting. |
TraceEventType |
Identyfikuje typ zdarzenia, które spowodowało wynik śledzenia.Identifies the type of event that has caused the trace. |
TraceLevel |
Określa, jakie komunikaty mają być wyprowadzane przez Debug Trace klasy, i TraceSwitch .Specifies what messages to output for the Debug, Trace and TraceSwitch classes. |
TraceLogRetentionOption |
Określa strukturę pliku, która będzie używana dla EventSchemaTraceListener dziennika.Specifies the file structure that will be used for the EventSchemaTraceListener log. |
TraceOptions |
Określa opcje danych śledzenia, które mają być zapisywane w danych wyjściowych śledzenia.Specifies trace data options to be written to the trace output. |
Delegaci
DataReceivedEventHandler |
Reprezentuje metodę, która będzie obsługiwać OutputDataReceived zdarzenie lub ErrorDataReceived zdarzenie Process .Represents the method that will handle the OutputDataReceived event or ErrorDataReceived event of a Process. |
EntryWrittenEventHandler |
Reprezentuje metodę, która będzie obsługiwać EntryWritten zdarzenie EventLog .Represents the method that will handle the EntryWritten event of an EventLog. |
SampleActivity<T> |
Delegat, który definiuje sygnaturę ActivityListener wywołań zwrotnych używanych w procesie próbkowania.A delegate that defines the signature of the ActivityListener callbacks used in the sampling process. |
Uwagi
EventLogSkładnik udostępnia funkcje zapisu w dziennikach zdarzeń, odczytywania wpisów dziennika zdarzeń oraz tworzenia i usuwania dzienników zdarzeń oraz źródeł zdarzeń w sieci.The EventLog component provides functionality to write to event logs, read event log entries, and create and delete event logs and event sources on the network. EntryWrittenEventHandlerZapewnia sposób, aby można było korzystać z dzienników zdarzeń asynchronicznie.The EntryWrittenEventHandler provides a way to interact with event logs asynchronously. Klasy pomocnicze zapewniają dostęp do bardziej szczegółowej kontroli, w tym: ograniczenia uprawnień, możliwość określania typów dzienników zdarzeń (które sterują typem danych domyślnych zapisywanych w ramach wpisu dziennika zdarzeń) i iteracji przez kolekcje wpisów dziennika zdarzeń.Supporting classes provide access to more detailed control, including: permission restrictions, the ability to specify event log types (which controls the type of default data that is written with an event log entry), and iterate through collections of event log entries. Aby uzyskać więcej informacji na temat tych zadań, EventLogPermission Zobacz EventLogEntryType klasy, i EventLogEntryCollection .For more information about these tasks, see the EventLogPermission, EventLogEntryType, and EventLogEntryCollection classes.
ProcessKlasa zapewnia funkcjonalność do monitorowania procesów systemowych w sieci oraz uruchamiania i zatrzymywania procesów systemu lokalnego.The Process class provides functionality to monitor system processes across the network, and to start and stop local system processes. Oprócz pobierania list uruchomionych procesów (przez określenie komputera, nazwy procesu lub identyfikatora procesu) lub wyświetlania informacji o procesie, który aktualnie ma dostęp do procesora, można uzyskać szczegółową wiedzę na temat wątków procesów i modułów zarówno za pośrednictwem Process samej klasy, jak i przez współdziałanie z ProcessThread ProcessModule klasami i.In addition to retrieving lists of running processes (by specifying either the computer, the process name, or the process id) or viewing information about the process that currently has access to the processor, you can get detailed knowledge of process threads and modules both through the Process class itself, and by interacting with the ProcessThread and ProcessModule classes. ProcessStartInfoKlasa pozwala określić różne elementy, z których ma zostać uruchomiony nowy proces, na przykład dane wejściowe, wyjściowe i błędy, katalogi robocze oraz czasowniki i argumenty wiersza polecenia.The ProcessStartInfo class enables you to specify a variety of elements with which to start a new process, such as input, output, and error streams, working directories, and command line verbs and arguments. Zapewniają one kontrolę nad zachowaniem procesów.These give you fine control over the behavior of your processes. Inne powiązane klasy umożliwiają określanie stylów okna, priorytetów procesów i wątków oraz umożliwiają korzystanie z kolekcji wątków i modułów.Other related classes let you specify window styles, process and thread priorities, and interact with collections of threads and modules.
PerformanceCounterKlasa umożliwia monitorowanie wydajności systemu, podczas gdy PerformanceCounterCategory Klasa umożliwia tworzenie nowych niestandardowych liczników i kategorii.The PerformanceCounter class enables you to monitor system performance, while the PerformanceCounterCategory class provides a way to create new custom counters and categories. Możesz zapisywać w lokalnych licznikach niestandardowych i odczytywać zarówno lokalne, jak i zdalne liczniki (system, a także niestandardowe).You can write to local custom counters and read from both local and remote counters (system as well as custom). Liczniki można próbkować za pomocą PerformanceCounter klasy i obliczać wyniki z kolejnych próbek liczników wydajności przy użyciu CounterSample klasy.You can sample counters using the PerformanceCounter class, and calculate results from successive performance counter samples using the CounterSample class. CounterCreationDataKlasa umożliwia tworzenie wielu liczników w kategorii i określanie ich typów.The CounterCreationData class enables you to create multiple counters in a category and specify their types. Inne klasy skojarzone ze składnikiem licznika wydajności zapewniają dostęp do kolekcji liczników, uprawnień liczników i typów liczników.Other classes associated with the performance counter component provide access to collections of counters, counter permission, and counter types.
System.DiagnosticsPrzestrzeń nazw zawiera również klasy, które umożliwiają debugowanie aplikacji i śledzenie wykonywania kodu.The System.Diagnostics namespace also provides classes that allow you to debug your application and to trace the execution of your code. Aby uzyskać więcej informacji, zobacz Trace Debug klasy i.For more information, see the Trace and Debug classes.