Metodo StructuralObject.SetValidValue (Nullable<Decimal>, 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 Decimal 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 Decimal), _
propertyName As String _
) As Nullable(Of Decimal)
'Utilizzo
Dim value As Nullable(Of Decimal)
Dim propertyName As String
Dim returnValue As Nullable(Of Decimal)
returnValue = StructuralObject.SetValidValue(value, _
propertyName)
[SuppressMessageAttribute("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "propertyName")]
protected internal static Nullable<decimal> SetValidValue(
Nullable<decimal> value,
string propertyName
)
[SuppressMessageAttribute(L"Microsoft.Usage", L"CA1801:ReviewUnusedParameters", MessageId = L"propertyName")]
protected public:
static Nullable<Decimal> SetValidValue(
Nullable<Decimal> value,
String^ propertyName
)
[<SuppressMessageAttribute("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "propertyName")>]
static member SetValidValue :
value:Nullable<decimal> *
propertyName:string -> Nullable<decimal>
static function SetValidValue(
value : Nullable<decimal>,
propertyName : String
) : Nullable<decimal>
Parametri
- value
Tipo: System.Nullable<Decimal>
Valore Decimal che ammette i valori Null.
- propertyName
Tipo: System.String
Nome della proprietà che verrà convalidata.
Valore restituito
Tipo: System.Nullable<Decimal>
Valore Decimal che ammette i valori Null che viene impostato.