MediaPermission.IsUnrestricted Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns a value indicating whether the current permission is unrestricted.
public:
virtual bool IsUnrestricted();
public bool IsUnrestricted ();
abstract member IsUnrestricted : unit -> bool
override this.IsUnrestricted : unit -> bool
Public Function IsUnrestricted () As Boolean
Returns
true
if the audio, image, and video permissions are all unrestricted; otherwise, false
.
Implements
Examples
The following code example shows how to determine whether the MediaPermission is unrestricted.
bool isUnrestricted = mediaPermission.IsUnrestricted();
Dim isUnrestricted As Boolean = mediaPermission.IsUnrestricted()
Remarks
The return value is true
when the media permission values are AllAudio, AllImage, and SafeVideo.
Applies to
Bekerjasama dengan kami di GitHub
Sumber untuk kandungan ini boleh didapati di GitHub, di mana anda juga boleh mencipta dan menyemak isu dan menarik permintaan. Untuk maklumat lanjut, lihat panduan penyumbang kami.