24 references to SR
System.Security.Permissions (24)
System\Security\CodeAccessPermission.cs (2)
16
public void Deny() { throw new PlatformNotSupportedException(
SR
.PlatformNotSupported_CAS); }
22
public void PermitOnly() { throw new PlatformNotSupportedException(
SR
.PlatformNotSupported_CAS); }
System\Security\HostProtectionException.cs (2)
82
AppendResourceString(
SR
.HostProtection_ProtectedResources, ProtectedResources, sb);
83
AppendResourceString(
SR
.HostProtection_DemandedResources, DemandedResources, sb);
System\Security\Permissions\PrincipalPermission.cs (11)
30
throw new ArgumentException(
SR
.Argument_InvalidPermissionState);
83
throw new ArgumentException(
SR
.Format(
SR
.Argument_WrongType, GetType().FullName), nameof(target));
126
throw new ArgumentException(
SR
.Format(
SR
.Argument_WrongType, GetType().FullName), nameof(target));
182
throw new ArgumentException(
SR
.Format(
SR
.Argument_WrongType, GetType().FullName), nameof(other));
228
throw new SecurityException(
SR
.Security_PrincipalPermission);
248
throw new SecurityException(
SR
.Security_PrincipalPermission);
275
throw new ArgumentException(
SR
.Argument_NotAPermissionElement);
280
throw new ArgumentException(
SR
.Argument_InvalidXMLBadVersion);
System\Security\SecurityContext.cs (9)
14
public static SecurityContext Capture() { throw new PlatformNotSupportedException(
SR
.PlatformNotSupported_CAS); }
15
public SecurityContext CreateCopy() { throw new PlatformNotSupportedException(
SR
.PlatformNotSupported_CAS); }
16
public void Dispose() { throw new PlatformNotSupportedException(
SR
.PlatformNotSupported_CAS); }
17
public static bool IsFlowSuppressed() { throw new PlatformNotSupportedException(
SR
.PlatformNotSupported_CAS); }
18
public static bool IsWindowsIdentityFlowSuppressed() { throw new PlatformNotSupportedException(
SR
.PlatformNotSupported_CAS); }
19
public static void RestoreFlow() { throw new PlatformNotSupportedException(
SR
.PlatformNotSupported_CAS); }
20
public static void Run(SecurityContext securityContext, ContextCallback callback, object state) { throw new PlatformNotSupportedException(
SR
.PlatformNotSupported_CAS); }
21
public static AsyncFlowControl SuppressFlow() { throw new PlatformNotSupportedException(
SR
.PlatformNotSupported_CAS); }
22
public static AsyncFlowControl SuppressFlowWindowsIdentity() { throw new PlatformNotSupportedException(
SR
.PlatformNotSupported_CAS); }