PropertyValue.ConvertValueToString, méthode

En cas de substitution dans une classe dérivée, essaie de convertir le Object spécifié en un String.

Espace de noms :  Microsoft.Windows.Design.PropertyEditing
Assembly :  Microsoft.Windows.Design.Interaction (dans Microsoft.Windows.Design.Interaction.dll)

Syntaxe

'Déclaration
Protected MustOverride Function ConvertValueToString ( _
    value As Object _
) As String
protected abstract string ConvertValueToString(
    Object value
)
protected:
virtual String^ ConvertValueToString(
    Object^ value
) abstract
abstract ConvertValueToString : 
        value:Object -> string 
protected abstract function ConvertValueToString(
    value : Object
) : String

Paramètres

Valeur de retour

Type : System.String
Chaîne qui représente value.

Notes

Cette méthode est appelée par la méthode Get de la propriété StringValue.

Une implémentation typique peut utiliser le TypeConverter pour effectuer la conversion.

Cette méthode ne doit pas intercepter d'exceptions, mais les propager.

Sécurité .NET Framework

Voir aussi

Référence

PropertyValue Classe

Microsoft.Windows.Design.PropertyEditing, espace de noms

PropertyEntry

PropertyValueEditor

PropertyValueCollection

Autres ressources

Extensibilité du Concepteur WPF

Architecture d'édition de propriété