次の方法で共有


DbExpressionBuilder.Negate メソッド

[このページは、Entity Framework 6 に関するページです。最新バージョンは、'Entity Framework' NuGet パッケージとして入手できます。Entity Framework の詳細については、msdn.com/data/ef を参照してください。]

引数の値を否定する新しい DbArithmeticExpression を作成します。

名前空間:  System.Data.Entity.Core.Common.CommandTrees.ExpressionBuilder
アセンブリ:  EntityFramework (EntityFramework.dll 内)

構文

'宣言
<ExtensionAttribute> _
Public Shared Function Negate ( _
    argument As DbExpression _
) As DbArithmeticExpression
'使用
Dim argument As DbExpression 
Dim returnValue As DbArithmeticExpression 

returnValue = argument.Negate()
public static DbArithmeticExpression Negate(
    this DbExpression argument
)
[ExtensionAttribute]
public:
static DbArithmeticExpression^ Negate(
    DbExpression^ argument
)
static member Negate : 
        argument:DbExpression -> DbArithmeticExpression
public static function Negate(
    argument : DbExpression
) : DbArithmeticExpression

パラメーター

戻り値

型 : System.Data.Entity.Core.Common.CommandTrees.DbArithmeticExpression
否定演算を表す新しい DbArithmeticExpression。

使用上の注意

Visual Basic および Visual C# では、このメソッドを、DbExpression 型のオブジェクトのインスタンス メソッドとして呼び出すことができます。インスタンス メソッド構文を使用してこのメソッドを呼び出す場合は、最初のパラメーターを省略します。詳細については、「https://msdn.microsoft.com/ja-jp/library/bb384936(v=vs.113)」または「https://msdn.microsoft.com/ja-jp/library/bb383977(v=vs.113)」を参照してください。

例外

例外 状態
ArgumentNullException

argument が null です。

ArgumentException

argument の結果型が数値型ではありません。

参照

参照

DbExpressionBuilder クラス

System.Data.Entity.Core.Common.CommandTrees.ExpressionBuilder 名前空間