CoreStrings.KeyInUse 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
| 名稱 | Description |
|---|---|
| KeyInUse(Object, Object, Object, Object) |
無法從實體類型 '{entityType}'' 中移除金鑰 {keyProperties},因為它是由定義在實體類型 '{dependentType}'' 上的外鍵 {foreignKeyProperties} 所引用。 移除或更改所有引用外鍵的主鍵,再移除該金鑰。 |
| KeyInUse(Object, Object, Object) |
無法移除實體類型 '{entityType}' 中的 {key} 鍵,因為它是由實體類型 '{dependentType}'' 的外鍵所引用。 所有外鍵必須先移除或重新定義,才能移除所參考的金鑰。 |
KeyInUse(Object, Object, Object, Object)
無法從實體類型 '{entityType}'' 中移除金鑰 {keyProperties},因為它是由定義在實體類型 '{dependentType}'' 上的外鍵 {foreignKeyProperties} 所引用。 移除或更改所有引用外鍵的主鍵,再移除該金鑰。
public static string KeyInUse(object? keyProperties, object? entityType, object? foreignKeyProperties, object? dependentType);
public static string KeyInUse(object keyProperties, object entityType, object foreignKeyProperties, object dependentType);
static member KeyInUse : obj * obj * obj * obj -> string
Public Shared Function KeyInUse (keyProperties As Object, entityType As Object, foreignKeyProperties As Object, dependentType As Object) As String
參數
- keyProperties
- Object
- entityType
- Object
- foreignKeyProperties
- Object
- dependentType
- Object
傳回
適用於
KeyInUse(Object, Object, Object)
無法移除實體類型 '{entityType}' 中的 {key} 鍵,因為它是由實體類型 '{dependentType}'' 的外鍵所引用。 所有外鍵必須先移除或重新定義,才能移除所參考的金鑰。
public static string KeyInUse(object key, object entityType, object dependentType);
static member KeyInUse : obj * obj * obj -> string
Public Shared Function KeyInUse (key As Object, entityType As Object, dependentType As Object) As String
參數
- key
- Object
- entityType
- Object
- dependentType
- Object