MediaPermission Constructor (PermissionState)
.NET Framework (current version)
Initializes a new instance of the MediaPermission class by specifying a permission state.
Assembly: WindowsBase (in WindowsBase.dll)
Parameters
- state
-
Type:
System.Security.Permissions::PermissionState
An enumerated value of PermissionState.
If state is set to Unrestricted, all media types are granted full permission to play or display with no restrictions. If state is set to None, all media types are restricted from playing or displaying.
The following code example shows how to create a MediaPermission with a PermissionState value.
.NET Framework
Available since 3.0
Available since 3.0
Show: