DeviceSpecificChoice.Filter 속성

정의

디바이스 필터의 이름을 가져오거나 설정합니다. 이 API는 더 이상 사용되지 않습니다. ASP.NET 모바일 애플리케이션을 개발하는 방법에 대한 자세한 내용은 Mobile Apps & Sites with ASP.NET(ASP.NET을 사용한 모바일 앱 및 사이트)을 참조하세요.

public:
 property System::String ^ Filter { System::String ^ get(); void set(System::String ^ value); };
public string Filter { get; set; }
member this.Filter : string with get, set
Public Property Filter As String

속성 값

String

디바이스 필터의 이름입니다. 기본값은 빈 문자열("")입니다.

설명

필터 이름은 페이지의 메서드 이름, 연결된 .ascx 파일 또는 Web.config 섹션에 <deviceFilters> 정의된 유효한 디바이스 필터의 이름이어야 합니다. 메서드 이름이 속성으로 지정된 경우 해당 메서드는 다음 프로토타입과 Filter 일치해야 합니다.

public bool methodName(System.Web.Mobile.MobileCapabilities   
    capabilities, String optionalArgument)  

예를 들어 속성이 Filter 설정된 myChoiceMethod경우 다음 서명이 있는 메서드가 있어야 합니다.

public bool myChoiceMethod(System.Web.Mobile.MobileCapabilities   
    capabilities, String optionalArgument);  

요소를 평가할 <Choice> 때 적절한 서명의 메서드가 페이지에 있는지 여부를 확인합니다. 그렇지 않은 경우 ASP.NET Web.config 섹션을 <deviceFilters> 확인합니다.

참고

디바이스 필터 대/소문자를 구분 하지 않습니다.

적용 대상

추가 정보