LoadTestContext.Remove 메서드 (String)

LoadTestContext에서 지정된 키를 가진 요소를 제거합니다.

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

구문

‘선언
Public Function Remove ( _
    key As String _
) As Boolean
public bool Remove(
    string key
)
public:
virtual bool Remove(
    String^ key
) sealed
abstract Remove : 
        key:string -> bool 
override Remove : 
        key:string -> bool 
public final function Remove(
    key : String
) : boolean

매개 변수

반환 값

형식: System.Boolean
요소가 성공적으로 제거되면 true이고, 그렇지 않으면 false입니다.이 메서드는 key가 원래 LoadTestContext에 없는 경우에도 false를 반환합니다.

구현

IDictionary<TKey, TValue>.Remove(TKey)

예외

예외 조건
ArgumentNullException

key가 nullNull 참조(Visual Basic의 경우 Nothing)입니다.

NotSupportedException

LoadTestContext는 읽기 전용입니다.

.NET Framework 보안

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

참고 항목

참조

LoadTestContext 클래스

Remove 오버로드

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