共用方式為


CoreStrings.KeyPropertyMustBeReadOnly(Object, Object) 方法

定義

屬性 '{1_entityType}。{0_property}' 必須在儲存後標示為唯讀,因為它是金鑰的一部分。 一旦實體第一次儲存,索引鍵屬性一律為唯讀。

public static string KeyPropertyMustBeReadOnly (object property, object entityType);
public static string KeyPropertyMustBeReadOnly (object? property, object? entityType);
static member KeyPropertyMustBeReadOnly : obj * obj -> string
Public Shared Function KeyPropertyMustBeReadOnly (property As Object, entityType As Object) As String

參數

property
Object
entityType
Object

傳回

適用於