ModelMetadata.GetSimpleDisplayText Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns text to display for the model when the model represents a complex object.
protected:
virtual System::String ^ GetSimpleDisplayText();
protected virtual string GetSimpleDisplayText ();
abstract member GetSimpleDisplayText : unit -> string
override this.GetSimpleDisplayText : unit -> string
Protected Overridable Function GetSimpleDisplayText () As String
Returns
The property value is derived by examining the following sequence of related values until a return value is found.
If the SimpleDisplayText property value is not
null
, that value is returned.If the Model property is
null
, the NullDisplayText property value is returned.If an attempt to convert the Model property to a string returns
null
, an empty string is returned.If the string conversion of the Model property value is the same as the FullName property of the Model property type, that value is returned.
If there are no properties in the Properties collection, an empty string is returned.
If none of the preceding tests have returned a value, the return value comes from the first property in the Properties collection. If the Model property of the first property is
null
, the NullDisplayText property value is returned; otherwise the result of converting the first property's Model property to a string is returned.
Applies to
Зворотний зв’язок
https://aka.ms/ContentUserFeedback.
Очікується незабаром: протягом 2024 року ми будемо припиняти використання механізму реєстрації проблем у GitHub для зворотного зв’язку щодо вмісту й замінювати його новою системою зворотного зв’язку. Докладніше:Надіслати й переглянути відгук про