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