Condividi tramite


Metodo StructuralObject.SetValidValue (Nullable<SByte>, 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 SByte impostato per una proprietà sia valido.

Questa API non è conforme a CLS. 

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

Sintassi

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

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

Parametri

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

Valore restituito

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

Vedere anche

Riferimento

StructuralObject Classe

Overload SetValidValue

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