IConventionPropertyBuilder.CanSetMaxLength 메서드

정의

현재 구성 원본에서 이 속성에 허용되는 최대 데이터 길이를 설정할 수 있는지 여부를 나타내는 값을 반환합니다.

public bool CanSetMaxLength (int? maxLength, bool fromDataAnnotation = false);
abstract member CanSetMaxLength : Nullable<int> * bool -> bool
Public Function CanSetMaxLength (maxLength As Nullable(Of Integer), Optional fromDataAnnotation As Boolean = false) As Boolean

매개 변수

maxLength
Nullable<Int32>

속성에 허용되는 최대 데이터 길이입니다.

fromDataAnnotation
Boolean

데이터 주석을 사용하여 구성을 지정했는지 여부를 나타냅니다.

반환

true 이 속성에 대해 허용되는 최대 데이터 길이를 설정할 수 있으면 입니다.

적용 대상