38 references to MediaPermissionAudio
PresentationCore (15)
Core\CSharp\System\Windows\Media\Imaging\BitmapDecoder.cs (5)
1128
SecurityHelper.DemandMediaPermission(
MediaPermissionAudio
.NoAudio,
1135
SecurityHelper.DemandMediaPermission(
MediaPermissionAudio
.NoAudio,
1181
SecurityHelper.DemandMediaPermission(
MediaPermissionAudio
.NoAudio,
1412
if (SecurityHelper.CallerHasMediaPermission(
MediaPermissionAudio
.NoAudio,
1456
if (SecurityHelper.CallerHasMediaPermission(
MediaPermissionAudio
.NoAudio,
Core\CSharp\System\Windows\Media\Imaging\BitmapDownload.cs (1)
223
if (SecurityHelper.CallerHasMediaPermission(
MediaPermissionAudio
.NoAudio,
Core\CSharp\System\Windows\Media\MediaPlayerState.cs (4)
920
SecurityHelper.CallerHasMediaPermission(
MediaPermissionAudio
.AllAudio, MediaPermissionVideo.AllVideo, MediaPermissionImage.NoImage),
1036
SecurityHelper.DemandMediaPermission(
MediaPermissionAudio
.AllAudio,
1095
if (!SecurityHelper.CallerHasMediaPermission(
MediaPermissionAudio
.SafeAudio,
1112
if (!SecurityHelper.CallerHasMediaPermission(
MediaPermissionAudio
.SafeAudio,
Shared\MS\Internal\SecurityHelper.cs (5)
1026
internal static void DemandMediaPermission(
MediaPermissionAudio
audioPermissionToDemand,
1050
internal static bool CallerHasMediaPermission(
MediaPermissionAudio
audioPermissionToDemand,
1268
codeAccessPermission = new MediaPermission(
MediaPermissionAudio
.NoAudio,
1282
codeAccessPermission = new MediaPermission(
MediaPermissionAudio
.NoAudio,
1292
codeAccessPermission = new MediaPermission(
MediaPermissionAudio
.NoAudio,
PresentationFramework (1)
src\Framework\System\Windows\Interop\DocobjHost.cs (1)
990
permissionSet.AddPermission(new MediaPermission(
MediaPermissionAudio
.SafeAudio, MediaPermissionVideo.SafeVideo, MediaPermissionImage.SafeImage));
WindowsBase (22)
Base\System\Security\Permissions\MediaPermission.cs (22)
146
_mediaPermissionAudio =
MediaPermissionAudio
.AllAudio;
152
_mediaPermissionAudio =
MediaPermissionAudio
.NoAudio;
165
public MediaPermission(
MediaPermissionAudio
permissionAudio )
198
public MediaPermission(
MediaPermissionAudio
permissionAudio,
231
return EqualsLevel(
MediaPermissionAudio
.AllAudio ,
248
return EqualsLevel(
MediaPermissionAudio
.NoAudio,
283
MediaPermissionAudio
audioIntersectLevel = _mediaPermissionAudio < operand._mediaPermissionAudio
292
if ( ( audioIntersectLevel ==
MediaPermissionAudio
.NoAudio ) &&
327
MediaPermissionAudio
audioUnionLevel = _mediaPermissionAudio > operand._mediaPermissionAudio
336
if ( ( audioUnionLevel ==
MediaPermissionAudio
.NoAudio ) &&
408
_mediaPermissionAudio =
MediaPermissionAudio
.AllAudio ;
420
_mediaPermissionAudio = (
MediaPermissionAudio
)Enum.Parse(typeof(
MediaPermissionAudio
), audio );
465
public
MediaPermissionAudio
Audio
505
internal static void VerifyMediaPermissionAudio(
MediaPermissionAudio
level)
507
if (level <
MediaPermissionAudio
.NoAudio || level >
MediaPermissionAudio
.AllAudio )
542
_mediaPermissionAudio =
MediaPermissionAudio
.SafeAudio;
550
private bool EqualsLevel(
MediaPermissionAudio
audioLevel,
566
private
MediaPermissionAudio
_mediaPermissionAudio ;
638
public
MediaPermissionAudio
Audio
692
private
MediaPermissionAudio
_mediaPermissionAudio ;