PropertyBaseExtensions.Format 方法

定義

建立指定屬性的格式化字串表示,例如 在擲回索引鍵、索引等例外狀況時很有用。使用 屬性的 。

public static string Format (this System.Collections.Generic.IEnumerable<Microsoft.EntityFrameworkCore.Metadata.IReadOnlyPropertyBase> properties, bool includeTypes = false);
static member Format : seq<Microsoft.EntityFrameworkCore.Metadata.IReadOnlyPropertyBase> * bool -> string
<Extension()>
Public Function Format (properties As IEnumerable(Of IReadOnlyPropertyBase), Optional includeTypes As Boolean = false) As String

參數

properties
IEnumerable<IReadOnlyPropertyBase>

要格式化的屬性。

includeTypes
Boolean

如果為 true,則類型名稱會包含在字串中。 預設值為 false

傳回

字串表示。

適用於