171 references to SR
System.DirectoryServices.Protocols (171)
System\DirectoryServices\Protocols\common\BerConverter.cs (16)
59throw new ArgumentException(SR.BerConverterNotMatch); 66throw new ArgumentException(SR.BerConverterNotMatch); 81throw new ArgumentException(SR.BerConverterNotMatch); 88throw new ArgumentException(SR.BerConverterNotMatch); 103throw new ArgumentException(SR.BerConverterNotMatch); 111throw new ArgumentException(SR.BerConverterNotMatch); 132throw new ArgumentException(SR.BerConverterNotMatch); 140throw new ArgumentException(SR.BerConverterNotMatch); 155throw new ArgumentException(SR.BerConverterNotMatch); 163throw new ArgumentException(SR.BerConverterNotMatch); 196throw new ArgumentException(SR.BerConverterNotMatch); 204throw new ArgumentException(SR.BerConverterNotMatch); 219throw new ArgumentException(SR.BerConverterNotMatch); 226throw new ArgumentException(SR.BerConverterNotMatch); 240throw new ArgumentException(SR.BerConverterUndefineChar); 435throw new ArgumentException(SR.BerConverterUndefineChar);
System\DirectoryServices\Protocols\common\DirectoryAttribute.cs (22)
84throw new NotSupportedException(SR.DirectoryAttributeConversion); 108throw new NotSupportedException(SR.DirectoryAttributeConversion); 115throw new ArgumentException(SR.ValidDirectoryAttributeType, nameof(valuesType)); 147throw new ArgumentException(SR.ValidValueType, nameof(value)); 166throw new ArgumentException(SR.ValidValueType, nameof(value)); 178throw new ArgumentException(SR.ValidValuesType, nameof(values)); 185throw new ArgumentException(SR.NullValueArray, nameof(values)); 219throw new ArgumentException(SR.ValidValueType, nameof(value)); 291set => List[index] = value ?? throw new ArgumentException(SR.NullDirectoryAttributeCollection); 298throw new ArgumentException(SR.NullDirectoryAttributeCollection); 312throw new ArgumentException(SR.NullDirectoryAttributeCollection); 340throw new ArgumentException(SR.NullDirectoryAttributeCollection); 352throw new ArgumentException(SR.NullDirectoryAttributeCollection); 356throw new ArgumentException(SR.Format(SR.InvalidValueType, nameof(DirectoryAttribute)), nameof(value)); 370set => List[index] = value ?? throw new ArgumentException(SR.NullDirectoryAttributeCollection); 377throw new ArgumentException(SR.NullDirectoryAttributeCollection); 391throw new ArgumentException(SR.NullDirectoryAttributeCollection); 419throw new ArgumentException(SR.NullDirectoryAttributeCollection); 431throw new ArgumentException(SR.NullDirectoryAttributeCollection); 435throw new ArgumentException(SR.Format(SR.InvalidValueType, nameof(DirectoryAttributeModification)), nameof(value));
System\DirectoryServices\Protocols\common\DirectoryConnection.cs (1)
30throw new ArgumentException(SR.NoNegativeTimeLimit, nameof(value));
System\DirectoryServices\Protocols\common\DirectoryControl.cs (13)
306throw new BerConversionException(SR.BerConversionError, asnEx); 310throw new BerConversionException(SR.BerConversionError, decEx); 644throw new ArgumentException(SR.ValidValue, nameof(value)); 727throw new ArgumentException(SR.ValidValue, nameof(value)); 809throw new ArgumentException(SR.NullValueArray, nameof(sortKeys)); 854throw new ArgumentException(SR.NullValueArray, nameof(value)); 964throw new ArgumentException(SR.ValidValue, nameof(value)); 978throw new ArgumentException(SR.ValidValue, nameof(value)); 992throw new ArgumentException(SR.ValidValue, nameof(value)); 1006throw new ArgumentException(SR.ValidValue, nameof(value)); 1180throw new ArgumentException(SR.ContainNullControl, nameof(controls)); 1219throw new ArgumentException(SR.Format(SR.InvalidValueType, nameof(DirectoryControl)), nameof(value));
System\DirectoryServices\Protocols\common\DirectoryException.cs (7)
45public DirectoryOperationException() : base(SR.DefaultOperationsError) { } 47public DirectoryOperationException(string message) : base(message ?? SR.DefaultOperationsError) { } 49public DirectoryOperationException(string message, Exception inner) : base(message ?? SR.DefaultOperationsError, inner) { } 73string result = message ?? SR.DefaultOperationsError; 92public BerConversionException() : base(SR.BerConversionError) 96public BerConversionException(string message) : base(message ?? SR.BerConversionError) 100public BerConversionException(string message, Exception inner) : base(message ?? SR.BerConversionError, inner)
System\DirectoryServices\Protocols\common\DirectoryRequest.cs (5)
133throw new ArgumentException(SR.WrongNumValuesCompare); 243throw new ArgumentException(SR.ValidFilterType, nameof(value)); 285throw new ArgumentException(SR.NoNegativeSizeLimit, nameof(value)); 299throw new ArgumentException(SR.NoNegativeTimeLimit, nameof(value)); 305throw new ArgumentException(SR.TimespanExceedMax, nameof(value));
System\DirectoryServices\Protocols\common\QuotaControl.Linux.cs (2)
12get => _sid == null ? null : throw new System.PlatformNotSupportedException(SR.QuotaControlNotSupported); 21throw new System.PlatformNotSupportedException(SR.QuotaControlNotSupported);
System\DirectoryServices\Protocols\common\ResultCode.cs (43)
59{ ResultCode.Success, SR.LDAP_SUCCESS }, 60{ ResultCode.OperationsError, SR.LDAP_OPERATIONS_ERROR }, 61{ ResultCode.ProtocolError, SR.LDAP_PROTOCOL_ERROR }, 62{ ResultCode.TimeLimitExceeded, SR.LDAP_TIMELIMIT_EXCEEDED }, 63{ ResultCode.SizeLimitExceeded, SR.LDAP_SIZELIMIT_EXCEEDED }, 64{ ResultCode.CompareFalse, SR.LDAP_COMPARE_FALSE }, 65{ ResultCode.CompareTrue, SR.LDAP_COMPARE_TRUE }, 66{ ResultCode.AuthMethodNotSupported, SR.LDAP_AUTH_METHOD_NOT_SUPPORTED }, 67{ ResultCode.StrongAuthRequired, SR.LDAP_STRONG_AUTH_REQUIRED }, 68{ ResultCode.ReferralV2, SR.LDAP_PARTIAL_RESULTS }, 69{ ResultCode.Referral, SR.LDAP_REFERRAL }, 70{ ResultCode.AdminLimitExceeded, SR.LDAP_ADMIN_LIMIT_EXCEEDED }, 71{ ResultCode.UnavailableCriticalExtension, SR.LDAP_UNAVAILABLE_CRIT_EXTENSION }, 72{ ResultCode.ConfidentialityRequired, SR.LDAP_CONFIDENTIALITY_REQUIRED }, 73{ ResultCode.SaslBindInProgress, SR.LDAP_SASL_BIND_IN_PROGRESS }, 74{ ResultCode.NoSuchAttribute, SR.LDAP_NO_SUCH_ATTRIBUTE }, 75{ ResultCode.UndefinedAttributeType, SR.LDAP_UNDEFINED_TYPE }, 76{ ResultCode.InappropriateMatching, SR.LDAP_INAPPROPRIATE_MATCHING }, 77{ ResultCode.ConstraintViolation, SR.LDAP_CONSTRAINT_VIOLATION }, 78{ ResultCode.AttributeOrValueExists, SR.LDAP_ATTRIBUTE_OR_VALUE_EXISTS }, 79{ ResultCode.InvalidAttributeSyntax, SR.LDAP_INVALID_SYNTAX }, 80{ ResultCode.NoSuchObject, SR.LDAP_NO_SUCH_OBJECT }, 81{ ResultCode.AliasProblem, SR.LDAP_ALIAS_PROBLEM }, 82{ ResultCode.InvalidDNSyntax, SR.LDAP_INVALID_DN_SYNTAX }, 83{ ResultCode.AliasDereferencingProblem, SR.LDAP_ALIAS_DEREF_PROBLEM }, 84{ ResultCode.InappropriateAuthentication, SR.LDAP_INAPPROPRIATE_AUTH }, 85{ ResultCode.InsufficientAccessRights, SR.LDAP_INSUFFICIENT_RIGHTS }, 86{ ResultCode.Busy, SR.LDAP_BUSY }, 87{ ResultCode.Unavailable, SR.LDAP_UNAVAILABLE }, 88{ ResultCode.UnwillingToPerform, SR.LDAP_UNWILLING_TO_PERFORM }, 89{ ResultCode.LoopDetect, SR.LDAP_LOOP_DETECT }, 90{ ResultCode.SortControlMissing, SR.LDAP_SORT_CONTROL_MISSING }, 91{ ResultCode.OffsetRangeError, SR.LDAP_OFFSET_RANGE_ERROR }, 92{ ResultCode.NamingViolation, SR.LDAP_NAMING_VIOLATION }, 93{ ResultCode.ObjectClassViolation, SR.LDAP_OBJECT_CLASS_VIOLATION }, 94{ ResultCode.NotAllowedOnNonLeaf, SR.LDAP_NOT_ALLOWED_ON_NONLEAF }, 95{ ResultCode.NotAllowedOnRdn, SR.LDAP_NOT_ALLOWED_ON_RDN }, 96{ ResultCode.EntryAlreadyExists, SR.LDAP_ALREADY_EXISTS }, 97{ ResultCode.ObjectClassModificationsProhibited, SR.LDAP_NO_OBJECT_CLASS_MODS }, 98{ ResultCode.ResultsTooLarge, SR.LDAP_RESULTS_TOO_LARGE }, 99{ ResultCode.AffectsMultipleDsas, SR.LDAP_AFFECTS_MULTIPLE_DSAS }, 100{ ResultCode.VirtualListViewError, SR.LDAP_VIRTUAL_LIST_VIEW_ERROR }, 101{ ResultCode.Other, SR.LDAP_OTHER }
System\DirectoryServices\Protocols\Interop\SafeHandles.Linux.cs (1)
31throw new LdapException(SR.LDAP_CONNECT_ERROR);
System\DirectoryServices\Protocols\ldap\LdapConnection.cs (22)
81throw new ArgumentException(SR.InvalidAuthCredential); 109throw new ArgumentException(SR.NoNegativeTimeLimit, nameof(value)); 115throw new ArgumentException(SR.TimespanExceedMax, nameof(value)); 204throw new NotSupportedException(SR.DsmlAuthRequestNotSupported); 279throw new NotSupportedException(SR.PartialResultsNotSupported); 284throw new ArgumentException(SR.CallBackIsNull, nameof(callback)); 391throw new ArgumentException(SR.Format(SR.NotReturnedAsyncResult, nameof(asyncResult))); 401throw new ArgumentException(SR.InvalidAsyncResult); 433throw new ArgumentException(SR.Format(SR.NotReturnedAsyncResult, nameof(asyncResult))); 438throw new InvalidOperationException(SR.NoPartialResults); 455throw new ArgumentException(SR.Format(SR.NotReturnedAsyncResult, nameof(asyncResult))); 465throw new ArgumentException(SR.InvalidAsyncResult); 580throw new ArgumentException(SR.WrongAssertionCompare); 585throw new ArgumentException(SR.WrongNumValuesCompare); 606throw new ArgumentException(SR.ValidValueType); 698throw new ArgumentException(SR.InvalidLdapSearchRequestFilter); 753throw new NotSupportedException(SR.InvliadRequestType); 940throw new InvalidOperationException(SR.InvalidClientCertificates); 998throw new InvalidOperationException(SR.InvalidAuthCredential);
System\DirectoryServices\Protocols\ldap\LdapDirectoryIdentifier.cs (1)
40throw new ArgumentException(SR.WhiteSpaceServerName);
System\DirectoryServices\Protocols\ldap\LdapException.cs (22)
42{ LdapError.IsLeaf, SR.LDAP_IS_LEAF }, 43{ LdapError.InvalidCredentials, SR.LDAP_INVALID_CREDENTIALS }, 44{ LdapError.ServerDown, SR.LDAP_SERVER_DOWN }, 45{ LdapError.LocalError, SR.LDAP_LOCAL_ERROR }, 46{ LdapError.EncodingError, SR.LDAP_ENCODING_ERROR }, 47{ LdapError.DecodingError, SR.LDAP_DECODING_ERROR }, 48{ LdapError.TimeOut, SR.LDAP_TIMEOUT }, 49{ LdapError.AuthUnknown, SR.LDAP_AUTH_UNKNOWN }, 50{ LdapError.FilterError, SR.LDAP_FILTER_ERROR }, 51{ LdapError.UserCancelled, SR.LDAP_USER_CANCELLED }, 52{ LdapError.ParameterError, SR.LDAP_PARAM_ERROR }, 53{ LdapError.NoMemory, SR.LDAP_NO_MEMORY }, 54{ LdapError.ConnectError, SR.LDAP_CONNECT_ERROR }, 55{ LdapError.NotSupported, SR.LDAP_NOT_SUPPORTED }, 56{ LdapError.NoResultsReturned, SR.LDAP_NO_RESULTS_RETURNED }, 57{ LdapError.ControlNotFound, SR.LDAP_CONTROL_NOT_FOUND }, 58{ LdapError.MoreResults, SR.LDAP_MORE_RESULTS_TO_RETURN }, 59{ LdapError.ClientLoop, SR.LDAP_CLIENT_LOOP }, 60{ LdapError.ReferralLimitExceeded, SR.LDAP_REFERRAL_LIMIT_EXCEEDED }, 61{ LdapError.SendTimeOut, SR.LDAP_SEND_TIMEOUT } 109: base(SR.Format(SR.DefaultLdapError, LdapErrorMappings.NormalizeResultCode(errorCode)))
System\DirectoryServices\Protocols\ldap\LdapPartialResultsProcessor.cs (4)
47throw new ArgumentException(SR.InvalidAsyncResult); 236throw new ArgumentException(SR.InvalidAsyncResult); 247throw new ArgumentException(SR.InvalidAsyncResult); 293throw new ArgumentException(SR.InvalidAsyncResult);
System\DirectoryServices\Protocols\ldap\LdapSessionOptions.cs (9)
168throw new ArgumentException(SR.ValidValue, nameof(value)); 222throw new ArgumentException(SR.NoNegativeTimeLimit, nameof(value)); 228throw new ArgumentException(SR.TimespanExceedMax, nameof(value)); 243throw new ArgumentException(SR.ValidValue, nameof(value)); 261throw new ArgumentException(SR.NoNegativeTimeLimit, nameof(value)); 267throw new ArgumentException(SR.TimespanExceedMax, nameof(value)); 403throw new ArgumentException(SR.NoNegativeTimeLimit, nameof(value)); 409throw new ArgumentException(SR.TimespanExceedMax, nameof(value)); 753throw new TlsOperationException(null, SR.TLSStopFailure);
System\DirectoryServices\Protocols\ldap\LdapSessionOptions.Linux.cs (3)
37throw new DirectoryNotFoundException(SR.Format(SR.DirectoryNotFound, value)); 72throw new PlatformNotSupportedException(SR.ReferralChasingOptionsNotSupported);