CoreStrings.CannotBeNullable(Object, Object, Object) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
性質 '{1_entityType}。{0_property}' 無法被標記為可空/可選,因為該屬性的型別是 '{propertyType}',而這不是可空的型別。 任何屬性都可以標記為非空(non-nullable/required),但只有可空型的屬性可以標記為空(nullable/optional)。
public static string CannotBeNullable(object? property, object? entityType, object? propertyType);
public static string CannotBeNullable(object property, object entityType, object propertyType);
static member CannotBeNullable : obj * obj * obj -> string
Public Shared Function CannotBeNullable (property As Object, entityType As Object, propertyType As Object) As String
參數
- property
- Object
- entityType
- Object
- propertyType
- Object