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

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

반품

지정된 set 인수 및 형식과 ExpressionKind OfTypeOnly가 있는 새 DbOfTypeExpression입니다.

예외

argument 또는 type null입니다.

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

설명

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

적용 대상