다음을 통해 공유


VsValidationController.CreateValidationContext 메서드 (IEnumerable<ModelElement>, array<String[])

유효성 검사에 컨텍스트 클래스 제공

네임스페이스:  Microsoft.VisualStudio.Modeling.Shell
어셈블리:  Microsoft.VisualStudio.Modeling.Sdk.Shell.12.0(Microsoft.VisualStudio.Modeling.Sdk.Shell.12.0.dll)

구문

‘선언
Protected Overrides Function CreateValidationContext ( _
    subjects As IEnumerable(Of ModelElement), _
    customCategories As String() _
) As ValidationContext
protected override ValidationContext CreateValidationContext(
    IEnumerable<ModelElement> subjects,
    string[] customCategories
)

매개 변수

  • customCategories
    형식: array<System.String[]
    지정된 사용자 지정 문자열의 목록입니다.유효성 검사 메서드가 지정된 문자열의 유효성을 검사할 수 있습니다.

반환 값

형식: Microsoft.VisualStudio.Modeling.Validation.ValidationContext

.NET Framework 보안

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

참고 항목

참조

VsValidationController 클래스

CreateValidationContext 오버로드

Microsoft.VisualStudio.Modeling.Shell 네임스페이스