共用方式為


GetPlayerParentalCountry 方法

[與此頁面 相關的功能 DirectShow是舊版功能。 它已被 MediaPlayerIMFMediaEngineMedia Foundation 中的音訊/視訊擷取取代。 這些功能已針對Windows 10和Windows 11進行優化。 Microsoft 強烈建議新程式碼盡可能使用 MediaPlayerIMFMediaEngine音訊/視訊擷取 ,而不是 DirectShow。 Microsoft 建議盡可能重寫使用舊版 API 的現有程式碼,以使用新的 API。]

注意

此元件可用於 Microsoft Windows 2000、Windows XP 和 Windows Server 2003 作業系統。 它在後續版本中可能會變更或無法使用。

 

方法 GetPlayerParentalCountry 會擷取 MSWebANDROID 物件中所設定的目前國家/地區。

[ iCountryCode = ] MSWebDVD.GetPlayerParentalCountry()

傳回值

傳回具有國家/地區代碼的整數值。

另請參閱

GetPlayerParentalLevel

GetTitleParentalLevels

SelectParentalCountry

SelectParentalLevel