다음을 통해 공유


CounterData.Value 속성

정의

카운터 데이터를 가져오거나 설정합니다.

public:
 property long Value { long get(); void set(long value); };
public long Value { get; set; }
public long Value { [System.Security.SecurityCritical] get; [System.Security.SecurityCritical] set; }
member this.Value : int64 with get, set
[<get: System.Security.SecurityCritical>]
[<set: System.Security.SecurityCritical>]
member this.Value : int64 with get, set
Public Property Value As Long

속성 값

카운터 데이터입니다.

특성

예제

예제를 보려면 System.Diagnostics.PerformanceData를 참조하세요.

설명

이 속성은 다중 스레드 애플리케이션에 대 한 카운터 데이터에 대 한 안전한 액세스를 제공 합니다. 성능이 주요 관심사인 경우 속성을 사용합니다 RawValue . 그러나 속성은 RawValue 스레드로부터 안전하지 않습니다.

속성은 Value .NET Framework 3.5에서 스레드로부터 안전하지 않습니다.

카운터 값을 증분하려면 또는 IncrementBy 메서드를 Increment 사용하는 것이 좋습니다.

적용 대상