Condividi tramite


Metodo StructuralObject.SetValidValue (Nullable<Int16>, 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 Int16 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 Short), _
    propertyName As String _
) As Nullable(Of Short)
'Utilizzo
Dim value As Nullable(Of Short)
Dim propertyName As String 
Dim returnValue As Nullable(Of Short)

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

Parametri

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

Valore restituito

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

Vedere anche

Riferimento

StructuralObject Classe

Overload SetValidValue

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