183 references to KEY
System.Data (183)
fx\src\data\System\Data\SqlClient\SqlConnection.cs (4)
2052
throw SQL.ChangePasswordUseOfUnallowedKey(SqlConnectionString.
KEY
.AttachDBFilename);
2055
throw SQL.ChangePasswordUseOfUnallowedKey(SqlConnectionString.
KEY
.Context_Connection);
2108
throw SQL.ChangePasswordUseOfUnallowedKey(SqlConnectionString.
KEY
.AttachDBFilename);
2112
throw SQL.ChangePasswordUseOfUnallowedKey(SqlConnectionString.
KEY
.Context_Connection);
fx\src\data\System\Data\SqlClient\SqlConnectionPoolGroupProviderInfo.cs (3)
77
if (null == userConnectionOptions[SqlConnectionString.
KEY
.FailoverPartner]) {
78
keywordToReplace = SqlConnectionString.
KEY
.Data_Source;
81
keywordToReplace = SqlConnectionString.
KEY
.FailoverPartner;
fx\src\data\System\Data\SqlClient\SqlConnectionString.cs (175)
253
ConvertValueToBoolean(
KEY
.AsynchronousProcessing, DEFAULT.Asynchronous); // while we don't use it anymore, we still need to verify it is true/false
257
_connectionReset = ConvertValueToBoolean(
KEY
.Connection_Reset, DEFAULT.Connection_Reset);
258
_contextConnection = ConvertValueToBoolean(
KEY
.Context_Connection, DEFAULT.Context_Connection);
260
_enlist = ConvertValueToBoolean(
KEY
.Enlist, ADP.IsWindowsNT);
261
_mars = ConvertValueToBoolean(
KEY
.MARS, DEFAULT.MARS);
262
_persistSecurityInfo = ConvertValueToBoolean(
KEY
.Persist_Security_Info, DEFAULT.Persist_Security_Info);
263
_pooling = ConvertValueToBoolean(
KEY
.Pooling, DEFAULT.Pooling);
264
_replication = ConvertValueToBoolean(
KEY
.Replication, DEFAULT.Replication);
265
_userInstance = ConvertValueToBoolean(
KEY
.User_Instance, DEFAULT.User_Instance);
266
_multiSubnetFailover = ConvertValueToBoolean(
KEY
.MultiSubnetFailover, DEFAULT.MultiSubnetFailover);
267
_transparentNetworkIPResolution = ConvertValueToBoolean(
KEY
.TransparentNetworkIPResolution, DEFAULT.TransparentNetworkIPResolution);
269
_connectTimeout = ConvertValueToInt32(
KEY
.Connect_Timeout, DEFAULT.Connect_Timeout);
270
_loadBalanceTimeout = ConvertValueToInt32(
KEY
.Load_Balance_Timeout, DEFAULT.Load_Balance_Timeout);
271
_maxPoolSize = ConvertValueToInt32(
KEY
.Max_Pool_Size, DEFAULT.Max_Pool_Size);
272
_minPoolSize = ConvertValueToInt32(
KEY
.Min_Pool_Size, DEFAULT.Min_Pool_Size);
273
_packetSize = ConvertValueToInt32(
KEY
.Packet_Size, DEFAULT.Packet_Size);
274
_connectRetryCount = ConvertValueToInt32(
KEY
.Connect_Retry_Count, DEFAULT.Connect_Retry_Count);
275
_connectRetryInterval = ConvertValueToInt32(
KEY
.Connect_Retry_Interval, DEFAULT.Connect_Retry_Interval);
278
_applicationName = ConvertValueToString(
KEY
.Application_Name, DEFAULT.Application_Name);
279
_attachDBFileName = ConvertValueToString(
KEY
.AttachDBFilename, DEFAULT.AttachDBFilename);
280
_currentLanguage = ConvertValueToString(
KEY
.Current_Language, DEFAULT.Current_Language);
281
_dataSource = ConvertValueToString(
KEY
.Data_Source, DEFAULT.Data_Source);
283
_failoverPartner = ConvertValueToString(
KEY
.FailoverPartner, DEFAULT.FailoverPartner);
284
_initialCatalog = ConvertValueToString(
KEY
.Initial_Catalog, DEFAULT.Initial_Catalog);
285
_networkLibrary = ConvertValueToString(
KEY
.Network_Library, null);
286
_password = ConvertValueToString(
KEY
.Password, DEFAULT.Password);
287
_trustServerCertificate = ConvertValueToBoolean(
KEY
.TrustServerCertificate, DEFAULT.TrustServerCertificate);
290
_enclaveAttestationUrl = ConvertValueToString(
KEY
.EnclaveAttestationUrl, DEFAULT.EnclaveAttestationUrl);
293
string typeSystemVersionString = ConvertValueToString(
KEY
.Type_System_Version, null);
294
string transactionBindingString = ConvertValueToString(
KEY
.TransactionBinding, null);
296
_userID = ConvertValueToString(
KEY
.User_ID, DEFAULT.User_ID);
297
_workstationId = ConvertValueToString(
KEY
.Workstation_Id, null);
311
if ((string) entry.Key !=
KEY
.Context_Connection &&
312
(string) entry.Key !=
KEY
.Type_System_Version) {
330
throw ADP.InvalidConnectionOptionValue(
KEY
.Load_Balance_Timeout);
334
throw ADP.InvalidConnectionOptionValue(
KEY
.Connect_Timeout);
338
throw ADP.InvalidConnectionOptionValue(
KEY
.Max_Pool_Size);
342
throw ADP.InvalidConnectionOptionValue(
KEY
.Min_Pool_Size);
356
throw ADP.InvalidConnectionOptionValue(
KEY
.Network_Library);
364
ValidateValueLength(_applicationName, TdsEnums.MAXLEN_APPNAME,
KEY
.Application_Name);
365
ValidateValueLength(_currentLanguage , TdsEnums.MAXLEN_LANGUAGE,
KEY
.Current_Language);
366
ValidateValueLength(_dataSource, TdsEnums.MAXLEN_SERVERNAME,
KEY
.Data_Source);
367
ValidateValueLength(_failoverPartner, TdsEnums.MAXLEN_SERVERNAME,
KEY
.FailoverPartner);
368
ValidateValueLength(_initialCatalog, TdsEnums.MAXLEN_DATABASE,
KEY
.Initial_Catalog);
369
ValidateValueLength(_password, TdsEnums.MAXLEN_PASSWORD,
KEY
.Password);
370
ValidateValueLength(_userID, TdsEnums.MAXLEN_USERNAME,
KEY
.User_ID);
372
ValidateValueLength(_workstationId, TdsEnums.MAXLEN_HOSTNAME,
KEY
.Workstation_Id);
383
throw ADP.MissingConnectionOptionValue(
KEY
.FailoverPartner,
KEY
.Initial_Catalog);
389
_expandedAttachDBFilename = ExpandDataDirectory(
KEY
.AttachDBFilename, _attachDBFileName, ref datadir);
392
throw ADP.InvalidConnectionOptionValue(
KEY
.AttachDBFilename);
394
ValidateValueLength(_expandedAttachDBFilename, TdsEnums.MAXLEN_ATTACHDBFILE,
KEY
.AttachDBFilename);
406
throw ADP.InvalidConnectionOptionValue(
KEY
.AttachDBFilename);
409
ValidateValueLength(_attachDBFileName, TdsEnums.MAXLEN_ATTACHDBFILE,
KEY
.AttachDBFilename);
442
throw ADP.InvalidConnectionOptionValue(
KEY
.Type_System_Version);
456
throw ADP.InvalidConnectionOptionValue(
KEY
.TransactionBinding);
534
ValidateValueLength(_dataSource, TdsEnums.MAXLEN_SERVERNAME,
KEY
.Data_Source);
604
return ExpandKeyword(
KEY
.AttachDBFilename, _expandedAttachDBFilename);
637
hash.Add(
KEY
.ApplicationIntent,
KEY
.ApplicationIntent);
638
hash.Add(
KEY
.Application_Name,
KEY
.Application_Name);
639
hash.Add(
KEY
.AsynchronousProcessing,
KEY
.AsynchronousProcessing);
640
hash.Add(
KEY
.AttachDBFilename,
KEY
.AttachDBFilename);
641
hash.Add(
KEY
.PoolBlockingPeriod,
KEY
.PoolBlockingPeriod);
642
hash.Add(
KEY
.Connect_Timeout,
KEY
.Connect_Timeout);
643
hash.Add(
KEY
.Connection_Reset,
KEY
.Connection_Reset);
644
hash.Add(
KEY
.Context_Connection,
KEY
.Context_Connection);
645
hash.Add(
KEY
.Current_Language,
KEY
.Current_Language);
646
hash.Add(
KEY
.Data_Source,
KEY
.Data_Source);
647
hash.Add(
KEY
.Encrypt,
KEY
.Encrypt);
648
hash.Add(
KEY
.Enlist,
KEY
.Enlist);
649
hash.Add(
KEY
.FailoverPartner,
KEY
.FailoverPartner);
650
hash.Add(
KEY
.Initial_Catalog,
KEY
.Initial_Catalog);
651
hash.Add(
KEY
.Integrated_Security,
KEY
.Integrated_Security);
652
hash.Add(
KEY
.Load_Balance_Timeout,
KEY
.Load_Balance_Timeout);
653
hash.Add(
KEY
.MARS,
KEY
.MARS);
654
hash.Add(
KEY
.Max_Pool_Size,
KEY
.Max_Pool_Size);
655
hash.Add(
KEY
.Min_Pool_Size,
KEY
.Min_Pool_Size);
656
hash.Add(
KEY
.MultiSubnetFailover,
KEY
.MultiSubnetFailover);
657
hash.Add(
KEY
.TransparentNetworkIPResolution,
KEY
.TransparentNetworkIPResolution);
658
hash.Add(
KEY
.Network_Library,
KEY
.Network_Library);
659
hash.Add(
KEY
.Packet_Size,
KEY
.Packet_Size);
660
hash.Add(
KEY
.Password,
KEY
.Password);
661
hash.Add(
KEY
.Persist_Security_Info,
KEY
.Persist_Security_Info);
662
hash.Add(
KEY
.Pooling,
KEY
.Pooling);
663
hash.Add(
KEY
.Replication,
KEY
.Replication);
664
hash.Add(
KEY
.TrustServerCertificate,
KEY
.TrustServerCertificate);
665
hash.Add(
KEY
.TransactionBinding,
KEY
.TransactionBinding);
666
hash.Add(
KEY
.Type_System_Version,
KEY
.Type_System_Version);
667
hash.Add(
KEY
.ColumnEncryptionSetting,
KEY
.ColumnEncryptionSetting);
668
hash.Add(
KEY
.EnclaveAttestationUrl,
KEY
.EnclaveAttestationUrl);
669
hash.Add(
KEY
.User_ID,
KEY
.User_ID);
670
hash.Add(
KEY
.User_Instance,
KEY
.User_Instance);
671
hash.Add(
KEY
.Workstation_Id,
KEY
.Workstation_Id);
672
hash.Add(
KEY
.Connect_Retry_Count,
KEY
.Connect_Retry_Count);
673
hash.Add(
KEY
.Connect_Retry_Interval,
KEY
.Connect_Retry_Interval);
674
hash.Add(
KEY
.Authentication,
KEY
.Authentication);
676
hash.Add(SYNONYM.APP,
KEY
.Application_Name);
677
hash.Add(SYNONYM.Async,
KEY
.AsynchronousProcessing);
678
hash.Add(SYNONYM.EXTENDED_PROPERTIES,
KEY
.AttachDBFilename);
679
hash.Add(SYNONYM.INITIAL_FILE_NAME,
KEY
.AttachDBFilename);
680
hash.Add(SYNONYM.CONNECTION_TIMEOUT,
KEY
.Connect_Timeout);
681
hash.Add(SYNONYM.TIMEOUT,
KEY
.Connect_Timeout);
682
hash.Add(SYNONYM.LANGUAGE,
KEY
.Current_Language);
683
hash.Add(SYNONYM.ADDR,
KEY
.Data_Source);
684
hash.Add(SYNONYM.ADDRESS,
KEY
.Data_Source);
685
hash.Add(SYNONYM.NETWORK_ADDRESS,
KEY
.Data_Source);
686
hash.Add(SYNONYM.SERVER,
KEY
.Data_Source);
687
hash.Add(SYNONYM.DATABASE,
KEY
.Initial_Catalog);
688
hash.Add(SYNONYM.TRUSTED_CONNECTION,
KEY
.Integrated_Security);
689
hash.Add(SYNONYM.Connection_Lifetime,
KEY
.Load_Balance_Timeout);
690
hash.Add(SYNONYM.NET,
KEY
.Network_Library);
691
hash.Add(SYNONYM.NETWORK,
KEY
.Network_Library);
692
hash.Add(SYNONYM.Pwd,
KEY
.Password);
693
hash.Add(SYNONYM.PERSISTSECURITYINFO,
KEY
.Persist_Security_Info);
694
hash.Add(SYNONYM.UID,
KEY
.User_ID);
695
hash.Add(SYNONYM.User,
KEY
.User_ID);
696
hash.Add(SYNONYM.WSID,
KEY
.Workstation_Id);
713
ValidateValueLength(result, TdsEnums.MAXLEN_HOSTNAME,
KEY
.Workstation_Id);
775
throw ADP.InvalidConnectionOptionValue(
KEY
.AttachDBFilename);
783
object value = base.Parsetable[
KEY
.ApplicationIntent];
791
return DbConnectionStringBuilderUtil.ConvertToApplicationIntent(
KEY
.ApplicationIntent, value);
794
throw ADP.InvalidConnectionOptionValue(
KEY
.ApplicationIntent, e);
797
throw ADP.InvalidConnectionOptionValue(
KEY
.ApplicationIntent, e);
804
object value = base.Parsetable[
KEY
.PoolBlockingPeriod];
812
return DbConnectionStringBuilderUtil.ConvertToPoolBlockingPeriod(
KEY
.PoolBlockingPeriod, value);
816
throw ADP.InvalidConnectionOptionValue(
KEY
.PoolBlockingPeriod, e);
820
throw ADP.InvalidConnectionOptionValue(
KEY
.PoolBlockingPeriod, e);
825
object value = base.Parsetable[
KEY
.Authentication];
833
return DbConnectionStringBuilderUtil.ConvertToAuthenticationType(
KEY
.Authentication, valStr);
836
throw ADP.InvalidConnectionOptionValue(
KEY
.Authentication, e);
839
throw ADP.InvalidConnectionOptionValue(
KEY
.Authentication, e);
848
object value = base.Parsetable[
KEY
.ColumnEncryptionSetting];
856
return DbConnectionStringBuilderUtil.ConvertToColumnEncryptionSetting(
KEY
.ColumnEncryptionSetting, valStr);
859
throw ADP.InvalidConnectionOptionValue(
KEY
.ColumnEncryptionSetting, e);
862
throw ADP.InvalidConnectionOptionValue(
KEY
.ColumnEncryptionSetting, e);
869
object authValue = base.Parsetable[
KEY
.Authentication];
871
return ConvertValueToBoolean(
KEY
.Encrypt, defaultEncryptValue);
fx\src\data\System\Data\SqlClient\SqlInternalConnectionTds.cs (1)
1675
bool isTnirExplicitlySpecifiedInConnectionOptions = connectionOptions.Parsetable[SqlConnectionString.
KEY
.TransparentNetworkIPResolution] != null;