ListCommandEventHandler 대리자

정의

주의

The System.Web.Mobile.dll assembly has been deprecated and should no longer be used. For information about how to develop ASP.NET mobile applications, see http://go.microsoft.com/fwlink/?LinkId=157231.

ItemCommandList 이벤트를 처리할 메서드를 나타냅니다. ASP.NET 모바일 애플리케이션을 개발하는 방법에 대한 자세한 내용은 ASP.NET 있는 Mobile Apps & 사이트를 참조하세요.

public delegate void ListCommandEventHandler(System::Object ^ sender, ListCommandEventArgs ^ e);
public delegate void ListCommandEventHandler(object sender, ListCommandEventArgs e);
[System.Obsolete("The System.Web.Mobile.dll assembly has been deprecated and should no longer be used. For information about how to develop ASP.NET mobile applications, see http://go.microsoft.com/fwlink/?LinkId=157231.")]
public delegate void ListCommandEventHandler(object sender, ListCommandEventArgs e);
type ListCommandEventHandler = delegate of obj * ListCommandEventArgs -> unit
[<System.Obsolete("The System.Web.Mobile.dll assembly has been deprecated and should no longer be used. For information about how to develop ASP.NET mobile applications, see http://go.microsoft.com/fwlink/?LinkId=157231.")>]
type ListCommandEventHandler = delegate of obj * ListCommandEventArgs -> unit
Public Delegate Sub ListCommandEventHandler(sender As Object, e As ListCommandEventArgs)

매개 변수

sender
Object

이벤트의 소스인 List 컨트롤입니다.

e
ListCommandEventArgs

이벤트 데이터를 포함하는 ListCommandEventArgs 개체입니다.

특성

설명

만들 때를 ListCommandEventHandler 에 대 한 대리자를 List 컨트롤 이벤트를 처리 하는 메서드를 식별 합니다. ListControl 항목 이벤트가 생성 될 때 처리기를에 알립니다. 이벤트를 이벤트 처리기와 연결하려면 대리자의 인스턴스를 해당 이벤트에 추가합니다. 대리자를 제거하지 않으면 이벤트가 발생할 때마다 이벤트 처리기가 호출됩니다.

기본 렌더링 컨트롤 사용자가 개별 목록 항목 클릭 수 있도록 UI를 제공 합니다. 컨트롤에서 포스트백을 호출 합니다 OnItemCommand 소스 항목을 가리키는 인수를 사용 하 여 이벤트 처리기입니다. CommandName 속성의 값이 null인 경우

Asp.net 이벤트 버블링 메커니즘을 호출 하는 템플릿을 사용 하 여 렌더링 하는 경우는 OnItemCommand 메서드. 이벤트 처리기 및 소스 항목을 가리키는 매개 변수를 전달 되는 CommandName 이벤트를 생성 하는 컨트롤의 속성입니다. 이 옵션을 사용 하면 여러 관련된 상호 작용을 사용 하 여 단일 목록 항목을 렌더링할 수 있습니다.

하이퍼링크로 항목을 렌더링 하려면 설정 합니다 ItemsAsLinks 속성을 true입니다. 값을 Text 속성의 내용과 표시 되는 Value 속성 선택 하면 대상 링크 주소로 사용 됩니다.

참고

다음이 링크에 대 한 명령 이벤트를 생성 되지 않습니다.

확장 메서드

GetMethodInfo(Delegate)
사용되지 않음.

지정된 대리자가 나타내는 메서드를 나타내는 개체를 가져옵니다.

적용 대상

추가 정보