다음을 통해 공유


PropertyMap.Remove(String) 메서드

정의

매핑에서 지정된 속성을 삭제합니다.

public:
 void Remove(System::String ^ propertyName);
public void Remove(string propertyName);
member this.Remove : string -> unit
Public Sub Remove (propertyName As String)

매개 변수

propertyName
String

제거할 속성의 이름입니다.

예외

propertyNamenull입니다.

예제

다음 코드 예제에서는 컨트롤에 대 한 속성에 대 한 매핑을 Cursor 제거 하는 방법을 보여 있습니다 ElementHost .

// The RemoveCursorMapping method deletes the default
// mapping for the Cursor property.
private void RemoveCursorMapping()
{
    elemHost.PropertyMap.Remove("Cursor");
}
' The RemoveCursorMapping method deletes the default
' mapping for the Cursor property.
Private Sub RemoveCursorMapping()
    elemHost.PropertyMap.Remove("Cursor")
End Sub

다음 코드 예제에서는 컨트롤에 속성에 대 한 매핑을 Cursor 추가 하는 방법을 보여 있습니다 WindowsFormsHost .

// The RemoveCursorMapping method deletes the default
// mapping for the Cursor property.
private void RemoveCursorMapping()
{
    wfHost.PropertyMap.Remove("Cursor");
}
' The RemoveCursorMapping method deletes the default
' mapping for the Cursor property.
Private Sub RemoveCursorMapping()
    wfHost.PropertyMap.Remove("Cursor")
End Sub

적용 대상

추가 정보