42 references to SR
System.Security.Principal.Windows (42)
System\Security\Principal\IdentityNotMappedException.cs (3)
16
: base(
SR
.IdentityReference_IdentityNotMapped)
21
: base(message ??
SR
.IdentityReference_IdentityNotMapped)
26
: base(message ??
SR
.IdentityReference_IdentityNotMapped, inner)
System\Security\Principal\IRCollection.cs (2)
155
throw new ArgumentException(
SR
.IdentityReference_MustBeIdentityReference, nameof(targetType));
318
throw new IdentityNotMappedException(
SR
.IdentityReference_IdentityNotMapped, Result);
System\Security\Principal\NTAccount.cs (8)
40
throw new ArgumentException(
SR
.IdentityReference_AccountNameTooLong, nameof(accountName));
45
throw new ArgumentException(
SR
.IdentityReference_DomainNameTooLong, nameof(domainName));
64
throw new ArgumentException(
SR
.IdentityReference_AccountNameTooLong, nameof(name));
117
throw new ArgumentException(
SR
.IdentityReference_MustBeIdentityReference, nameof(targetType));
152
throw new IdentityNotMappedException(
SR
.IdentityReference_IdentityNotMapped, UnmappedIdentities);
167
throw new ArgumentException(
SR
.IdentityReference_MustBeIdentityReference, nameof(targetType));
209
throw new ArgumentException(
SR
.Arg_EmptyCollection, nameof(sourceAccounts));
229
throw new ArgumentException(
SR
.Argument_ImproperType, nameof(sourceAccounts));
System\Security\Principal\SID.cs (20)
327
SR
.Format(
SR
.IdentityReference_InvalidNumberOfSubauthorities, MaxSubAuthorities)
340
SR
.IdentityReference_IdentifierAuthorityTooLarge
411
throw new ArgumentOutOfRangeException(nameof(binaryForm),
SR
.ArgumentOutOfRange_ArrayTooSmall);
424
throw new ArgumentException(
SR
.IdentityReference_InvalidSidRevision, nameof(binaryForm));
433
throw new ArgumentException(
SR
.Format(
SR
.IdentityReference_InvalidNumberOfSubauthorities, MaxSubAuthorities), nameof(binaryForm));
444
throw new ArgumentException(
SR
.ArgumentOutOfRange_ArrayTooSmall, nameof(binaryForm));
500
throw new ArgumentException(
SR
.Argument_InvalidValue, nameof(sddlForm));
552
throw new ArgumentException(
SR
.IdentityReference_CannotCreateLogonIdsSid, nameof(sidType));
561
throw new ArgumentException(
SR
.Argument_InvalidValue, nameof(sidType));
572
throw new ArgumentNullException(nameof(domainSid),
SR
.Format(
SR
.IdentityReference_DomainSidRequired, sidType));
588
throw new ArgumentException(
SR
.IdentityReference_NotAWindowsDomain, nameof(domainSid));
602
throw new ArgumentException(
SR
.IdentityReference_NotAWindowsDomain, nameof(domainSid));
826
throw new ArgumentException(
SR
.IdentityReference_MustBeIdentityReference, nameof(targetType));
947
throw new ArgumentException(
SR
.Arg_EmptyCollection, nameof(sourceSids));
967
throw new ArgumentException(
SR
.Argument_ImproperType, nameof(sourceSids));
1110
throw new IdentityNotMappedException(
SR
.IdentityReference_IdentityNotMapped, UnmappedIdentities);
1126
throw new ArgumentException(
SR
.IdentityReference_MustBeIdentityReference, nameof(targetType));
System\Security\Principal\Win32.cs (3)
64
throw new ArgumentException(
SR
.IdentityReference_InvalidSidRevision, nameof(binaryForm));
76
throw new ArgumentException(
SR
.Format(
SR
.IdentityReference_InvalidNumberOfSubauthorities, SecurityIdentifier.MaxSubAuthorities), nameof(binaryForm));
System\Security\Principal\WindowsIdentity.cs (4)
262
throw new ArgumentException(
SR
.Argument_TokenZero);
274
throw new ArgumentException(
SR
.Argument_InvalidImpersonationToken);
785
throw new SecurityException(
SR
.Argument_ImpersonateUser);
939
throw new ArgumentException(
SR
.Argument_InvalidImpersonationToken);
System\Security\Principal\WindowsPrincipal.cs (2)
117
throw new ArgumentException(
SR
.Format(
SR
.Arg_EnumIllegalVal, (int)role), nameof(role));