ModelMemberCollection<TItemType,TFindType>.Find 메서드

정의

컬렉션에서 지정된 키를 검색하고 컬렉션이 발견되면 반환합니다.

오버로드

Name Description
Find(String)

컬렉션에서 지정된 키를 검색하고 컬렉션이 발견되면 반환합니다. 키를 찾을 수 없으면 이 메서드가 반환됩니다 null.

Find(TFindType)

컬렉션에서 지정된 키를 검색하고 컬렉션이 발견되면 반환합니다. 키를 찾을 수 없으면 이 메서드가 반환됩니다 null.

Find(String, Boolean)

파생 클래스에서 재정의된 경우 컬렉션에서 지정된 키를 검색하고 발견된 경우 반환합니다. 키를 찾을 수 없는 경우 이 메서드는 전달된 null값에 따라 예외를 throw하거나 반환throwOnError합니다.

Find(TFindType, Boolean)

파생 클래스에서 재정의된 경우 컬렉션에서 지정된 키를 검색하고 발견된 경우 반환합니다. 키를 찾을 수 없는 경우 이 메서드는 전달된 null값에 따라 예외를 throw하거나 반환throwOnError합니다.

Find(String)

컬렉션에서 지정된 키를 검색하고 컬렉션이 발견되면 반환합니다. 키를 찾을 수 없으면 이 메서드가 반환됩니다 null.

public:
 TItemType Find(System::String ^ name);
public TItemType Find(string name);
member this.Find : string -> 'ItemType
Public Function Find (name As String) As TItemType

매개 변수

name
String

지정된 키의 이름입니다.

반품

TItemType

찾은 경우 항목을 반환합니다.

예외

namenull입니다.

적용 대상

Find(TFindType)

컬렉션에서 지정된 키를 검색하고 컬렉션이 발견되면 반환합니다. 키를 찾을 수 없으면 이 메서드가 반환됩니다 null.

public:
 TItemType Find(TFindType value);
public TItemType Find(TFindType value);
member this.Find : 'FindType -> 'ItemType
Public Function Find (value As TFindType) As TItemType

매개 변수

value
TFindType

지정된 키의 형식입니다.

반품

TItemType

찾은 경우 항목을 반환합니다.

예외

valuenull입니다.

적용 대상

Find(String, Boolean)

파생 클래스에서 재정의된 경우 컬렉션에서 지정된 키를 검색하고 발견된 경우 반환합니다. 키를 찾을 수 없는 경우 이 메서드는 전달된 null값에 따라 예외를 throw하거나 반환throwOnError합니다.

protected:
 abstract TItemType Find(System::String ^ name, bool throwOnError);
protected abstract TItemType Find(string name, bool throwOnError);
abstract member Find : string * bool -> 'ItemType
Protected MustOverride Function Find (name As String, throwOnError As Boolean) As TItemType

매개 변수

name
String

지정된 키의 이름입니다.

throwOnError
Boolean

true지정된 키를 찾을 수 없으면 예외를 throw합니다. 그렇지 않으면 . false

반품

TItemType

찾은 경우 항목을 반환합니다.

예외

찾을 name 수 없습니다.throwOnErrortrue

적용 대상

Find(TFindType, Boolean)

파생 클래스에서 재정의된 경우 컬렉션에서 지정된 키를 검색하고 발견된 경우 반환합니다. 키를 찾을 수 없는 경우 이 메서드는 전달된 null값에 따라 예외를 throw하거나 반환throwOnError합니다.

protected:
 abstract TItemType Find(TFindType value, bool throwOnError);
protected abstract TItemType Find(TFindType value, bool throwOnError);
abstract member Find : 'FindType * bool -> 'ItemType
Protected MustOverride Function Find (value As TFindType, throwOnError As Boolean) As TItemType

매개 변수

value
TFindType

지정된 키의 형식입니다.

throwOnError
Boolean

true지정된 키를 찾을 수 없으면 예외를 throw합니다. 그렇지 않으면 . false

반품

TItemType

찾은 경우 항목을 반환합니다.

예외

찾을 value 수 없습니다.throwOnErrortrue

적용 대상