171 references to SR
System.DirectoryServices.Protocols (171)
System\DirectoryServices\Protocols\common\BerConverter.cs (16)
59
throw new ArgumentException(
SR
.BerConverterNotMatch);
66
throw new ArgumentException(
SR
.BerConverterNotMatch);
81
throw new ArgumentException(
SR
.BerConverterNotMatch);
88
throw new ArgumentException(
SR
.BerConverterNotMatch);
103
throw new ArgumentException(
SR
.BerConverterNotMatch);
111
throw new ArgumentException(
SR
.BerConverterNotMatch);
132
throw new ArgumentException(
SR
.BerConverterNotMatch);
140
throw new ArgumentException(
SR
.BerConverterNotMatch);
155
throw new ArgumentException(
SR
.BerConverterNotMatch);
163
throw new ArgumentException(
SR
.BerConverterNotMatch);
196
throw new ArgumentException(
SR
.BerConverterNotMatch);
204
throw new ArgumentException(
SR
.BerConverterNotMatch);
219
throw new ArgumentException(
SR
.BerConverterNotMatch);
226
throw new ArgumentException(
SR
.BerConverterNotMatch);
240
throw new ArgumentException(
SR
.BerConverterUndefineChar);
435
throw new ArgumentException(
SR
.BerConverterUndefineChar);
System\DirectoryServices\Protocols\common\DirectoryAttribute.cs (22)
84
throw new NotSupportedException(
SR
.DirectoryAttributeConversion);
108
throw new NotSupportedException(
SR
.DirectoryAttributeConversion);
115
throw new ArgumentException(
SR
.ValidDirectoryAttributeType, nameof(valuesType));
147
throw new ArgumentException(
SR
.ValidValueType, nameof(value));
166
throw new ArgumentException(
SR
.ValidValueType, nameof(value));
178
throw new ArgumentException(
SR
.ValidValuesType, nameof(values));
185
throw new ArgumentException(
SR
.NullValueArray, nameof(values));
219
throw new ArgumentException(
SR
.ValidValueType, nameof(value));
291
set => List[index] = value ?? throw new ArgumentException(
SR
.NullDirectoryAttributeCollection);
298
throw new ArgumentException(
SR
.NullDirectoryAttributeCollection);
312
throw new ArgumentException(
SR
.NullDirectoryAttributeCollection);
340
throw new ArgumentException(
SR
.NullDirectoryAttributeCollection);
352
throw new ArgumentException(
SR
.NullDirectoryAttributeCollection);
356
throw new ArgumentException(
SR
.Format(
SR
.InvalidValueType, nameof(DirectoryAttribute)), nameof(value));
370
set => List[index] = value ?? throw new ArgumentException(
SR
.NullDirectoryAttributeCollection);
377
throw new ArgumentException(
SR
.NullDirectoryAttributeCollection);
391
throw new ArgumentException(
SR
.NullDirectoryAttributeCollection);
419
throw new ArgumentException(
SR
.NullDirectoryAttributeCollection);
431
throw new ArgumentException(
SR
.NullDirectoryAttributeCollection);
435
throw new ArgumentException(
SR
.Format(
SR
.InvalidValueType, nameof(DirectoryAttributeModification)), nameof(value));
System\DirectoryServices\Protocols\common\DirectoryConnection.cs (1)
30
throw new ArgumentException(
SR
.NoNegativeTimeLimit, nameof(value));
System\DirectoryServices\Protocols\common\DirectoryControl.cs (13)
306
throw new BerConversionException(
SR
.BerConversionError, asnEx);
310
throw new BerConversionException(
SR
.BerConversionError, decEx);
644
throw new ArgumentException(
SR
.ValidValue, nameof(value));
727
throw new ArgumentException(
SR
.ValidValue, nameof(value));
809
throw new ArgumentException(
SR
.NullValueArray, nameof(sortKeys));
854
throw new ArgumentException(
SR
.NullValueArray, nameof(value));
964
throw new ArgumentException(
SR
.ValidValue, nameof(value));
978
throw new ArgumentException(
SR
.ValidValue, nameof(value));
992
throw new ArgumentException(
SR
.ValidValue, nameof(value));
1006
throw new ArgumentException(
SR
.ValidValue, nameof(value));
1180
throw new ArgumentException(
SR
.ContainNullControl, nameof(controls));
1219
throw new ArgumentException(
SR
.Format(
SR
.InvalidValueType, nameof(DirectoryControl)), nameof(value));
System\DirectoryServices\Protocols\common\DirectoryException.cs (7)
45
public DirectoryOperationException() : base(
SR
.DefaultOperationsError) { }
47
public DirectoryOperationException(string message) : base(message ??
SR
.DefaultOperationsError) { }
49
public DirectoryOperationException(string message, Exception inner) : base(message ??
SR
.DefaultOperationsError, inner) { }
73
string result = message ??
SR
.DefaultOperationsError;
92
public BerConversionException() : base(
SR
.BerConversionError)
96
public BerConversionException(string message) : base(message ??
SR
.BerConversionError)
100
public BerConversionException(string message, Exception inner) : base(message ??
SR
.BerConversionError, inner)
System\DirectoryServices\Protocols\common\DirectoryRequest.cs (5)
133
throw new ArgumentException(
SR
.WrongNumValuesCompare);
243
throw new ArgumentException(
SR
.ValidFilterType, nameof(value));
285
throw new ArgumentException(
SR
.NoNegativeSizeLimit, nameof(value));
299
throw new ArgumentException(
SR
.NoNegativeTimeLimit, nameof(value));
305
throw new ArgumentException(
SR
.TimespanExceedMax, nameof(value));
System\DirectoryServices\Protocols\common\QuotaControl.Linux.cs (2)
12
get => _sid == null ? null : throw new System.PlatformNotSupportedException(
SR
.QuotaControlNotSupported);
21
throw 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)
31
throw new LdapException(
SR
.LDAP_CONNECT_ERROR);
System\DirectoryServices\Protocols\ldap\LdapConnection.cs (22)
81
throw new ArgumentException(
SR
.InvalidAuthCredential);
109
throw new ArgumentException(
SR
.NoNegativeTimeLimit, nameof(value));
115
throw new ArgumentException(
SR
.TimespanExceedMax, nameof(value));
204
throw new NotSupportedException(
SR
.DsmlAuthRequestNotSupported);
279
throw new NotSupportedException(
SR
.PartialResultsNotSupported);
284
throw new ArgumentException(
SR
.CallBackIsNull, nameof(callback));
391
throw new ArgumentException(
SR
.Format(
SR
.NotReturnedAsyncResult, nameof(asyncResult)));
401
throw new ArgumentException(
SR
.InvalidAsyncResult);
433
throw new ArgumentException(
SR
.Format(
SR
.NotReturnedAsyncResult, nameof(asyncResult)));
438
throw new InvalidOperationException(
SR
.NoPartialResults);
455
throw new ArgumentException(
SR
.Format(
SR
.NotReturnedAsyncResult, nameof(asyncResult)));
465
throw new ArgumentException(
SR
.InvalidAsyncResult);
580
throw new ArgumentException(
SR
.WrongAssertionCompare);
585
throw new ArgumentException(
SR
.WrongNumValuesCompare);
606
throw new ArgumentException(
SR
.ValidValueType);
698
throw new ArgumentException(
SR
.InvalidLdapSearchRequestFilter);
753
throw new NotSupportedException(
SR
.InvliadRequestType);
940
throw new InvalidOperationException(
SR
.InvalidClientCertificates);
998
throw new InvalidOperationException(
SR
.InvalidAuthCredential);
System\DirectoryServices\Protocols\ldap\LdapDirectoryIdentifier.cs (1)
40
throw 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)
47
throw new ArgumentException(
SR
.InvalidAsyncResult);
236
throw new ArgumentException(
SR
.InvalidAsyncResult);
247
throw new ArgumentException(
SR
.InvalidAsyncResult);
293
throw new ArgumentException(
SR
.InvalidAsyncResult);
System\DirectoryServices\Protocols\ldap\LdapSessionOptions.cs (9)
168
throw new ArgumentException(
SR
.ValidValue, nameof(value));
222
throw new ArgumentException(
SR
.NoNegativeTimeLimit, nameof(value));
228
throw new ArgumentException(
SR
.TimespanExceedMax, nameof(value));
243
throw new ArgumentException(
SR
.ValidValue, nameof(value));
261
throw new ArgumentException(
SR
.NoNegativeTimeLimit, nameof(value));
267
throw new ArgumentException(
SR
.TimespanExceedMax, nameof(value));
403
throw new ArgumentException(
SR
.NoNegativeTimeLimit, nameof(value));
409
throw new ArgumentException(
SR
.TimespanExceedMax, nameof(value));
753
throw new TlsOperationException(null,
SR
.TLSStopFailure);
System\DirectoryServices\Protocols\ldap\LdapSessionOptions.Linux.cs (3)
37
throw new DirectoryNotFoundException(
SR
.Format(
SR
.DirectoryNotFound, value));
72
throw new PlatformNotSupportedException(
SR
.ReferralChasingOptionsNotSupported);