LoadTestConstantLoadProfile.MaxUserCount 속성

최대 사용자 수를 가져오거나 설정합니다.최대 사용자 수는 LoadTestConstantLoadProfile 클래스의 UserCount와 같습니다.

네임스페이스:  Microsoft.VisualStudio.TestTools.LoadTesting
어셈블리:  Microsoft.VisualStudio.QualityTools.LoadTestFramework(Microsoft.VisualStudio.QualityTools.LoadTestFramework.dll)

구문

‘선언
Public Overrides Property MaxUserCount As Integer
public override int MaxUserCount { get; set; }
public:
virtual property int MaxUserCount {
    int get () override;
    void set (int value) override;
}
abstract MaxUserCount : int with get, set
override MaxUserCount : int with get, set
override function get MaxUserCount () : int
override function set MaxUserCount (value : int)

속성 값

형식: System.Int32
최대 사용자 수입니다.

설명

LoadTestLoadProfile 클래스의 속성 변경 사항은 LoadTestLoadProfile 개체를 LoadTestScenarioLoadProfile 속성에 할당하기 전에 이루어져야 합니다.LoadTestLoadProfile 개체를 LoadProfile 속성에 할당하면 읽기 전용 버전이 됩니다.LoadProfile 개체가 읽기 전용 상태일 때 그 속성을 설정하려고 하면 예외가 throw됩니다.쓰기 가능한 새 LoadProfile 개체를 가져오려면 LoadTestGoalBasedLoadProfile의 예제에서처럼 Copy() 메서드를 호출합니다.

.NET Framework 보안

  • 직접 실행 호출자의 경우 완전히 신뢰합니다. 이 멤버는 부분적으로 신뢰할 수 있는 코드에서 사용할 수 없습니다. 자세한 내용은 부분 신뢰 코드에서 라이브러리 사용을 참조하십시오.

참고 항목

참조

LoadTestConstantLoadProfile 클래스

Microsoft.VisualStudio.TestTools.LoadTesting 네임스페이스