Share via


DbExpressionBuilder.OfTypeOnly(DbExpression, TypeUsage) 메서드

정의

주어진 입력 집합에서 정확히 지정된 형식으로 된 요소로 구성된 집합을 생성하는 새 DbOfTypeExpression을 만듭니다.

public:
[System::Runtime::CompilerServices::Extension]
 static System::Data::Common::CommandTrees::DbOfTypeExpression ^ OfTypeOnly(System::Data::Common::CommandTrees::DbExpression ^ argument, System::Data::Metadata::Edm::TypeUsage ^ type);
public static System.Data.Common.CommandTrees.DbOfTypeExpression OfTypeOnly (this System.Data.Common.CommandTrees.DbExpression argument, System.Data.Metadata.Edm.TypeUsage type);
static member OfTypeOnly : System.Data.Common.CommandTrees.DbExpression * System.Data.Metadata.Edm.TypeUsage -> System.Data.Common.CommandTrees.DbOfTypeExpression
<Extension()>
Public Function OfTypeOnly (argument As DbExpression, type As TypeUsage) As DbOfTypeExpression

매개 변수

argument
DbExpression

입력 집합을 지정하는 DbExpression입니다.

type
TypeUsage

결과 집합에 포함되기 위해 입력 집합의 요소가 정확히 일치해야 하는 형식의 형식 메타데이터입니다.

반환

지정된 집합 인수 및 형식과 OfTypeOnly의 ExpressionKind를 사용하는 새 DbOfTypeExpression입니다.

예외

argument 또는 type가 null입니다.

argument에 컬렉션 결과 형식이 없거나 typeargument의 컬렉션의 결과 형식의 요소 형식과 동일한 형식 계층 구조에 있는 형식이 아닙니다.

설명

DbOfTypeExpression에는 다형 요소 형식이 argument 있는 컬렉션 결과 형식이 있어야 하며, 이는 해당 type 요소 형식과 동일한 형식 계층 구조의 형식입니다.

적용 대상