NameScope.Remove 메서드

정의

컬렉션에서 특정 개체를 제거합니다.

오버로드

Remove(KeyValuePair<String,Object>)

컬렉션에서 특정 개체를 제거합니다.

Remove(String)

컬렉션에서 지정된 이름의 매핑을 제거합니다.

Remove(KeyValuePair<String,Object>)

컬렉션에서 특정 개체를 제거합니다.

public:
 virtual bool Remove(System::Collections::Generic::KeyValuePair<System::String ^, System::Object ^> item);
public bool Remove (System.Collections.Generic.KeyValuePair<string,object> item);
abstract member Remove : System.Collections.Generic.KeyValuePair<string, obj> -> bool
override this.Remove : System.Collections.Generic.KeyValuePair<string, obj> -> bool
Public Function Remove (item As KeyValuePair(Of String, Object)) As Boolean

매개 변수

item
KeyValuePair<String,Object>

KeyValuePair<TKey,TValue>(키는 String, 값은 Object)로 지정된, 컬렉션에서 제거할 개체입니다.

반환

항목이 컬렉션에서 제거된 경우 true이고, 그렇지 않으면 false입니다. 항목을 컬렉션에서 찾을 수 없는 경우에도 false가 반환됩니다.

구현

설명

NameScope 는 사전이므로 첫 번째 발생의 개념이 없습니다. 지정된 KeyValuePair<TKey,TValue> 모든 항목이 고유하게 보장됩니다.

적용 대상

Remove(String)

컬렉션에서 지정된 이름의 매핑을 제거합니다.

public:
 virtual bool Remove(System::String ^ key);
public bool Remove (string key);
abstract member Remove : string -> bool
override this.Remove : string -> bool
Public Function Remove (key As String) As Boolean

매개 변수

key
String

제거할 XAML 이름 범위 매핑의 이름이 되는 문자열 키입니다.

반환

항목이 컬렉션에서 제거된 경우 true이고, 그렇지 않으면 false입니다. 항목을 컬렉션에서 찾을 수 없는 경우에도 false가 반환됩니다.

구현

설명

이 메서드는 UnregisterName기본적으로 를 래핑하고 false , 그렇지 않으면 에서 예외가 발생한 경우를 반환합니다 UnregisterName.

적용 대상