MediaPermissionAttribute Constructor (SecurityAction)

 

Initializes a new instance of MediaPermissionAttribute.

Namespace:   System.Security.Permissions
Assembly:  WindowsBase (in WindowsBase.dll)

public MediaPermissionAttribute(
	SecurityAction action
)

Parameters

action
Type: System.Security.Permissions.SecurityAction

One of the SecurityAction values.

The default media values are AllAudio, NoImage, and NoVideo.

The following code example shows how to create a MediaPermissionAttribute.

[MediaPermissionAttribute(SecurityAction.Demand)]

.NET Framework
Available since 3.0
Return to top
Show: