MetaTable.GetDisplayString(Object) Method

Definition

Returns the value to use as the display string for an instance of a row when the row is used in foreign-key relationships.

C#
public string GetDisplayString(object row);
C#
public virtual string GetDisplayString(object row);

Parameters

row
Object

The row to get the display string for.

Returns

The display name for an instance of a row.

Remarks

If the row is null, an empty string is returned. If the entity class includes an override of the ToString method, the overridden ToString value is returned. Otherwise, the method returns the ToString representation of the value of the DisplayColumn property for the specified row.

Applies to

Proizvod Verzije
.NET Framework 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1