BindableObject.CoerceValue 메서드

정의

오버로드

CoerceValue(BindableProperty)

지정된 바인딩 가능한 속성의 값을 강제 변환합니다. 이 작업은 지정된 바인딩 가능한 속성을 호출하여 BindableProperty.CoerceValueDelegate 수행됩니다.

CoerceValue(BindablePropertyKey)

지정된 바인딩 가능한 속성의 값을 강제 변환합니다. 이 작업은 지정된 바인딩 가능한 속성을 호출하여 BindableProperty.CoerceValueDelegate 수행됩니다.

CoerceValue(BindableProperty)

지정된 바인딩 가능한 속성의 값을 강제 변환합니다. 이 작업은 지정된 바인딩 가능한 속성을 호출하여 BindableProperty.CoerceValueDelegate 수행됩니다.

public:
 void CoerceValue(Microsoft::Maui::Controls::BindableProperty ^ property);
public void CoerceValue (Microsoft.Maui.Controls.BindableProperty property);
member this.CoerceValue : Microsoft.Maui.Controls.BindableProperty -> unit
Public Sub CoerceValue (property As BindableProperty)

매개 변수

property
BindableProperty

값을 강제 변환할 바인딩 가능한 속성입니다.

예외

propertynull인 경우

가 읽기 전용일 때 property throw됩니다.

의 할당된 논리에 따라 값이 유효하지 않을 때 throw됩니다 BindableProperty.ValidateValueDelegate.

설명

가 할당되지 않으면 BindableProperty.CoerceValueDelegate 아무 작업도 수행되지 않습니다.

적용 대상

CoerceValue(BindablePropertyKey)

지정된 바인딩 가능한 속성의 값을 강제 변환합니다. 이 작업은 지정된 바인딩 가능한 속성을 호출하여 BindableProperty.CoerceValueDelegate 수행됩니다.

public:
 void CoerceValue(Microsoft::Maui::Controls::BindablePropertyKey ^ propertyKey);
public void CoerceValue (Microsoft.Maui.Controls.BindablePropertyKey propertyKey);
member this.CoerceValue : Microsoft.Maui.Controls.BindablePropertyKey -> unit
Public Sub CoerceValue (propertyKey As BindablePropertyKey)

매개 변수

propertyKey
BindablePropertyKey

값을 강제 변환할 바인딩 가능한 속성을 식별하는 키입니다.

예외

propertyKeynull인 경우

로 식별된 바인딩 가능한 속성이 propertyKey 읽기 전용인 경우 throw됩니다.

의 할당된 논리에 따라 값이 유효하지 않을 때 throw됩니다 BindableProperty.ValidateValueDelegate.

설명

가 할당되지 않으면 BindableProperty.CoerceValueDelegate 아무 작업도 수행되지 않습니다.

적용 대상