This documentation is archived and is not being maintained.

MediaPermissionAttribute.Audio Property

Gets or sets the audio permission level for the MediaPermissionAttribute.

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

public MediaPermissionAudio Audio { get; set; }
/** @property */
public MediaPermissionAudio get_Audio ()

/** @property */
public void set_Audio (MediaPermissionAudio value)

public function get Audio () : MediaPermissionAudio

public function set Audio (value : MediaPermissionAudio)

You cannot use this property in XAML.

Property Value

The state of the MediaPermissionAudio.

The default is SafeAudio.

The following code example shows the use of the Audio property.

[MediaPermissionAttribute(SecurityAction.Demand, Audio = MediaPermissionAudio.SiteOfOriginAudio)]

Windows 98, Windows Server 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0