DependencyObject.SetValueBase(DependencyProperty, Object) Método
Definição
Define o valor da DependencyProperty usando o Object especificado, ignorando o SetValue(DependencyProperty, Object).Sets the value of the DependencyProperty to the specified Object, bypassing the SetValue(DependencyProperty, Object).
public:
void SetValueBase(System::Workflow::ComponentModel::DependencyProperty ^ dependencyProperty, System::Object ^ value);
public void SetValueBase (System.Workflow.ComponentModel.DependencyProperty dependencyProperty, object value);
member this.SetValueBase : System.Workflow.ComponentModel.DependencyProperty * obj -> unit
Public Sub SetValueBase (dependencyProperty As DependencyProperty, value As Object)
Parâmetros
- dependencyProperty
- DependencyProperty
O DependencyProperty a ser definido para o Object.The DependencyProperty to be set to the Object.
- value
- Object
O Object que se torna o valor do DependencyProperty.The Object that becomes the value of the DependencyProperty.
Exceções
dependencyProperty é uma referência nula (Nothing no Visual Basic).dependencyProperty is a null reference (Nothing in Visual Basic).
Comentários
Esse método é útil na SetValue implementação de substituição.This method is useful inside the SetValue override implementation. Normalmente, o SetValue código de substituição faria alguma lógica personalizada antes de chamar o SetValueBase método.Typically, the SetValue override code would do some custom logic before calling the SetValueBase method.
Para definir uma SetValue substituição, PropertyMetadata pode ser usado em DependencyProperty Register chamadas, ou RegisterAttached .For setting a SetValue override, PropertyMetadata can be used in DependencyProperty, Register, or RegisterAttached calls.