다음을 통해 공유


BindableObject.SetValue 메서드

정의

오버로드

SetValue(BindableProperty, Object)

지정된 바인딩 가능 속성의 값을 설정합니다.

SetValue(BindablePropertyKey, Object)

지정된 바인딩 가능 속성의 값을 설정합니다.

SetValue(BindableProperty, Object)

Source:
BindableObject.cs
Source:
BindableObject.cs

지정된 바인딩 가능 속성의 값을 설정합니다.

public:
 void SetValue(Microsoft::Maui::Controls::BindableProperty ^ property, System::Object ^ value);
public void SetValue (Microsoft.Maui.Controls.BindableProperty property, object value);
member this.SetValue : Microsoft.Maui.Controls.BindableProperty * obj -> unit
Public Sub SetValue (property As BindableProperty, value As Object)

매개 변수

property
BindableProperty

값을 할당할 바인딩 가능한 속성입니다.

value
Object

설정할 값입니다.

예외

throw되는 경우 property .null

설명

읽기 전용인 경우 property 아무 일도 발생하지 않습니다.

적용 대상

SetValue(BindablePropertyKey, Object)

Source:
BindableObject.cs
Source:
BindableObject.cs

지정된 바인딩 가능 속성의 값을 설정합니다.

public:
 void SetValue(Microsoft::Maui::Controls::BindablePropertyKey ^ propertyKey, System::Object ^ value);
public void SetValue (Microsoft.Maui.Controls.BindablePropertyKey propertyKey, object value);
member this.SetValue : Microsoft.Maui.Controls.BindablePropertyKey * obj -> unit
Public Sub SetValue (propertyKey As BindablePropertyKey, value As Object)

매개 변수

propertyKey
BindablePropertyKey

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

value
Object

설정할 값입니다.

예외

throw되는 경우 propertyKey .null

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

적용 대상