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
.NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기