다음을 통해 공유


AdRotator.KeywordFilter 속성

정의

광고 파일에서 광고를 필터링하는 데 사용할 수 있는 범주 키워드를 가져오거나 설정합니다. 기본값은 빈 문자열("")입니다. 이 API는 더 이상 사용되지 않습니다. ASP.NET 모바일 애플리케이션을 개발하는 방법에 대한 자세한 내용은 ASP.NET 있는 Mobile Apps & 사이트를 참조하세요. 이 API는 더 이상 사용되지 않습니다. ASP.NET 모바일 애플리케이션을 개발하는 방법에 대한 자세한 내용은 ASP.NET 있는 Mobile Apps & 사이트를 참조하세요.

public:
 property System::String ^ KeywordFilter { System::String ^ get(); void set(System::String ^ value); };
[System.ComponentModel.Bindable(true)]
public string KeywordFilter { get; set; }
[<System.ComponentModel.Bindable(true)>]
member this.KeywordFilter : string with get, set
Public Property KeywordFilter As String

속성 값

지정된 범주 내에서 광고를 식별하는 데 사용되는 키워드입니다.

특성

예제

다음 코드 예제를 사용 하는 방법에 설명 합니다 KeywordFilter 파일에서 이미지의 컬렉션에서 기본 설정을 지정 하려면 속성에서 참조를 AdvertisementFile 속성입니다. 전체 샘플 코드에 대 한 참조를 AdRotator 클래스 개요입니다.

<!-- The AdRotator control -->
<mobile:AdRotator id="AdControl" runat="server"
    ImageKey="MobileImgSrc" NavigateUrlKey="TargetUrl"
    AdvertisementFile="App_Data/ads.xml" Alignment="Left" 
    KeywordFilter="Developer" OnAdCreated="AdCreated_Event">
    <DeviceSpecific>
        <Choice Filter="isWML11" NavigateUrlKey="WmlTargetUrl" 
            ImageKey= "WmlImageSrc" />
    </DeviceSpecific>
</mobile:AdRotator>
<!-- The AdRotator control -->
<mobile:AdRotator id="AdControl" runat="server"
    ImageKey="MobileImgSrc" NavigateUrlKey="TargetUrl"
    AdvertisementFile="App_Data/ads.xml" Alignment="Left" 
    KeywordFilter="Developer" OnAdCreated="AdCreated_Event">
    <DeviceSpecific>
        <Choice Filter="isWML11" NavigateUrlKey="WmlTargetUrl" 
            ImageKey= "WmlImageSrc" />
    </DeviceSpecific>
</mobile:AdRotator>

설명

경우는 AdvertisementFile 데이터 및이 속성이 KeywordFilter 속성 콘텐츠가 AdRotator 컨트롤 일치 하는 키워드를 사용 하 여 광고를 선택 합니다.

경우는 AdvertisementFile 속성에 데이터가 있고이 KeywordFilter 속성 콘텐츠가 하지만이 속성 및 파일 간의 키워드 일치 항목이 없거나, 빈 이미지를 표시 및 추적 경고가 생성 됩니다.

적용 대상

추가 정보