Share via


ITrackingConsentFeature 介面

定義

用來查詢、授與和撤銷使用者同意,以取得與網站活動和功能相關的使用者資訊儲存。

public interface class ITrackingConsentFeature
public interface ITrackingConsentFeature
type ITrackingConsentFeature = interface
Public Interface ITrackingConsentFeature

屬性

CanTrack

指出是否已授與同意,或是否不需要同意。

HasConsent

指出是否授與同意。

IsConsentNeeded

指出指定要求是否需要同意。

方法

CreateConsentCookie()

建立同意 Cookie,以在授與 javascript 用戶端的同意時使用。

GrantConsent()

授與此要求的同意。 如果回應尚未啟動,這也會授與未來要求的同意。

WithdrawConsent()

撤銷此要求的同意。 如果回應尚未啟動,這也會撤銷未來要求的同意。

適用於