Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

SecurityPermissionAttribute.SkipVerification Property

Gets or sets a value indicating whether permission to bypass code verification is declared.

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

'Declaration
Public Property SkipVerification As Boolean
'Usage
Dim instance As SecurityPermissionAttribute
Dim value As Boolean

value = instance.SkipVerification

instance.SkipVerification = value
/** @property */
public boolean get_SkipVerification ()

/** @property */
public void set_SkipVerification (boolean value)

public function get SkipVerification () : boolean

public function set SkipVerification (value : boolean)

Property Value

true if permission to bypass code verification is declared; otherwise, false.
Caution noteCaution

This is a powerful permission that should be granted only to highly trusted code.

For information on the use of SkipVerification, see Type Safety and Security.

The following code example shows the use of the SkipVerification property to deny the ability to bypass code verification. For the complete code example, see the SecurityPermissionAttribute class.

' Set the Assertion,UnmanagedCode, ControlAppDomain, ControlDomainPolicy, ontrolEvidence, 
' ControlPolicy, ControlPrincipal, ControlThread, Execution, Flags, Infrastructure, 
' RemotingConfiguration, SerializationFormatter, and SkipVerification properties.
<SecurityPermissionAttribute(SecurityAction.Deny, Assertion:=True), _
SecurityPermissionAttribute(SecurityAction.Deny, ControlAppDomain:=True), _
SecurityPermissionAttribute(SecurityAction.Deny, ControlDomainPolicy:=True), _
SecurityPermissionAttribute(SecurityAction.Deny, ControlEvidence:=True), _
SecurityPermissionAttribute(SecurityAction.Deny, ControlPolicy:=True), _
SecurityPermissionAttribute(SecurityAction.Deny, ControlPrincipal:=True), _
SecurityPermissionAttribute(SecurityAction.Deny, ControlThread:=True), _
SecurityPermissionAttribute(SecurityAction.Deny, Execution:=True), _
SecurityPermissionAttribute(SecurityAction.Deny, Flags:=SecurityPermissionFlag.NoFlags), _
SecurityPermissionAttribute(SecurityAction.Deny, Infrastructure:=True), _
SecurityPermissionAttribute(SecurityAction.Deny, RemotingConfiguration:=True), _
SecurityPermissionAttribute(SecurityAction.Deny, SerializationFormatter:=True), _
SecurityPermissionAttribute(SecurityAction.Deny, SkipVerification:=True), _
SecurityPermissionAttribute(SecurityAction.Deny, UnmanagedCode:=True)> _
Public Shared Sub DenySecurityPermissions()

// Set the SkipVerification property.
/** @attribute SecurityPermissionAttribute(SecurityAction.Deny, 
    SkipVerification = true)
 */

Windows 98, Windows 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 .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 2.0, 1.1, 1.0
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.