DbExpressionBuilder.IsOfOnly(DbExpression, TypeUsage) Method
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Creates a new DbIsOfExpression expression that determines whether the given argument is of the specified type, and only that type (not a subtype).
public:
[System::Runtime::CompilerServices::Extension]
static System::Data::Common::CommandTrees::DbIsOfExpression ^ IsOfOnly(System::Data::Common::CommandTrees::DbExpression ^ argument, System::Data::Metadata::Edm::TypeUsage ^ type);
public static System.Data.Common.CommandTrees.DbIsOfExpression IsOfOnly (this System.Data.Common.CommandTrees.DbExpression argument, System.Data.Metadata.Edm.TypeUsage type);
static member IsOfOnly : System.Data.Common.CommandTrees.DbExpression * System.Data.Metadata.Edm.TypeUsage -> System.Data.Common.CommandTrees.DbIsOfExpression
<Extension()>
Public Function IsOfOnly (argument As DbExpression, type As TypeUsage) As DbIsOfExpression
- argument
- DbExpression
An expression that specifies the instance.
- type
- TypeUsage
Type metadata that specifies the type that the instance's result type should be compared to.
A new DbIsOfExpression with the specified instance and type and DbExpressionKind IsOfOnly.
argument
or type
is null.
type
is not in the same type hierarchy as the result type of argument
.
DbIsOfExpression requires that argument
has a polymorphic result type, and that type
is a type from the same type hierarchy as that result type.
Produkt | Versjoner |
---|---|
.NET Framework | 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
.NET-tilbakemelding
.NET er et åpen kilde-prosjekt. Velg en kobling for å gi tilbakemelding: