Condividi tramite


Metodo StructuralObject.SetValidValue (Nullable<Boolean>, String)

[Questa pagina è specifica della versione 6 di Entity Framework. La versione più recente è disponibile come pacchetto NuGet per "Entity Framework". Per ulteriori informazioni su Entity Framework, vedere la pagina msdn.com/data/ef.]

Assicura che il valore Boolean impostato per una proprietà sia valido.

Spazio dei nomi:  System.Data.Entity.Core.Objects.DataClasses
Assembly:  EntityFramework (in EntityFramework.dll)

Sintassi

'Dichiarazione
<SuppressMessageAttribute("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId := "propertyName")> _
Protected Friend Shared Function SetValidValue ( _
    value As Nullable(Of Boolean), _
    propertyName As String _
) As Nullable(Of Boolean)
'Utilizzo
Dim value As Nullable(Of Boolean)
Dim propertyName As String 
Dim returnValue As Nullable(Of Boolean)

returnValue = StructuralObject.SetValidValue(value, _
    propertyName)
[SuppressMessageAttribute("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "propertyName")]
protected internal static Nullable<bool> SetValidValue(
    Nullable<bool> value,
    string propertyName
)
[SuppressMessageAttribute(L"Microsoft.Usage", L"CA1801:ReviewUnusedParameters", MessageId = L"propertyName")]
protected public:
static Nullable<bool> SetValidValue(
    Nullable<bool> value, 
    String^ propertyName
)
[<SuppressMessageAttribute("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "propertyName")>]
static member SetValidValue : 
        value:Nullable<bool> * 
        propertyName:string -> Nullable<bool> 
static function SetValidValue(
    value : Nullable<boolean>, 
    propertyName : String
) : Nullable<boolean>

Parametri

  • propertyName
    Tipo: System.String
    Nome della proprietà che verrà convalidata.

Valore restituito

Tipo: System.Nullable<Boolean>
Valore Boolean che ammette i valori Null che viene impostato.

Vedere anche

Riferimento

StructuralObject Classe

Overload SetValidValue

Spazio dei nomi System.Data.Entity.Core.Objects.DataClasses