Export (0) Print
Expand All

IUnrestrictedPermission.IsUnrestricted Method

Returns a value indicating whether unrestricted access to the resource protected by the permission is allowed.

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

'Declaration
Function IsUnrestricted As Boolean

Return Value

Type: System.Boolean
true if unrestricted use of the resource protected by the permission is allowed; otherwise, false.

The following code example demonstrates implementing the IsUnrestricted method. This code example is part of a larger example provided for the IUnrestrictedPermission class.

' Returns true if permission is effectively unrestricted. 
Public Function IsUnrestricted() As [Boolean] Implements IUnrestrictedPermission.IsUnrestricted
    ' This means that the object is unrestricted at runtime. 
    Return m_flags = SoundPermissionState.PlayAnySound

End Function 'IsUnrestricted

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0, 1.1

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Show:
© 2015 Microsoft