Microsoft.Data.SqlClient.xml 1.3 MB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429
  1. <?xml version="1.0"?>
  2. <doc>
  3. <assembly>
  4. <name>Microsoft.Data.SqlClient</name>
  5. </assembly>
  6. <members>
  7. <member name="M:Microsoft.Data.Common.DbConnectionStringBuilderUtil.ConvertToPoolBlockingPeriod(System.String,System.Object)">
  8. <summary>
  9. This method attempts to convert the given value to a PoolBlockingPeriod enum. The algorithm is:
  10. * if the value is from type string, it will be matched against PoolBlockingPeriod enum names only, using ordinal, case-insensitive comparer
  11. * if the value is from type PoolBlockingPeriod, it will be used as is
  12. * if the value is from integral type (SByte, Int16, Int32, Int64, Byte, UInt16, UInt32, or UInt64), it will be converted to enum
  13. * if the value is another enum or any other type, it will be blocked with an appropriate ArgumentException
  14. in any case above, if the conerted value is out of valid range, the method raises ArgumentOutOfRangeException.
  15. </summary>
  16. <returns>PoolBlockingPeriod value in the valid range</returns>
  17. </member>
  18. <member name="F:Microsoft.Data.Common.DbConnectionStringBuilderUtil.ColumnEncryptionSettingEnabledString">
  19. <summary>
  20. Column Encryption Setting.
  21. </summary>
  22. </member>
  23. <member name="M:Microsoft.Data.Common.DbConnectionStringBuilderUtil.TryConvertToColumnEncryptionSetting(System.String,Microsoft.Data.SqlClient.SqlConnectionColumnEncryptionSetting@)">
  24. <summary>
  25. Convert a string value to the corresponding SqlConnectionColumnEncryptionSetting.
  26. </summary>
  27. <param name="value"></param>
  28. <param name="result"></param>
  29. <returns></returns>
  30. </member>
  31. <member name="M:Microsoft.Data.Common.DbConnectionStringBuilderUtil.IsValidColumnEncryptionSetting(Microsoft.Data.SqlClient.SqlConnectionColumnEncryptionSetting)">
  32. <summary>
  33. Is it a valid connection level column encryption setting ?
  34. </summary>
  35. <param name="value"></param>
  36. <returns></returns>
  37. </member>
  38. <member name="M:Microsoft.Data.Common.DbConnectionStringBuilderUtil.ColumnEncryptionSettingToString(Microsoft.Data.SqlClient.SqlConnectionColumnEncryptionSetting)">
  39. <summary>
  40. Convert connection level column encryption setting value to string.
  41. </summary>
  42. <param name="value"></param>
  43. <returns></returns>
  44. </member>
  45. <member name="F:Microsoft.Data.Common.DbConnectionStringBuilderUtil.AttestationProtocolHGS">
  46. <summary>
  47. Attestation Protocol.
  48. </summary>
  49. </member>
  50. <member name="M:Microsoft.Data.Common.DbConnectionStringBuilderUtil.TryConvertToAttestationProtocol(System.String,Microsoft.Data.SqlClient.SqlConnectionAttestationProtocol@)">
  51. <summary>
  52. Convert a string value to the corresponding SqlConnectionAttestationProtocol
  53. </summary>
  54. <param name="value"></param>
  55. <param name="result"></param>
  56. <returns></returns>
  57. </member>
  58. <member name="M:Microsoft.Data.Common.DbConnectionStringBuilderUtil.ConvertToApplicationIntent(System.String,System.Object)">
  59. <summary>
  60. This method attempts to convert the given value tp ApplicationIntent enum. The algorithm is:
  61. * if the value is from type string, it will be matched against ApplicationIntent enum names only, using ordinal, case-insensitive comparer
  62. * if the value is from type ApplicationIntent, it will be used as is
  63. * if the value is from integral type (SByte, Int16, Int32, Int64, Byte, UInt16, UInt32, or UInt64), it will be converted to enum
  64. * if the value is another enum or any other type, it will be blocked with an appropriate ArgumentException
  65. in any case above, if the converted value is out of valid range, the method raises ArgumentOutOfRangeException.
  66. </summary>
  67. <returns>application intent value in the valid range</returns>
  68. </member>
  69. <member name="M:Microsoft.Data.Common.DbConnectionStringBuilderUtil.ConvertToColumnEncryptionSetting(System.String,System.Object)">
  70. <summary>
  71. Convert the provided value to a SqlConnectionColumnEncryptionSetting.
  72. </summary>
  73. <param name="keyword"></param>
  74. <param name="value"></param>
  75. <returns></returns>
  76. </member>
  77. <member name="T:Microsoft.Data.Common.ActivityCorrelator">
  78. <summary>
  79. This class defines the data structure for ActivityId used for correlated tracing between client (bid trace event) and server (XEvent).
  80. It also includes all the APIs used to access the ActivityId. Note: ActivityId is thread based which is stored in TLS.
  81. </summary>
  82. </member>
  83. <member name="P:Microsoft.Data.Common.ActivityCorrelator.Current">
  84. <summary>
  85. Get the current ActivityId
  86. </summary>
  87. </member>
  88. <member name="M:Microsoft.Data.Common.ActivityCorrelator.Next">
  89. <summary>
  90. Increment the sequence number and generate the new ActivityId
  91. </summary>
  92. <returns>ActivityId</returns>
  93. </member>
  94. <member name="F:Microsoft.Data.ProviderBase.DbConnectionPool._pooledDbAuthenticationContexts">
  95. <summary>
  96. The private member which carries the set of authenticationcontexts for this pool (based on the user's identity).
  97. </summary>
  98. </member>
  99. <member name="P:Microsoft.Data.ProviderBase.DbConnectionPool.AuthenticationContexts">
  100. <summary>
  101. Return the pooled authentication contexts.
  102. </summary>
  103. </member>
  104. <member name="M:Microsoft.Data.ProviderBase.DbConnectionPool.ReplaceConnection(System.Data.Common.DbConnection,Microsoft.Data.Common.DbConnectionOptions,Microsoft.Data.ProviderBase.DbConnectionInternal)">
  105. <summary>
  106. Creates a new connection to replace an existing connection
  107. </summary>
  108. <param name="owningObject">Outer connection that currently owns <paramref name="oldConnection"/></param>
  109. <param name="userOptions">Options used to create the new connection</param>
  110. <param name="oldConnection">Inner connection that will be replaced</param>
  111. <returns>A new inner connection that is attached to the <paramref name="owningObject"/></returns>
  112. </member>
  113. <member name="M:Microsoft.Data.ProviderBase.DbConnectionInternal.DoomThisConnection">
  114. <devdoc>Ensure that this connection cannot be put back into the pool.</devdoc>
  115. </member>
  116. <member name="M:Microsoft.Data.ProviderBase.DbConnectionInternal.TryOpenConnection(System.Data.Common.DbConnection,Microsoft.Data.ProviderBase.DbConnectionFactory,System.Threading.Tasks.TaskCompletionSource{Microsoft.Data.ProviderBase.DbConnectionInternal},Microsoft.Data.Common.DbConnectionOptions)">
  117. <devdoc>The default implementation is for the open connection objects, and
  118. it simply throws. Our private closed-state connection objects
  119. override this and do the correct thing.</devdoc>
  120. </member>
  121. <member name="M:Microsoft.Data.ProviderBase.DbConnectionInternal.IsConnectionAlive(System.Boolean)">
  122. <summary>
  123. When overridden in a derived class, will check if the underlying connection is still actually alive
  124. </summary>
  125. <param name="throwOnException">If true an exception will be thrown if the connection is dead instead of returning true\false
  126. (this allows the caller to have the real reason that the connection is not alive (e.g. network error, etc))</param>
  127. <returns>True if the connection is still alive, otherwise false (If not overridden, then always true)</returns>
  128. </member>
  129. <member name="P:Microsoft.Data.ProviderBase.DbConnectionInternal.EnlistedTransactionDisposed">
  130. <summary>
  131. Get boolean value that indicates whether the enlisted transaction has been disposed.
  132. </summary>
  133. <value>
  134. True if there is an enlisted transaction, and it has been disposed.
  135. False if there is an enlisted transaction that has not been disposed, or if the transaction reference is null.
  136. </value>
  137. <remarks>
  138. This method must be called while holding a lock on the DbConnectionInternal instance.
  139. </remarks>
  140. </member>
  141. <member name="T:Microsoft.Data.ProviderBase.DbConnectionPoolAuthenticationContext">
  142. <summary>
  143. Represents the context of an authentication attempt when using the new active directory based authentication mechanisms.
  144. All data members, except_isUpdateInProgressCounter, should be immutable.
  145. </summary>
  146. </member>
  147. <member name="F:Microsoft.Data.ProviderBase.DbConnectionPoolAuthenticationContext.STATUS_LOCKED">
  148. <summary>
  149. The value expected in _isUpdateInProgress if a thread has taken a lock on this context,
  150. to perform the update on the context.
  151. </summary>
  152. </member>
  153. <member name="F:Microsoft.Data.ProviderBase.DbConnectionPoolAuthenticationContext.STATUS_UNLOCKED">
  154. <summary>
  155. The value expected in _isUpdateInProgress if no thread has taken a lock on this context.
  156. </summary>
  157. </member>
  158. <member name="F:Microsoft.Data.ProviderBase.DbConnectionPoolAuthenticationContext._accessToken">
  159. <summary>
  160. Access Token, which is obtained from Active Directory Authentication Library for SQL Server, and needs to be sent to SQL Server
  161. as part of TDS Token type Federated Authentication Token.
  162. </summary>
  163. </member>
  164. <member name="F:Microsoft.Data.ProviderBase.DbConnectionPoolAuthenticationContext._expirationTime">
  165. <summary>
  166. Expiration time of the above access token.
  167. </summary>
  168. </member>
  169. <member name="F:Microsoft.Data.ProviderBase.DbConnectionPoolAuthenticationContext._isUpdateInProgress">
  170. <summary>
  171. A member which is used to achieve a lock to control refresh attempt on this context.
  172. </summary>
  173. </member>
  174. <member name="M:Microsoft.Data.ProviderBase.DbConnectionPoolAuthenticationContext.#ctor(System.Byte[],System.DateTime)">
  175. <summary>
  176. Constructor.
  177. </summary>
  178. <param name="accessToken">Access Token that will be used to connect to SQL Server. Carries identity information about a user.</param>
  179. <param name="expirationTime">The expiration time in UTC for the above accessToken.</param>
  180. </member>
  181. <member name="M:Microsoft.Data.ProviderBase.DbConnectionPoolAuthenticationContext.ChooseAuthenticationContextToUpdate(Microsoft.Data.ProviderBase.DbConnectionPoolAuthenticationContext,Microsoft.Data.ProviderBase.DbConnectionPoolAuthenticationContext)">
  182. <summary>
  183. Static Method.
  184. Given two contexts, choose one to update in the cache. Chooses based on expiration time.
  185. </summary>
  186. <param name="context1">Context1</param>
  187. <param name="context2">Context2</param>
  188. </member>
  189. <member name="M:Microsoft.Data.ProviderBase.DbConnectionPoolAuthenticationContext.LockToUpdate">
  190. <summary>
  191. Try locking the variable _isUpdateInProgressCounter and return if this thread got the lock to update.
  192. Whichever thread got the chance to update this variable to 1 wins the lock.
  193. </summary>
  194. </member>
  195. <member name="M:Microsoft.Data.ProviderBase.DbConnectionPoolAuthenticationContext.ReleaseLockToUpdate">
  196. <summary>
  197. Release the lock which was obtained through LockToUpdate.
  198. </summary>
  199. </member>
  200. <member name="T:Microsoft.Data.ProviderBase.DbConnectionPoolAuthenticationContextKey">
  201. <summary>
  202. Represents the key of dbConnectionPoolAuthenticationContext.
  203. All data members should be immutable and so, hashCode is pre-computed.
  204. </summary>
  205. </member>
  206. <member name="F:Microsoft.Data.ProviderBase.DbConnectionPoolAuthenticationContextKey._stsAuthority">
  207. <summary>
  208. Security Token Service Authority.
  209. </summary>
  210. </member>
  211. <member name="F:Microsoft.Data.ProviderBase.DbConnectionPoolAuthenticationContextKey._servicePrincipalName">
  212. <summary>
  213. Service Principal Name.
  214. </summary>
  215. </member>
  216. <member name="F:Microsoft.Data.ProviderBase.DbConnectionPoolAuthenticationContextKey._hashCode">
  217. <summary>
  218. Pre-Computed Hash Code.
  219. </summary>
  220. </member>
  221. <member name="M:Microsoft.Data.ProviderBase.DbConnectionPoolAuthenticationContextKey.#ctor(System.String,System.String)">
  222. <summary>
  223. Constructor for the type.
  224. </summary>
  225. <param name="stsAuthority">Token Endpoint URL</param>
  226. <param name="servicePrincipalName">SPN representing the SQL service in an active directory.</param>
  227. </member>
  228. <member name="M:Microsoft.Data.ProviderBase.DbConnectionPoolAuthenticationContextKey.Equals(System.Object)">
  229. <summary>
  230. Override the default Equals implementation.
  231. </summary>
  232. <param name="obj"></param>
  233. <returns></returns>
  234. </member>
  235. <member name="M:Microsoft.Data.ProviderBase.DbConnectionPoolAuthenticationContextKey.GetHashCode">
  236. <summary>
  237. Override the default GetHashCode implementation.
  238. </summary>
  239. <returns></returns>
  240. </member>
  241. <member name="M:Microsoft.Data.ProviderBase.DbConnectionPoolAuthenticationContextKey.ComputeHashCode">
  242. <summary>
  243. Compute the hash code for this object.
  244. </summary>
  245. <returns></returns>
  246. </member>
  247. <member name="M:Microsoft.Data.SqlClient.SqlConnectionString.ConvertValueToColumnEncryptionSetting">
  248. <summary>
  249. Convert the value to SqlConnectionColumnEncryptionSetting.
  250. </summary>
  251. <returns></returns>
  252. </member>
  253. <member name="M:Microsoft.Data.SqlClient.SqlConnectionString.ConvertValueToAttestationProtocol">
  254. <summary>
  255. Convert the value to SqlConnectionAttestationProtocol
  256. </summary>
  257. <returns></returns>
  258. </member>
  259. <member name="T:Microsoft.Data.SqlClient.SqlConnectionStringBuilder">
  260. <summary>Provides a simple way to create and manage the contents of connection strings used by the <see cref="T:Microsoft.Data.SqlClient.SqlConnection" /> class.</summary><remarks>
  261. <format type="text/markdown"><![CDATA[
  262. ## Remarks
  263. The connection string builder lets developers programmatically create syntactically correct connection strings, and parse and rebuild existing connection strings, using properties and methods of the class. The connection string builder provides strongly typed properties corresponding to the known key/value pairs allowed by SQL Server. Developers needing to create connection strings as part of applications can use the <xref:Microsoft.Data.SqlClient.SqlConnectionStringBuilder> class to build and modify connection strings. The class also makes it easy to manage connection strings stored in an application configuration file.
  264. The <xref:Microsoft.Data.SqlClient.SqlConnectionStringBuilder> performs checks for valid key/value pairs. Therefore, you cannot use this class to create invalid connection strings; trying to add invalid pairs will throw an exception. The class maintains a fixed collection of synonyms and can translate from a synonym to the corresponding well-known key name.
  265. For example, when you use the **Item** property to retrieve a value, you can specify a string that contains any synonym for the key you need. For example, you can specify "Network Address", "addr", or any other acceptable synonym for this key within a connection string when you use any member that requires a string that contains the key name, such as the **Item** property or the <xref:Microsoft.Data.SqlClient.SqlConnectionStringBuilder.Remove%2A> method. See the <xref:Microsoft.Data.SqlClient.SqlConnection.ConnectionString%2A> property for a full list of acceptable synonyms.
  266. The **Item** property handles tries to insert malicious entries. For example, the following code, using the default Item property (the indexer, in C#) correctly escapes the nested key/value pair:
  267. ```vb
  268. Dim builder As New Microsoft.Data.SqlClient.SqlConnectionStringBuilder
  269. builder("Data Source") = "(local)"
  270. builder("Integrated Security") = True
  271. builder("Initial Catalog") = "AdventureWorks;NewValue=Bad"
  272. Console.WriteLine(builder.ConnectionString)
  273. ```
  274. ```csharp
  275. Microsoft.Data.SqlClient.SqlConnectionStringBuilder builder =
  276. new Microsoft.Data.SqlClient.SqlConnectionStringBuilder();
  277. builder["Data Source"] = "(local)";
  278. builder["Integrated Security"] = true;
  279. builder["Initial Catalog"] = "AdventureWorks;NewValue=Bad";
  280. Console.WriteLine(builder.ConnectionString);
  281. ```
  282. The result is the following connection string that handles the invalid value in a safe manner:
  283. ```
  284. Source=(local);Initial Catalog="AdventureWorks;NewValue=Bad";
  285. Integrated Security=True
  286. ```
  287. ## Examples
  288. The following console application builds connection strings for a SQL Server database. The code uses a <xref:Microsoft.Data.SqlClient.SqlConnectionStringBuilder> class to create the connection string, and then passes the <xref:System.Data.Common.DbConnectionStringBuilder.ConnectionString%2A> property of the <xref:Microsoft.Data.SqlClient.SqlConnectionStringBuilder> instance to the constructor of the connection class. The example also parses an existing connection string and demonstrates various ways of manipulating the connection string's contents.
  289. > [!NOTE]
  290. > This example includes a password to demonstrate how <xref:Microsoft.Data.SqlClient.SqlConnectionStringBuilder> works with connection strings. In your applications, we recommend that you use Windows Authentication. If you must use a password, do not include a hard-coded password in your application.
  291. [!code-csharp[SqlConnectionStringBuilder#1](~/../sqlclient/doc/samples/SqlConnectionStringBuilder.cs#1)]
  292. ]]></format>
  293. </remarks>
  294. </member>
  295. <member name="P:Microsoft.Data.SqlClient.SqlConnectionStringBuilder.PoolBlockingPeriod">
  296. <summary>The blocking period behavior for a connection pool.</summary><value>The available blocking period settings.</value><remarks>
  297. <format type="text/markdown"><![CDATA[
  298. ## Remarks
  299. When connection pooling is enabled and a timeout error or other login error occurs, an exception will be thrown and subsequent connection attempts will fail for the next five seconds, the "blocking period". If the application attempts to connect within the blocking period, the first exception will be thrown again. Subsequent failures after a blocking period ends will result in a new blocking period that is twice as long as the previous blocking period, up to a maximum of one minute.
  300. Attempting to connect to Azure SQL databases can fail with transient errors which are typically recovered within a few seconds. However, with the connection pool blocking period behavior, you may not be able to reach your database for extensive periods even though the database is available. This is especially problematic for apps that need to render fast. The **PoolBlockingPeriod** enables you to select the blocking period best suited for your app. See the <xref:Microsoft.Data.SqlClient.PoolBlockingPeriod> enumeration for available settings.
  301. ]]></format>
  302. </remarks>
  303. </member>
  304. <member name="M:Microsoft.Data.SqlClient.SqlConnectionStringBuilder.#ctor">
  305. <summary>Initializes a new instance of the <see cref="T:Microsoft.Data.SqlClient.SqlConnectionStringBuilder" /> class.</summary><remarks>To be added.</remarks>
  306. </member>
  307. <member name="M:Microsoft.Data.SqlClient.SqlConnectionStringBuilder.#ctor(System.String)">
  308. <param name="connectionString">The basis for the object's internal connection information. Parsed into name/value pairs. Invalid key names raise <see cref="T:System.Collections.Generic.KeyNotFoundException" />.</param><summary>Initializes a new instance of the <see cref="T:Microsoft.Data.SqlClient.SqlConnectionStringBuilder" /> class. The provided connection string provides the data for the instance's internal connection information.</summary><remarks>
  309. <format type="text/markdown"><![CDATA[
  310. ## Remarks
  311. The <xref:Microsoft.Data.SqlClient.SqlConnectionStringBuilder> class provides a fixed internal collection of key/value pairs. Even if you supply only a small subset of the possible connection string values in the constructor, the object always provides default values for each key/value pair. When the `ConnectionString` property of the object is retrieved, the string contains only key/value pairs in which the value is not the default value for the item.
  312. ## Examples
  313. The following example supplies a simple SQL Server connection string in the <xref:Microsoft.Data.SqlClient.SqlConnectionStringBuilder> object's constructor, and then iterates through all the key/value pairs within the object. Note that the collection provides default values for each item. Also note that the <xref:Microsoft.Data.SqlClient.SqlConnectionStringBuilder> class converts synonyms for the well-known keys so that they are consistent with the well-known names.
  314. > [!NOTE]
  315. > This example includes a password to demonstrate how <xref:Microsoft.Data.SqlClient.SqlConnectionStringBuilder> works with connection strings. In your applications, we recommend that you use Windows Authentication. If you must use a password, do not include a hard-coded password in your application.
  316. [!code-csharp[SqlConnectionStringBuilder3#1](~/../sqlclient/doc/samples/SqlConnectionStringBuilder3.cs#1)]
  317. ]]></format>
  318. </remarks><exception cref="T:System.Collections.Generic.KeyNotFoundException">Invalid key name within the connection string.</exception><exception cref="T:System.FormatException">Invalid value within the connection string (specifically, when a Boolean or numeric value was expected but not supplied).</exception><exception cref="T:System.ArgumentException">The supplied <paramref name="connectionString" /> is not valid.</exception>
  319. </member>
  320. <member name="P:Microsoft.Data.SqlClient.SqlConnectionStringBuilder.Item(System.String)">
  321. <param name="keyword">The key of the item to get or set.</param><summary>Gets or sets the value associated with the specified key. In C#, this property is the indexer.</summary><value>The value associated with the specified key.</value><remarks>
  322. <format type="text/markdown"><![CDATA[
  323. ## Remarks
  324. Because the <xref:Microsoft.Data.SqlClient.SqlConnectionStringBuilder> contains a fixed-size dictionary, trying to add a key that does not exist within the dictionary throws a <xref:System.Collections.Generic.KeyNotFoundException>.
  325. ## Examples
  326. The following code, in a console application, creates a new <xref:Microsoft.Data.SqlClient.SqlConnectionStringBuilder> and adds key/value pairs to its connection string, using the <xref:Microsoft.Data.SqlClient.SqlConnectionStringBuilder.Item%2A> property.
  327. [!code-csharp[SqlConnectionStringBuilder2#1](~/../sqlclient/doc/samples/SqlConnectionStringBuilder2.cs#1)]
  328. ]]></format>
  329. </remarks><exception cref="T:System.ArgumentNullException">
  330. <paramref name="keyword" /> is a null reference (<see langword="Nothing" /> in Visual Basic).</exception><exception cref="T:System.Collections.Generic.KeyNotFoundException">Tried to add a key that does not exist within the available keys.</exception><exception cref="T:System.FormatException">Invalid value within the connection string (specifically, a Boolean or numeric value was expected but not supplied).</exception>
  331. </member>
  332. <member name="P:Microsoft.Data.SqlClient.SqlConnectionStringBuilder.ApplicationIntent">
  333. <summary>Declares the application workload type when connecting to a database in an SQL Server Availability Group. You can set the value of this property with <see cref="T:Microsoft.Data.SqlClient.ApplicationIntent" />. For more information about SqlClient support for Always On Availability Groups, see [SqlClient Support for High Availability, Disaster Recovery](~/docs/framework/data/adonet/sql/sqlclient-support-for-high-availability-disaster-recovery.md).</summary><value>Returns the current value of the property (a value of type <see cref="T:Microsoft.Data.SqlClient.ApplicationIntent" />).</value><remarks>To be added.</remarks><related type="Article" href="~/docs/framework/data/adonet/ado-net-overview.md">ADO.NET Overview</related>
  334. </member>
  335. <member name="P:Microsoft.Data.SqlClient.SqlConnectionStringBuilder.ApplicationName">
  336. <summary>Gets or sets the name of the application associated with the connection string.</summary><value>The name of the application, or ".NET SqlClient Data Provider" if no name has been supplied.</value><remarks>
  337. <format type="text/markdown"><![CDATA[
  338. ## Remarks
  339. This property corresponds to the "Application Name" and "app" keys within the connection string.
  340. ## Examples
  341. The following example creates a new <xref:Microsoft.Data.SqlClient.SqlConnectionStringBuilder> and assigns a connection string in the object's constructor. The code displays the parsed and recreated version of the connection string, and then modifies the <xref:Microsoft.Data.SqlClient.SqlConnectionStringBuilder.ApplicationName%2A> property of the object. Finally, the code displays the new connection string, including the new key/value pair.
  342. [!code-csharp[SqlConnectionStringBuilder.ApplicationName#1](~/../sqlclient/doc/samples/SqlConnectionStringBuilder_ApplicationName.cs#1)]
  343. The sample displays the following text in the console window:
  344. ```
  345. Original: Data Source=(local);Initial Catalog=AdventureWorks;Integrated Security=True
  346. ApplicationName=".Net SqlClient Data Provider"
  347. Modified: Data Source=(local);Initial Catalog=AdventureWorks;Integrated Security=True;Application Name="My Application"
  348. ```
  349. ]]></format>
  350. </remarks><exception cref="T:System.ArgumentNullException">To set the value to null, use <see cref="F:System.DBNull.Value" />.</exception>
  351. </member>
  352. <member name="P:Microsoft.Data.SqlClient.SqlConnectionStringBuilder.AttachDBFilename">
  353. <summary>Gets or sets a string that contains the name of the primary data file. This includes the full path name of an attachable database.</summary><value>The value of the <see langword="AttachDBFilename" /> property, or <see langword="String.Empty" /> if no value has been supplied.</value><remarks>
  354. <format type="text/markdown"><![CDATA[
  355. ## Remarks
  356. This property corresponds to the "AttachDBFilename", "extended properties", and "initial file name" keys within the connection string.
  357. `AttachDBFilename` is only supported for primary data files with an .mdf extension.
  358. An error will be generated if a log file exists in the same directory as the data file and the 'database' keyword is used when attaching the primary data file. In this case, remove the log file. Once the database is attached, a new log file will be automatically generated based on the physical path.
  359. ## Examples
  360. The following example creates a new <xref:Microsoft.Data.SqlClient.SqlConnectionStringBuilder> instance, and sets the `AttachDBFilename` property in order to specify the name of an attached data file.
  361. [!code-csharp[DataWorks SqlConnectionStringBuilder_AttachDBFilename#1](~/../sqlclient/doc/samples/SqlConnectionStringBuilder_AttachDBFilename.cs#1)]
  362. ]]></format>
  363. </remarks><exception cref="T:System.ArgumentNullException">To set the value to null, use <see cref="F:System.DBNull.Value" />.</exception><related type="Article" href="https://msdn.microsoft.com/library/745c5f95-2f02-4674-b378-6d51a7ec2490">Working with Connection Strings</related><related type="Article" href="~/docs/framework/data/adonet/ado-net-overview.md">ADO.NET Overview</related>
  364. </member>
  365. <member name="P:Microsoft.Data.SqlClient.SqlConnectionStringBuilder.ConnectTimeout">
  366. <summary>Gets or sets the length of time (in seconds) to wait for a connection to the server before terminating the attempt and generating an error.</summary><value>The value of the <see cref="P:Microsoft.Data.SqlClient.SqlConnectionStringBuilder.ConnectTimeout" /> property, or 15 seconds if no value has been supplied.</value><remarks>
  367. <format type="text/markdown"><![CDATA[
  368. ## Remarks
  369. This property corresponds to the "Connect Timeout", "connection timeout", and "timeout" keys within the connection string.
  370. When opening a connection to a Azure SQL Database, set the connection timeout to 30 seconds.
  371. ## Examples
  372. The following example first displays the contents of a connection string that does not specify the "Connect Timeout" value, sets the <xref:Microsoft.Data.SqlClient.SqlConnectionStringBuilder.ConnectTimeout%2A> property, and then displays the new connection string.
  373. [!code-csharp[SqlConnectionStringBuilder_ConnectTimeout#1](~/../sqlclient/doc/samples/SqlConnectionStringBuilder_ConnectTimeout.cs#1)]
  374. ]]></format>
  375. </remarks>
  376. </member>
  377. <member name="P:Microsoft.Data.SqlClient.SqlConnectionStringBuilder.CurrentLanguage">
  378. <summary>Gets or sets the SQL Server Language record name.</summary><value>The value of the <see cref="P:Microsoft.Data.SqlClient.SqlConnectionStringBuilder.CurrentLanguage" /> property, or <see langword="String.Empty" /> if no value has been supplied.</value><remarks>
  379. <format type="text/markdown"><![CDATA[
  380. ## Remarks
  381. This property corresponds to the "Current Language" and "language" keys within the connection string.
  382. ]]></format>
  383. </remarks><exception cref="T:System.ArgumentNullException">To set the value to null, use <see cref="F:System.DBNull.Value" />.</exception>
  384. </member>
  385. <member name="P:Microsoft.Data.SqlClient.SqlConnectionStringBuilder.DataSource">
  386. <summary>Gets or sets the name or network address of the instance of SQL Server to connect to.</summary><value>The value of the <see cref="P:Microsoft.Data.SqlClient.SqlConnectionStringBuilder.DataSource" /> property, or <see langword="String.Empty" /> if none has been supplied.</value><remarks>
  387. <format type="text/markdown"><![CDATA[
  388. ## Remarks
  389. This property corresponds to the "Data Source", "server", "address", "addr", and "network address" keys within the connection string. Regardless of which of these values has been supplied within the supplied connection string, the connection string created by the `SqlConnectionStringBuilder` will use the well-known "Data Source" key.
  390. ## Examples
  391. The following example demonstrates that the <xref:Microsoft.Data.SqlClient.SqlConnectionStringBuilder> class converts synonyms for the "Data Source" connection string key into the well-known key:
  392. [!code-csharp[SqlConnectionStringBuilder_DataSource#1](~/../sqlclient/doc/samples/SqlConnectionStringBuilder_DataSource.cs#1)]
  393. ]]></format>
  394. </remarks><exception cref="T:System.ArgumentNullException">To set the value to null, use <see cref="F:System.DBNull.Value" />.</exception>
  395. </member>
  396. <member name="P:Microsoft.Data.SqlClient.SqlConnectionStringBuilder.Encrypt">
  397. <summary>Gets or sets a Boolean value that indicates whether SQL Server uses SSL encryption for all data sent between the client and server if the server has a certificate installed.</summary><value>The value of the <see cref="P:Microsoft.Data.SqlClient.SqlConnectionStringBuilder.Encrypt" /> property, or <see langword="false" /> if none has been supplied.</value><remarks>
  398. <format type="text/markdown"><![CDATA[
  399. ## Remarks
  400. This property corresponds to the "Encrypt" key within the connection string.
  401. ]]></format>
  402. </remarks><related type="Article" href="https://msdn.microsoft.com/library/745c5f95-2f02-4674-b378-6d51a7ec2490">Working with Connection Strings</related><related type="Article" href="~/docs/framework/data/adonet/ado-net-overview.md">ADO.NET Overview</related>
  403. </member>
  404. <member name="P:Microsoft.Data.SqlClient.SqlConnectionStringBuilder.ColumnEncryptionSetting">
  405. <summary>Gets or sets the column encryption settings for the connection string builder.</summary><value>The column encryption settings for the connection string builder.</value><remarks>To be added.</remarks>
  406. </member>
  407. <member name="P:Microsoft.Data.SqlClient.SqlConnectionStringBuilder.EnclaveAttestationUrl">
  408. <summary>Gets or sets the enclave attestation Url to be used with enclave based Always Encrypted.</summary><value>The enclave attestation Url.</value><remarks>To be added.</remarks>
  409. </member>
  410. <member name="P:Microsoft.Data.SqlClient.SqlConnectionStringBuilder.AttestationProtocol">
  411. <summary>Set/Get the value of Attestation Protocol.</summary><returns>Returns Attestation Protocol.</returns>
  412. </member>
  413. <member name="P:Microsoft.Data.SqlClient.SqlConnectionStringBuilder.TrustServerCertificate">
  414. <summary>Gets or sets a value that indicates whether the channel will be encrypted while bypassing walking the certificate chain to validate trust.</summary><value>A <see langword="Boolean" />. Recognized values are <see langword="true" />, <see langword="false" />, <see langword="yes" />, and <see langword="no" />.</value><remarks>
  415. <format type="text/markdown"><![CDATA[
  416. ## Remarks
  417. When `TrustServerCertificate` is set to `true`, the transport layer will use SSL to encrypt the channel and bypass walking the certificate chain to validate trust. If `TrustServerCertificate` is set to `true` and encryption is turned on, the encryption level specified on the server will be used even if `Encrypt` is set to `false`. The connection will fail otherwise.
  418. For more information, see [Encryption Hierarchy](/sql/relational-databases/security/encryption/encryption-hierarchy) and [Using Encryption Without Validation](/sql/relational-databases/native-client/features/using-encryption-without-validation).
  419. ]]></format>
  420. </remarks>
  421. </member>
  422. <member name="P:Microsoft.Data.SqlClient.SqlConnectionStringBuilder.Enlist">
  423. <summary>Gets or sets a Boolean value that indicates whether the SQL Server connection pooler automatically enlists the connection in the creation thread's current transaction context.</summary><value>The value of the <see cref="P:Microsoft.Data.SqlClient.SqlConnectionStringBuilder.Enlist" /> property, or <see langword="true" /> if none has been supplied.</value><remarks>
  424. <format type="text/markdown"><![CDATA[
  425. ## Remarks
  426. This property corresponds to the "Enlist" key within the connection string.
  427. ]]></format>
  428. </remarks>
  429. </member>
  430. <member name="P:Microsoft.Data.SqlClient.SqlConnectionStringBuilder.FailoverPartner">
  431. <summary>Gets or sets the name or address of the partner server to connect to if the primary server is down.</summary><value>The value of the <see cref="P:Microsoft.Data.SqlClient.SqlConnectionStringBuilder.FailoverPartner" /> property, or <see langword="String.Empty" /> if none has been supplied.</value><remarks>To be added.</remarks><exception cref="T:System.ArgumentNullException">To set the value to null, use <see cref="F:System.DBNull.Value" />.</exception>
  432. </member>
  433. <member name="P:Microsoft.Data.SqlClient.SqlConnectionStringBuilder.InitialCatalog">
  434. <summary>Gets or sets the name of the database associated with the connection.</summary><value>The value of the <see cref="P:Microsoft.Data.SqlClient.SqlConnectionStringBuilder.InitialCatalog" /> property, or <see langword="String.Empty" /> if none has been supplied.</value><remarks>
  435. <format type="text/markdown"><![CDATA[
  436. ## Remarks
  437. This property corresponds to the "Initial Catalog" and "database" keys within the connection string.
  438. ## Examples
  439. The following example creates a simple connection string and then uses the <xref:Microsoft.Data.SqlClient.SqlConnectionStringBuilder> class to add the name of the database to the connection string. The code displays the contents of the <xref:Microsoft.Data.SqlClient.SqlConnectionStringBuilder.InitialCatalog%2A> property, just to verify that the class was able to convert from the synonym ("Database") to the appropriate property value.
  440. [!code-csharp[SqlConnectionStringBuilder_InitialCatalog#1](~/../sqlclient/doc/samples/SqlConnectionStringBuilder_InitialCatalog.cs#1)]
  441. ]]></format>
  442. </remarks><exception cref="T:System.ArgumentNullException">To set the value to null, use <see cref="F:System.DBNull.Value" />.</exception>
  443. </member>
  444. <member name="P:Microsoft.Data.SqlClient.SqlConnectionStringBuilder.IntegratedSecurity">
  445. <summary>Gets or sets a Boolean value that indicates whether User ID and Password are specified in the connection (when <see langword="false" />) or whether the current Windows account credentials are used for authentication (when <see langword="true" />).</summary><value>The value of the <see cref="P:Microsoft.Data.SqlClient.SqlConnectionStringBuilder.IntegratedSecurity" /> property, or <see langword="false" /> if none has been supplied.</value><remarks>
  446. <format type="text/markdown"><![CDATA[
  447. ## Remarks
  448. This property corresponds to the "Integrated Security" and "trusted_connection" keys within the connection string.
  449. ## Examples
  450. The following example converts an existing connection string from using SQL Server Authentication to using integrated security. The example does its work by removing the user name and password from the connection string and then setting the <xref:Microsoft.Data.SqlClient.SqlConnectionStringBuilder.IntegratedSecurity%2A> property of the <xref:Microsoft.Data.SqlClient.SqlConnectionStringBuilder> object.
  451. > [!NOTE]
  452. > This example includes a password to demonstrate how <xref:Microsoft.Data.SqlClient.SqlConnectionStringBuilder> works with connection strings. In your applications, we recommend that you use Windows Authentication. If you must use a password, do not include a hard-coded password in your application.
  453. [!code-csharp[SqlConnectionStringBuilder_IntegratedSecurity#1](~/../sqlclient/doc/samples/SqlConnectionStringBuilder_IntegratedSecurity.cs#1)]
  454. ]]></format>
  455. </remarks>
  456. </member>
  457. <member name="P:Microsoft.Data.SqlClient.SqlConnectionStringBuilder.Authentication">
  458. <summary>Gets the authentication of the connection string.</summary><value>The authentication of the connection string.</value><remarks>To be added.</remarks>
  459. </member>
  460. <member name="P:Microsoft.Data.SqlClient.SqlConnectionStringBuilder.LoadBalanceTimeout">
  461. <summary>Gets or sets the minimum time, in seconds, for the connection to live in the connection pool before being destroyed.</summary><value>The value of the <see cref="P:Microsoft.Data.SqlClient.SqlConnectionStringBuilder.LoadBalanceTimeout" /> property, or 0 if none has been supplied.</value><remarks>
  462. <format type="text/markdown"><![CDATA[
  463. ## Remarks
  464. This property corresponds to the "Load Balance Timeout" and "connection lifetime" keys within the connection string.
  465. ]]></format>
  466. </remarks>
  467. </member>
  468. <member name="P:Microsoft.Data.SqlClient.SqlConnectionStringBuilder.MaxPoolSize">
  469. <summary>Gets or sets the maximum number of connections allowed in the connection pool for this specific connection string.</summary><value>The value of the <see cref="P:Microsoft.Data.SqlClient.SqlConnectionStringBuilder.MaxPoolSize" /> property, or 100 if none has been supplied.</value><remarks>
  470. <format type="text/markdown"><![CDATA[
  471. ## Remarks
  472. This property corresponds to the "Max Pool Size" key within the connection string.
  473. ]]></format>
  474. </remarks>
  475. </member>
  476. <member name="P:Microsoft.Data.SqlClient.SqlConnectionStringBuilder.ConnectRetryCount">
  477. <summary>The number of reconnections attempted after identifying that there was an idle connection failure. This must be an integer between 0 and 255. Default is 1. Set to 0 to disable reconnecting on idle connection failures. An <see cref="T:System.ArgumentException" /> will be thrown if set to a value outside of the allowed range.</summary><value>The number of reconnections attempted after identifying that there was an idle connection failure.</value>
  478. </member>
  479. <member name="P:Microsoft.Data.SqlClient.SqlConnectionStringBuilder.ConnectRetryInterval">
  480. <summary>Amount of time (in seconds) between each reconnection attempt after identifying that there was an idle connection failure. This must be an integer between 1 and 60. The default is 10 seconds. An <see cref="T:System.ArgumentException" /> will be thrown if set to a value outside of the allowed range.</summary><value>Amount of time (in seconds) between each reconnection attempt after identifying that there was an idle connection failure.</value>
  481. </member>
  482. <member name="P:Microsoft.Data.SqlClient.SqlConnectionStringBuilder.MinPoolSize">
  483. <summary>Gets or sets the minimum number of connections allowed in the connection pool for this specific connection string.</summary><value>The value of the <see cref="P:Microsoft.Data.SqlClient.SqlConnectionStringBuilder.MinPoolSize" /> property, or 0 if none has been supplied.</value><remarks>
  484. <format type="text/markdown"><![CDATA[
  485. ## Remarks
  486. This property corresponds to the "Min Pool Size" key within the connection string.
  487. ]]></format>
  488. </remarks>
  489. </member>
  490. <member name="P:Microsoft.Data.SqlClient.SqlConnectionStringBuilder.MultipleActiveResultSets">
  491. <summary>When true, an application can maintain multiple active result sets (MARS). When false, an application must process or cancel all result sets from one batch before it can execute any other batch on that connection. For more information, see [Multiple Active Result Sets (MARS)](https://msdn.microsoft.com//library/cfa084cz.aspx).</summary><value>The value of the <see cref="P:Microsoft.Data.SqlClient.SqlConnectionStringBuilder.MultipleActiveResultSets" /> property, or <see langword="false" /> if none has been supplied.</value><remarks>
  492. <format type="text/markdown"><![CDATA[
  493. ## Remarks
  494. This property corresponds to the "MultipleActiveResultSets" key within the connection string.
  495. ## Examples
  496. The following example explicitly disables the Multiple Active Result Sets feature.
  497. [!code-csharp[SqlConnectionStringBuilder_MultipleActiveResultSets.MARS#1](~/../sqlclient/doc/samples/SqlConnectionStringBuilder_MultipleActiveResultSets.cs#1)]
  498. ]]></format>
  499. </remarks>
  500. </member>
  501. <member name="P:Microsoft.Data.SqlClient.SqlConnectionStringBuilder.MultiSubnetFailover">
  502. <summary>If your application is connecting to an AlwaysOn availability group (AG) on different subnets, setting MultiSubnetFailover=true provides faster detection of and connection to the (currently) active server. For more information about SqlClient support for Always On Availability Groups, see [SqlClient Support for High Availability, Disaster Recovery](~/docs/framework/data/adonet/sql/sqlclient-support-for-high-availability-disaster-recovery.md).</summary><value>Returns <see cref="T:System.Boolean" /> indicating the current value of the property.</value><remarks>To be added.</remarks>
  503. </member>
  504. <member name="P:Microsoft.Data.SqlClient.SqlConnectionStringBuilder.PacketSize">
  505. <summary>Gets or sets the size in bytes of the network packets used to communicate with an instance of SQL Server.</summary><value>The value of the <see cref="P:Microsoft.Data.SqlClient.SqlConnectionStringBuilder.PacketSize" /> property, or 8000 if none has been supplied.</value><remarks>
  506. <format type="text/markdown"><![CDATA[
  507. ## Remarks
  508. This property corresponds to the "Packet Size" key within the connection string.
  509. ]]></format>
  510. </remarks>
  511. </member>
  512. <member name="P:Microsoft.Data.SqlClient.SqlConnectionStringBuilder.Password">
  513. <summary>Gets or sets the password for the SQL Server account.</summary><value>The value of the <see cref="P:Microsoft.Data.SqlClient.SqlConnectionStringBuilder.Password" /> property, or <see langword="String.Empty" /> if none has been supplied.</value><remarks>
  514. <format type="text/markdown"><![CDATA[
  515. ## Remarks
  516. This property corresponds to the "Password" and "pwd" keys within the connection string.
  517. If <xref:Microsoft.Data.SqlClient.SqlConnectionStringBuilder.Password%2A> has not been set and you retrieve the value, the return value is <xref:System.String.Empty>. To reset the password for the connection string, pass null to the Item property.
  518. ## Examples
  519. The following example shows how to set <xref:Microsoft.Data.SqlClient.SqlConnectionStringBuilder.Password%2A>.
  520. [!code-csharp[SqlConnectionStringBuilder_Password#1](~/../sqlclient/doc/samples/SqlConnectionStringBuilder_Password.cs#1)]
  521. ]]></format>
  522. </remarks><exception cref="T:System.ArgumentNullException">The password was incorrectly set to null. See code sample below.</exception>
  523. </member>
  524. <member name="P:Microsoft.Data.SqlClient.SqlConnectionStringBuilder.PersistSecurityInfo">
  525. <summary>Gets or sets a Boolean value that indicates if security-sensitive information, such as the password, is not returned as part of the connection if the connection is open or has ever been in an open state.</summary><value>The value of the <see cref="P:Microsoft.Data.SqlClient.SqlConnectionStringBuilder.PersistSecurityInfo" /> property, or <see langword="false" /> if none has been supplied.</value><remarks>
  526. <format type="text/markdown"><![CDATA[
  527. ## Remarks
  528. This property corresponds to the "Persist Security Info" and "persistsecurityinfo" keys within the connection string.
  529. ]]></format>
  530. </remarks>
  531. </member>
  532. <member name="P:Microsoft.Data.SqlClient.SqlConnectionStringBuilder.Pooling">
  533. <summary>Gets or sets a Boolean value that indicates whether the connection will be pooled or explicitly opened every time that the connection is requested.</summary><value>The value of the <see cref="P:Microsoft.Data.SqlClient.SqlConnectionStringBuilder.Pooling" /> property, or <see langword="true" /> if none has been supplied.</value><remarks>
  534. <format type="text/markdown"><![CDATA[
  535. ## Remarks
  536. This property corresponds to the "Pooling" key within the connection string.
  537. ]]></format>
  538. </remarks>
  539. </member>
  540. <member name="P:Microsoft.Data.SqlClient.SqlConnectionStringBuilder.Replication">
  541. <summary>Gets or sets a Boolean value that indicates whether replication is supported using the connection.</summary><value>The value of the <see cref="P:Microsoft.Data.SqlClient.SqlConnectionStringBuilder.Replication" /> property, or false if none has been supplied.</value><remarks>
  542. <format type="text/markdown"><![CDATA[
  543. ## Remarks
  544. This property corresponds to the "Replication" key within the connection string.
  545. ]]></format>
  546. </remarks>
  547. </member>
  548. <member name="P:Microsoft.Data.SqlClient.SqlConnectionStringBuilder.TransactionBinding">
  549. <summary>Gets or sets a string value that indicates how the connection maintains its association with an enlisted <see langword="System.Transactions" /> transaction.</summary><value>The value of the <see cref="P:Microsoft.Data.SqlClient.SqlConnectionStringBuilder.TransactionBinding" /> property, or <see langword="String.Empty" /> if none has been supplied.</value><remarks>
  550. <format type="text/markdown"><![CDATA[
  551. ## Remarks
  552. The Transaction Binding keywords in a <xref:Microsoft.Data.SqlClient.SqlConnection.ConnectionString%2A> control how a <xref:Microsoft.Data.SqlClient.SqlConnection> binds to an enlisted <xref:System.Transactions.Transaction>.
  553. The following table shows the possible values for the <xref:Microsoft.Data.SqlClient.SqlConnectionStringBuilder.TransactionBinding%2A> property:
  554. |Value|Description|
  555. |-----------|-----------------|
  556. |Implicit Unbind|The default. Causes the connection to detach from the transaction when it ends. After detaching, additional requests on the connection are performed in autocommit mode. The <xref:System.Transactions.Transaction.Current%2A> property is not checked when executing requests while the transaction is active. After the transaction has ended, additional requests are performed in autocommit mode.|
  557. |Explicit Unbind|Causes the connection to remain attached to the transaction until the connection is closed or until <xref:Microsoft.Data.SqlClient.SqlConnection.EnlistTransaction%2A> is called with a `null` (`Nothing` in Visual Basic) value. An <xref:System.InvalidOperationException> is thrown if <xref:System.Transactions.Transaction.Current%2A> is not the enlisted transaction or if the enlisted transaction is not active. This behavior enforces the strict scoping rules required for <xref:System.Transactions.TransactionScope> support.|
  558. ]]></format>
  559. </remarks>
  560. </member>
  561. <member name="P:Microsoft.Data.SqlClient.SqlConnectionStringBuilder.TypeSystemVersion">
  562. <summary>Gets or sets a string value that indicates the type system the application expects.</summary><value>The following table shows the possible values for the <see cref="P:Microsoft.Data.SqlClient.SqlConnectionStringBuilder.TypeSystemVersion" /> property:
  563. <list type="table"><listheader><term> Value
  564. </term><description> Description
  565. </description></listheader><item><term> SQL Server 2005
  566. </term><description> Uses the SQL Server 2005 type system. No conversions are made for the current version of ADO.NET.
  567. </description></item><item><term> SQL Server 2008
  568. </term><description> Uses the SQL Server 2008 type system.
  569. </description></item><item><term> Latest
  570. </term><description> Use the latest version than this client-server pair can handle. This will automatically move forward as the client and server components are upgraded.
  571. </description></item></list></value><remarks>
  572. <format type="text/markdown"><![CDATA[
  573. ## Remarks
  574. The `TypeSystemVersion` property can be used to specify a down-level version of SQL Server for applications written against that version. This avoids possible problems with incompatible types in a newer version of SQL Server that may cause the application to break.
  575. ]]></format>
  576. </remarks>
  577. </member>
  578. <member name="P:Microsoft.Data.SqlClient.SqlConnectionStringBuilder.UserID">
  579. <summary>Gets or sets the user ID to be used when connecting to SQL Server.</summary><value>The value of the <see cref="P:Microsoft.Data.SqlClient.SqlConnectionStringBuilder.UserID" /> property, or <see langword="String.Empty" /> if none has been supplied.</value><remarks>
  580. <format type="text/markdown"><![CDATA[
  581. ## Remarks
  582. This property corresponds to the "User ID", "user", and "uid" keys within the connection string.
  583. ]]></format>
  584. </remarks><exception cref="T:System.ArgumentNullException">To set the value to null, use <see cref="F:System.DBNull.Value" />.</exception>
  585. </member>
  586. <member name="P:Microsoft.Data.SqlClient.SqlConnectionStringBuilder.UserInstance">
  587. <summary>Gets or sets a value that indicates whether to redirect the connection from the default SQL Server Express instance to a runtime-initiated instance running under the account of the caller.</summary><value>The value of the <see cref="P:Microsoft.Data.SqlClient.SqlConnectionStringBuilder.UserInstance" /> property, or <see langword="False" /> if none has been supplied.</value><remarks>
  588. <format type="text/markdown"><![CDATA[
  589. ## Remarks
  590. This property corresponds to the "User Instance" key within the connection string.
  591. > [!NOTE]
  592. > This feature is available only with the SQL Server Express Edition. For more information on user instances, see [SQL Server Express User Instances](~/docs/framework/data/adonet/sql/sql-server-express-user-instances.md).
  593. ]]></format>
  594. </remarks><exception cref="T:System.ArgumentNullException">To set the value to null, use <see cref="F:System.DBNull.Value" />.</exception>
  595. </member>
  596. <member name="P:Microsoft.Data.SqlClient.SqlConnectionStringBuilder.WorkstationID">
  597. <summary>Gets or sets the name of the workstation connecting to SQL Server.</summary><value>The value of the <see cref="P:Microsoft.Data.SqlClient.SqlConnectionStringBuilder.WorkstationID" /> property, or <see langword="String.Empty" /> if none has been supplied.</value><remarks>
  598. <format type="text/markdown"><![CDATA[
  599. ## Remarks
  600. This property corresponds to the "Workstation ID" and "wsid" keys within the connection string.
  601. ]]></format>
  602. </remarks><exception cref="T:System.ArgumentNullException">To set the value to null, use <see cref="F:System.DBNull.Value" />.</exception>
  603. </member>
  604. <member name="P:Microsoft.Data.SqlClient.SqlConnectionStringBuilder.Keys">
  605. <summary>Gets an <see cref="T:System.Collections.ICollection" /> that contains the keys in the <see cref="T:Microsoft.Data.SqlClient.SqlConnectionStringBuilder" />.</summary><value>An <see cref="T:System.Collections.ICollection" /> that contains the keys in the <see cref="T:Microsoft.Data.SqlClient.SqlConnectionStringBuilder" />.</value><remarks>
  606. <format type="text/markdown"><![CDATA[
  607. ## Remarks
  608. The order of the values in the <xref:System.Collections.ICollection> is unspecified, but it is the same order as the associated values in the <xref:System.Collections.ICollection> returned by the <xref:Microsoft.Data.SqlClient.SqlConnectionStringBuilder.Values%2A> property.
  609. ## Examples
  610. The following console application example creates a new <xref:Microsoft.Data.SqlClient.SqlConnectionStringBuilder>. The code loops through the <xref:System.Collections.ICollection> returned by the <xref:Microsoft.Data.SqlClient.SqlConnectionStringBuilder.Keys%2A> property displaying the key/value pairs.
  611. [!code-csharp[SqlConnectionStringBuilder_Keys#1](~/../sqlclient/doc/samples/SqlConnectionStringBuilder_Keys.cs#1)]
  612. ]]></format>
  613. </remarks><altmember cref="P:Microsoft.Data.SqlClient.SqlConnectionStringBuilder.Values" /><altmember cref="P:Microsoft.Data.SqlClient.SqlConnectionStringBuilder.Item(System.String)" />
  614. </member>
  615. <member name="P:Microsoft.Data.SqlClient.SqlConnectionStringBuilder.Values">
  616. <summary>Gets an <see cref="T:System.Collections.ICollection" /> that contains the values in the <see cref="T:Microsoft.Data.SqlClient.SqlConnectionStringBuilder" />.</summary><value>An <see cref="T:System.Collections.ICollection" /> that contains the values in the <see cref="T:Microsoft.Data.SqlClient.SqlConnectionStringBuilder" />.</value><remarks>
  617. <format type="text/markdown"><![CDATA[
  618. ## Remarks
  619. The order of the values in the <xref:System.Collections.ICollection> is unspecified, but it is the same order as the associated keys in the <xref:System.Collections.ICollection> returned by the <xref:Microsoft.Data.SqlClient.SqlConnectionStringBuilder.Keys%2A> property. Because each instance of the <xref:Microsoft.Data.SqlClient.SqlConnectionStringBuilder> always contains the same fixed set of keys, the <xref:Microsoft.Data.SqlClient.SqlConnectionStringBuilder.Values%2A> property always returns the values corresponding to the fixed set of keys, in the same order as the keys.
  620. ## Examples
  621. The following example first creates a new <xref:Microsoft.Data.SqlClient.SqlConnectionStringBuilder>, and then iterates through all the values within the object.
  622. [!code-csharp[SqlConnectionStringBuilder_Values#1](~/../sqlclient/doc/samples/SqlConnectionStringBuilder_Values.cs#1)]
  623. ]]></format>
  624. </remarks><altmember cref="P:Microsoft.Data.SqlClient.SqlConnectionStringBuilder.Keys" />
  625. </member>
  626. <member name="M:Microsoft.Data.SqlClient.SqlConnectionStringBuilder.Clear">
  627. <summary>Clears the contents of the <see cref="T:Microsoft.Data.SqlClient.SqlConnectionStringBuilder" /> instance.</summary><remarks>
  628. <format type="text/markdown"><![CDATA[
  629. ## Remarks
  630. The <xref:System.Data.Common.DbConnectionStringBuilder.Clear%2A> method removes all key/value pairs from the <xref:Microsoft.Data.SqlClient.SqlConnectionStringBuilder>, and resets all corresponding properties. This includes setting the <xref:System.Data.Common.DbConnectionStringBuilder.Count%2A> property to 0, and setting the <xref:System.Data.Common.DbConnectionStringBuilder.ConnectionString%2A> property to an empty string.
  631. ## Examples
  632. The following example demonstrates calling the <xref:System.Data.Common.DbConnectionStringBuilder.Clear%2A> method. This example populates the <xref:Microsoft.Data.SqlClient.SqlConnectionStringBuilder> with some key/value pairs, and then calls the <xref:System.Data.Common.DbConnectionStringBuilder.Clear%2A> method and shows the results.
  633. [!code-csharp[DataWorks SqlConnectionStringBuilder_Clear#1](~/../sqlclient/doc/samples/SqlConnectionStringBuilder_Clear.cs#1)]
  634. ]]></format>
  635. </remarks>
  636. </member>
  637. <member name="M:Microsoft.Data.SqlClient.SqlConnectionStringBuilder.ContainsKey(System.String)">
  638. <param name="keyword">The key to locate in the <see cref="T:Microsoft.Data.SqlClient.SqlConnectionStringBuilder" />.</param><summary>Determines whether the <see cref="T:Microsoft.Data.SqlClient.SqlConnectionStringBuilder" /> contains a specific key.</summary><returns>true if the <see cref="T:Microsoft.Data.SqlClient.SqlConnectionStringBuilder" /> contains an element that has the specified key; otherwise, false.</returns><remarks>
  639. <format type="text/markdown"><![CDATA[
  640. ## Remarks
  641. Because the <xref:Microsoft.Data.SqlClient.SqlConnectionStringBuilder> contains a fixed-size collection of key/value pairs, the <xref:System.Data.Common.DbConnectionStringBuilder.ContainsKey%2A> method determines only if a particular key name is valid.
  642. ## Examples
  643. The following example creates a <xref:Microsoft.Data.SqlClient.SqlConnectionStringBuilder> instance, sets some of its properties, and then tries to determine whether various keys exist within the object by calling the **ContainsKey** method.
  644. [!code-csharp[SqlConnectionStringBuilder_ContainsKey#1](~/../sqlclient/doc/samples/SqlConnectionStringBuilder_ContainsKey.cs#1)]
  645. The example displays the following output in the console window:
  646. ```
  647. Connection string = Data Source=(local);Initial Catalog=AdventureWorks;Integrated Security=True
  648. True
  649. True
  650. True
  651. False
  652. ```
  653. ]]></format>
  654. </remarks><exception cref="T:System.ArgumentNullException">
  655. <paramref name="keyword" /> is null (<see langword="Nothing" /> in Visual Basic)</exception>
  656. </member>
  657. <member name="M:Microsoft.Data.SqlClient.SqlConnectionStringBuilder.ConvertToColumnEncryptionSetting(System.String,System.Object)">
  658. <summary>
  659. Convert to SqlConnectionColumnEncryptionSetting.
  660. </summary>
  661. <param name="keyword"></param>
  662. <param name="value"></param>
  663. </member>
  664. <member name="M:Microsoft.Data.SqlClient.SqlConnectionStringBuilder.ConvertToAttestationProtocol(System.String,System.Object)">
  665. <summary>
  666. Convert to SqlConnectionAttestationProtocol
  667. </summary>
  668. <param name="keyword"></param>
  669. <param name="value"></param>
  670. </member>
  671. <member name="M:Microsoft.Data.SqlClient.SqlConnectionStringBuilder.Remove(System.String)">
  672. <param name="keyword">The key of the key/value pair to be removed from the connection string in this <see cref="T:Microsoft.Data.SqlClient.SqlConnectionStringBuilder" />.</param><summary>Removes the entry with the specified key from the <see cref="T:Microsoft.Data.SqlClient.SqlConnectionStringBuilder" /> instance.</summary><returns>
  673. <see langword="true" /> if the key existed within the connection string and was removed; <see langword="false" /> if the key did not exist.</returns><remarks>
  674. <format type="text/markdown"><![CDATA[
  675. ## Remarks
  676. Because the **Remove** method returns a value that indicates its success, it is not required to look for a key before trying to remove the key/value pair from the <xref:Microsoft.Data.SqlClient.SqlConnectionStringBuilder> instance. Because the <xref:Microsoft.Data.SqlClient.SqlConnectionStringBuilder> maintains a fixed-size collection of key/value pairs, calling the <xref:Microsoft.Data.SqlClient.SqlConnectionStringBuilder.Remove%2A> method simply resets the value of the key/value pair back to its default value.
  677. Because the collection of keys supported by the <xref:Microsoft.Data.SqlClient.SqlConnectionStringBuilder> is fixed, every item within the collection has a known default value. The following table lists the keys, and the value for each when the <xref:Microsoft.Data.SqlClient.SqlConnectionStringBuilder> is first initialized, or after the <xref:Microsoft.Data.SqlClient.SqlConnectionStringBuilder.Remove%2A> method has been called.
  678. |Key|Default value|
  679. |---------|-------------------|
  680. |Application Name|".Net SqlClient Data Provider"|
  681. |Asynchronous Processing|False|
  682. |AttachDBFilename|Empty string|
  683. |Connection Timeout|15|
  684. |Context Connection|False|
  685. |Current Language|Empty string|
  686. |Data Source|Empty string|
  687. |Encrypt|False|
  688. |Enlist|True|
  689. |Failover Partner|Empty string|
  690. |Initial Catalog|Empty string|
  691. |Integrated Security|False|
  692. |Load Balance Timeout|0|
  693. |Max Pool Size|100|
  694. |Min Pool Size|0|
  695. |MultipleActiveResultSets|False|
  696. |Network Library|Empty string|
  697. |Packet Size|8000|
  698. |Password|Empty string|
  699. |Persist Security Info|False|
  700. |Pooling|True|
  701. |Replication|False|
  702. |Transaction Binding|Implicit Unbind|
  703. |User ID|Empty string|
  704. |User Instance|False|
  705. |Workstation ID|Empty string|
  706. ## Examples
  707. The following example converts an existing connection string from using Windows Authentication to using integrated security. The example works by removing the user name and password from the connection string, and then setting the <xref:Microsoft.Data.SqlClient.SqlConnectionStringBuilder.IntegratedSecurity%2A> property of the <xref:Microsoft.Data.SqlClient.SqlConnectionStringBuilder> object.
  708. > [!NOTE]
  709. > This example includes a password to demonstrate how <xref:Microsoft.Data.SqlClient.SqlConnectionStringBuilder> works with connection strings. In your applications, we recommend that you use Windows Authentication. If you must use a password, do not include a hard-coded password in your application.
  710. [!code-csharp[SqlConnectionStringBuilder_Remove#1](~/../sqlclient/doc/samples/SqlConnectionStringBuilder_Remove.cs#1)]
  711. The example displays the following text in the console window:
  712. ```
  713. Original: Data Source=(local);Initial Catalog=AdventureWorks;User ID=ab;Password= a1Pass@@11
  714. Modified: Data Source=(local);Initial Catalog=AdventureWorks;Integrated Security=True
  715. Database = AdventureWorks
  716. ```
  717. ]]></format>
  718. </remarks><exception cref="T:System.ArgumentNullException">
  719. <paramref name="keyword" /> is null (<see langword="Nothing" /> in Visual Basic)</exception>
  720. </member>
  721. <member name="M:Microsoft.Data.SqlClient.SqlConnectionStringBuilder.ShouldSerialize(System.String)">
  722. <param name="keyword">The key to locate in the <see cref="T:Microsoft.Data.SqlClient.SqlConnectionStringBuilder" />.</param><summary>Indicates whether the specified key exists in this <see cref="T:Microsoft.Data.SqlClient.SqlConnectionStringBuilder" /> instance.</summary><returns>
  723. <see langword="true" /> if the <see cref="T:Microsoft.Data.SqlClient.SqlConnectionStringBuilder" /> contains an entry with the specified key; otherwise, <see langword="false" />.</returns><remarks>
  724. <format type="text/markdown"><![CDATA[
  725. ## Remarks
  726. This method behaves identically to the <xref:System.Data.Common.DbConnectionStringBuilder.ContainsKey%2A> method.
  727. ]]></format>
  728. </remarks>
  729. </member>
  730. <member name="M:Microsoft.Data.SqlClient.SqlConnectionStringBuilder.TryGetValue(System.String,System.Object@)">
  731. <param name="keyword">The key of the item to retrieve.</param><param name="value">The value corresponding to <paramref name="keyword" />.</param><summary>Retrieves a value corresponding to the supplied key from this <see cref="T:Microsoft.Data.SqlClient.SqlConnectionStringBuilder" />.</summary><returns>
  732. <see langword="true" /> if <paramref name="keyword" /> was found within the connection string; otherwise, <see langword="false" />.</returns><remarks>
  733. <format type="text/markdown"><![CDATA[
  734. ## Remarks
  735. The <xref:Microsoft.Data.SqlClient.SqlConnectionStringBuilder.TryGetValue%2A> method lets developers safely retrieve a value from a <xref:Microsoft.Data.SqlClient.SqlConnectionStringBuilder> without needing to verify that the supplied key name is a valid key name. Because **TryGetValue** does not raise an exception when you call it, passing in a nonexistent key, you do not have to look for a key before retrieving its value. Calling **TryGetValue** with a nonexistent key will place the value null (`Nothing` in Visual Basic) in the `value` parameter.
  736. ## Examples
  737. The following example demonstrates the behavior of the **TryGetValue** method.
  738. [!code-csharp[SqlConnectionStringBuilder_TryGetValue#1](~/../sqlclient/doc/samples/SqlConnectionStringBuilder_TryGetValue.cs#1)]
  739. The sample displays the following results:
  740. ```
  741. Data Source=(local)
  742. Trusted_Connection=True
  743. Unable to retrieve value for 'InvalidKey'
  744. Unable to retrieve value for null key.
  745. ```
  746. ]]></format>
  747. </remarks><exception cref="T:System.ArgumentNullException">
  748. <paramref name="keyword" /> contains a null value (<see langword="Nothing" /> in Visual Basic).</exception>
  749. </member>
  750. <member name="T:Microsoft.Data.SqlClient.PoolBlockingPeriod">
  751. <summary>Specifies a value for the <see cref="P:Microsoft.Data.SqlClient.SqlConnectionStringBuilder.PoolBlockingPeriod" /> property. </summary><remarks>To be added.</remarks>
  752. </member>
  753. <member name="F:Microsoft.Data.SqlClient.PoolBlockingPeriod.Auto">
  754. <summary>Blocking period OFF for Azure SQL servers, but ON for all other SQL servers.</summary><value>0</value>
  755. </member>
  756. <member name="F:Microsoft.Data.SqlClient.PoolBlockingPeriod.AlwaysBlock">
  757. <summary>Blocking period ON for all SQL servers including Azure SQL servers.</summary><value>1</value>
  758. </member>
  759. <member name="F:Microsoft.Data.SqlClient.PoolBlockingPeriod.NeverBlock">
  760. <summary>Blocking period OFF for Azure SQL servers, but ON for all other SQL servers.</summary><value>2</value>
  761. </member>
  762. <member name="T:Microsoft.Data.SqlClient.SqlColumnEncryptionEnclaveProvider">
  763. <summary>
  764. The base class that defines the interface for enclave providers for Always Encrypted. An enclave is a protected region of memory inside SQL Server, used for computations on encrypted columns. An enclave provider encapsulates the client-side implementation details of the enclave attestation protocol as well as the logic for creating and caching enclave sessions.
  765. </summary>
  766. <summary>The base class that defines the interface for enclave providers for Always Encrypted.</summary><remarks>
  767. <format type="text/markdown"><![CDATA[
  768. ## Remarks
  769. An enclave is a protected region of memory inside SQL Server, used for computations on encrypted columns. An enclave provider encapsulates the client-side implementation details of
  770. the enclave attestation protocol as well as the logic for creating and caching enclave sessions.
  771. ]]></format>
  772. </remarks>
  773. </member>
  774. <member name="M:Microsoft.Data.SqlClient.SqlColumnEncryptionEnclaveProvider.CreateEnclaveSession(System.Byte[],System.Security.Cryptography.ECDiffieHellmanCng,System.String,System.String,Microsoft.Data.SqlClient.SqlEnclaveSession@,System.Int64@)">
  775. Performs enclave attestation, generates a symmetric key for the session, creates a an enclave session and stores the session information in the cache.
  776. <param name="enclaveAttestationInfo">The information the provider uses to attest the enclave and generate a symmetric key for the session. The format of this information is specific to the enclave attestation protocol.</param>
  777. <param name="clientDiffieHellmanKey">A Diffie-Hellman algorithm object encapsulating a client-side key pair.</param>
  778. <param name="attestationUrl">The endpoint of an attestation service for attesting the enclave.</param>
  779. <param name="servername">The name of the SQL Server instance containing the enclave.</param>
  780. <param name="sqlEnclaveSession">The requested enclave session or null if the provider does not implement session caching.</param>
  781. <param name="counter">A counter that the enclave provider is expected to increment each time SqlClient retrieves the session from the cache. The purpose of this field is to prevent replay attacks.</param>
  782. </member>
  783. <member name="M:Microsoft.Data.SqlClient.SqlColumnEncryptionEnclaveProvider.GetEnclaveSession(System.String,System.String,Microsoft.Data.SqlClient.SqlEnclaveSession@,System.Int64@)">
  784. <param name="serverName">The name of the SQL Server instance containing the enclave.</param><param name="attestationUrl">The endpoint of an attestation service, SqlClient contacts to attest the enclave.</param><param name="sqlEnclaveSession">When this method returns, the requested enclave session or <see langword="null" /> if the provider doesn't implement session caching. This parameter is treated as uninitialized.</param><param name="counter">A counter that the enclave provider is expected to increment each time SqlClient retrieves the session from the cache. The purpose of this field is to prevent replay attacks.</param><summary>When overridden in a derived class, looks up an existing enclave session information in the enclave session cache. If the enclave provider doesn't implement enclave session caching, this method is expected to return <see langword="null" /> in the <paramref name="sqlEnclaveSession" /> parameter.
  785. </summary><remarks>To be added.</remarks>
  786. </member>
  787. <member name="M:Microsoft.Data.SqlClient.SqlColumnEncryptionEnclaveProvider.GetAttestationParameters">
  788. <summary>Gets the information that SqlClient subsequently uses to initiate the process of attesting the enclave and to establish a secure session with the enclave.</summary><returns>The information SqlClient subsequently uses to initiate the process of attesting the enclave and to establish a secure session with the enclave.</returns><remarks>To be added.</remarks>
  789. </member>
  790. <member name="M:Microsoft.Data.SqlClient.SqlColumnEncryptionEnclaveProvider.InvalidateEnclaveSession(System.String,System.String,Microsoft.Data.SqlClient.SqlEnclaveSession)">
  791. <param name="serverName">The name of the SQL Server instance containing the enclave.</param><param name="enclaveAttestationUrl">The endpoint of an attestation service, SqlClient contacts to attest the enclave.</param><param name="enclaveSession">The session to be invalidated.</param><summary>When overridden in a derived class, looks up and evicts an enclave session from the enclave session cache, if the provider implements session caching.</summary><remarks>To be added.</remarks>
  792. </member>
  793. <member name="T:Microsoft.Data.SqlClient.SqlEnclaveAttestationParameters">
  794. <summary>Encapsulates the information SqlClient sends to SQL Server to initiate the process of attesting and creating a secure session with the enclave, SQL Server uses for computations on columns protected using Always Encrypted.</summary><remarks>To be added.</remarks>
  795. <summary>Encapsulates the information SqlClient sends to SQL Server to initiate the process of attesting and creating a secure session with the enclave, SQL Server uses for computations on columns protected using Always Encrypted.</summary><remarks>To be added.</remarks>
  796. </member>
  797. <member name="P:Microsoft.Data.SqlClient.SqlEnclaveAttestationParameters.ClientDiffieHellmanKey">
  798. <summary>Gets a Diffie-Hellman algorithm that encapsulates a key pair that SqlClient uses to establish a secure session with the enclave.</summary><value>The Diffie-Hellman algorithm.</value><remarks>To be added.</remarks>
  799. </member>
  800. <member name="M:Microsoft.Data.SqlClient.SqlEnclaveAttestationParameters.#ctor(System.Int32,System.Byte[],System.Security.Cryptography.ECDiffieHellmanCng)">
  801. <param name="protocol">The enclave attestation protocol.</param><param name="input">The input of the enclave attestation protocol.</param><param name="clientDiffieHellmanKey">A Diffie-Hellman algorithm that encapsulates a client-side key pair.</param><summary>Initializes a new instance of the <see cref="T:Microsoft.Data.SqlClient.SqlEnclaveAttestationParameters" /> class.</summary><remarks>To be added.</remarks><exception cref="T:System.ArgumentNullException">
  802. <paramref name="clientDiffieHellmanKey" /> is <see langword="null" />.</exception>
  803. </member>
  804. <member name="P:Microsoft.Data.SqlClient.SqlEnclaveAttestationParameters.Protocol">
  805. <summary>Gets the enclave attestation protocol identifier.</summary><value>The enclave attestation protocol identifier.</value><remarks>To be added.</remarks>
  806. </member>
  807. <member name="M:Microsoft.Data.SqlClient.SqlEnclaveAttestationParameters.GetInput">
  808. <summary>Gets the information used to initiate the process of attesting the enclave. The format and the content of this information is specific to the attestation protocol.</summary><returns>The information required by SQL Server to execute attestation protocol identified by EnclaveAttestationProtocols.</returns><remarks>To be added.</remarks>
  809. </member>
  810. <member name="M:Microsoft.Data.SqlClient.SqlEnclaveAttestationParameters.Clone(System.Byte[])">
  811. <summary>
  812. Deep copy the array into a new array
  813. </summary>
  814. <param name="arrayToClone"></param>
  815. <returns></returns>
  816. </member>
  817. <member name="T:Microsoft.Data.SqlClient.EnclaveDelegate">
  818. <summary>
  819. A delegate for communicating with secure enclave
  820. </summary>
  821. <summary>
  822. A delegate for communicating with secure enclave
  823. </summary>
  824. </member>
  825. <member name="M:Microsoft.Data.SqlClient.EnclaveDelegate.CreateEnclaveSession(Microsoft.Data.SqlClient.SqlConnectionAttestationProtocol,System.String,System.String,System.String,System.Byte[],Microsoft.Data.SqlClient.SqlEnclaveAttestationParameters)">
  826. <summary>
  827. Create a new enclave session
  828. </summary>
  829. <param name="attestationProtocol">attestation protocol</param>
  830. <param name="enclaveType">enclave type</param>
  831. <param name="serverName">servername</param>
  832. <param name="attestationUrl">attestation url for attestation service endpoint</param>
  833. <param name="attestationInfo">attestation info from SQL Server</param>
  834. <param name="attestationParameters">attestation parameters</param>
  835. </member>
  836. <member name="M:Microsoft.Data.SqlClient.EnclaveDelegate.GenerateEnclavePackage(Microsoft.Data.SqlClient.SqlConnectionAttestationProtocol,System.Collections.Generic.Dictionary{System.Int32,Microsoft.Data.SqlClient.SqlTceCipherInfoEntry},System.String,System.String,System.String,System.String)">
  837. <summary>
  838. Generate the byte package that needs to be sent to the enclave
  839. </summary>
  840. <param name="attestationProtocol">attestation protocol</param>
  841. <param name="keysTobeSentToEnclave">Keys to be sent to enclave</param>
  842. <param name="queryText"></param>
  843. <param name="enclaveType">enclave type</param>
  844. <param name="serverName">server name</param>
  845. <param name="enclaveAttestationUrl">url for attestation endpoint</param>
  846. <returns></returns>
  847. </member>
  848. <member name="M:Microsoft.Data.SqlClient.EnclaveDelegate.GetDecryptedKeysToBeSentToEnclave(System.Collections.Generic.Dictionary{System.Int32,Microsoft.Data.SqlClient.SqlTceCipherInfoEntry},System.String)">
  849. <summary>
  850. Decrypt the keys that need to be sent to the enclave
  851. </summary>
  852. <param name="keysTobeSentToEnclave">Keys that need to sent to the enclave</param>
  853. <param name="serverName"></param>
  854. <returns></returns>
  855. </member>
  856. <member name="M:Microsoft.Data.SqlClient.EnclaveDelegate.GenerateBytePackageForKeys(System.Int64,System.Byte[],System.Collections.Generic.List{Microsoft.Data.SqlClient.ColumnEncryptionKeyInfo})">
  857. <summary>
  858. Generate a byte package consisting of decrypted keys and some headers expected by the enclave
  859. </summary>
  860. <param name="enclaveSessionCounter">counter to avoid replay attacks</param>
  861. <param name="queryStringHashBytes"></param>
  862. <param name="keys"></param>
  863. <returns></returns>
  864. </member>
  865. <member name="M:Microsoft.Data.SqlClient.EnclaveDelegate.EncryptBytePackage(System.Byte[],System.Byte[],System.String)">
  866. <summary>
  867. Encrypt the byte package containing keys with the session key
  868. </summary>
  869. <param name="bytePackage">byte package containing keys</param>
  870. <param name="sessionKey">session key used to encrypt the package</param>
  871. <param name="serverName">server hosting the enclave</param>
  872. <returns></returns>
  873. </member>
  874. <member name="M:Microsoft.Data.SqlClient.EnclaveDelegate.CombineByteArrays(System.Byte[][])">
  875. <summary>
  876. Combine the array of given byte arrays into one
  877. </summary>
  878. <param name="byteArraysToCombine">byte arrays to be combined</param>
  879. <returns></returns>
  880. </member>
  881. <member name="T:Microsoft.Data.SqlClient.EnclaveDelegate.RetryableEnclaveQueryExecutionException">
  882. <summary>
  883. Exception when executing a enclave based Always Encrypted query
  884. </summary>
  885. </member>
  886. <member name="P:Microsoft.Data.SqlClient.TdsParser.IsColumnEncryptionSupported">
  887. <summary>
  888. Get or set if column encryption is supported by the server.
  889. </summary>
  890. </member>
  891. <member name="P:Microsoft.Data.SqlClient.TdsParser.TceVersionSupported">
  892. <summary>
  893. TCE version supported by the server
  894. </summary>
  895. </member>
  896. <member name="P:Microsoft.Data.SqlClient.TdsParser.EnclaveType">
  897. <summary>
  898. Type of enclave being used by the server
  899. </summary>
  900. </member>
  901. <member name="P:Microsoft.Data.SqlClient.TdsParser.IsDataClassificationEnabled">
  902. <summary>
  903. Get if data classification is enabled by the server.
  904. </summary>
  905. </member>
  906. <member name="P:Microsoft.Data.SqlClient.TdsParser.DataClassificationVersion">
  907. <summary>
  908. Get or set data classification version. A value of 0 means that sensitivity classification is not enabled.
  909. </summary>
  910. </member>
  911. <member name="M:Microsoft.Data.SqlClient.TdsParser.IsValidTdsToken(System.Byte)">
  912. <summary>
  913. Checks if the given token is a valid TDS token
  914. </summary>
  915. <param name="token">Token to check</param>
  916. <returns>True if the token is a valid TDS token, otherwise false</returns>
  917. </member>
  918. <member name="M:Microsoft.Data.SqlClient.TdsParser.TryReadCipherInfoEntry(Microsoft.Data.SqlClient.TdsParserStateObject,Microsoft.Data.SqlClient.SqlTceCipherInfoEntry@)">
  919. <summary>
  920. <para> Parses the TDS message to read single CIPHER_INFO entry.</para>
  921. </summary>
  922. </member>
  923. <member name="M:Microsoft.Data.SqlClient.TdsParser.TryProcessCipherInfoTable(Microsoft.Data.SqlClient.TdsParserStateObject,System.Nullable{Microsoft.Data.SqlClient.SqlTceCipherInfoTable}@)">
  924. <summary>
  925. <para> Parses the TDS message to read a single CIPHER_INFO table.</para>
  926. </summary>
  927. </member>
  928. <member name="M:Microsoft.Data.SqlClient.TdsParser.ShouldHonorTceForRead(Microsoft.Data.SqlClient.SqlCommandColumnEncryptionSetting,Microsoft.Data.SqlClient.SqlInternalConnectionTds)">
  929. <summary>
  930. Determines if a column value should be transparently decrypted (based on SqlCommand and Connection String settings).
  931. </summary>
  932. <returns>true if the value should be transparently decrypted, false otherwise</returns>
  933. </member>
  934. <member name="M:Microsoft.Data.SqlClient.TdsParser.TrySkipValue(Microsoft.Data.SqlClient.SqlMetaDataPriv,System.Int32,Microsoft.Data.SqlClient.TdsParserStateObject)">
  935. <summary>
  936. This method skips bytes of a single column value from the media. It supports NBCROW and handles all types of values, including PLP and long
  937. </summary>
  938. </member>
  939. <member name="M:Microsoft.Data.SqlClient.TdsParser.DeserializeUnencryptedValue(Microsoft.Data.SqlClient.SqlBuffer,System.Byte[],Microsoft.Data.SqlClient.SqlMetaDataPriv,Microsoft.Data.SqlClient.TdsParserStateObject,System.Byte)">
  940. <summary>
  941. Deserializes the unencrypted bytes into a value based on the target type info.
  942. </summary>
  943. </member>
  944. <member name="M:Microsoft.Data.SqlClient.TdsParser.SendFedAuthToken(Microsoft.Data.SqlClient.SqlFedAuthToken)">
  945. <summary>
  946. Send the access token to the server.
  947. </summary>
  948. <param name="fedAuthToken">Type encapuslating a Federated Authentication access token.</param>
  949. </member>
  950. <member name="M:Microsoft.Data.SqlClient.TdsParser.LoadColumnEncryptionKeys(Microsoft.Data.SqlClient._SqlMetaDataSet,System.String)">
  951. <summary>
  952. Loads the column encryptions keys into cache. This will read the master key info,
  953. decrypt the CEK and keep it ready for encryption.
  954. </summary>
  955. <returns></returns>
  956. </member>
  957. <member name="M:Microsoft.Data.SqlClient.TdsParser.WriteEncryptionEntries(Microsoft.Data.SqlClient.SqlTceCipherInfoTable@,Microsoft.Data.SqlClient.TdsParserStateObject)">
  958. <summary>
  959. Writes a single entry of CEK Table into TDS Stream (for bulk copy).
  960. </summary>
  961. <returns></returns>
  962. </member>
  963. <member name="M:Microsoft.Data.SqlClient.TdsParser.WriteCekTable(Microsoft.Data.SqlClient._SqlMetaDataSet,Microsoft.Data.SqlClient.TdsParserStateObject)">
  964. <summary>
  965. Writes a CEK Table (as part of COLMETADATA token) for bulk copy.
  966. </summary>
  967. <returns></returns>
  968. </member>
  969. <member name="M:Microsoft.Data.SqlClient.TdsParser.WriteTceUserTypeAndTypeInfo(Microsoft.Data.SqlClient.SqlMetaDataPriv,Microsoft.Data.SqlClient.TdsParserStateObject)">
  970. <summary>
  971. Writes the UserType and TYPE_INFO values for CryptoMetadata (for bulk copy).
  972. </summary>
  973. <returns></returns>
  974. </member>
  975. <member name="M:Microsoft.Data.SqlClient.TdsParser.WriteCryptoMetadata(Microsoft.Data.SqlClient._SqlMetaData,Microsoft.Data.SqlClient.TdsParserStateObject)">
  976. <summary>
  977. Writes the crypto metadata (as part of COLMETADATA token) for encrypted columns.
  978. </summary>
  979. <returns></returns>
  980. </member>
  981. <member name="M:Microsoft.Data.SqlClient.TdsParser.ShouldEncryptValuesForBulkCopy">
  982. <summary>
  983. Determines if a column value should be encrypted when using BulkCopy (based on connectionstring setting).
  984. </summary>
  985. <returns></returns>
  986. </member>
  987. <member name="M:Microsoft.Data.SqlClient.TdsParser.EncryptColumnValue(System.Object,Microsoft.Data.SqlClient.SqlMetaDataPriv,System.String,Microsoft.Data.SqlClient.TdsParserStateObject,System.Boolean,System.Boolean)">
  988. <summary>
  989. Encrypts a column value (for SqlBulkCopy)
  990. </summary>
  991. <returns></returns>
  992. </member>
  993. <member name="M:Microsoft.Data.SqlClient.TdsParser.WriteEncryptionMetadata(System.Threading.Tasks.Task,Microsoft.Data.SqlClient.SqlColumnEncryptionInputParameterInfo,Microsoft.Data.SqlClient.TdsParserStateObject)">
  994. <summary>
  995. Write parameter encryption metadata and returns a task if necessary.
  996. </summary>
  997. </member>
  998. <member name="M:Microsoft.Data.SqlClient.TdsParser.WriteEncryptionMetadata(Microsoft.Data.SqlClient.SqlColumnEncryptionInputParameterInfo,Microsoft.Data.SqlClient.TdsParserStateObject)">
  999. <summary>
  1000. Write parameter encryption metadata.
  1001. </summary>
  1002. </member>
  1003. <member name="T:Microsoft.Data.SqlClient.Server.SqlDataRecord">
  1004. <summary>Represents a single row of data and its metadata. This class cannot be inherited.</summary><remarks>
  1005. <format type="text/markdown"><![CDATA[
  1006. ## Remarks
  1007. This class is used together with <xref:Microsoft.SqlServer.Server.SqlPipe> to send result sets to the client from managed code stored-procedures.
  1008. When writing common language runtime (CLR) applications, you should re-use existing `SqlDataRecord` objects instead of creating new ones every time. Creating many new `SqlDataRecord` objects could severely deplete memory and adversely affect performance.
  1009. ## Examples
  1010. The following example shows how to create several <xref:Microsoft.Data.SqlClient.Server.SqlMetaData> objects, which describe the column metadata of a record, and creating a <xref:Microsoft.Data.SqlClient.Server.SqlDataRecord>. The column values of the <xref:Microsoft.Data.SqlClient.Server.SqlDataRecord> are set and the <xref:Microsoft.Data.SqlClient.Server.SqlDataRecord> is sent to the calling program by using the <xref:Microsoft.SqlServer.Server.SqlContext> class.
  1011. [!code-csharp[SqlDataRecord Samples#1](~/../sqlclient/doc/samples/SqlDataRecord.cs#1)]
  1012. ]]></format>
  1013. </remarks>
  1014. </member>
  1015. <member name="P:Microsoft.Data.SqlClient.Server.SqlDataRecord.FieldCount">
  1016. <summary>Gets the number of columns in the data row. This property is read-only.</summary><value>The number of columns in the data row as an integer.</value><remarks>To be added.</remarks>
  1017. </member>
  1018. <member name="M:Microsoft.Data.SqlClient.Server.SqlDataRecord.GetName(System.Int32)">
  1019. <param name="ordinal">The zero-based ordinal of the column.</param><summary>Returns the name of the column specified by the ordinal argument.</summary><returns>A <see cref="T:System.String" /> containing the column name.</returns><remarks>To be added.</remarks><exception cref="T:System.IndexOutOfRangeException">The <paramref name="ordinal" /> is less than 0 or greater than the number of columns (that is, <see cref="P:Microsoft.Data.SqlClient.Server.SqlDataRecord.FieldCount" />).</exception><exception cref="T:System.InvalidCastException">There is a type mismatch.</exception>
  1020. </member>
  1021. <member name="M:Microsoft.Data.SqlClient.Server.SqlDataRecord.GetDataTypeName(System.Int32)">
  1022. <param name="ordinal">The zero-based ordinal of the column.</param><summary>Returns the name of the data type for the column specified by the ordinal argument.</summary><returns>A <see cref="T:System.String" /> that contains the data type of the column.</returns><remarks>
  1023. <format type="text/markdown"><![CDATA[
  1024. ## Remarks
  1025. This method returns the type name as known in the SQL Server type-system. For user-defined types (UDTs), it returns the three-part name that was used to register the type with SQL Server.
  1026. ]]></format>
  1027. </remarks><exception cref="T:System.ArgumentOutOfRangeException">The <paramref name="ordinal" /> is less than 0 or greater than the number of columns (that is, <see cref="P:Microsoft.Data.SqlClient.Server.SqlDataRecord.FieldCount" />).</exception><exception cref="T:System.InvalidCastException">There is a type mismatch.</exception>
  1028. </member>
  1029. <member name="M:Microsoft.Data.SqlClient.Server.SqlDataRecord.GetFieldType(System.Int32)">
  1030. <param name="ordinal">The zero-based ordinal of the column.</param><summary>Returns a <see cref="T:System.Type" /> object representing the common language runtime (CLR) type that maps to the SQL Server type of the column specified by the <paramref name="ordinal" /> argument.</summary><returns>The column type as a <see cref="T:System.Type" /> object.</returns><remarks>To be added.</remarks><exception cref="T:System.IndexOutOfRangeException">The <paramref name="ordinal" /> is less than 0 or greater than the number of columns (that is, <see cref="P:Microsoft.Data.SqlClient.Server.SqlDataRecord.FieldCount" />).</exception><exception cref="T:System.TypeLoadException">The column is of a user-defined type that is not available to the calling application domain.</exception><exception cref="T:System.IO.FileNotFoundException">The column is of a user-defined type that is not available to the calling application domain.</exception><exception cref="T:System.InvalidCastException">There is a type mismatch.</exception>
  1031. </member>
  1032. <member name="M:Microsoft.Data.SqlClient.Server.SqlDataRecord.GetValue(System.Int32)">
  1033. <param name="ordinal">The zero-based ordinal of the column.</param><summary>Returns the common language runtime (CLR) type value for the column specified by the ordinal argument.</summary><returns>The CLR type value of the column specified by the ordinal.</returns><remarks>
  1034. <format type="text/markdown"><![CDATA[
  1035. ## Remarks
  1036. For columns with null value, <xref:System.DBNull.Value> is returned.
  1037. ]]></format>
  1038. </remarks><exception cref="T:System.IndexOutOfRangeException">The <paramref name="ordinal" /> is less than 0 or greater than the number of columns (that is, <see cref="P:Microsoft.Data.SqlClient.Server.SqlDataRecord.FieldCount" />).</exception><exception cref="T:System.InvalidCastException">There is a type mismatch.</exception>
  1039. </member>
  1040. <member name="M:Microsoft.Data.SqlClient.Server.SqlDataRecord.GetValues(System.Object[])">
  1041. <param name="values">The array into which to copy the values column values.</param><summary>Returns the values for all the columns in the record, expressed as common language runtime (CLR) types, in an array.</summary><returns>An <see cref="T:System.Int32" /> that indicates the number of columns copied.</returns><remarks>
  1042. <format type="text/markdown"><![CDATA[
  1043. ## Remarks
  1044. The CLR type values of the column are copied into the `values` array that is passed as a parameter. For columns with null value, <xref:System.DBNull.Value> is returned.
  1045. The length of the `values` array does not need to match the number of columns in the record. If the array length is greater than the number of columns, all of the column values are copied into the array; if it is less, only the array length number of column values is copied into the array, starting at the column value with ordinal 0.
  1046. ]]></format>
  1047. </remarks><exception cref="T:System.ArgumentNullException">
  1048. <paramref name="values" /> is <see langword="null" />.</exception><exception cref="T:System.InvalidCastException">There is a type mismatch.</exception>
  1049. </member>
  1050. <member name="M:Microsoft.Data.SqlClient.Server.SqlDataRecord.GetOrdinal(System.String)">
  1051. <param name="name">The name of the column to look up.</param><summary>Returns the column ordinal specified by the column name.</summary><returns>The zero-based ordinal of the column as an integer.</returns><remarks>To be added.</remarks><exception cref="T:System.ArgumentNullException">
  1052. <paramref name="name" /> is <see langword="null" />.</exception><exception cref="T:System.IndexOutOfRangeException">The column name could not be found.</exception><exception cref="T:System.InvalidCastException">There is a type mismatch.</exception>
  1053. </member>
  1054. <member name="P:Microsoft.Data.SqlClient.Server.SqlDataRecord.Item(System.Int32)">
  1055. <param name="ordinal">The zero-based ordinal of the column.</param><summary>Gets the common language runtime (CLR) type value for the column specified by the column <paramref name="ordinal" /> argument.</summary><value>The CLR type value of the column specified by the <paramref name="ordinal" />.</value><remarks>
  1056. <format type="text/markdown"><![CDATA[
  1057. ## Remarks
  1058. For columns with null value, <xref:System.DBNull.Value> is returned.
  1059. ]]></format>
  1060. </remarks><exception cref="T:System.IndexOutOfRangeException">The <paramref name="ordinal" /> is less than 0 or greater than the number of columns (that is, <see cref="P:Microsoft.Data.SqlClient.Server.SqlDataRecord.FieldCount" />).</exception>
  1061. </member>
  1062. <member name="P:Microsoft.Data.SqlClient.Server.SqlDataRecord.Item(System.String)">
  1063. <param name="name">The name of the column.</param><summary>Gets the common language runtime (CLR) type value for the column specified by the column <paramref name="name" /> argument.</summary><value>The CLR type value of the column specified by the <paramref name="name" />.</value><remarks>
  1064. <format type="text/markdown"><![CDATA[
  1065. ## Remarks
  1066. For columns with null value, <xref:System.DBNull.Value> is returned.
  1067. ]]></format>
  1068. </remarks>
  1069. </member>
  1070. <member name="M:Microsoft.Data.SqlClient.Server.SqlDataRecord.GetBoolean(System.Int32)">
  1071. <param name="ordinal">The zero-based ordinal of the column.</param><summary>Gets the value for the column specified by the ordinal as a <see cref="T:System.Boolean" />.</summary><returns>The column value as a <see cref="T:System.Boolean" />.</returns><remarks>To be added.</remarks><exception cref="T:System.IndexOutOfRangeException">The <paramref name="ordinal" /> is less than 0 or greater than the number of columns (that is, <see cref="P:Microsoft.Data.SqlClient.Server.SqlDataRecord.FieldCount" />).</exception><exception cref="T:System.Data.SqlTypes.SqlNullValueException">The column specified by <paramref name="ordinal" /> is null.</exception><exception cref="T:System.InvalidCastException">There is a type mismatch.</exception>
  1072. </member>
  1073. <member name="M:Microsoft.Data.SqlClient.Server.SqlDataRecord.GetByte(System.Int32)">
  1074. <param name="ordinal">The zero-based ordinal of the column.</param><summary>Gets the value for the column specified by the ordinal as a <see cref="T:System.Byte" />.</summary><returns>The column value as a <see cref="T:System.Byte" />.</returns><remarks>To be added.</remarks><exception cref="T:System.IndexOutOfRangeException">The <paramref name="ordinal" /> is less than 0 or greater than the number of columns (that is, <see cref="P:Microsoft.Data.SqlClient.Server.SqlDataRecord.FieldCount" />).</exception><exception cref="T:System.Data.SqlTypes.SqlNullValueException">The column specified by <paramref name="ordinal" /> is null.</exception><exception cref="T:System.InvalidCastException">There is a type mismatch.</exception>
  1075. </member>
  1076. <member name="M:Microsoft.Data.SqlClient.Server.SqlDataRecord.GetBytes(System.Int32,System.Int64,System.Byte[],System.Int32,System.Int32)">
  1077. <param name="ordinal">The zero-based ordinal of the column.</param><param name="fieldOffset">The offset into the field value to start retrieving bytes.</param><param name="buffer">The target buffer to which to copy bytes.</param><param name="bufferOffset">The offset into the buffer to which to start copying bytes.</param><param name="length">The number of bytes to copy to the buffer.</param><summary>Gets the value for the column specified by the ordinal as an array of <see cref="T:System.Byte" /> objects.</summary><returns>The number of bytes copied.</returns><remarks>
  1078. <format type="text/markdown"><![CDATA[
  1079. ## Remarks
  1080. This method enables you to obtain a binary value either in a single call or in chunks. Getting the value in chunks is useful for large values or values of unknown size.
  1081. To obtain the value in several chunks, allocate a byte array of the chunk-size and call <xref:Microsoft.Data.SqlClient.Server.SqlDataRecord.GetBytes%2A> repeatedly, adjusting the `fieldOffset` parameter accordingly in each call.
  1082. ]]></format>
  1083. </remarks><exception cref="T:System.IndexOutOfRangeException">The <paramref name="ordinal" /> is less than 0 or greater than the number of columns (that is, <see cref="P:Microsoft.Data.SqlClient.Server.SqlDataRecord.FieldCount" />).</exception><exception cref="T:System.Data.SqlTypes.SqlNullValueException">The column specified by <paramref name="ordinal" /> is null.</exception><exception cref="T:System.InvalidCastException">There is a type mismatch.</exception>
  1084. </member>
  1085. <member name="M:Microsoft.Data.SqlClient.Server.SqlDataRecord.GetChar(System.Int32)">
  1086. <param name="ordinal">The zero-based ordinal of the column.</param><summary>Gets the value for the column specified by the ordinal as a <see cref="T:System.Char" />.</summary><returns>The column value as a <see cref="T:System.Char" />.</returns><remarks>To be added.</remarks><exception cref="T:System.IndexOutOfRangeException">The <paramref name="ordinal" /> is less than 0 or greater than the number of columns (that is, <see cref="P:Microsoft.Data.SqlClient.Server.SqlDataRecord.FieldCount" />).</exception><exception cref="T:System.Data.SqlTypes.SqlNullValueException">The column specified by <paramref name="ordinal" /> is null.</exception><exception cref="T:System.InvalidCastException">There is a type mismatch.</exception>
  1087. </member>
  1088. <member name="M:Microsoft.Data.SqlClient.Server.SqlDataRecord.GetChars(System.Int32,System.Int64,System.Char[],System.Int32,System.Int32)">
  1089. <param name="ordinal">The zero-based ordinal of the column.</param><param name="fieldOffset">The offset into the field value to start retrieving characters.</param><param name="buffer">The target buffer to copy chars to.</param><param name="bufferOffset">The offset into the buffer to start copying chars to.</param><param name="length">The number of chars to copy to the buffer.</param><summary>Gets the value for the column specified by the ordinal as an array of <see cref="T:System.Char" /> objects.</summary><returns>The number of characters copied.</returns><remarks>
  1090. <format type="text/markdown"><![CDATA[
  1091. ## Remarks
  1092. This method enables you to obtain a character value either in a single call or in chunks. Getting the value in chunks is useful for large values or values of unknown size.
  1093. To obtain the value in several chunks, allocate a char array of the chunk-size and call <xref:Microsoft.Data.SqlClient.Server.SqlDataRecord.GetChars%2A> repeatedly adjusting the `fieldOffset` parameter accordingly in each call.
  1094. ]]></format>
  1095. </remarks><exception cref="T:System.IndexOutOfRangeException">The <paramref name="ordinal" /> is less than 0 or greater than the number of columns (that is, <see cref="P:Microsoft.Data.SqlClient.Server.SqlDataRecord.FieldCount" />).</exception><exception cref="T:System.Data.SqlTypes.SqlNullValueException">The column specified by <paramref name="ordinal" /> is null.</exception><exception cref="T:System.InvalidCastException">There is a type mismatch.</exception>
  1096. </member>
  1097. <member name="M:Microsoft.Data.SqlClient.Server.SqlDataRecord.GetGuid(System.Int32)">
  1098. <param name="ordinal">The zero-based ordinal of the column.</param><summary>Gets the value for the column specified by the ordinal as a <see cref="T:System.Guid" />.</summary><returns>The column value as a <see cref="T:System.Guid" />.</returns><remarks>To be added.</remarks><exception cref="T:System.IndexOutOfRangeException">The <paramref name="ordinal" /> is less than 0 or greater than the number of columns (that is, <see cref="P:Microsoft.Data.SqlClient.Server.SqlDataRecord.FieldCount" />).</exception><exception cref="T:System.Data.SqlTypes.SqlNullValueException">The column specified by <paramref name="ordinal" /> is null.</exception><exception cref="T:System.InvalidCastException">There is a type mismatch.</exception>
  1099. </member>
  1100. <member name="M:Microsoft.Data.SqlClient.Server.SqlDataRecord.GetInt16(System.Int32)">
  1101. <param name="ordinal">The zero-based ordinal of the column.</param><summary>Gets the value for the column specified by the ordinal as a <see cref="T:System.Int16" />.</summary><returns>The column value as a <see cref="T:System.Int16" />.</returns><remarks>To be added.</remarks><exception cref="T:System.IndexOutOfRangeException">The <paramref name="ordinal" /> is less than 0 or greater than the number of columns (that is, <see cref="P:Microsoft.Data.SqlClient.Server.SqlDataRecord.FieldCount" />).</exception><exception cref="T:System.Data.SqlTypes.SqlNullValueException">The column specified by <paramref name="ordinal" /> is null.</exception><exception cref="T:System.InvalidCastException">There is a type mismatch.</exception>
  1102. </member>
  1103. <member name="M:Microsoft.Data.SqlClient.Server.SqlDataRecord.GetInt32(System.Int32)">
  1104. <param name="ordinal">The zero-based ordinal of the column.</param><summary>Gets the value for the column specified by the ordinal as a <see cref="T:System.Int32" />.</summary><returns>The column value as a <see cref="T:System.Int32" />.</returns><remarks>To be added.</remarks><exception cref="T:System.IndexOutOfRangeException">The <paramref name="ordinal" /> is less than 0 or greater than the number of columns (that is, <see cref="P:Microsoft.Data.SqlClient.Server.SqlDataRecord.FieldCount" />).</exception><exception cref="T:System.Data.SqlTypes.SqlNullValueException">The column specified by <paramref name="ordinal" /> is null.</exception><exception cref="T:System.InvalidCastException">There is a type mismatch.</exception>
  1105. </member>
  1106. <member name="M:Microsoft.Data.SqlClient.Server.SqlDataRecord.GetInt64(System.Int32)">
  1107. <param name="ordinal">The zero-based ordinal of the column.</param><summary>Gets the value for the column specified by the ordinal as a <see cref="T:System.Int64" />.</summary><returns>The column value as a <see cref="T:System.Int64" />.</returns><remarks>To be added.</remarks><exception cref="T:System.IndexOutOfRangeException">The <paramref name="ordinal" /> is less than 0 or greater than the number of columns (that is, <see cref="P:Microsoft.Data.SqlClient.Server.SqlDataRecord.FieldCount" />).</exception><exception cref="T:System.Data.SqlTypes.SqlNullValueException">The column specified by <paramref name="ordinal" /> is null.</exception><exception cref="T:System.InvalidCastException">There is a type mismatch.</exception>
  1108. </member>
  1109. <member name="M:Microsoft.Data.SqlClient.Server.SqlDataRecord.GetFloat(System.Int32)">
  1110. <param name="ordinal">The zero-based ordinal of the column.</param><summary>Gets the value for the column specified by the ordinal as a <see langword="float" />.</summary><returns>The column value as a <see langword="float" />.</returns><remarks>To be added.</remarks><exception cref="T:System.IndexOutOfRangeException">The <paramref name="ordinal" /> is less than 0 or greater than the number of columns (that is, <see cref="P:Microsoft.Data.SqlClient.Server.SqlDataRecord.FieldCount" />).</exception><exception cref="T:System.Data.SqlTypes.SqlNullValueException">The column specified by <paramref name="ordinal" /> is null.</exception><exception cref="T:System.InvalidCastException">There is a type mismatch.</exception>
  1111. </member>
  1112. <member name="M:Microsoft.Data.SqlClient.Server.SqlDataRecord.GetDouble(System.Int32)">
  1113. <param name="ordinal">The zero-based ordinal of the column.</param><summary>Gets the value for the column specified by the ordinal as a <see cref="T:System.Double" />.</summary><returns>The column value as a <see cref="T:System.Double" />.</returns><remarks>To be added.</remarks><exception cref="T:System.IndexOutOfRangeException">The <paramref name="ordinal" /> is less than 0 or greater than the number of columns (that is, <see cref="P:Microsoft.Data.SqlClient.Server.SqlDataRecord.FieldCount" />).</exception><exception cref="T:System.Data.SqlTypes.SqlNullValueException">The column specified by <paramref name="ordinal" /> is null.</exception><exception cref="T:System.InvalidCastException">There is a type mismatch.</exception>
  1114. </member>
  1115. <member name="M:Microsoft.Data.SqlClient.Server.SqlDataRecord.GetString(System.Int32)">
  1116. <param name="ordinal">The zero-based ordinal of the column.</param><summary>Gets the value for the column specified by the ordinal as a <see cref="T:System.String" />.</summary><returns>The column value as a <see cref="T:System.String" />.</returns><remarks>To be added.</remarks><exception cref="T:System.ArgumentOutOfRangeException">The <paramref name="ordinal" /> is less than 0 or greater than the number of columns (that is, <see cref="P:Microsoft.Data.SqlClient.Server.SqlDataRecord.FieldCount" />).</exception><exception cref="T:System.InvalidCastException">There is a type mismatch.</exception>
  1117. </member>
  1118. <member name="M:Microsoft.Data.SqlClient.Server.SqlDataRecord.GetDecimal(System.Int32)">
  1119. <param name="ordinal">The zero-based ordinal of the column.</param><summary>Gets the value for the column specified by the ordinal as a <see cref="T:System.Decimal" />.</summary><returns>The column value as a <see cref="T:System.Decimal" />.</returns><remarks>To be added.</remarks><exception cref="T:System.IndexOutOfRangeException">The <paramref name="ordinal" /> is less than 0 or greater than the number of columns (that is, <see cref="P:Microsoft.Data.SqlClient.Server.SqlDataRecord.FieldCount" />).</exception><exception cref="T:System.Data.SqlTypes.SqlNullValueException">The column specified by <paramref name="ordinal" /> is null.</exception><exception cref="T:System.InvalidCastException">There is a type mismatch.</exception>
  1120. </member>
  1121. <member name="M:Microsoft.Data.SqlClient.Server.SqlDataRecord.GetDateTime(System.Int32)">
  1122. <param name="ordinal">The zero-based ordinal of the column.</param><summary>Gets the value for the column specified by the ordinal as a <see cref="T:System.DateTime" />.</summary><returns>The column value as a <see cref="T:System.DateTime" />.</returns><remarks>To be added.</remarks><exception cref="T:System.IndexOutOfRangeException">The <paramref name="ordinal" /> is less than 0 or greater than the number of columns (that is, <see cref="P:Microsoft.Data.SqlClient.Server.SqlDataRecord.FieldCount" />).</exception><exception cref="T:System.Data.SqlTypes.SqlNullValueException">The column specified by <paramref name="ordinal" /> is null.</exception><exception cref="T:System.InvalidCastException">There is a type mismatch.</exception>
  1123. </member>
  1124. <member name="M:Microsoft.Data.SqlClient.Server.SqlDataRecord.GetDateTimeOffset(System.Int32)">
  1125. <param name="ordinal">The zero-based column ordinal.</param><summary>Returns the specified column's data as a <see cref="T:System.DateTimeOffset" />.</summary><returns>The value of the specified column as a <see cref="T:System.DateTimeOffset" />.</returns><remarks>To be added.</remarks>
  1126. </member>
  1127. <member name="M:Microsoft.Data.SqlClient.Server.SqlDataRecord.GetTimeSpan(System.Int32)">
  1128. <param name="ordinal">The zero-based column ordinal.</param><summary>Returns the specified column's data as a <see cref="T:System.TimeSpan" />.</summary><returns>The value of the specified column as a <see cref="T:System.TimeSpan" />.</returns><remarks>To be added.</remarks>
  1129. </member>
  1130. <member name="M:Microsoft.Data.SqlClient.Server.SqlDataRecord.IsDBNull(System.Int32)">
  1131. <param name="ordinal">The zero-based ordinal of the column.</param><summary>Returns true if the column specified by the column ordinal parameter is null.</summary><returns>
  1132. <see langword="true" /> if the column is null; <see langword="false" /> otherwise.</returns><remarks>To be added.</remarks><exception cref="T:System.IndexOutOfRangeException">The <paramref name="ordinal" /> is less than 0 or greater than the number of columns (that is, <see cref="P:Microsoft.Data.SqlClient.Server.SqlDataRecord.FieldCount" />).</exception>
  1133. </member>
  1134. <member name="M:Microsoft.Data.SqlClient.Server.SqlDataRecord.GetSqlMetaData(System.Int32)">
  1135. <param name="ordinal">The zero-based ordinal of the column.</param><summary>Returns a <see cref="T:Microsoft.Data.SqlClient.Server.SqlMetaData" /> object, describing the metadata of the column specified by the column ordinal.</summary><returns>The column metadata as a <see cref="T:Microsoft.Data.SqlClient.Server.SqlMetaData" /> object.</returns><remarks>To be added.</remarks><exception cref="T:System.IndexOutOfRangeException">The <paramref name="ordinal" /> is less than 0 or greater than the number of columns (that is, <see cref="P:Microsoft.Data.SqlClient.Server.SqlDataRecord.FieldCount" />).</exception><exception cref="T:System.InvalidCastException">There is a type mismatch.</exception>
  1136. </member>
  1137. <member name="M:Microsoft.Data.SqlClient.Server.SqlDataRecord.GetSqlFieldType(System.Int32)">
  1138. <param name="ordinal">The zero-based ordinal of the column.</param><summary>Returns a <see cref="T:System.Type" /> object that represents the type (as a SQL Server type, defined in <see cref="N:System.Data.SqlTypes" />) that maps to the SQL Server type of the column.</summary><returns>The column type as a <see cref="T:System.Type" /> object.</returns><remarks>To be added.</remarks><exception cref="T:System.IndexOutOfRangeException">The <paramref name="ordinal" /> is less than 0 or greater than the number of columns (that is, <see cref="P:Microsoft.Data.SqlClient.Server.SqlDataRecord.FieldCount" />).</exception><exception cref="T:System.TypeLoadException">The column is of a user-defined type that is not available to the calling application domain.</exception><exception cref="T:System.IO.FileNotFoundException">The column is of a user-defined type that is not available to the calling application domain.</exception><exception cref="T:System.InvalidCastException">There is a type mismatch.</exception>
  1139. </member>
  1140. <member name="M:Microsoft.Data.SqlClient.Server.SqlDataRecord.GetSqlValue(System.Int32)">
  1141. <param name="ordinal">The zero-based ordinal of the column.</param><summary>Returns the data value stored in the column, expressed as a SQL Server type, specified by the column ordinal.</summary><returns>The value of the column, expressed as a SQL Server type, as a <see cref="T:System.Object" />.</returns><remarks>
  1142. <format type="text/markdown"><![CDATA[
  1143. ## Remarks
  1144. For null values, a SQL Server type instance is returned where the <xref:System.Data.SqlTypes.INullable.IsNull%2A> property is true.
  1145. ]]></format>
  1146. </remarks><exception cref="T:System.IndexOutOfRangeException">The <paramref name="ordinal" /> is less than 0 or greater than the number of columns (that is, <see cref="P:Microsoft.Data.SqlClient.Server.SqlDataRecord.FieldCount" />).</exception><exception cref="T:System.InvalidCastException">There is a type mismatch.</exception><altmember cref="N:System.Data.SqlTypes" />
  1147. </member>
  1148. <member name="M:Microsoft.Data.SqlClient.Server.SqlDataRecord.GetSqlValues(System.Object[])">
  1149. <param name="values">The array into which to copy the values column values.</param><summary>Returns the values for all the columns in the record, expressed as SQL Server types, in an array.</summary><returns>An <see cref="T:System.Int32" /> that indicates the number of columns copied.</returns><remarks>
  1150. <format type="text/markdown"><![CDATA[
  1151. ## Remarks
  1152. The SQL Server type values of the column are copied into the `values` array that is passed as a parameter. For null values, a Sql type instance is returned where the <xref:System.Data.SqlTypes.INullable.IsNull%2A> property is true.
  1153. The length of the `values` array does not need to match the number of columns in the record. If the array length is greater than the number of columns, all of the column values are copied into the array; if it is less, only the array length number of column values are copied into the array, starting at the column value with ordinal 0.
  1154. ]]></format>
  1155. </remarks><exception cref="T:System.ArgumentNullException">
  1156. <paramref name="values" /> is <see langword="null" />.</exception><exception cref="T:System.InvalidCastException">There is a type mismatch.</exception><altmember cref="N:System.Data.SqlTypes" />
  1157. </member>
  1158. <member name="M:Microsoft.Data.SqlClient.Server.SqlDataRecord.GetSqlBinary(System.Int32)">
  1159. <param name="ordinal">The zero-based ordinal of the column.</param><summary>Gets the value for the column specified by the ordinal as a <see cref="T:System.Data.SqlTypes.SqlBinary" />.</summary><returns>The column value as a <see cref="T:System.Data.SqlTypes.SqlBinary" />.</returns><remarks>To be added.</remarks><exception cref="T:System.IndexOutOfRangeException">The <paramref name="ordinal" /> is less than 0 or greater than the number of columns (that is, <see cref="P:Microsoft.Data.SqlClient.Server.SqlDataRecord.FieldCount" />).</exception><exception cref="T:System.InvalidCastException">There is a type mismatch.</exception>
  1160. </member>
  1161. <member name="M:Microsoft.Data.SqlClient.Server.SqlDataRecord.GetSqlBytes(System.Int32)">
  1162. <param name="ordinal">The zero-based ordinal of the column.</param><summary>Gets the value for the column specified by the ordinal as a <see cref="T:System.Data.SqlTypes.SqlBytes" />.</summary><returns>The column value as a <see cref="T:System.Data.SqlTypes.SqlBytes" />.</returns><remarks>To be added.</remarks><exception cref="T:System.IndexOutOfRangeException">The <paramref name="ordinal" /> is less than 0 or greater than the number of columns (that is, <see cref="P:Microsoft.Data.SqlClient.Server.SqlDataRecord.FieldCount" />).</exception><exception cref="T:System.InvalidCastException">There is a type mismatch.</exception>
  1163. </member>
  1164. <member name="M:Microsoft.Data.SqlClient.Server.SqlDataRecord.GetSqlXml(System.Int32)">
  1165. <param name="ordinal">The zero-based ordinal of the column.</param><summary>Gets the value for the column specified by the ordinal as a <see cref="T:System.Data.SqlTypes.SqlXml" />.</summary><returns>The column value as a <see cref="T:System.Data.SqlTypes.SqlXml" />.</returns><remarks>To be added.</remarks><exception cref="T:System.ArgumentOutOfRangeException">The <paramref name="ordinal" /> is less than 0 or greater than the number of columns (that is, <see cref="P:Microsoft.Data.SqlClient.Server.SqlDataRecord.FieldCount" />).</exception><exception cref="T:System.InvalidCastException">There is a type mismatch.</exception>
  1166. </member>
  1167. <member name="M:Microsoft.Data.SqlClient.Server.SqlDataRecord.GetSqlBoolean(System.Int32)">
  1168. <param name="ordinal">The zero-based ordinal of the column.</param><summary>Gets the value for the column specified by the ordinal as a <see cref="T:System.Data.SqlTypes.SqlBoolean" />.</summary><returns>The column value as a <see cref="T:System.Data.SqlTypes.SqlBoolean" />.</returns><remarks>To be added.</remarks><exception cref="T:System.IndexOutOfRangeException">The <paramref name="ordinal" /> is less than 0 or greater than the number of columns (that is, <see cref="P:Microsoft.Data.SqlClient.Server.SqlDataRecord.FieldCount" />).</exception><exception cref="T:System.InvalidCastException">There is a type mismatch.</exception>
  1169. </member>
  1170. <member name="M:Microsoft.Data.SqlClient.Server.SqlDataRecord.GetSqlByte(System.Int32)">
  1171. <param name="ordinal">The zero-based ordinal of the column.</param><summary>Gets the value for the column specified by the ordinal as a <see cref="T:System.Data.SqlTypes.SqlByte" />.</summary><returns>The column value as a <see cref="T:System.Data.SqlTypes.SqlByte" />.</returns><remarks>To be added.</remarks><exception cref="T:System.IndexOutOfRangeException">The <paramref name="ordinal" /> is less than 0 or greater than the number of columns (that is, <see cref="P:Microsoft.Data.SqlClient.Server.SqlDataRecord.FieldCount" />).</exception><exception cref="T:System.InvalidCastException">There is a type mismatch.</exception>
  1172. </member>
  1173. <member name="M:Microsoft.Data.SqlClient.Server.SqlDataRecord.GetSqlChars(System.Int32)">
  1174. <param name="ordinal">The zero-based ordinal of the column.</param><summary>Gets the value for the column specified by the ordinal as a <see cref="T:System.Data.SqlTypes.SqlChars" />.</summary><returns>The column value as a <see cref="T:System.Data.SqlTypes.SqlChars" />.</returns><remarks>To be added.</remarks><exception cref="T:System.IndexOutOfRangeException">The <paramref name="ordinal" /> is less than 0 or greater than the number of columns (that is, <see cref="P:Microsoft.Data.SqlClient.Server.SqlDataRecord.FieldCount" />).</exception><exception cref="T:System.InvalidCastException">There is a type mismatch.</exception>
  1175. </member>
  1176. <member name="M:Microsoft.Data.SqlClient.Server.SqlDataRecord.GetSqlInt16(System.Int32)">
  1177. <param name="ordinal">The zero-based ordinal of the column.</param><summary>Gets the value for the column specified by the ordinal as a <see cref="T:System.Data.SqlTypes.SqlInt16" />.</summary><returns>The column value as a <see cref="T:System.Data.SqlTypes.SqlInt16" />.</returns><remarks>To be added.</remarks><exception cref="T:System.IndexOutOfRangeException">The <paramref name="ordinal" /> is less than 0 or greater than the number of columns (that is, <see cref="P:Microsoft.Data.SqlClient.Server.SqlDataRecord.FieldCount" />).</exception><exception cref="T:System.InvalidCastException">There is a type mismatch.</exception>
  1178. </member>
  1179. <member name="M:Microsoft.Data.SqlClient.Server.SqlDataRecord.GetSqlInt32(System.Int32)">
  1180. <param name="ordinal">The zero-based ordinal of the column.</param><summary>Gets the value for the column specified by the ordinal as a <see cref="T:System.Data.SqlTypes.SqlInt32" />.</summary><returns>The column value as a <see cref="T:System.Data.SqlTypes.SqlInt32" />.</returns><remarks>To be added.</remarks><exception cref="T:System.IndexOutOfRangeException">The <paramref name="ordinal" /> is less than 0 or greater than the number of columns (that is, <see cref="P:Microsoft.Data.SqlClient.Server.SqlDataRecord.FieldCount" />).</exception><exception cref="T:System.InvalidCastException">There is a type mismatch.</exception>
  1181. </member>
  1182. <member name="M:Microsoft.Data.SqlClient.Server.SqlDataRecord.GetSqlInt64(System.Int32)">
  1183. <param name="ordinal">The zero-based ordinal of the column.</param><summary>Gets the value for the column specified by the ordinal as a <see cref="T:System.Data.SqlTypes.SqlInt64" />.</summary><returns>The column value as a <see cref="T:System.Data.SqlTypes.SqlInt64" />.</returns><remarks>To be added.</remarks><exception cref="T:System.IndexOutOfRangeException">The <paramref name="ordinal" /> is less than 0 or greater than the number of columns (that is, <see cref="P:Microsoft.Data.SqlClient.Server.SqlDataRecord.FieldCount" />).</exception><exception cref="T:System.InvalidCastException">There is a type mismatch.</exception>
  1184. </member>
  1185. <member name="M:Microsoft.Data.SqlClient.Server.SqlDataRecord.GetSqlSingle(System.Int32)">
  1186. <param name="ordinal">The zero-based ordinal of the column.</param><summary>Gets the value for the column specified by the ordinal as a <see cref="T:System.Data.SqlTypes.SqlSingle" />.</summary><returns>The column value as a <see cref="T:System.Data.SqlTypes.SqlSingle" />.</returns><remarks>To be added.</remarks><exception cref="T:System.IndexOutOfRangeException">The <paramref name="ordinal" /> is less than 0 or greater than the number of columns (that is, <see cref="P:Microsoft.Data.SqlClient.Server.SqlDataRecord.FieldCount" />).</exception><exception cref="T:System.InvalidCastException">There is a type mismatch.</exception>
  1187. </member>
  1188. <member name="M:Microsoft.Data.SqlClient.Server.SqlDataRecord.GetSqlDouble(System.Int32)">
  1189. <param name="ordinal">The zero-based ordinal of the column.</param><summary>Gets the value for the column specified by the ordinal as a <see cref="T:System.Data.SqlTypes.SqlDouble" />.</summary><returns>The column value as a <see cref="T:System.Data.SqlTypes.SqlDouble" />.</returns><remarks>To be added.</remarks><exception cref="T:System.IndexOutOfRangeException">The <paramref name="ordinal" /> is less than 0 or greater than the number of columns (that is, <see cref="P:Microsoft.Data.SqlClient.Server.SqlDataRecord.FieldCount" />).</exception><exception cref="T:System.InvalidCastException">There is a type mismatch.</exception>
  1190. </member>
  1191. <member name="M:Microsoft.Data.SqlClient.Server.SqlDataRecord.GetSqlMoney(System.Int32)">
  1192. <param name="ordinal">The zero-based ordinal of the column.</param><summary>Gets the value for the column specified by the ordinal as a <see cref="T:System.Data.SqlTypes.SqlMoney" />.</summary><returns>The column value as a <see cref="T:System.Data.SqlTypes.SqlMoney" />.</returns><remarks>To be added.</remarks><exception cref="T:System.IndexOutOfRangeException">The <paramref name="ordinal" /> is less than 0 or greater than the number of columns (that is, <see cref="P:Microsoft.Data.SqlClient.Server.SqlDataRecord.FieldCount" />).</exception><exception cref="T:System.InvalidCastException">There is a type mismatch.</exception>
  1193. </member>
  1194. <member name="M:Microsoft.Data.SqlClient.Server.SqlDataRecord.GetSqlDateTime(System.Int32)">
  1195. <param name="ordinal">The zero-based ordinal of the column.</param><summary>Gets the value for the column specified by the ordinal as a <see cref="T:System.Data.SqlTypes.SqlDateTime" />.</summary><returns>The column value as a <see cref="T:System.Data.SqlTypes.SqlDateTime" />.</returns><remarks>To be added.</remarks><exception cref="T:System.IndexOutOfRangeException">The <paramref name="ordinal" /> is less than 0 or greater than the number of columns (that is, <see cref="P:Microsoft.Data.SqlClient.Server.SqlDataRecord.FieldCount" />).</exception><exception cref="T:System.InvalidCastException">There is a type mismatch.</exception>
  1196. </member>
  1197. <member name="M:Microsoft.Data.SqlClient.Server.SqlDataRecord.GetSqlDecimal(System.Int32)">
  1198. <param name="ordinal">The zero-based ordinal of the column.</param><summary>Gets the value for the column specified by the ordinal as a <see cref="T:System.Data.SqlTypes.SqlDecimal" />.</summary><returns>The column value as a <see cref="T:System.Data.SqlTypes.SqlDecimal" />.</returns><remarks>To be added.</remarks><exception cref="T:System.IndexOutOfRangeException">The <paramref name="ordinal" /> is less than 0 or greater than the number of columns (that is, <see cref="P:Microsoft.Data.SqlClient.Server.SqlDataRecord.FieldCount" />).</exception><exception cref="T:System.InvalidCastException">There is a type mismatch.</exception>
  1199. </member>
  1200. <member name="M:Microsoft.Data.SqlClient.Server.SqlDataRecord.GetSqlString(System.Int32)">
  1201. <param name="ordinal">The zero-based ordinal of the column.</param><summary>Gets the value for the column specified by the ordinal as a <see cref="T:System.Data.SqlTypes.SqlString" />.</summary><returns>The column value as a <see cref="T:System.Data.SqlTypes.SqlString" />.</returns><remarks>To be added.</remarks><exception cref="T:System.IndexOutOfRangeException">The <paramref name="ordinal" /> is less than 0 or greater than the number of columns (that is, <see cref="P:Microsoft.Data.SqlClient.Server.SqlDataRecord.FieldCount" />).</exception><exception cref="T:System.InvalidCastException">There is a type mismatch.</exception>
  1202. </member>
  1203. <member name="M:Microsoft.Data.SqlClient.Server.SqlDataRecord.GetSqlGuid(System.Int32)">
  1204. <param name="ordinal">The zero-based ordinal of the column.</param><summary>Gets the value for the column specified by the ordinal as a <see cref="T:System.Data.SqlTypes.SqlGuid" />.</summary><returns>The column value as a <see cref="T:System.Data.SqlTypes.SqlGuid" />.</returns><remarks>To be added.</remarks><exception cref="T:System.IndexOutOfRangeException">The <paramref name="ordinal" /> is less than 0 or greater than the number of columns (that is, <see cref="P:Microsoft.Data.SqlClient.Server.SqlDataRecord.FieldCount" />).</exception><exception cref="T:System.InvalidCastException">There is a type mismatch.</exception>
  1205. </member>
  1206. <member name="M:Microsoft.Data.SqlClient.Server.SqlDataRecord.SetValues(System.Object[])">
  1207. <param name="values">The array of new values, expressed as CLR types boxed as <see cref="T:System.Object" /> references, for the <see cref="T:Microsoft.Data.SqlClient.Server.SqlDataRecord" /> instance.</param><summary>Sets new values for all of the columns in the <see cref="T:Microsoft.Data.SqlClient.Server.SqlDataRecord" />. These values are expressed as common language runtime (CLR) types.</summary><returns>The number of column values set as an integer.</returns><remarks>
  1208. <format type="text/markdown"><![CDATA[
  1209. ## Remarks
  1210. The length of values must match the number of columns in the <xref:Microsoft.Data.SqlClient.Server.SqlDataRecord> instance.
  1211. ]]></format>
  1212. </remarks><exception cref="T:System.ArgumentNullException">
  1213. <paramref name="values" /> is <see langword="null" />.</exception><exception cref="T:System.ArgumentException">The size of values does not match the number of columns in the <see cref="T:Microsoft.Data.SqlClient.Server.SqlDataRecord" /> instance.</exception>
  1214. </member>
  1215. <member name="M:Microsoft.Data.SqlClient.Server.SqlDataRecord.SetValue(System.Int32,System.Object)">
  1216. <param name="ordinal">The zero-based ordinal of the column.</param><param name="value">The new value for the specified column.</param><summary>Sets a new value, expressed as a common language runtime (CLR) type, for the column specified by the column ordinal.</summary><remarks>
  1217. <format type="text/markdown"><![CDATA[
  1218. ## Remarks
  1219. `value` is a SQL type boxed as a <xref:System.Object> instance.
  1220. ]]></format>
  1221. </remarks><exception cref="T:System.ArgumentOutOfRangeException">The <paramref name="ordinal" /> is less than 0 or greater than the number of columns (that is, <see cref="P:Microsoft.Data.SqlClient.Server.SqlDataRecord.FieldCount" />).</exception>
  1222. </member>
  1223. <member name="M:Microsoft.Data.SqlClient.Server.SqlDataRecord.SetBoolean(System.Int32,System.Boolean)">
  1224. <param name="ordinal">The zero-based ordinal of the column.</param><param name="value">The new value of the column.</param><summary>Sets the data stored in the column to the specified <see cref="T:System.Boolean" /> value.</summary><remarks>To be added.</remarks>
  1225. </member>
  1226. <member name="M:Microsoft.Data.SqlClient.Server.SqlDataRecord.SetByte(System.Int32,System.Byte)">
  1227. <param name="ordinal">The zero-based ordinal of the column.</param><param name="value">The new value of the column.</param><summary>Sets the data stored in the column to the specified <see cref="T:System.Byte" /> value.</summary><remarks>To be added.</remarks><exception cref="T:System.ArgumentOutOfRangeException">The <paramref name="ordinal" /> is less than 0 or greater than the number of columns (that is, <see cref="P:Microsoft.Data.SqlClient.Server.SqlDataRecord.FieldCount" />).</exception>
  1228. </member>
  1229. <member name="M:Microsoft.Data.SqlClient.Server.SqlDataRecord.SetBytes(System.Int32,System.Int64,System.Byte[],System.Int32,System.Int32)">
  1230. <param name="ordinal">The zero-based ordinal of the column.</param><param name="fieldOffset">The offset into the field value to start copying bytes.</param><param name="buffer">The target buffer from which to copy bytes.</param><param name="bufferOffset">The offset into the buffer from which to start copying bytes.</param><param name="length">The number of bytes to copy from the buffer.</param><summary>Sets the data stored in the column to the specified array of <see cref="T:System.Byte" /> values.</summary><remarks>To be added.</remarks><exception cref="T:System.ArgumentOutOfRangeException">The <paramref name="ordinal" /> is less than 0 or greater than the number of columns (that is, <see cref="P:Microsoft.Data.SqlClient.Server.SqlDataRecord.FieldCount" />).</exception>
  1231. </member>
  1232. <member name="M:Microsoft.Data.SqlClient.Server.SqlDataRecord.SetChar(System.Int32,System.Char)">
  1233. <param name="ordinal">The zero-based ordinal of the column.</param><param name="value">The new value of the column.</param><summary>Sets the data stored in the column to the specified <see cref="T:System.Char" /> value.</summary><remarks>To be added.</remarks><exception cref="T:System.ArgumentOutOfRangeException">The <paramref name="ordinal" /> is less than 0 or greater than the number of columns (that is, <see cref="P:Microsoft.Data.SqlClient.Server.SqlDataRecord.FieldCount" />).</exception>
  1234. </member>
  1235. <member name="M:Microsoft.Data.SqlClient.Server.SqlDataRecord.SetChars(System.Int32,System.Int64,System.Char[],System.Int32,System.Int32)">
  1236. <param name="ordinal">The zero-based ordinal of the column.</param><param name="fieldOffset">The offset into the field value to start copying characters.</param><param name="buffer">The target buffer from which to copy chars.</param><param name="bufferOffset">The offset into the buffer from which to start copying chars.</param><param name="length">The number of chars to copy from the buffer.</param><summary>Sets the data stored in the column to the specified array of <see cref="T:System.Char" /> values.</summary><remarks>To be added.</remarks><exception cref="T:System.ArgumentOutOfRangeException">The <paramref name="ordinal" /> is less than 0 or greater than the number of columns (that is, <see cref="P:Microsoft.Data.SqlClient.Server.SqlDataRecord.FieldCount" />).</exception>
  1237. </member>
  1238. <member name="M:Microsoft.Data.SqlClient.Server.SqlDataRecord.SetInt16(System.Int32,System.Int16)">
  1239. <param name="ordinal">The zero-based ordinal of the column.</param><param name="value">The new value of the column.</param><summary>Sets the data stored in the column to the specified <see cref="T:System.Int16" /> value.</summary><remarks>To be added.</remarks><exception cref="T:System.ArgumentOutOfRangeException">The <paramref name="ordinal" /> is less than 0 or greater than the number of columns (that is, <see cref="P:Microsoft.Data.SqlClient.Server.SqlDataRecord.FieldCount" />).</exception>
  1240. </member>
  1241. <member name="M:Microsoft.Data.SqlClient.Server.SqlDataRecord.SetInt32(System.Int32,System.Int32)">
  1242. <param name="ordinal">The zero-based ordinal of the column.</param><param name="value">The new value of the column.</param><summary>Sets the data stored in the column to the specified <see cref="T:System.Int32" /> value.</summary><remarks>To be added.</remarks><exception cref="T:System.ArgumentOutOfRangeException">The <paramref name="ordinal" /> is less than 0 or greater than the number of columns (that is, <see cref="P:Microsoft.Data.SqlClient.Server.SqlDataRecord.FieldCount" />).</exception>
  1243. </member>
  1244. <member name="M:Microsoft.Data.SqlClient.Server.SqlDataRecord.SetInt64(System.Int32,System.Int64)">
  1245. <param name="ordinal">The zero-based ordinal of the column.</param><param name="value">The new value of the column.</param><summary>Sets the data stored in the column to the specified <see cref="T:System.Int64" /> value.</summary><remarks>To be added.</remarks><exception cref="T:System.ArgumentOutOfRangeException">The <paramref name="ordinal" /> is less than 0 or greater than the number of columns (that is, <see cref="P:Microsoft.Data.SqlClient.Server.SqlDataRecord.FieldCount" />).</exception>
  1246. </member>
  1247. <member name="M:Microsoft.Data.SqlClient.Server.SqlDataRecord.SetFloat(System.Int32,System.Single)">
  1248. <param name="ordinal">The zero-based ordinal of the column.</param><param name="value">The new value of the column.</param><summary>Sets the data stored in the column to the specified <see langword="float" /> value.</summary><remarks>To be added.</remarks><exception cref="T:System.ArgumentOutOfRangeException">The <paramref name="ordinal" /> is less than 0 or greater than the number of columns (that is, <see cref="P:Microsoft.Data.SqlClient.Server.SqlDataRecord.FieldCount" />).</exception>
  1249. </member>
  1250. <member name="M:Microsoft.Data.SqlClient.Server.SqlDataRecord.SetDouble(System.Int32,System.Double)">
  1251. <param name="ordinal">The zero-based ordinal of the column.</param><param name="value">The new value of the column.</param><summary>Sets the data stored in the column to the specified <see cref="T:System.Double" /> value.</summary><remarks>To be added.</remarks><exception cref="T:System.ArgumentOutOfRangeException">The <paramref name="ordinal" /> is less than 0 or greater than the number of columns (that is, <see cref="P:Microsoft.Data.SqlClient.Server.SqlDataRecord.FieldCount" />).</exception>
  1252. </member>
  1253. <member name="M:Microsoft.Data.SqlClient.Server.SqlDataRecord.SetString(System.Int32,System.String)">
  1254. <param name="ordinal">The zero-based ordinal of the column.</param><param name="value">The new value of the column.</param><summary>Sets the data stored in the column to the specified <see cref="T:System.String" /> value.</summary><remarks>To be added.</remarks><exception cref="T:System.ArgumentOutOfRangeException">The <paramref name="ordinal" /> is less than 0 or greater than the number of columns (that is, <see cref="P:Microsoft.Data.SqlClient.Server.SqlDataRecord.FieldCount" />).</exception>
  1255. </member>
  1256. <member name="M:Microsoft.Data.SqlClient.Server.SqlDataRecord.SetDecimal(System.Int32,System.Decimal)">
  1257. <param name="ordinal">The zero-based ordinal of the column.</param><param name="value">The new value of the column.</param><summary>Sets the data stored in the column to the specified <see cref="T:System.Decimal" /> value.</summary><remarks>To be added.</remarks><exception cref="T:System.ArgumentOutOfRangeException">The <paramref name="ordinal" /> is less than 0 or greater than the number of columns (that is, <see cref="P:Microsoft.Data.SqlClient.Server.SqlDataRecord.FieldCount" />).</exception>
  1258. </member>
  1259. <member name="M:Microsoft.Data.SqlClient.Server.SqlDataRecord.SetDateTime(System.Int32,System.DateTime)">
  1260. <param name="ordinal">The zero-based ordinal of the column.</param><param name="value">The new value of the column.</param><summary>Sets the data stored in the column to the specified <see cref="T:System.DateTime" /> value.</summary><remarks>To be added.</remarks><exception cref="T:System.ArgumentOutOfRangeException">The <paramref name="ordinal" /> is less than 0 or greater than the number of columns (that is, <see cref="P:Microsoft.Data.SqlClient.Server.SqlDataRecord.FieldCount" />).</exception>
  1261. </member>
  1262. <member name="M:Microsoft.Data.SqlClient.Server.SqlDataRecord.SetTimeSpan(System.Int32,System.TimeSpan)">
  1263. <param name="ordinal">The zero-based ordinal of the column.</param><param name="value">The new value of the column.</param><summary>Sets the value of the column specified to the <see cref="T:System.TimeSpan" />.</summary><remarks>To be added.</remarks><exception cref="T:System.ArgumentOutOfRangeException">The <paramref name="ordinal" /> passed in is a negative number.</exception><exception cref="T:System.ArgumentException">The <see cref="T:System.TimeSpan" /> value passed in is greater than 24 hours in length.</exception>
  1264. </member>
  1265. <member name="M:Microsoft.Data.SqlClient.Server.SqlDataRecord.SetDateTimeOffset(System.Int32,System.DateTimeOffset)">
  1266. <param name="ordinal">The zero-based ordinal of the column.</param><param name="value">The new value of the column.</param><summary>Sets the value of the column specified to the <see cref="T:System.DateTimeOffset" /> value.</summary><remarks>To be added.</remarks>
  1267. </member>
  1268. <member name="M:Microsoft.Data.SqlClient.Server.SqlDataRecord.SetDBNull(System.Int32)">
  1269. <param name="ordinal">The zero-based ordinal of the column.</param><summary>Sets the value in the specified column to <see cref="T:System.DBNull" />.</summary><remarks>To be added.</remarks>
  1270. </member>
  1271. <member name="M:Microsoft.Data.SqlClient.Server.SqlDataRecord.SetGuid(System.Int32,System.Guid)">
  1272. <param name="ordinal">The zero-based ordinal of the column.</param><param name="value">The new value of the column.</param><summary>Sets the data stored in the column to the specified <see cref="T:System.Guid" /> value.</summary><remarks>To be added.</remarks><exception cref="T:System.ArgumentOutOfRangeException">The <paramref name="ordinal" /> is less than 0 or greater than the number of columns (that is, <see cref="P:Microsoft.Data.SqlClient.Server.SqlDataRecord.FieldCount" />).</exception>
  1273. </member>
  1274. <member name="M:Microsoft.Data.SqlClient.Server.SqlDataRecord.SetSqlBoolean(System.Int32,System.Data.SqlTypes.SqlBoolean)">
  1275. <param name="ordinal">The zero-based ordinal of the column.</param><param name="value">The new value of the column.</param><summary>Sets the data stored in the column to the specified <see cref="T:System.Data.SqlTypes.SqlBoolean" /> value.</summary><remarks>To be added.</remarks><exception cref="T:System.ArgumentOutOfRangeException">The <paramref name="ordinal" /> is less than 0 or greater than the number of columns (that is, <see cref="P:Microsoft.Data.SqlClient.Server.SqlDataRecord.FieldCount" />).</exception>
  1276. </member>
  1277. <member name="M:Microsoft.Data.SqlClient.Server.SqlDataRecord.SetSqlByte(System.Int32,System.Data.SqlTypes.SqlByte)">
  1278. <param name="ordinal">The zero-based ordinal of the column.</param><param name="value">The new value of the column.</param><summary>Sets the data stored in the column to the specified <see cref="T:System.Data.SqlTypes.SqlByte" /> value.</summary><remarks>To be added.</remarks><exception cref="T:System.ArgumentOutOfRangeException">The <paramref name="ordinal" /> is less than 0 or greater than the number of columns (that is, <see cref="P:Microsoft.Data.SqlClient.Server.SqlDataRecord.FieldCount" />).</exception>
  1279. </member>
  1280. <member name="M:Microsoft.Data.SqlClient.Server.SqlDataRecord.SetSqlInt16(System.Int32,System.Data.SqlTypes.SqlInt16)">
  1281. <param name="ordinal">The zero-based ordinal of the column.</param><param name="value">The new value of the column.</param><summary>Sets the data stored in the column to the specified <see cref="T:System.Data.SqlTypes.SqlInt16" /> value.</summary><remarks>To be added.</remarks><exception cref="T:System.ArgumentOutOfRangeException">The <paramref name="ordinal" /> is less than 0 or greater than the number of columns (that is, <see cref="P:Microsoft.Data.SqlClient.Server.SqlDataRecord.FieldCount" />).</exception>
  1282. </member>
  1283. <member name="M:Microsoft.Data.SqlClient.Server.SqlDataRecord.SetSqlInt32(System.Int32,System.Data.SqlTypes.SqlInt32)">
  1284. <param name="ordinal">The zero-based ordinal of the column.</param><param name="value">The new value of the column.</param><summary>Sets the data stored in the column to the specified <see cref="T:System.Data.SqlTypes.SqlInt32" /> value.</summary><remarks>To be added.</remarks><exception cref="T:System.ArgumentOutOfRangeException">The <paramref name="ordinal" /> is less than 0 or greater than the number of columns (that is, <see cref="P:Microsoft.Data.SqlClient.Server.SqlDataRecord.FieldCount" />).</exception>
  1285. </member>
  1286. <member name="M:Microsoft.Data.SqlClient.Server.SqlDataRecord.SetSqlInt64(System.Int32,System.Data.SqlTypes.SqlInt64)">
  1287. <param name="ordinal">The zero-based ordinal of the column.</param><param name="value">The new value of the column.</param><summary>Sets the data stored in the column to the specified <see cref="T:System.Data.SqlTypes.SqlInt64" /> value.</summary><remarks>To be added.</remarks><exception cref="T:System.ArgumentOutOfRangeException">The <paramref name="ordinal" /> is less than 0 or greater than the number of columns (that is, <see cref="P:Microsoft.Data.SqlClient.Server.SqlDataRecord.FieldCount" />).</exception>
  1288. </member>
  1289. <member name="M:Microsoft.Data.SqlClient.Server.SqlDataRecord.SetSqlSingle(System.Int32,System.Data.SqlTypes.SqlSingle)">
  1290. <param name="ordinal">The zero-based ordinal of the column.</param><param name="value">The new value of the column.</param><summary>Sets the data stored in the column to the specified <see cref="T:System.Data.SqlTypes.SqlSingle" /> value.</summary><remarks>To be added.</remarks><exception cref="T:System.ArgumentOutOfRangeException">The <paramref name="ordinal" /> is less than 0 or greater than the number of columns (that is, <see cref="P:Microsoft.Data.SqlClient.Server.SqlDataRecord.FieldCount" />).</exception>
  1291. </member>
  1292. <member name="M:Microsoft.Data.SqlClient.Server.SqlDataRecord.SetSqlDouble(System.Int32,System.Data.SqlTypes.SqlDouble)">
  1293. <param name="ordinal">The zero-based ordinal of the column.</param><param name="value">The new value of the column.</param><summary>Sets the data stored in the column to the specified <see cref="T:System.Data.SqlTypes.SqlDouble" /> value.</summary><remarks>To be added.</remarks><exception cref="T:System.ArgumentOutOfRangeException">The <paramref name="ordinal" /> is less than 0 or greater than the number of columns (that is, <see cref="P:Microsoft.Data.SqlClient.Server.SqlDataRecord.FieldCount" />).</exception>
  1294. </member>
  1295. <member name="M:Microsoft.Data.SqlClient.Server.SqlDataRecord.SetSqlMoney(System.Int32,System.Data.SqlTypes.SqlMoney)">
  1296. <param name="ordinal">The zero-based ordinal of the column.</param><param name="value">The new value of the column.</param><summary>Sets the data stored in the column to the specified <see cref="T:System.Data.SqlTypes.SqlMoney" /> value.</summary><remarks>To be added.</remarks><exception cref="T:System.ArgumentOutOfRangeException">The <paramref name="ordinal" /> is less than 0 or greater than the number of columns (that is, <see cref="P:Microsoft.Data.SqlClient.Server.SqlDataRecord.FieldCount" />).</exception>
  1297. </member>
  1298. <member name="M:Microsoft.Data.SqlClient.Server.SqlDataRecord.SetSqlDateTime(System.Int32,System.Data.SqlTypes.SqlDateTime)">
  1299. <param name="ordinal">The zero-based ordinal of the column.</param><param name="value">The new value of the column.</param><summary>Sets the data stored in the column to the specified <see cref="T:System.Data.SqlTypes.SqlDateTime" /> value.</summary><remarks>To be added.</remarks><exception cref="T:System.ArgumentOutOfRangeException">The <paramref name="ordinal" /> is less than 0 or greater than the number of columns (that is, <see cref="P:Microsoft.Data.SqlClient.Server.SqlDataRecord.FieldCount" />).</exception>
  1300. </member>
  1301. <member name="M:Microsoft.Data.SqlClient.Server.SqlDataRecord.SetSqlXml(System.Int32,System.Data.SqlTypes.SqlXml)">
  1302. <param name="ordinal">The zero-based ordinal of the column.</param><param name="value">The new value of the column.</param><summary>Sets the data stored in the column to the specified <see cref="T:System.Data.SqlTypes.SqlXml" /> value.</summary><remarks>To be added.</remarks><exception cref="T:System.ArgumentOutOfRangeException">The <paramref name="ordinal" /> is less than 0 or greater than the number of columns (that is, <see cref="P:Microsoft.Data.SqlClient.Server.SqlDataRecord.FieldCount" />).</exception>
  1303. </member>
  1304. <member name="M:Microsoft.Data.SqlClient.Server.SqlDataRecord.SetSqlDecimal(System.Int32,System.Data.SqlTypes.SqlDecimal)">
  1305. <param name="ordinal">The zero-based ordinal of the column.</param><param name="value">The new value of the column.</param><summary>Sets the data stored in the column to the specified <see cref="T:System.Data.SqlTypes.SqlDecimal" /> value.</summary><remarks>To be added.</remarks><exception cref="T:System.ArgumentOutOfRangeException">The <paramref name="ordinal" /> is less than 0 or greater than the number of columns (that is, <see cref="P:Microsoft.Data.SqlClient.Server.SqlDataRecord.FieldCount" />).</exception>
  1306. </member>
  1307. <member name="M:Microsoft.Data.SqlClient.Server.SqlDataRecord.SetSqlString(System.Int32,System.Data.SqlTypes.SqlString)">
  1308. <param name="ordinal">The zero-based ordinal of the column.</param><param name="value">The new value of the column.</param><summary>Sets the data stored in the column to the specified <see cref="T:System.Data.SqlTypes.SqlString" /> value.</summary><remarks>To be added.</remarks><exception cref="T:System.ArgumentOutOfRangeException">The <paramref name="ordinal" /> is less than 0 or greater than the number of columns (that is, <see cref="P:Microsoft.Data.SqlClient.Server.SqlDataRecord.FieldCount" />).</exception>
  1309. </member>
  1310. <member name="M:Microsoft.Data.SqlClient.Server.SqlDataRecord.SetSqlBinary(System.Int32,System.Data.SqlTypes.SqlBinary)">
  1311. <param name="ordinal">The zero-based ordinal of the column.</param><param name="value">The new value of the column.</param><summary>Sets the data stored in the column to the specified <see cref="T:System.Data.SqlTypes.SqlBinary" /> value.</summary><remarks>To be added.</remarks><exception cref="T:System.ArgumentOutOfRangeException">The <paramref name="ordinal" /> is less than 0 or greater than the number of columns (that is, <see cref="P:Microsoft.Data.SqlClient.Server.SqlDataRecord.FieldCount" />).</exception>
  1312. </member>
  1313. <member name="M:Microsoft.Data.SqlClient.Server.SqlDataRecord.SetSqlGuid(System.Int32,System.Data.SqlTypes.SqlGuid)">
  1314. <param name="ordinal">The zero-based ordinal of the column.</param><param name="value">The new value of the column.</param><summary>Sets the data stored in the column to the specified <see cref="T:System.Data.SqlTypes.SqlGuid" /> value.</summary><remarks>To be added.</remarks><exception cref="T:System.ArgumentOutOfRangeException">The <paramref name="ordinal" /> is less than 0 or greater than the number of columns (that is, <see cref="P:Microsoft.Data.SqlClient.Server.SqlDataRecord.FieldCount" />).</exception>
  1315. </member>
  1316. <member name="M:Microsoft.Data.SqlClient.Server.SqlDataRecord.SetSqlChars(System.Int32,System.Data.SqlTypes.SqlChars)">
  1317. <param name="ordinal">The zero-based ordinal of the column.</param><param name="value">The new value of the column.</param><summary>Sets the data stored in the column to the specified <see cref="T:System.Data.SqlTypes.SqlChars" /> value.</summary><remarks>To be added.</remarks><exception cref="T:System.ArgumentOutOfRangeException">The <paramref name="ordinal" /> is less than 0 or greater than the number of columns (that is, <see cref="P:Microsoft.Data.SqlClient.Server.SqlDataRecord.FieldCount" />).</exception>
  1318. </member>
  1319. <member name="M:Microsoft.Data.SqlClient.Server.SqlDataRecord.SetSqlBytes(System.Int32,System.Data.SqlTypes.SqlBytes)">
  1320. <param name="ordinal">The zero-based ordinal of the column.</param><param name="value">The new value of the column.</param><summary>Sets the data stored in the column to the specified <see cref="T:System.Data.SqlTypes.SqlBytes" /> value.</summary><remarks>To be added.</remarks><exception cref="T:System.ArgumentOutOfRangeException">The <paramref name="ordinal" /> is less than 0 or greater than the number of columns (that is, <see cref="P:Microsoft.Data.SqlClient.Server.SqlDataRecord.FieldCount" />).</exception>
  1321. </member>
  1322. <member name="M:Microsoft.Data.SqlClient.Server.SqlDataRecord.#ctor(Microsoft.Data.SqlClient.Server.SqlMetaData[])">
  1323. <param name="metaData">An array of <see cref="T:Microsoft.Data.SqlClient.Server.SqlMetaData" /> objects that describe each column in the <see cref="T:Microsoft.Data.SqlClient.Server.SqlDataRecord" />.</param><summary>Inititializes a new <see cref="T:Microsoft.Data.SqlClient.Server.SqlDataRecord" /> instance with the schema based on the array of <see cref="T:Microsoft.Data.SqlClient.Server.SqlMetaData" /> objects passed as an argument.</summary><remarks>
  1324. <format type="text/markdown"><![CDATA[
  1325. ## Examples
  1326. The following example shows how to create a new <xref:Microsoft.Data.SqlClient.Server.SqlDataRecord> object from two <xref:Microsoft.Data.SqlClient.Server.SqlMetaData> objects, which indicate the column name and data type.
  1327. [!code-csharp[SqlDataRecord Samples#2](~/../sqlclient/doc/samples/SqlDataRecord.cs#2)]
  1328. ]]></format>
  1329. </remarks><exception cref="T:System.ArgumentNullException">The <paramref name="metaData" /> is <see langword="null" />.</exception>
  1330. </member>
  1331. <member name="M:Microsoft.Data.SqlClient.Server.SqlDataRecord.System#Data#IDataRecord#GetData(System.Int32)">
  1332. <param name="ordinal">The zero-based ordinal of the column.</param><summary>Not supported in this release.</summary><returns>
  1333. <see cref="T:System.Data.IDataReader" />
  1334. Always throws an exception.</returns><remarks>
  1335. <format type="text/markdown"><![CDATA[
  1336. ## Remarks
  1337. This method is not supported in this release, and throws <xref:System.NotSupportedException> if called.
  1338. ]]></format>
  1339. </remarks><exception cref="T:System.ArgumentOutOfRangeException">The <paramref name="ordinal" /> is less than 0 or greater than the number of columns (that is, <see cref="P:Microsoft.Data.SqlClient.Server.SqlDataRecord.FieldCount" />).</exception>
  1340. </member>
  1341. <member name="T:Microsoft.Data.SqlClient.Server.IBinarySerialize">
  1342. <summary>Provides custom implementation for user-defined type (UDT) and user-defined aggregate serialization and deserialization.</summary><remarks>
  1343. <format type="text/markdown"><![CDATA[
  1344. ## Remarks
  1345. User-defined types (UDTs) and user-defined aggregates are required to define a storage format, which can be either <xref:Microsoft.Data.SqlClient.Server.Format>.`Native` or <xref:Microsoft.Data.SqlClient.Server.Format>.`UserDefined`.
  1346. <xref:Microsoft.Data.SqlClient.Server.Format>.`Native` allows SQL Server to handle serialization and deserialization automatically, but the format has restrictions on the kind of types it can handle. <xref:Microsoft.Data.SqlClient.Server.Format>.`UserDefined` allows user-defined types and aggregates to handle their own serialization. User-defined types and aggregates must be marked with <xref:Microsoft.Data.SqlClient.Server.Format>.`UserDefined` in the `SqlUserDefinedType` or `SqlUserDefinedAggregate` attribute, and must implement the <xref:Microsoft.Data.SqlClient.Server.IBinarySerialize> interface.
  1347. Note that even with custom serialization, the total size of each instance must be under the maximum allowed limit, currently 8000 bytes.
  1348. ]]></format>
  1349. </remarks>
  1350. </member>
  1351. <member name="M:Microsoft.Data.SqlClient.Server.IBinarySerialize.Read(System.IO.BinaryReader)">
  1352. <param name="r">The <see cref="T:System.IO.BinaryReader" /> stream from which the object is deserialized.</param><summary>Generates a user-defined type (UDT) or user-defined aggregate from its binary form.</summary><remarks>
  1353. <format type="text/markdown"><![CDATA[
  1354. ## Remarks
  1355. The <xref:Microsoft.Data.SqlClient.Server.IBinarySerialize.Read%2A> method must reconstitute your object using the information written by the <xref:Microsoft.Data.SqlClient.Server.IBinarySerialize.Write%2A> method.
  1356. ## Examples
  1357. The following example shows the implementation of the <xref:Microsoft.Data.SqlClient.Server.IBinarySerialize.Read%2A> method of a UDT, which uses a <xref:System.IO.BinaryReader> to de-serialize a previously persisted UDT. This example assumes that the UDT has two data properties: `StringValue` and `DoubleValue`.
  1358. [!code-csharp[IBinarySerialize Samples#1](~/../sqlclient/doc/samples/IBinarySerialize.cs#1)]
  1359. ]]></format>
  1360. </remarks>
  1361. </member>
  1362. <member name="M:Microsoft.Data.SqlClient.Server.IBinarySerialize.Write(System.IO.BinaryWriter)">
  1363. <param name="w">The <see cref="T:System.IO.BinaryWriter" /> stream to which the UDT or user-defined aggregate is serialized.</param><summary>Converts a user-defined type (UDT) or user-defined aggregate into its binary format so that it may be persisted.</summary><remarks>
  1364. <format type="text/markdown"><![CDATA[
  1365. ## Remarks
  1366. Write sufficient information to the binary stream to allow the <xref:Microsoft.Data.SqlClient.Server.IBinarySerialize.Read%2A> method to reconstitute your UDT or user-defined aggregate.
  1367. ## Examples
  1368. The following example shows the implementation of the <xref:Microsoft.Data.SqlClient.Server.IBinarySerialize.Write%2A> method of a UDT, which uses a <xref:System.IO.BinaryWriter> to serialize the UDT in the user-defined binary format. The purpose of the null character padding is to ensure that the string value is completely separated from the double value, so that one UDT is compared to another in Transact-SQL code, string bytes are compared to string bytes and double bytes are compared to double bytes.
  1369. [!code-csharp[IBinarySerialize Samples#2](~/../sqlclient/doc/samples/IBinarySerialize.cs#2)]
  1370. ]]></format>
  1371. </remarks>
  1372. </member>
  1373. <member name="T:Microsoft.Data.SqlClient.Server.InvalidUdtException">
  1374. <summary>Thrown when SQL Server or the ADO.NET <see cref="N:Microsoft.Data.SqlClient" /> provider detects an invalid user-defined type (UDT).</summary><remarks>To be added.</remarks>
  1375. </member>
  1376. <member name="M:Microsoft.Data.SqlClient.Server.InvalidUdtException.GetObjectData(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext)">
  1377. <param name="si">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> object.</param><param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> object.</param><summary>Streams all the <see cref="T:Microsoft.Data.SqlClient.Server.InvalidUdtException" /> properties into the <see cref="T:System.Runtime.Serialization.SerializationInfo" /> class for the given <see cref="T:System.Runtime.Serialization.StreamingContext" />.</summary><remarks>
  1378. <format type="text/markdown"><![CDATA[
  1379. ## Remarks
  1380. This method is present in the <xref:Microsoft.Data.SqlClient.Server.InvalidUdtException> class to make the class serializable.
  1381. ]]></format>
  1382. </remarks>
  1383. </member>
  1384. <member name="T:Microsoft.Data.SqlClient.Server.DataAccessKind">
  1385. <summary>Describes the type of access to user data for a user-defined method or function.</summary><remarks>
  1386. <format type="text/markdown"><![CDATA[
  1387. ## Remarks
  1388. Describes the type of access to user data for a user-defined method or function.
  1389. This enumeration is used in <xref:Microsoft.Data.SqlClient.Server.SqlMethodAttribute> and <xref:Microsoft.Data.SqlClient.Server.SqlFunctionAttribute> to indicate whether the method or function uses ADO.NET to connect back to the database using the "context connection."
  1390. Note that methods and functions are not allowed to make changes to the database, so the options for this enumeration are `None` (meaning no data-access performed by the method or function) and `Read` (meaning that the method or function perform read-only data-access operations, such as executing SELECT statements).
  1391. ]]></format>
  1392. </remarks>
  1393. </member>
  1394. <member name="F:Microsoft.Data.SqlClient.Server.DataAccessKind.None">
  1395. <summary>The method or function does not access user data.</summary>
  1396. </member>
  1397. <member name="F:Microsoft.Data.SqlClient.Server.DataAccessKind.Read">
  1398. <summary>The method or function reads user data.</summary>
  1399. </member>
  1400. <member name="T:Microsoft.Data.SqlClient.Server.SystemDataAccessKind">
  1401. <summary>Describes the type of access to system data for a user-defined method or function.</summary><remarks>
  1402. <format type="text/markdown"><![CDATA[
  1403. ## Remarks
  1404. Describes the type of access to system data for a user-defined method or function.
  1405. This enumeration is used in <xref:Microsoft.Data.SqlClient.Server.SqlMethodAttribute> and <xref:Microsoft.Data.SqlClient.Server.SqlFunctionAttribute> to indicate what type of access to system data the method or function has.
  1406. Note that methods and functions are not allowed to make changes to the database, so the options for this enumeration are `None` (meaning no data-access performed by the method or function) and `Read` (meaning that the method or function performs read-only data-access operations, such as executing SELECT statements).
  1407. ]]></format>
  1408. </remarks>
  1409. </member>
  1410. <member name="F:Microsoft.Data.SqlClient.Server.SystemDataAccessKind.None">
  1411. <summary>The method or function does not access system data.</summary>
  1412. </member>
  1413. <member name="F:Microsoft.Data.SqlClient.Server.SystemDataAccessKind.Read">
  1414. <summary>The method or function reads system data.</summary>
  1415. </member>
  1416. <member name="T:Microsoft.Data.SqlClient.Server.SqlFunctionAttribute">
  1417. <summary>Used to mark a method definition of a user-defined aggregate as a function in SQL Server. The properties on the attribute reflect the physical characteristics used when the type is registered with SQL Server.</summary><remarks>
  1418. <format type="text/markdown"><![CDATA[
  1419. ## Examples
  1420. The following example shows an aggregate function that returns a list of files in the specified directory path.
  1421. [!code-csharp[SqlFunctionAttribute Sample#1](~/../sqlclient/doc/samples/SqlFunctionAttribute.cs#1)]
  1422. ]]></format>
  1423. </remarks>
  1424. </member>
  1425. <member name="M:Microsoft.Data.SqlClient.Server.SqlFunctionAttribute.#ctor">
  1426. <summary>An optional attribute on a user-defined aggregate, used to indicate that the method should be registered in SQL Server as a function. Also used to set the <see cref="P:Microsoft.Data.SqlClient.Server.SqlFunctionAttribute.DataAccess" />, <see cref="P:Microsoft.Data.SqlClient.Server.SqlFunctionAttribute.FillRowMethodName" />, <see cref="P:Microsoft.Data.SqlClient.Server.SqlFunctionAttribute.IsDeterministic" />, <see cref="P:Microsoft.Data.SqlClient.Server.SqlFunctionAttribute.IsPrecise" />, <see cref="P:Microsoft.Data.SqlClient.Server.SqlFunctionAttribute.Name" />, <see cref="P:Microsoft.Data.SqlClient.Server.SqlFunctionAttribute.SystemDataAccess" />, and <see cref="P:Microsoft.Data.SqlClient.Server.SqlFunctionAttribute.TableDefinition" /> properties of the function attribute.</summary><remarks>To be added.</remarks>
  1427. </member>
  1428. <member name="P:Microsoft.Data.SqlClient.Server.SqlFunctionAttribute.IsDeterministic">
  1429. <summary>Indicates whether the user-defined function is deterministic.</summary><value>
  1430. <see langword="true" /> if the function is deterministic; otherwise <see langword="false" />.</value><remarks>
  1431. <format type="text/markdown"><![CDATA[
  1432. ## Remarks
  1433. A user-defined function is said to be deterministic if it always produces the same output values given the same input values and the same database state.
  1434. The <xref:Microsoft.Data.SqlClient.Server.SqlFunctionAttribute.IsDeterministic%2A> property is also useful for indexing the result of the function in the form of indexed computed columns and indexed views. If this property is not specified, the function is assumed to be non-deterministic.
  1435. Functions that access local data can be deterministic. The data access characteristic is captured separately by the <xref:Microsoft.Data.SqlClient.Server.SqlFunctionAttribute.DataAccess%2A> and <xref:Microsoft.Data.SqlClient.Server.SqlFunctionAttribute.SystemDataAccess%2A> properties.
  1436. Note that data access to remote servers (for example, using a <xref:Microsoft.Data.SqlClient.SqlConnection> to connect to another SQL Server instance) is available in user-defined functions. However, you must still honor the <xref:Microsoft.Data.SqlClient.Server.SqlFunctionAttribute.IsDeterministic%2A> declaration. If the common language runtime (CLR) function is marked as deterministic, it should not cause side-effects in the remote server. While side-effects against the context connection are restricted, SQL Server will not enforce the restriction for side-effects over remote connections.
  1437. The default value of this attribute is `false`.
  1438. Do not mark a function as deterministic if the function does not always produce the same output values, given the same input values and the same database state. Marking a function as deterministic when the function is not truly deterministic can result in corrupted indexed views and computed columns.
  1439. ]]></format>
  1440. </remarks>
  1441. </member>
  1442. <member name="P:Microsoft.Data.SqlClient.Server.SqlFunctionAttribute.DataAccess">
  1443. <summary>Indicates whether the function involves access to user data stored in the local instance of SQL Server.</summary><value>
  1444. <see cref="T:Microsoft.Data.SqlClient.Server.DataAccessKind" />.<see langword="None" />: Does not access data. <see cref="T:Microsoft.Data.SqlClient.Server.DataAccessKind" />.<see langword="Read" />: Only reads user data.</value><remarks>
  1445. <format type="text/markdown"><![CDATA[
  1446. ## Remarks
  1447. The default is <xref:Microsoft.Data.SqlClient.Server.DataAccessKind.None>.<xref:Microsoft.Data.SqlClient.Server.SqlFunctionAttribute.DataAccess%2A> is also required when connecting to remote servers if transactions integration is required (the default).
  1448. If a Transact-SQL query is executed from inside a table-valued function (TVF), the <xref:Microsoft.Data.SqlClient.Server.DataAccessKind.Read> property should be set.
  1449. ]]></format>
  1450. </remarks>
  1451. </member>
  1452. <member name="P:Microsoft.Data.SqlClient.Server.SqlFunctionAttribute.SystemDataAccess">
  1453. <summary>Indicates whether the function requires access to data stored in the system catalogs or virtual system tables of SQL Server.</summary><value>
  1454. <see cref="T:Microsoft.Data.SqlClient.Server.DataAccessKind" />.<see langword="None" />: Does not access system data. <see cref="T:Microsoft.Data.SqlClient.Server.DataAccessKind" />.<see langword="Read" />: Only reads system data.</value><remarks>
  1455. <format type="text/markdown"><![CDATA[
  1456. ## Remarks
  1457. The default is <xref:Microsoft.Data.SqlClient.Server.SystemDataAccessKind.None>.
  1458. ]]></format>
  1459. </remarks>
  1460. </member>
  1461. <member name="P:Microsoft.Data.SqlClient.Server.SqlFunctionAttribute.IsPrecise">
  1462. <summary>Indicates whether the function involves imprecise computations, such as floating point operations.</summary><value>
  1463. <see langword="true" /> if the function involves precise computations; otherwise <see langword="false" />.</value><remarks>
  1464. <format type="text/markdown"><![CDATA[
  1465. ## Remarks
  1466. Precision of a function is one of the properties used to determine if computed columns that use this function can be indexed.
  1467. The default value of this attribute is `false`.
  1468. ]]></format>
  1469. </remarks>
  1470. </member>
  1471. <member name="P:Microsoft.Data.SqlClient.Server.SqlFunctionAttribute.Name">
  1472. <summary>The name under which the function should be registered in SQL Server.</summary><value>A <see cref="T:System.String" /> value representing the name under which the function should be registered.</value><remarks>
  1473. <format type="text/markdown"><![CDATA[
  1474. ## Remarks
  1475. This attribute is used only by Microsoft Visual Studio to automatically register the specified method as a user-defined function. It is not used by SQL Server.
  1476. Thee following example specifies that the user-defined function is referenced using the name `sp_scalarFunc`.
  1477. ## Examples
  1478. [!code-csharp[SqlFunction#10](~/../sqlclient/doc/samples/SqlFunction.cs#10)]
  1479. ]]></format>
  1480. </remarks>
  1481. </member>
  1482. <member name="P:Microsoft.Data.SqlClient.Server.SqlFunctionAttribute.TableDefinition">
  1483. <summary>A string that represents the table definition of the results, if the method is used as a table-valued function (TVF).</summary><value>A <see cref="T:System.String" /> value representing the table definition of the results.</value><remarks>
  1484. <format type="text/markdown"><![CDATA[
  1485. ## Remarks
  1486. This attribute is used only by Microsoft Visual Studio to automatically register the specified method as a TVF. It is not used by SQL Server.
  1487. The following example specifies that the user-defined function is referenced using the name `sp_tableFunc`. The `TableDefinition` property has the value `letter nchar(1)`.
  1488. ## Examples
  1489. [!code-csharp[SqlFunction#11](~/../sqlclient/doc/samples/SqlFunction.cs#11)]
  1490. ]]></format>
  1491. </remarks>
  1492. </member>
  1493. <member name="P:Microsoft.Data.SqlClient.Server.SqlFunctionAttribute.FillRowMethodName">
  1494. <summary>The name of a method in the same class which is used to fill a row of data in the table returned by the table-valued function.</summary><value>A <see cref="T:System.String" /> value representing the name of a method in the same class which is used to fill a row of data in the table returned by the table-valued function.</value>
  1495. </member>
  1496. <member name="T:Microsoft.Data.SqlClient.Server.SqlMetaData">
  1497. <summary>Specifies and retrieves metadata information from parameters and columns of <see cref="T:Microsoft.Data.SqlClient.Server.SqlDataRecord" /> objects. This class cannot be inherited.</summary><remarks>
  1498. <format type="text/markdown"><![CDATA[
  1499. ## Examples
  1500. The following example shows the creation of several <xref:Microsoft.Data.SqlClient.Server.SqlMetaData> objects, which describe the column metadata of a record, and the creation of a <xref:Microsoft.Data.SqlClient.Server.SqlDataRecord>. The column values of the <xref:Microsoft.Data.SqlClient.Server.SqlDataRecord> are set and the <xref:Microsoft.Data.SqlClient.Server.SqlDataRecord> is sent to the calling program using the <xref:Microsoft.SqlServer.Server.SqlContext> class.
  1501. [!code-csharp[SqlMetaData Samples#1](~/../sqlclient/doc/samples/SqlMetaData.cs#1)]
  1502. ]]></format>
  1503. </remarks>
  1504. </member>
  1505. <member name="M:Microsoft.Data.SqlClient.Server.SqlMetaData.#ctor(System.String,System.Data.SqlDbType)">
  1506. <param name="name">The name of the column.</param><param name="dbType">The SQL Server type of the parameter or column.</param><summary>Initializes a new instance of the <see cref="T:Microsoft.Data.SqlClient.Server.SqlMetaData" /> class with the specified column name and type.</summary><remarks>
  1507. <format type="text/markdown"><![CDATA[
  1508. ## Remarks
  1509. Only the following are allowed to be passed to the constructor as `dbType`: `Bit`, `BigInt`, `DateTime`, `Decimal`, `Float`, `Int`, `Money`, `Numeric`, `SmallDateTime`, `SmallInt`, `SmallMoney`, `TimeStamp`, `TinyInt`, `UniqueIdentifier`, `Xml`.
  1510. The following are the default values assigned to `dbType`, depending on the `SqlDbType` (the <xref:Microsoft.Data.SqlClient.Server.SqlMetaData.XmlSchemaCollectionDatabase%2A>, <xref:Microsoft.Data.SqlClient.Server.SqlMetaData.XmlSchemaCollectionName%2A>, <xref:Microsoft.Data.SqlClient.Server.SqlMetaData.XmlSchemaCollectionOwningSchema%2A>, and <xref:Microsoft.Data.SqlClient.Server.SqlMetaData.Type%2A> properties are set to `null`):
  1511. |SqlDbType|Maximum length|Precision|Scale|Locale|Compare options|
  1512. |---------------|--------------------|---------------|-----------|------------|---------------------|
  1513. |`Bit`|1|1|0|0|None|
  1514. |`BigInt`|8|19|0|0|None|
  1515. |`DateTime`|8|23|3|0|None|
  1516. |`Decimal`|9|18|0|0|None|
  1517. |`Float`|8|53|0|0|None|
  1518. |`Int`|4|10|0|0|None|
  1519. |`Money`|8|19|4|0|None|
  1520. |`Numeric`|9|18|0|0|None|
  1521. |`SmallDateTime`|4|16|0|0|None|
  1522. |`SmallInt`|2|5|0|0|None|
  1523. |`SmallMoney`|4|10|4|0|None|
  1524. |`TimeStamp`|8|0|0|0|None|
  1525. |`TinyInt`|1|3|0|0|None|
  1526. |`UniqueIdentifier`|16|0|0|0|None|
  1527. |`Xml`|Max (-1)|0|0|0|IgnoreCase, IgnoreKanaType, IgnoreWidth|
  1528. ## Examples
  1529. The following example creates a new <xref:Microsoft.Data.SqlClient.Server.SqlMetaData> object by specifying the column name and a column data type of <xref:System.Data.SqlDbType>.`Int`.
  1530. [!code-csharp[SqlMetaData Samples#3](~/../sqlclient/doc/samples/SqlMetaData.cs#3)]
  1531. ]]></format>
  1532. </remarks><exception cref="T:System.ArgumentNullException">The <paramref name="name" /> is <see langword="null" />.</exception><exception cref="T:System.ArgumentException">A <see langword="SqlDbType" /> that is not allowed was passed to the constructor as <paramref name="dbType" />.</exception>
  1533. </member>
  1534. <member name="M:Microsoft.Data.SqlClient.Server.SqlMetaData.#ctor(System.String,System.Data.SqlDbType,System.Boolean,System.Boolean,Microsoft.Data.SqlClient.SortOrder,System.Int32)">
  1535. <param name="name">The name of the column.</param><param name="dbType">The SQL Server type of the parameter or column.</param><param name="useServerDefault">Specifies whether this column should use the default server value.</param><param name="isUniqueKey">Specifies if the column in the table-valued parameter is unique.</param><param name="columnSortOrder">Specifies the sort order for a column.</param><param name="sortOrdinal">Specifies the ordinal of the sort column.</param><summary>Initializes a new instance of the <see cref="T:Microsoft.Data.SqlClient.Server.SqlMetaData" /> class with the specified column name, and default server. This form of the constructor supports table-valued parameters by allowing you to specify if the column is unique in the table-valued parameter, the sort order for the column, and the ordinal of the sort column.</summary><remarks>
  1536. <format type="text/markdown"><![CDATA[
  1537. ## Remarks
  1538. For more information, see [Table-Valued Parameters](~/docs/framework/data/adonet/sql/table-valued-parameters.md).
  1539. ]]></format>
  1540. </remarks>
  1541. </member>
  1542. <member name="M:Microsoft.Data.SqlClient.Server.SqlMetaData.#ctor(System.String,System.Data.SqlDbType,System.Int64)">
  1543. <param name="name">The name of the column.</param><param name="dbType">The SQL Server type of the parameter or column.</param><param name="maxLength">The maximum length of the specified type.</param><summary>Initializes a new instance of the <see cref="T:Microsoft.Data.SqlClient.Server.SqlMetaData" /> class with the specified column name, type, and maximum length.</summary><remarks>
  1544. <format type="text/markdown"><![CDATA[
  1545. ## Remarks
  1546. Only the following are allowed to be passed to the constructor as `dbType`: `Binary`, `Char`, `Image`, `NChar`, `Ntext`, `NVarChar`, `Text`, `VarBinary`, `VarChar`.
  1547. Only a `maxLength` specification of <xref:Microsoft.Data.SqlClient.Server.SqlMetaData.Max%2A>, or -1 is allowed for a `dbType` of `Text`, `NText`, or `Image`.
  1548. For a `dbType` of `Varchar`, `Nvarchar`, or `VarBinary`, a length specification of <xref:Microsoft.Data.SqlClient.Server.SqlMetaData.Max%2A>, or -1, declares the metadata as varchar(max), nvarchar(max), or nvarbinary(max), respectively.
  1549. The following are the default values assigned to `dbType`, depending on the `SqlDbType` (the <xref:Microsoft.Data.SqlClient.Server.SqlMetaData.XmlSchemaCollectionDatabase%2A>, <xref:Microsoft.Data.SqlClient.Server.SqlMetaData.XmlSchemaCollectionName%2A>, <xref:Microsoft.Data.SqlClient.Server.SqlMetaData.XmlSchemaCollectionOwningSchema%2A>, and <xref:Microsoft.Data.SqlClient.Server.SqlMetaData.Type%2A> properties are set to `null`):
  1550. |SqlDbType|Precision|Scale|Locale|Compare options|
  1551. |---------------|---------------|-----------|------------|---------------------|
  1552. |Binary|0|0|0|IgnoreCase, IgnoreKanaType, IgnoreWidth|
  1553. |Char|0|0|\<thread>|IgnoreCase, IgnoreKanaType, IgnoreWidth|
  1554. |Image|0|0|0|None|
  1555. |NChar|0|0|\<thread>|IgnoreCase, IgnoreKanaType, IgnoreWidth|
  1556. |NText|0|0|\<thread>|IgnoreCase, IgnoreKanaType, IgnoreWidth|
  1557. |NVarChar|0|0|\<thread>|IgnoreCase, IgnoreKanaType, IgnoreWidth|
  1558. |Text|0|0|\<thread>|IgnoreCase, IgnoreKanaType, IgnoreWidth|
  1559. |VarBinary|0|0||IgnoreCase, IgnoreKanaType, IgnoreWidth|
  1560. |VarChar|0|0|\<thread>|IgnoreCase, IgnoreKanaType, IgnoreWidth|
  1561. ## Examples
  1562. The following example creates a new <xref:Microsoft.Data.SqlClient.Server.SqlMetaData> object by specifying the column name, a column data type of <xref:System.Data.SqlDbType>`.NVarChar`, and a maximum length of 12 characters.
  1563. [!code-csharp[SqlMetaData Samples#2](~/../sqlclient/doc/samples/SqlMetaData.cs#2)]
  1564. ]]></format>
  1565. </remarks><exception cref="T:System.ArgumentNullException">The <paramref name="name" /> is <see langword="null" />.</exception><exception cref="T:System.ArgumentException">A SqlDbType that is not allowed was passed to the constructor as <paramref name="dbType" />.</exception>
  1566. </member>
  1567. <member name="M:Microsoft.Data.SqlClient.Server.SqlMetaData.#ctor(System.String,System.Data.SqlDbType,System.Int64,System.Boolean,System.Boolean,Microsoft.Data.SqlClient.SortOrder,System.Int32)">
  1568. <param name="name">The name of the column.</param><param name="dbType">The SQL Server type of the parameter or column.</param><param name="maxLength">The maximum length of the specified type.</param><param name="useServerDefault">Specifies whether this column should use the default server value.</param><param name="isUniqueKey">Specifies if the column in the table-valued parameter is unique.</param><param name="columnSortOrder">Specifies the sort order for a column.</param><param name="sortOrdinal">Specifies the ordinal of the sort column.</param><summary>Initializes a new instance of the <see cref="T:Microsoft.Data.SqlClient.Server.SqlMetaData" /> class with the specified column name, type, maximum length, and server default. This form of the constructor supports table-valued parameters by allowing you to specify if the column is unique in the table-valued parameter, the sort order for the column, and the ordinal of the sort column.</summary><remarks>
  1569. <format type="text/markdown"><![CDATA[
  1570. ## Remarks
  1571. For more information, see [Table-Valued Parameters](~/docs/framework/data/adonet/sql/table-valued-parameters.md).
  1572. ]]></format>
  1573. </remarks>
  1574. </member>
  1575. <member name="M:Microsoft.Data.SqlClient.Server.SqlMetaData.#ctor(System.String,System.Data.SqlDbType,System.Type)">
  1576. <param name="name">The name of the column.</param><param name="dbType">The SQL Server type of the parameter or column.</param><param name="userDefinedType">A <see cref="T:System.Type" /> instance that points to the UDT.</param><summary>Initializes a new instance of the <see cref="T:Microsoft.Data.SqlClient.Server.SqlMetaData" /> class with the specified column name, type, and user-defined type (UDT).</summary><remarks>
  1577. <format type="text/markdown"><![CDATA[
  1578. ## Remarks
  1579. Only the following `SqlDbType` is allowed to be passed to the constructor as `dbType`: `UDT`.
  1580. The following are the default values assigned to `dbType`, depending on the `SqlDbType` (the <xref:Microsoft.Data.SqlClient.Server.SqlMetaData.XmlSchemaCollectionDatabase%2A>, <xref:Microsoft.Data.SqlClient.Server.SqlMetaData.XmlSchemaCollectionName%2A>, <xref:Microsoft.Data.SqlClient.Server.SqlMetaData.XmlSchemaCollectionOwningSchema%2A>, and <xref:Microsoft.Data.SqlClient.Server.SqlMetaData.Type%2A> properties are set to `null`):
  1581. |SqlDbType|Maximum length|Precision|Scale|Locale|Compare options|
  1582. |---------------|--------------------|---------------|-----------|------------|---------------------|
  1583. |UDT|\<Max length of the type> or -1|0|0|0|None|
  1584. ]]></format>
  1585. </remarks><exception cref="T:System.ArgumentNullException">The <paramref name="name" /> is <see langword="null" />.</exception><exception cref="T:System.ArgumentException">A SqlDbType that is not allowed was passed to the constructor as <paramref name="dbType" />, or <paramref name="userDefinedType" /> points to a type that does not have <see cref="T:Microsoft.Data.SqlClient.Server.SqlUserDefinedTypeAttribute" /> declared.</exception>
  1586. </member>
  1587. <member name="M:Microsoft.Data.SqlClient.Server.SqlMetaData.#ctor(System.String,System.Data.SqlDbType,System.Type,System.String)">
  1588. <param name="name">The name of the column.</param><param name="dbType">The SQL Server type of the parameter or column.</param><param name="userDefinedType">A <see cref="T:System.Type" /> instance that points to the UDT.</param><param name="serverTypeName">The SQL Server type name for <paramref name="userDefinedType" />.</param><summary>Initializes a new instance of the <see cref="T:Microsoft.Data.SqlClient.Server.SqlMetaData" /> class with the specified column name, user-defined type (UDT), and SQLServer type.</summary>
  1589. </member>
  1590. <member name="M:Microsoft.Data.SqlClient.Server.SqlMetaData.#ctor(System.String,System.Data.SqlDbType,System.Type,System.String,System.Boolean,System.Boolean,Microsoft.Data.SqlClient.SortOrder,System.Int32)">
  1591. <param name="name">The name of the column.</param><param name="dbType">The SQL Server type of the parameter or column.</param><param name="userDefinedType">A <see cref="T:System.Type" /> instance that points to the UDT.</param><param name="serverTypeName">The SQL Server type name for <paramref name="userDefinedType" />.</param><param name="useServerDefault">Specifies whether this column should use the default server value.</param><param name="isUniqueKey">Specifies if the column in the table-valued parameter is unique.</param><param name="columnSortOrder">Specifies the sort order for a column.</param><param name="sortOrdinal">Specifies the ordinal of the sort column.</param><summary>Initializes a new instance of the <see cref="T:Microsoft.Data.SqlClient.Server.SqlMetaData" /> class with the specified column name, type, user-defined type, SQL Server type, and server default. This form of the constructor supports table-valued parameters by allowing you to specify if the column is unique in the table-valued parameter, the sort order for the column, and the ordinal of the sort column.</summary><remarks>
  1592. <format type="text/markdown"><![CDATA[
  1593. ## Remarks
  1594. For more information, see [Table-Valued Parameters](~/docs/framework/data/adonet/sql/table-valued-parameters.md).
  1595. ]]></format>
  1596. </remarks>
  1597. </member>
  1598. <member name="M:Microsoft.Data.SqlClient.Server.SqlMetaData.#ctor(System.String,System.Data.SqlDbType,System.Byte,System.Byte)">
  1599. <param name="name">The name of the parameter or column.</param><param name="dbType">The SQL Server type of the parameter or column.</param><param name="precision">The precision of the parameter or column.</param><param name="scale">The scale of the parameter or column.</param><summary>Initializes a new instance of the <see cref="T:Microsoft.Data.SqlClient.Server.SqlMetaData" /> class with the specified column name, type, precision, and scale.</summary><remarks>
  1600. <format type="text/markdown"><![CDATA[
  1601. ## Remarks
  1602. Only the following `SqlDbType` is allowed to be passed to the constructor as `dbType`: `Decimal`.
  1603. The following are the default values assigned to `dbType`, depending on the `SqlDbType` (the <xref:Microsoft.Data.SqlClient.Server.SqlMetaData.XmlSchemaCollectionDatabase%2A>, <xref:Microsoft.Data.SqlClient.Server.SqlMetaData.XmlSchemaCollectionName%2A>, <xref:Microsoft.Data.SqlClient.Server.SqlMetaData.XmlSchemaCollectionOwningSchema%2A>, and <xref:Microsoft.Data.SqlClient.Server.SqlMetaData.Type%2A> properties are set to `null`):
  1604. |SqlDbType|Maximum length|Precision|Scale|Locale|Compare options|
  1605. |---------------|--------------------|---------------|-----------|------------|---------------------|
  1606. |Decimal|9|18|0|0|None|
  1607. ]]></format>
  1608. </remarks><exception cref="T:System.ArgumentNullException">The <paramref name="name" /> is <see langword="null" />.</exception><exception cref="T:System.ArgumentException">A <see langword="SqlDbType" /> that is not allowed was passed to the constructor as <paramref name="dbType" />, or <paramref name="scale" /> was greater than <paramref name="precision" />.</exception>
  1609. </member>
  1610. <member name="M:Microsoft.Data.SqlClient.Server.SqlMetaData.#ctor(System.String,System.Data.SqlDbType,System.Byte,System.Byte,System.Boolean,System.Boolean,Microsoft.Data.SqlClient.SortOrder,System.Int32)">
  1611. <param name="name">The name of the column.</param><param name="dbType">The SQL Server type of the parameter or column.</param><param name="precision">The precision of the parameter or column.</param><param name="scale">The scale of the parameter or column.</param><param name="useServerDefault">Specifies whether this column should use the default server value.</param><param name="isUniqueKey">Specifies if the column in the table-valued parameter is unique.</param><param name="columnSortOrder">Specifies the sort order for a column.</param><param name="sortOrdinal">Specifies the ordinal of the sort column.</param><summary>Initializes a new instance of the <see cref="T:Microsoft.Data.SqlClient.Server.SqlMetaData" /> class with the specified column name, type, precision, scale, and server default. This form of the constructor supports table-valued parameters by allowing you to specify if the column is unique in the table-valued parameter, the sort order for the column, and the ordinal of the sort column.</summary><remarks>
  1612. <format type="text/markdown"><![CDATA[
  1613. ## Remarks
  1614. For more information, see [Table-Valued Parameters](~/docs/framework/data/adonet/sql/table-valued-parameters.md).
  1615. ]]></format>
  1616. </remarks>
  1617. </member>
  1618. <member name="M:Microsoft.Data.SqlClient.Server.SqlMetaData.#ctor(System.String,System.Data.SqlDbType,System.Int64,System.Int64,System.Data.SqlTypes.SqlCompareOptions)">
  1619. <param name="name">The name of the parameter or column.</param><param name="dbType">The SQL Server type of the parameter or column.</param><param name="maxLength">The maximum length of the specified type.</param><param name="locale">The locale ID of the parameter or column.</param><param name="compareOptions">The comparison rules of the parameter or column.</param><summary>Initializes a new instance of the <see cref="T:Microsoft.Data.SqlClient.Server.SqlMetaData" /> class with the specified column name, type, maximum length, locale, and compare options.</summary><remarks>
  1620. <format type="text/markdown"><![CDATA[
  1621. ## Remarks
  1622. Only the following are allowed to be passed to the constructor as `dbType`: `Char`, `NChar`, `Ntext`, `NVarChar`, `Text`, `VarChar`.
  1623. Only a `maxLength` specification of <xref:Microsoft.Data.SqlClient.Server.SqlMetaData.Max%2A>, or -1, is allowed for a `dbType` of `Text` or `NText`.
  1624. For a `dbType` of `Varchar` or `Nvarchar`, a length specification of <xref:Microsoft.Data.SqlClient.Server.SqlMetaData.Max%2A>, or -1, declares the metadata as varchar(max) and nvarchar(max), respectively.
  1625. The following are the default values assigned to `dbType`, depending on the `SqlDbType` (the <xref:Microsoft.Data.SqlClient.Server.SqlMetaData.XmlSchemaCollectionDatabase%2A>, <xref:Microsoft.Data.SqlClient.Server.SqlMetaData.XmlSchemaCollectionName%2A>, <xref:Microsoft.Data.SqlClient.Server.SqlMetaData.XmlSchemaCollectionOwningSchema%2A>, and <xref:Microsoft.Data.SqlClient.Server.SqlMetaData.Type%2A> properties are set to `null`):
  1626. |SqlDbType|Precision|Scale|
  1627. |---------------|---------------|-----------|
  1628. |`Char`|0|0|
  1629. |`NChar`|0|0|
  1630. |`NText`|0|0|
  1631. |`NVarChar`|0|0|
  1632. |`Text`|0|0|
  1633. |`VarChar`|0|0|
  1634. ]]></format>
  1635. </remarks><exception cref="T:System.ArgumentNullException">The <paramref name="name" /> is <see langword="null" />.</exception><exception cref="T:System.ArgumentException">A SqlDbType that is not allowed was passed to the constructor as <paramref name="dbType" />.</exception>
  1636. </member>
  1637. <member name="M:Microsoft.Data.SqlClient.Server.SqlMetaData.#ctor(System.String,System.Data.SqlDbType,System.Int64,System.Int64,System.Data.SqlTypes.SqlCompareOptions,System.Boolean,System.Boolean,Microsoft.Data.SqlClient.SortOrder,System.Int32)">
  1638. <param name="name">The name of the column.</param><param name="dbType">The SQL Server type of the parameter or column.</param><param name="maxLength">The maximum length of the specified type.</param><param name="locale">The locale ID of the parameter or column.</param><param name="compareOptions">The comparison rules of the parameter or column.</param><param name="useServerDefault">Specifies whether this column should use the default server value.</param><param name="isUniqueKey">Specifies if the column in the table-valued parameter is unique.</param><param name="columnSortOrder">Specifies the sort order for a column.</param><param name="sortOrdinal">Specifies the ordinal of the sort column.</param><summary>Initializes a new instance of the <see cref="T:Microsoft.Data.SqlClient.Server.SqlMetaData" /> class with the specified column name, type, maximum length, locale, compare options, and server default. This form of the constructor supports table-valued parameters by allowing you to specify if the column is unique in the table-valued parameter, the sort order for the column, and the ordinal of the sort column.</summary><remarks>
  1639. <format type="text/markdown"><![CDATA[
  1640. ## Remarks
  1641. For more information, see [Table-Valued Parameters](~/docs/framework/data/adonet/sql/table-valued-parameters.md).
  1642. ]]></format>
  1643. </remarks>
  1644. </member>
  1645. <member name="M:Microsoft.Data.SqlClient.Server.SqlMetaData.#ctor(System.String,System.Data.SqlDbType,System.String,System.String,System.String,System.Boolean,System.Boolean,Microsoft.Data.SqlClient.SortOrder,System.Int32)">
  1646. <param name="name">The name of the column.</param><param name="dbType">The SQL Server type of the parameter or column.</param><param name="database">The database name of the XML schema collection of a typed XML instance.</param><param name="owningSchema">The relational schema name of the XML schema collection of a typed XML instance.</param><param name="objectName">The name of the XML schema collection of a typed XML instance.</param><param name="useServerDefault">Specifies whether this column should use the default server value.</param><param name="isUniqueKey">Specifies if the column in the table-valued parameter is unique.</param><param name="columnSortOrder">Specifies the sort order for a column.</param><param name="sortOrdinal">Specifies the ordinal of the sort column.</param><summary>Initializes a new instance of the <see cref="T:Microsoft.Data.SqlClient.Server.SqlMetaData" /> class with the specified column name, database name, owning schema, object name, and default server. This form of the constructor supports table-valued parameters by allowing you to specify if the column is unique in the table-valued parameter, the sort order for the column, and the ordinal of the sort column.</summary><remarks>
  1647. <format type="text/markdown"><![CDATA[
  1648. ## Remarks
  1649. For more information, see [Table-Valued Parameters](~/docs/framework/data/adonet/sql/table-valued-parameters.md).
  1650. ]]></format>
  1651. </remarks>
  1652. </member>
  1653. <member name="M:Microsoft.Data.SqlClient.Server.SqlMetaData.#ctor(System.String,System.Data.SqlDbType,System.Int64,System.Byte,System.Byte,System.Int64,System.Data.SqlTypes.SqlCompareOptions,System.Type)">
  1654. <param name="name">The name of the column.</param><param name="dbType">The SQL Server type of the parameter or column.</param><param name="maxLength">The maximum length of the specified type.</param><param name="precision">The precision of the parameter or column.</param><param name="scale">The scale of the parameter or column.</param><param name="locale">The locale ID of the parameter or column.</param><param name="compareOptions">The comparison rules of the parameter or column.</param><param name="userDefinedType">A <see cref="T:System.Type" /> instance that points to the UDT.</param><summary>Initializes a new instance of the <see cref="T:Microsoft.Data.SqlClient.Server.SqlMetaData" /> class with the specified column name, type, maximum length, precision, scale, locale ID, compare options, and user-defined type (UDT).</summary><remarks>
  1655. <format type="text/markdown"><![CDATA[
  1656. ## Remarks
  1657. Only the following are allowed to be passed to the constructor as `dbType`: `BigInt`, `Bit`, `BitInt`, `DateTime`, `Decimal`, `Float`, `Image`, `Int`, `Money`, `Ntext`, `Numeric`, `Real`, `SmallDateTime`, `SmallInt`, `SmallMoney`, `Text`, `TimeStamp`, `TinyInt`, `UniqueIdentifier`, `Variant`, `Xml`.
  1658. The following are the default values assigned to `dbType`, depending on the `SqlDbType` (the <xref:Microsoft.Data.SqlClient.Server.SqlMetaData.XmlSchemaCollectionDatabase%2A>, <xref:Microsoft.Data.SqlClient.Server.SqlMetaData.XmlSchemaCollectionName%2A>, <xref:Microsoft.Data.SqlClient.Server.SqlMetaData.XmlSchemaCollectionOwningSchema%2A>, and <xref:Microsoft.Data.SqlClient.Server.SqlMetaData.Type%2A> properties are set to `null`):
  1659. |SqlDbType|Maximum length|Precision|Scale|Locale|Compare options|
  1660. |---------------|--------------------|---------------|-----------|------------|---------------------|
  1661. |`BigInt`|8|19|0|0|None|
  1662. |`Bit`|1|1|0|0|None|
  1663. |`DateTime`|8|23|3|0|None|
  1664. |`Decimal`|9|18|0|0|None|
  1665. |`Float`|8|53|0|0|None|
  1666. |`Image`|Max (-1)|0|0|0|None|
  1667. |`Int`|4|10|0|0|None|
  1668. |`Money`|8|19|4|0|None|
  1669. |`Ntext`|Max (-1)|0|0|\<thread>|IgnoreCase, IgnoreKanaType, IgnoreWidth|
  1670. |`Real`|4|24|0|0|None|
  1671. |`Row`|\<number of columns>|0|0|0|None|
  1672. |`SmallDateTime`|4|16|0|0|None|
  1673. |`SmallInt`|2|5|0|0|None|
  1674. |`SmallMoney`|4|10|4|0|None|
  1675. |`Text`|Max (-1)|0|0|\<thread>|IgnoreCase, IgnoreKanaType, IgnoreWidth|
  1676. |`TimeStamp`|8|0|0|0|None|
  1677. |`TinyInt`|1|3|0|0|None|
  1678. |`UniqueIdentifier`|16|0|0|0|None|
  1679. |`UDT`|\<Max length of the type> or -1|0|0|0|None|
  1680. |`Variant`|8016|0|0|0|None|
  1681. |`Xml`|Max (-1)|0|0|0|IgnoreCase, IgnoreKanaType, IgnoreWidth|
  1682. ]]></format>
  1683. </remarks><exception cref="T:System.ArgumentNullException">The <paramref name="name" /> is <see langword="null" />.</exception><exception cref="T:System.ArgumentException">A <see langword="SqlDbType" /> that is not allowed was passed to the constructor as <paramref name="dbType" />, or <paramref name="userDefinedType" /> points to a type that does not have <see cref="T:Microsoft.Data.SqlClient.Server.SqlUserDefinedTypeAttribute" /> declared.</exception>
  1684. </member>
  1685. <member name="M:Microsoft.Data.SqlClient.Server.SqlMetaData.#ctor(System.String,System.Data.SqlDbType,System.Int64,System.Byte,System.Byte,System.Int64,System.Data.SqlTypes.SqlCompareOptions,System.Type,System.Boolean,System.Boolean,Microsoft.Data.SqlClient.SortOrder,System.Int32)">
  1686. <param name="name">The name of the column.</param><param name="dbType">The SQL Server type of the parameter or column.</param><param name="maxLength">The maximum length of the specified type.</param><param name="precision">The precision of the parameter or column.</param><param name="scale">The scale of the parameter or column.</param><param name="localeId">The locale ID of the parameter or column.</param><param name="compareOptions">The comparison rules of the parameter or column.</param><param name="userDefinedType">A <see cref="T:System.Type" /> instance that points to the UDT.</param><param name="useServerDefault">Specifies whether this column should use the default server value.</param><param name="isUniqueKey">Specifies if the column in the table-valued parameter is unique.</param><param name="columnSortOrder">Specifies the sort order for a column.</param><param name="sortOrdinal">Specifies the ordinal of the sort column.</param><summary>Initializes a new instance of the <see cref="T:Microsoft.Data.SqlClient.Server.SqlMetaData" /> class with the specified column name, type, maximum length, precision, scale, locale ID, compare options, and user-defined type (UDT). This form of the constructor supports table-valued parameters by allowing you to specify if the column is unique in the table-valued parameter, the sort order for the column, and the ordinal of the sort column.</summary><remarks>
  1687. <format type="text/markdown"><![CDATA[
  1688. ## Remarks
  1689. For more information, see [Table-Valued Parameters](~/docs/framework/data/adonet/sql/table-valued-parameters.md).
  1690. ]]></format>
  1691. </remarks>
  1692. </member>
  1693. <member name="M:Microsoft.Data.SqlClient.Server.SqlMetaData.#ctor(System.String,System.Data.SqlDbType,System.String,System.String,System.String)">
  1694. <param name="name">The name of the column.</param><param name="dbType">The SQL Server type of the parameter or column.</param><param name="database">The database name of the XML schema collection of a typed XML instance.</param><param name="owningSchema">The relational schema name of the XML schema collection of a typed XML instance.</param><param name="objectName">The name of the XML schema collection of a typed XML instance.</param><summary>Initializes a new instance of the <see cref="T:Microsoft.Data.SqlClient.Server.SqlMetaData" /> class with the specified column name, type, database name, owning schema, and object name.</summary><remarks>
  1695. <format type="text/markdown"><![CDATA[
  1696. ## Remarks
  1697. Only the following `SqlDbType` is allowed to be passed to the constructor as `dbType`: `Xml`.
  1698. The following are the default values assigned to `dbType`, depending on the `SqlDbType`:
  1699. |SqlDbType|Maximum length|Precision|Scale|Locale|Compare options|
  1700. |---------------|--------------------|---------------|-----------|------------|---------------------|
  1701. |`Xml`|Max (-1)|0|0|0|IgnoreCase, IgnoreKanaType, IgnoreWidth|
  1702. ]]></format>
  1703. </remarks><exception cref="T:System.ArgumentNullException">The <paramref name="name" /> is <see langword="null" />, or <paramref name="objectName" /> is <see langword="null" /> when <paramref name="database" /> and <paramref name="owningSchema" /> are non-<see langword="null" />.</exception><exception cref="T:System.ArgumentException">A SqlDbType that is not allowed was passed to the constructor as <paramref name="dbType" />.</exception>
  1704. </member>
  1705. <member name="P:Microsoft.Data.SqlClient.Server.SqlMetaData.CompareOptions">
  1706. <summary>Gets the comparison rules used for the column or parameter.</summary><value>The comparison rules used for the column or parameter as a <see cref="T:System.Data.SqlTypes.SqlCompareOptions" />.</value><remarks>To be added.</remarks>
  1707. </member>
  1708. <member name="P:Microsoft.Data.SqlClient.Server.SqlMetaData.DbType">
  1709. <summary>Gets the data type of the column or parameter.</summary><value>The data type of the column or parameter as a <see cref="T:System.Data.DbType" />.</value><remarks>
  1710. <format type="text/markdown"><![CDATA[
  1711. ## Remarks
  1712. The default type is <xref:System.Data.DbType>.`String`.
  1713. ]]></format>
  1714. </remarks>
  1715. </member>
  1716. <member name="P:Microsoft.Data.SqlClient.Server.SqlMetaData.IsUniqueKey">
  1717. <summary>Indicates if the column in the table-valued parameter is unique.</summary><value>A <see langword="Boolean" /> value.</value><remarks>
  1718. <format type="text/markdown"><![CDATA[
  1719. ## Remarks
  1720. The default is `FALSE`.
  1721. This property can only be set in one of the <xref:Microsoft.Data.SqlClient.Server.SqlMetaData> constructors.
  1722. For more information, see [Table-Valued Parameters](~/docs/framework/data/adonet/sql/table-valued-parameters.md).
  1723. ]]></format>
  1724. </remarks>
  1725. </member>
  1726. <member name="P:Microsoft.Data.SqlClient.Server.SqlMetaData.LocaleId">
  1727. <summary>Gets the locale ID of the column or parameter.</summary><value>The locale ID of the column or parameter as a <see cref="T:System.Int64" />.</value><remarks>
  1728. <format type="text/markdown"><![CDATA[
  1729. ## Remarks
  1730. The default value is the current locale of the current thread for string-valued SqlDbTypes, and 0 for SqlDbTypes that do not support collation.
  1731. Returns 0 if the collation of the underlying column type is not defined.
  1732. ]]></format>
  1733. </remarks>
  1734. </member>
  1735. <member name="P:Microsoft.Data.SqlClient.Server.SqlMetaData.Max">
  1736. <summary>Gets the length of <see langword="text" />, <see langword="ntext" />, and <see langword="image" /> data types.</summary><value>The length of <see langword="text" />, <see langword="ntext" />, and <see langword="image" /> data types.</value><remarks>
  1737. <format type="text/markdown"><![CDATA[
  1738. ## Remarks
  1739. The default value is -1.
  1740. ]]></format>
  1741. </remarks>
  1742. </member>
  1743. <member name="P:Microsoft.Data.SqlClient.Server.SqlMetaData.MaxLength">
  1744. <summary>Gets the maximum length of the column or parameter.</summary><value>The maximum length of the column or parameter as a <see cref="T:System.Int64" />.</value><remarks>
  1745. <format type="text/markdown"><![CDATA[
  1746. ## Remarks
  1747. The potential maximum length for values of the specified column. Returns 0 for types other than fixed and varying length character and binary types. For variable size columns or parameters declared with the `Max` constructor parameter, it returns -1.
  1748. For <xref:System.Data.DbType>.`Row` this returns the number of columns in the row metadata instance.
  1749. The default value is 0.
  1750. ]]></format>
  1751. </remarks>
  1752. </member>
  1753. <member name="P:Microsoft.Data.SqlClient.Server.SqlMetaData.Name">
  1754. <summary>Gets the name of the column or parameter.</summary><value>The name of the column or parameter as a <see cref="T:System.String" />.</value><remarks>To be added.</remarks>
  1755. </member>
  1756. <member name="P:Microsoft.Data.SqlClient.Server.SqlMetaData.Precision">
  1757. <summary>Gets the precision of the column or parameter.</summary><value>The precision of the column or parameter as a <see cref="T:System.Byte" />.</value><remarks>
  1758. <format type="text/markdown"><![CDATA[
  1759. ## Remarks
  1760. Returns 0 if the precision of the underlying column type is not defined.
  1761. ]]></format>
  1762. </remarks>
  1763. </member>
  1764. <member name="P:Microsoft.Data.SqlClient.Server.SqlMetaData.Scale">
  1765. <summary>Gets the scale of the column or parameter.</summary><value>The scale of the column or parameter.</value><remarks>
  1766. <format type="text/markdown"><![CDATA[
  1767. ## Remarks
  1768. Returns 0 if the scale of the underlying column type is not defined.
  1769. ]]></format>
  1770. </remarks>
  1771. </member>
  1772. <member name="P:Microsoft.Data.SqlClient.Server.SqlMetaData.SortOrder">
  1773. <summary>Returns the sort order for a column.</summary><value>A <see cref="T:Microsoft.Data.SqlClient.SortOrder" /> object.</value><remarks>
  1774. <format type="text/markdown"><![CDATA[
  1775. ## Remarks
  1776. This property can only be set in one of the <xref:Microsoft.Data.SqlClient.Server.SqlMetaData> constructors.
  1777. For more information, see [Table-Valued Parameters](~/docs/framework/data/adonet/sql/table-valued-parameters.md).
  1778. ]]></format>
  1779. </remarks>
  1780. </member>
  1781. <member name="P:Microsoft.Data.SqlClient.Server.SqlMetaData.SortOrdinal">
  1782. <summary>Returns the ordinal of the sort column.</summary><value>The ordinal of the sort column.</value><remarks>
  1783. <format type="text/markdown"><![CDATA[
  1784. ## Remarks
  1785. The default is 1.
  1786. This property can only be set in one of the <xref:Microsoft.Data.SqlClient.Server.SqlMetaData> constructors.
  1787. For more information, see [Table-Valued Parameters](~/docs/framework/data/adonet/sql/table-valued-parameters.md).
  1788. ]]></format>
  1789. </remarks>
  1790. </member>
  1791. <member name="P:Microsoft.Data.SqlClient.Server.SqlMetaData.SqlDbType">
  1792. <summary>Gets the data type of the column or parameter.</summary><value>The data type of the column or parameter as a <see cref="T:System.Data.DbType" />.</value><remarks>
  1793. <format type="text/markdown"><![CDATA[
  1794. ## Remarks
  1795. The default value is `NVarChar`.
  1796. ]]></format>
  1797. </remarks>
  1798. </member>
  1799. <member name="P:Microsoft.Data.SqlClient.Server.SqlMetaData.Type">
  1800. <summary>Gets the common language runtime (CLR) type of a user-defined type (UDT).</summary><value>The CLR type name of a user-defined type as a <see cref="T:System.Type" />.</value><remarks>
  1801. <format type="text/markdown"><![CDATA[
  1802. ## Remarks
  1803. The default value is `null`.
  1804. Returns `null` if <xref:Microsoft.Data.SqlClient.Server.SqlMetaData.SqlDbType%2A> is not a UDT type. `Null` may also returned for valid UDT result sets where the assembly is not available to the application.
  1805. ]]></format>
  1806. </remarks>
  1807. </member>
  1808. <member name="P:Microsoft.Data.SqlClient.Server.SqlMetaData.TypeName">
  1809. <summary>Gets the three-part name of the user-defined type (UDT) or the SQL Server type represented by the instance.</summary><value>The name of the UDT or SQL Server type as a <see cref="T:System.String" />.</value><remarks>
  1810. <format type="text/markdown"><![CDATA[
  1811. ## Remarks
  1812. The default value is `null`.
  1813. ]]></format>
  1814. </remarks>
  1815. </member>
  1816. <member name="P:Microsoft.Data.SqlClient.Server.SqlMetaData.UseServerDefault">
  1817. <summary>Reports whether this column should use the default server value.</summary><value>A <see langword="Boolean" /> value.</value><remarks>
  1818. <format type="text/markdown"><![CDATA[
  1819. ## Remarks
  1820. The default is `FALSE`.
  1821. This property can only be set in one of the <xref:Microsoft.Data.SqlClient.Server.SqlMetaData> constructors.
  1822. ]]></format>
  1823. </remarks>
  1824. </member>
  1825. <member name="P:Microsoft.Data.SqlClient.Server.SqlMetaData.XmlSchemaCollectionDatabase">
  1826. <summary>Gets the name of the database where the schema collection for this XML instance is located.</summary><value>The name of the database where the schema collection for this XML instance is located as a <see cref="T:System.String" />.</value><remarks>
  1827. <format type="text/markdown"><![CDATA[
  1828. ## Remarks
  1829. The default value is `null`.
  1830. This property may be `null` if the collection is defined within the current database. It is also `null` if there is no schema collection, in which case <xref:Microsoft.Data.SqlClient.Server.SqlMetaData.XmlSchemaCollectionName%2A> and <xref:Microsoft.Data.SqlClient.Server.SqlMetaData.XmlSchemaCollectionOwningSchema%2A> are also null.
  1831. ]]></format>
  1832. </remarks>
  1833. </member>
  1834. <member name="P:Microsoft.Data.SqlClient.Server.SqlMetaData.XmlSchemaCollectionName">
  1835. <summary>Gets the name of the schema collection for this XML instance.</summary><value>The name of the schema collection for this XML instance as a <see cref="T:System.String" />.</value><remarks>
  1836. <format type="text/markdown"><![CDATA[
  1837. ## Remarks
  1838. The default value is `null`.
  1839. This value is `null` if there is no associated schema collection. If the value is `null`, then <xref:Microsoft.Data.SqlClient.Server.SqlMetaData.XmlSchemaCollectionDatabase%2A> and <xref:Microsoft.Data.SqlClient.Server.SqlMetaData.XmlSchemaCollectionOwningSchema%2A> are also `null`.
  1840. ]]></format>
  1841. </remarks>
  1842. </member>
  1843. <member name="P:Microsoft.Data.SqlClient.Server.SqlMetaData.XmlSchemaCollectionOwningSchema">
  1844. <summary>Gets the owning relational schema where the schema collection for this XML instance is located.</summary><value>The owning relational schema where the schema collection for this XML instance is located as a <see cref="T:System.String" />.</value><remarks>
  1845. <format type="text/markdown"><![CDATA[
  1846. ## Remarks
  1847. The default value is `null`.
  1848. This value may be `null` if the collection is defined within the current database and default schema. It is also null if there is no schema collection, in which case <xref:Microsoft.Data.SqlClient.Server.SqlMetaData.XmlSchemaCollectionDatabase%2A> and <xref:Microsoft.Data.SqlClient.Server.SqlMetaData.XmlSchemaCollectionName%2A> are also `null`.
  1849. ]]></format>
  1850. </remarks>
  1851. </member>
  1852. <member name="M:Microsoft.Data.SqlClient.Server.SqlMetaData.Adjust(System.Int16)">
  1853. <param name="value">The value to validate against the <see cref="T:Microsoft.Data.SqlClient.Server.SqlMetaData" /> instance.</param><summary>Validates the specified <see cref="T:System.Int16" /> value against the metadata, and adjusts the value if necessary.</summary><returns>The adjusted value as a <see cref="T:System.Int16" />.</returns><remarks>To be added.</remarks><exception cref="T:System.ArgumentException">
  1854. <paramref name="value" /> does not match the <see cref="T:Microsoft.Data.SqlClient.Server.SqlMetaData" /> type, or <paramref name="value" /> could not be adjusted.</exception>
  1855. </member>
  1856. <member name="M:Microsoft.Data.SqlClient.Server.SqlMetaData.Adjust(System.Int32)">
  1857. <param name="value">The value to validate against the <see cref="T:Microsoft.Data.SqlClient.Server.SqlMetaData" /> instance.</param><summary>Validates the specified <see cref="T:System.Int32" /> value against the metadata, and adjusts the value if necessary.</summary><returns>The adjusted value as a <see cref="T:System.Int32" />.</returns><remarks>To be added.</remarks><exception cref="T:System.ArgumentException">
  1858. <paramref name="value" /> does not match the <see cref="T:Microsoft.Data.SqlClient.Server.SqlMetaData" /> type, or <paramref name="value" /> could not be adjusted.</exception>
  1859. </member>
  1860. <member name="M:Microsoft.Data.SqlClient.Server.SqlMetaData.Adjust(System.Int64)">
  1861. <param name="value">The value to validate against the <see cref="T:Microsoft.Data.SqlClient.Server.SqlMetaData" /> instance.</param><summary>Validates the specified <see cref="T:System.Int64" /> value against the metadata, and adjusts the value if necessary.</summary><returns>The adjusted value as a <see cref="T:System.Int64" />.</returns><remarks>To be added.</remarks><exception cref="T:System.ArgumentException">
  1862. <paramref name="value" /> does not match the <see cref="T:Microsoft.Data.SqlClient.Server.SqlMetaData" /> type, or <paramref name="value" /> could not be adjusted.</exception>
  1863. </member>
  1864. <member name="M:Microsoft.Data.SqlClient.Server.SqlMetaData.Adjust(System.Single)">
  1865. <param name="value">The value to validate against the <see cref="T:Microsoft.Data.SqlClient.Server.SqlMetaData" /> instance.</param><summary>Validates the specified <see cref="T:System.Single" /> value against the metadata, and adjusts the value if necessary.</summary><returns>The adjusted value as a <see cref="T:System.Single" />.</returns><remarks>To be added.</remarks><exception cref="T:System.ArgumentException">
  1866. <paramref name="value" /> does not match the <see cref="T:Microsoft.Data.SqlClient.Server.SqlMetaData" /> type, or <paramref name="value" /> could not be adjusted.</exception>
  1867. </member>
  1868. <member name="M:Microsoft.Data.SqlClient.Server.SqlMetaData.Adjust(System.Double)">
  1869. <param name="value">The value to validate against the <see cref="T:Microsoft.Data.SqlClient.Server.SqlMetaData" /> instance.</param><summary>Validates the specified <see cref="T:System.Double" /> value against the metadata, and adjusts the value if necessary.</summary><returns>The adjusted value as a <see cref="T:System.Double" />.</returns><remarks>To be added.</remarks><exception cref="T:System.ArgumentException">
  1870. <paramref name="value" /> does not match the <see cref="T:Microsoft.Data.SqlClient.Server.SqlMetaData" /> type, or <paramref name="value" /> could not be adjusted.</exception>
  1871. </member>
  1872. <member name="M:Microsoft.Data.SqlClient.Server.SqlMetaData.Adjust(System.String)">
  1873. <param name="value">The value to validate against the <see cref="T:Microsoft.Data.SqlClient.Server.SqlMetaData" /> instance.</param><summary>Validates the specified <see cref="T:System.String" /> value against the metadata, and adjusts the value if necessary.</summary><returns>The adjusted value as a <see cref="T:System.String" />.</returns><remarks>To be added.</remarks><exception cref="T:System.ArgumentException">
  1874. <paramref name="value" /> does not match the <see cref="T:Microsoft.Data.SqlClient.Server.SqlMetaData" /> type, or <paramref name="value" /> could not be adjusted.</exception>
  1875. </member>
  1876. <member name="M:Microsoft.Data.SqlClient.Server.SqlMetaData.Adjust(System.Decimal)">
  1877. <param name="value">The value to validate against the <see cref="T:Microsoft.Data.SqlClient.Server.SqlMetaData" /> instance.</param><summary>Validates the specified <see cref="T:System.Decimal" /> value against the metadata, and adjusts the value if necessary.</summary><returns>The adjusted value as a <see cref="T:System.Decimal" />.</returns><remarks>To be added.</remarks><exception cref="T:System.ArgumentException">
  1878. <paramref name="value" /> does not match the <see cref="T:Microsoft.Data.SqlClient.Server.SqlMetaData" /> type, or <paramref name="value" /> could not be adjusted.</exception>
  1879. </member>
  1880. <member name="M:Microsoft.Data.SqlClient.Server.SqlMetaData.Adjust(System.DateTime)">
  1881. <param name="value">The value to validate against the <see cref="T:Microsoft.Data.SqlClient.Server.SqlMetaData" /> instance.</param><summary>Validates the specified <see cref="T:System.DateTime" /> value against the metadata, and adjusts the value if necessary.</summary><returns>The adjusted value as a <see cref="T:System.DateTime" />.</returns><remarks>To be added.</remarks><exception cref="T:System.ArgumentException">
  1882. <paramref name="value" /> does not match the <see cref="T:Microsoft.Data.SqlClient.Server.SqlMetaData" /> type, or <paramref name="value" /> could not be adjusted.</exception>
  1883. </member>
  1884. <member name="M:Microsoft.Data.SqlClient.Server.SqlMetaData.Adjust(System.Guid)">
  1885. <param name="value">The value to validate against the <see cref="T:Microsoft.Data.SqlClient.Server.SqlMetaData" /> instance.</param><summary>Validates the specified <see cref="T:System.Guid" /> value against the metadata, and adjusts the value if necessary.</summary><returns>The adjusted value as a <see cref="T:System.Guid" />.</returns><remarks>To be added.</remarks><exception cref="T:System.ArgumentException">
  1886. <paramref name="value" /> does not match the <see cref="T:Microsoft.Data.SqlClient.Server.SqlMetaData" /> type, or <paramref name="value" /> could not be adjusted.</exception>
  1887. </member>
  1888. <member name="M:Microsoft.Data.SqlClient.Server.SqlMetaData.Adjust(System.Data.SqlTypes.SqlBoolean)">
  1889. <param name="value">The value to validate against the <see cref="T:Microsoft.Data.SqlClient.Server.SqlMetaData" /> instance.</param><summary>Validates the specified <see cref="T:System.Data.SqlTypes.SqlBoolean" /> value against the metadata, and adjusts the value if necessary.</summary><returns>The adjusted value as a <see cref="T:System.Data.SqlTypes.SqlBoolean" />.</returns><remarks>To be added.</remarks><exception cref="T:System.ArgumentException">
  1890. <paramref name="value" /> does not match the <see cref="T:Microsoft.Data.SqlClient.Server.SqlMetaData" /> type, or <paramref name="value" /> could not be adjusted.</exception>
  1891. </member>
  1892. <member name="M:Microsoft.Data.SqlClient.Server.SqlMetaData.Adjust(System.Data.SqlTypes.SqlByte)">
  1893. <param name="value">The value to validate against the <see cref="T:Microsoft.Data.SqlClient.Server.SqlMetaData" /> instance.</param><summary>Validates the specified <see cref="T:System.Data.SqlTypes.SqlByte" /> value against the metadata, and adjusts the value if necessary.</summary><returns>The adjusted value as a <see cref="T:System.Data.SqlTypes.SqlByte" />.</returns><remarks>To be added.</remarks><exception cref="T:System.ArgumentException">
  1894. <paramref name="value" /> does not match the <see cref="T:Microsoft.Data.SqlClient.Server.SqlMetaData" /> type, or <paramref name="value" /> could not be adjusted.</exception>
  1895. </member>
  1896. <member name="M:Microsoft.Data.SqlClient.Server.SqlMetaData.Adjust(System.Data.SqlTypes.SqlInt16)">
  1897. <param name="value">The value to validate against the <see cref="T:Microsoft.Data.SqlClient.Server.SqlMetaData" /> instance.</param><summary>Validates the specified <see cref="T:System.Data.SqlTypes.SqlInt16" /> value against the metadata, and adjusts the value if necessary.</summary><returns>The adjusted value as a <see cref="T:System.Data.SqlTypes.SqlInt16" />.</returns><remarks>To be added.</remarks><exception cref="T:System.ArgumentException">
  1898. <paramref name="value" /> does not match the <see cref="T:Microsoft.Data.SqlClient.Server.SqlMetaData" /> type, or <paramref name="value" /> could not be adjusted.</exception>
  1899. </member>
  1900. <member name="M:Microsoft.Data.SqlClient.Server.SqlMetaData.Adjust(System.Data.SqlTypes.SqlInt32)">
  1901. <param name="value">The value to validate against the <see cref="T:Microsoft.Data.SqlClient.Server.SqlMetaData" /> instance.</param><summary>Validates the specified <see cref="T:System.Data.SqlTypes.SqlInt32" /> value against the metadata, and adjusts the value if necessary.</summary><returns>The adjusted value as a <see cref="T:System.Data.SqlTypes.SqlInt32" />.</returns><remarks>To be added.</remarks><exception cref="T:System.ArgumentException">
  1902. <paramref name="value" /> does not match the <see cref="T:Microsoft.Data.SqlClient.Server.SqlMetaData" /> type, or <paramref name="value" /> could not be adjusted.</exception>
  1903. </member>
  1904. <member name="M:Microsoft.Data.SqlClient.Server.SqlMetaData.Adjust(System.Data.SqlTypes.SqlInt64)">
  1905. <param name="value">The value to validate against the <see cref="T:Microsoft.Data.SqlClient.Server.SqlMetaData" /> instance.</param><summary>Validates the specified <see cref="T:System.Data.SqlTypes.SqlInt64" /> value against the metadata, and adjusts the value if necessary.</summary><returns>The adjusted value as a <see cref="T:System.Data.SqlTypes.SqlInt64" />.</returns><remarks>To be added.</remarks><exception cref="T:System.ArgumentException">
  1906. <paramref name="value" /> does not match the <see cref="T:Microsoft.Data.SqlClient.Server.SqlMetaData" /> type, or <paramref name="value" /> could not be adjusted.</exception>
  1907. </member>
  1908. <member name="M:Microsoft.Data.SqlClient.Server.SqlMetaData.Adjust(System.Data.SqlTypes.SqlSingle)">
  1909. <param name="value">The value to validate against the <see cref="T:Microsoft.Data.SqlClient.Server.SqlMetaData" /> instance.</param><summary>Validates the specified <see cref="T:System.Data.SqlTypes.SqlSingle" /> value against the metadata, and adjusts the value if necessary.</summary><returns>The adjusted value as a <see cref="T:System.Data.SqlTypes.SqlSingle" />.</returns><remarks>To be added.</remarks><exception cref="T:System.ArgumentException">
  1910. <paramref name="value" /> does not match the <see cref="T:Microsoft.Data.SqlClient.Server.SqlMetaData" /> type, or <paramref name="value" /> could not be adjusted.</exception>
  1911. </member>
  1912. <member name="M:Microsoft.Data.SqlClient.Server.SqlMetaData.Adjust(System.Data.SqlTypes.SqlDouble)">
  1913. <param name="value">The value to validate against the <see cref="T:Microsoft.Data.SqlClient.Server.SqlMetaData" /> instance.</param><summary>Validates the specified <see cref="T:System.Data.SqlTypes.SqlDouble" /> value against the metadata, and adjusts the value if necessary.</summary><returns>The adjusted value as a <see cref="T:System.Data.SqlTypes.SqlDouble" />.</returns><remarks>To be added.</remarks><exception cref="T:System.ArgumentException">
  1914. <paramref name="value" /> does not match the <see cref="T:Microsoft.Data.SqlClient.Server.SqlMetaData" /> type, or <paramref name="value" /> could not be adjusted.</exception>
  1915. </member>
  1916. <member name="M:Microsoft.Data.SqlClient.Server.SqlMetaData.Adjust(System.Data.SqlTypes.SqlMoney)">
  1917. <param name="value">The value to validate against the <see cref="T:Microsoft.Data.SqlClient.Server.SqlMetaData" /> instance.</param><summary>Validates the specified <see cref="T:System.Data.SqlTypes.SqlMoney" /> value against the metadata, and adjusts the value if necessary.</summary><returns>The adjusted value as a <see cref="T:System.Data.SqlTypes.SqlMoney" />.</returns><remarks>To be added.</remarks><exception cref="T:System.ArgumentException">
  1918. <paramref name="value" /> does not match the <see cref="T:Microsoft.Data.SqlClient.Server.SqlMetaData" /> type, or <paramref name="value" /> could not be adjusted.</exception>
  1919. </member>
  1920. <member name="M:Microsoft.Data.SqlClient.Server.SqlMetaData.Adjust(System.Data.SqlTypes.SqlDateTime)">
  1921. <param name="value">The value to validate against the <see cref="T:Microsoft.Data.SqlClient.Server.SqlMetaData" /> instance.</param><summary>Validates the specified <see cref="T:System.Data.SqlTypes.SqlDateTime" /> value against the metadata, and adjusts the value if necessary.</summary><returns>The adjusted value as a <see cref="T:System.Data.SqlTypes.SqlDateTime" />.</returns><remarks>To be added.</remarks><exception cref="T:System.ArgumentException">
  1922. <paramref name="value" /> does not match the <see cref="T:Microsoft.Data.SqlClient.Server.SqlMetaData" /> type, or <paramref name="value" /> could not be adjusted.</exception>
  1923. </member>
  1924. <member name="M:Microsoft.Data.SqlClient.Server.SqlMetaData.Adjust(System.Data.SqlTypes.SqlDecimal)">
  1925. <param name="value">The value to validate against the <see cref="T:Microsoft.Data.SqlClient.Server.SqlMetaData" /> instance.</param><summary>Validates the specified <see cref="T:System.Data.SqlTypes.SqlDecimal" /> value against the metadata, and adjusts the value if necessary.</summary><returns>The adjusted value as a <see cref="T:System.Data.SqlTypes.SqlDecimal" />.</returns><remarks>To be added.</remarks><exception cref="T:System.ArgumentException">
  1926. <paramref name="value" /> does not match the <see cref="T:Microsoft.Data.SqlClient.Server.SqlMetaData" /> type, or <paramref name="value" /> could not be adjusted.</exception>
  1927. </member>
  1928. <member name="M:Microsoft.Data.SqlClient.Server.SqlMetaData.Adjust(System.Data.SqlTypes.SqlString)">
  1929. <param name="value">The value to validate against the <see cref="T:Microsoft.Data.SqlClient.Server.SqlMetaData" /> instance.</param><summary>Validates the specified <see cref="T:System.Data.SqlTypes.SqlString" /> value against the metadata, and adjusts the value if necessary.</summary><returns>The adjusted value as a <see cref="T:System.Data.SqlTypes.SqlString" />.</returns><remarks>To be added.</remarks><exception cref="T:System.ArgumentException">
  1930. <paramref name="value" /> does not match the <see cref="T:Microsoft.Data.SqlClient.Server.SqlMetaData" /> type, or <paramref name="value" /> could not be adjusted.</exception>
  1931. </member>
  1932. <member name="M:Microsoft.Data.SqlClient.Server.SqlMetaData.Adjust(System.Data.SqlTypes.SqlBinary)">
  1933. <param name="value">The value to validate against the <see cref="T:Microsoft.Data.SqlClient.Server.SqlMetaData" /> instance.</param><summary>Validates the specified <see cref="T:System.Data.SqlTypes.SqlBinary" /> value against the metadata, and adjusts the value if necessary.</summary><returns>The adjusted value as a <see cref="T:System.Data.SqlTypes.SqlBinary" />.</returns><remarks>To be added.</remarks><exception cref="T:System.ArgumentException">
  1934. <paramref name="value" /> does not match the <see cref="T:Microsoft.Data.SqlClient.Server.SqlMetaData" /> type, or <paramref name="value" /> could not be adjusted.</exception>
  1935. </member>
  1936. <member name="M:Microsoft.Data.SqlClient.Server.SqlMetaData.Adjust(System.Data.SqlTypes.SqlGuid)">
  1937. <param name="value">The value to validate against the <see cref="T:Microsoft.Data.SqlClient.Server.SqlMetaData" /> instance.</param><summary>Validates the specified <see cref="T:System.Data.SqlTypes.SqlGuid" /> value against the metadata, and adjusts the value if necessary.</summary><returns>The adjusted value as a <see cref="T:System.Data.SqlTypes.SqlGuid" />.</returns><remarks>To be added.</remarks><exception cref="T:System.ArgumentException">
  1938. <paramref name="value" /> does not match the <see cref="T:Microsoft.Data.SqlClient.Server.SqlMetaData" /> type, or <paramref name="value" /> could not be adjusted.</exception>
  1939. </member>
  1940. <member name="M:Microsoft.Data.SqlClient.Server.SqlMetaData.Adjust(System.Data.SqlTypes.SqlChars)">
  1941. <param name="value">The value to validate against the <see cref="T:Microsoft.Data.SqlClient.Server.SqlMetaData" /> instance.</param><summary>Validates the specified <see cref="T:System.Data.SqlTypes.SqlChars" /> value against the metadata, and adjusts the value if necessary.</summary><returns>The adjusted value as a <see cref="T:System.Data.SqlTypes.SqlChars" />.</returns><remarks>To be added.</remarks><exception cref="T:System.ArgumentException">
  1942. <paramref name="value" /> does not match the <see cref="T:Microsoft.Data.SqlClient.Server.SqlMetaData" /> type, or <paramref name="value" /> could not be adjusted.</exception>
  1943. </member>
  1944. <member name="M:Microsoft.Data.SqlClient.Server.SqlMetaData.Adjust(System.Data.SqlTypes.SqlBytes)">
  1945. <param name="value">The value to validate against the <see cref="T:Microsoft.Data.SqlClient.Server.SqlMetaData" /> instance.</param><summary>Validates the specified <see cref="T:System.Data.SqlTypes.SqlBytes" /> value against the metadata, and adjusts the value if necessary.</summary><returns>The adjusted value as a <see cref="T:System.Data.SqlTypes.SqlBytes" />.</returns><remarks>To be added.</remarks><exception cref="T:System.ArgumentException">
  1946. <paramref name="value" /> does not match the <see cref="T:Microsoft.Data.SqlClient.Server.SqlMetaData" /> type, or <paramref name="value" /> could not be adjusted.</exception>
  1947. </member>
  1948. <member name="M:Microsoft.Data.SqlClient.Server.SqlMetaData.Adjust(System.Data.SqlTypes.SqlXml)">
  1949. <param name="value">The value to validate against the <see cref="T:Microsoft.Data.SqlClient.Server.SqlMetaData" /> instance.</param><summary>Validates the specified <see cref="T:System.Data.SqlTypes.SqlXml" /> value against the metadata, and adjusts the value if necessary.</summary><returns>The adjusted value as a <see cref="T:System.Data.SqlTypes.SqlXml" />.</returns><remarks>To be added.</remarks><exception cref="T:System.ArgumentException">
  1950. <paramref name="value" /> does not match the <see cref="T:Microsoft.Data.SqlClient.Server.SqlMetaData" /> type, or <paramref name="value" /> could not be adjusted.</exception>
  1951. </member>
  1952. <member name="M:Microsoft.Data.SqlClient.Server.SqlMetaData.Adjust(System.TimeSpan)">
  1953. <param name="value">The value to validate against the <see cref="T:Microsoft.Data.SqlClient.Server.SqlMetaData" /> instance.</param><summary>Validates the specified <see cref="T:System.TimeSpan" /> value against the metadata, and adjusts the value if necessary.</summary><returns>The adjusted value as an array of <see cref="T:System.TimeSpan" /> values.</returns><remarks>To be added.</remarks><exception cref="T:System.ArgumentException">
  1954. <paramref name="value" /> does not match the <see cref="T:Microsoft.Data.SqlClient.Server.SqlMetaData" /> type, or <paramref name="value" /> could not be adjusted.</exception>
  1955. </member>
  1956. <member name="M:Microsoft.Data.SqlClient.Server.SqlMetaData.Adjust(System.DateTimeOffset)">
  1957. <param name="value">The value to validate against the <see cref="T:Microsoft.Data.SqlClient.Server.SqlMetaData" /> instance.</param><summary>Validates the specified <see cref="T:System.DateTimeOffset" /> value against the metadata, and adjusts the value if necessary.</summary><returns>The adjusted value as an array of <see cref="T:System.DateTimeOffset" /> values.</returns><remarks>To be added.</remarks><exception cref="T:System.ArgumentException">
  1958. <paramref name="value" /> does not match the <see cref="T:Microsoft.Data.SqlClient.Server.SqlMetaData" /> type, or <paramref name="value" /> could not be adjusted.</exception>
  1959. </member>
  1960. <member name="M:Microsoft.Data.SqlClient.Server.SqlMetaData.Adjust(System.Object)">
  1961. <param name="value">The value to validate against the <see cref="T:Microsoft.Data.SqlClient.Server.SqlMetaData" /> instance.</param><summary>Validates the specified <see cref="T:System.Object" /> value against the metadata, and adjusts the value if necessary.</summary><returns>The adjusted value as a <see cref="T:System.Object" />.</returns><remarks>To be added.</remarks><exception cref="T:System.ArgumentException">
  1962. <paramref name="value" /> does not match the <see cref="T:Microsoft.Data.SqlClient.Server.SqlMetaData" /> type, or <paramref name="value" /> could not be adjusted.</exception>
  1963. </member>
  1964. <member name="M:Microsoft.Data.SqlClient.Server.SqlMetaData.InferFromValue(System.Object,System.String)">
  1965. <param name="value">The object used from which the metadata is inferred.</param><param name="name">The name assigned to the returned <see cref="T:Microsoft.Data.SqlClient.Server.SqlMetaData" /> instance.</param><summary>Infers the metadata from the specified object and returns it as a <see cref="T:Microsoft.Data.SqlClient.Server.SqlMetaData" /> instance.</summary><returns>The inferred metadata as a <see cref="T:Microsoft.Data.SqlClient.Server.SqlMetaData" /> instance.</returns><remarks>To be added.</remarks><exception cref="T:System.ArgumentNullException">The <paramref name="value" /> is <see langword="null" />.</exception>
  1966. </member>
  1967. <member name="M:Microsoft.Data.SqlClient.Server.SqlMetaData.Adjust(System.Boolean)">
  1968. <param name="value">The value to validate against the <see cref="T:Microsoft.Data.SqlClient.Server.SqlMetaData" /> instance.</param><summary>Validates the specified <see cref="T:System.Boolean" /> value against the metadata, and adjusts the value if necessary.</summary><returns>The adjusted value as a <see cref="T:System.Boolean" />.</returns><remarks>To be added.</remarks><exception cref="T:System.ArgumentException">
  1969. <paramref name="value" /> does not match the <see cref="T:Microsoft.Data.SqlClient.Server.SqlMetaData" /> type, or <paramref name="value" /> could not be adjusted.</exception>
  1970. </member>
  1971. <member name="M:Microsoft.Data.SqlClient.Server.SqlMetaData.Adjust(System.Byte)">
  1972. <param name="value">The value to validate against the <see cref="T:Microsoft.Data.SqlClient.Server.SqlMetaData" /> instance.</param><summary>Validates the specified <see cref="T:System.Byte" /> value against the metadata, and adjusts the value if necessary.</summary><returns>The adjusted value as a <see cref="T:System.Byte" />.</returns><remarks>To be added.</remarks><exception cref="T:System.ArgumentException">
  1973. <paramref name="value" /> does not match the <see cref="T:Microsoft.Data.SqlClient.Server.SqlMetaData" /> type, or <paramref name="value" /> could not be adjusted.</exception>
  1974. </member>
  1975. <member name="M:Microsoft.Data.SqlClient.Server.SqlMetaData.Adjust(System.Byte[])">
  1976. <param name="value">The value to validate against the <see cref="T:Microsoft.Data.SqlClient.Server.SqlMetaData" /> instance.</param><summary>Validates the specified array of <see cref="T:System.Byte" /> values against the metadata, and adjusts the value if necessary.</summary><returns>The adjusted value as an array of <see cref="T:System.Byte" /> values.</returns><remarks>To be added.</remarks><exception cref="T:System.ArgumentException">
  1977. <paramref name="value" /> does not match the <see cref="T:Microsoft.Data.SqlClient.Server.SqlMetaData" /> type, or <paramref name="value" /> could not be adjusted.</exception>
  1978. </member>
  1979. <member name="M:Microsoft.Data.SqlClient.Server.SqlMetaData.Adjust(System.Char)">
  1980. <param name="value">The value to validate against the <see cref="T:Microsoft.Data.SqlClient.Server.SqlMetaData" /> instance.</param><summary>Validates the specified <see cref="T:System.Char" /> value against the metadata, and adjusts the value if necessary.</summary><returns>The adjusted value as a <see cref="T:System.Char" />.</returns><remarks>To be added.</remarks><exception cref="T:System.ArgumentException">
  1981. <paramref name="value" /> does not match the <see cref="T:Microsoft.Data.SqlClient.Server.SqlMetaData" /> type, or <paramref name="value" /> could not be adjusted.</exception>
  1982. </member>
  1983. <member name="M:Microsoft.Data.SqlClient.Server.SqlMetaData.Adjust(System.Char[])">
  1984. <param name="value">The value to validate against the <see cref="T:Microsoft.Data.SqlClient.Server.SqlMetaData" /> instance.</param><summary>Validates the specified array of <see cref="T:System.Char" /> values against the metadata, and adjusts the value if necessary.</summary><returns>The adjusted value as an array <see cref="T:System.Char" /> values.</returns><remarks>To be added.</remarks><exception cref="T:System.ArgumentException">
  1985. <paramref name="value" /> does not match the <see cref="T:Microsoft.Data.SqlClient.Server.SqlMetaData" /> type, or <paramref name="value" /> could not be adjusted.</exception>
  1986. </member>
  1987. <member name="T:Microsoft.Data.SqlClient.Server.SqlMethodAttribute">
  1988. <summary>Indicates the determinism and data access properties of a method or property on a user-defined type (UDT). The properties on the attribute reflect the physical characteristics that are used when the type is registered with SQL Server.</summary><remarks>
  1989. <format type="text/markdown"><![CDATA[
  1990. ## Remarks
  1991. For a property, the <xref:Microsoft.Data.SqlClient.Server.SqlMethodAttribute> should be used on the setter or the getter directly.
  1992. <xref:Microsoft.Data.SqlClient.Server.SqlMethodAttribute> inherits from a <xref:Microsoft.Data.SqlClient.Server.SqlFunctionAttribute>, so <xref:Microsoft.Data.SqlClient.Server.SqlMethodAttribute> inherits the `FillRowMethodName` and `TableDefinition` fields from <xref:Microsoft.Data.SqlClient.Server.SqlFunctionAttribute>. Note that it is not possible to write a table-valued method, although the names of these fields might suggest that it is possible.
  1993. ## Examples
  1994. The following example shows a UDT method that is attributed to indicate that the method will not be invoked on null instances of the type, that the method will not change the state of the type, and that the method will not be called when `null` parameters are supplied to the method invocation.
  1995. [!code-csharp[SqlMethod Sample#1](~/../sqlclient/doc/samples/SqlMethod.cs#1)]
  1996. ]]></format>
  1997. </remarks>
  1998. </member>
  1999. <member name="M:Microsoft.Data.SqlClient.Server.SqlMethodAttribute.#ctor">
  2000. <summary>An attribute on a user-defined type (UDT), used to indicate the determinism and data access properties of a method or a property on a UDT.</summary><remarks>To be added.</remarks>
  2001. </member>
  2002. <member name="P:Microsoft.Data.SqlClient.Server.SqlMethodAttribute.OnNullCall">
  2003. <summary>Indicates whether the method on a user-defined type (UDT) is called when <see langword="null" /> input arguments are specified in the method invocation.</summary><value> <see langword="true" /> if the method is called when <see langword="null" /> input arguments are specified in the method invocation; <see langword="false" /> if the method returns a <see langword="null" /> value when any of its input parameters are <see langword="null" />. If the method cannot be invoked (because of an attribute on the method), the SQL Server <see langword="DbNull" /> is returned.</value><remarks>
  2004. <format type="text/markdown"><![CDATA[
  2005. ## Remarks
  2006. The default value of the <xref:Microsoft.Data.SqlClient.Server.SqlMethodAttribute.OnNullCall%2A> property is `true`.
  2007. ]]></format>
  2008. </remarks>
  2009. </member>
  2010. <member name="P:Microsoft.Data.SqlClient.Server.SqlMethodAttribute.IsMutator">
  2011. <summary>Indicates whether a method on a user-defined type (UDT) is a mutator.</summary><value> <see langword="true" /> if the method is a mutator; otherwise <see langword="false" />.</value><remarks>
  2012. <format type="text/markdown"><![CDATA[
  2013. ## Remarks
  2014. If the <xref:Microsoft.Data.SqlClient.Server.SqlMethodAttribute.IsMutator%2A> property is set to `true` and the return type of the method is `void`, SQL Server marks the method as a mutator. A mutator method is one that causes a state change in the UDT instance. Mutator methods can be called in assignment statements or data modification statements, but cannot be used in queries. If a method is marked as a mutator but does not return void, then CREATE TYPE does not fail with an error. Even though a returned value other than `void` does not raise an error, the returned value is not accessible and cannot be used.
  2015. The default value of the <xref:Microsoft.Data.SqlClient.Server.SqlMethodAttribute.IsMutator%2A> property is `false`.
  2016. A property can be a mutator if <xref:Microsoft.Data.SqlClient.Server.SqlMethodAttribute> is used on the setter and <xref:Microsoft.Data.SqlClient.Server.SqlMethodAttribute.IsMutator%2A> is set to `true`. However, a property setter is implicitly treated as a mutator, so it is not necessary to set the <xref:Microsoft.Data.SqlClient.Server.SqlMethodAttribute.IsMutator%2A> property of the <xref:Microsoft.Data.SqlClient.Server.SqlMethodAttribute> to `true`.
  2017. ]]></format>
  2018. </remarks>
  2019. </member>
  2020. <member name="P:Microsoft.Data.SqlClient.Server.SqlMethodAttribute.InvokeIfReceiverIsNull">
  2021. <summary>Indicates whether SQL Server should invoke the method on null instances.</summary><value> <see langword="true" /> if SQL Server should invoke the method on null instances; otherwise, <see langword="false" />. If the method cannot be invoked (because of an attribute on the method), the SQL Server <see langword="DbNull" /> is returned.</value><remarks>
  2022. <format type="text/markdown"><![CDATA[
  2023. ## Remarks
  2024. The default value of the `InvokeIfReceiverIsNull` property is `false`. That is, the method is not invoked on a null instance. If `InvokeIfReceiverIsNull` is `true`, the return value of the method depends upon its type. If the return type of the method is nullable, the distinguished null value for the type is returned. If the return type is non-nullable, the default CLR value for the type is returned. The default value for reference types is `null`. The default value for a value type is the value that is returned when you call the parameterless constructor for the type.
  2025. ]]></format>
  2026. </remarks>
  2027. </member>
  2028. <member name="T:Microsoft.Data.SqlClient.Server.SqlUserDefinedAggregateAttribute">
  2029. <summary>Indicates that the type should be registered as a user-defined aggregate. The properties on the attribute reflect the physical attributes used when the type is registered with SQL Server. This class cannot be inherited.</summary><remarks>
  2030. <format type="text/markdown"><![CDATA[
  2031. ## Remarks
  2032. SQL Server creates a user-defined aggregate that is bound to the class definition that has the <xref:Microsoft.Data.SqlClient.Server.SqlUserDefinedAggregateAttribute> custom attribute. Every user-defined aggregate must be annotated with this attribute.
  2033. See "CLR User-Defined Aggregates" in SQL Server 2005 Books Online for more information on user-defined aggregates and examples.
  2034. ## Examples
  2035. The following example shows the <xref:Microsoft.Data.SqlClient.Server.SqlUserDefinedAggregateAttribute> attribute for a user-defined aggregate. The aggregate uses custom serialization, has a maximum size of 8000 bytes when serialized, and is invariant to nulls, duplicates, and order.
  2036. [!code-csharp[SqlUserDefinedAggregate Sample#1](~/../sqlclient/doc/samples/SqlUserDefinedAggregate.cs#1)]
  2037. ]]></format>
  2038. </remarks>
  2039. </member>
  2040. <member name="F:Microsoft.Data.SqlClient.Server.SqlUserDefinedAggregateAttribute.MaxByteSizeValue">
  2041. <summary>The maximum size, in bytes, required to store the state of this aggregate instance during computation.</summary><remarks>
  2042. <format type="text/markdown"><![CDATA[
  2043. ## Remarks
  2044. An <xref:System.Int32> value representing the maximum size of the aggregate instance.
  2045. ]]></format>
  2046. </remarks>
  2047. </member>
  2048. <member name="M:Microsoft.Data.SqlClient.Server.SqlUserDefinedAggregateAttribute.#ctor(Microsoft.Data.SqlClient.Server.Format)">
  2049. <param name="format">One of the <see cref="T:Microsoft.Data.SqlClient.Server.Format" /> values representing the serialization format of the aggregate.</param><summary>A required attribute on a user-defined aggregate, used to indicate that the given type is a user-defined aggregate and the storage format of the user-defined aggregate.</summary>
  2050. </member>
  2051. <member name="P:Microsoft.Data.SqlClient.Server.SqlUserDefinedAggregateAttribute.MaxByteSize">
  2052. <summary>The maximum size, in bytes, of the aggregate instance.</summary><value>An <see cref="T:System.Int32" /> value representing the maximum size of the aggregate instance.</value><remarks>
  2053. <format type="text/markdown"><![CDATA[
  2054. ## Remarks
  2055. This property does not have to be specified for Native format serialization.
  2056. You must specify the <xref:Microsoft.Data.SqlClient.Server.SqlUserDefinedAggregateAttribute.MaxByteSize%2A> property with the UserDefined serialization <xref:Microsoft.Data.SqlClient.Server.Format>.
  2057. The maximum allowed value for this property is specified by the <xref:Microsoft.Data.SqlClient.Server.SqlUserDefinedAggregateAttribute.MaxByteSizeValue> field.
  2058. The maximum size allowed is 2 gigabytes (GB). You can specify a number from 1 to 8000 bytes, or -1 to represent a value larger than 8000 bytes, up to 2 gigabytes.
  2059. For an aggregate with user-defined serialization specified, <xref:Microsoft.Data.SqlClient.Server.SqlUserDefinedAggregateAttribute.MaxByteSize%2A> refers to the total size of the serialized data. Consider an aggregate serializing a string of 10 characters (<xref:System.Char>). When the string is serialized using a <xref:System.IO.BinaryWriter>, the total size of the serialized string is 22 bytes: 2 bytes per Unicode UTF-16 character, multiplied by the maximum number of characters, plus 2 control bytes of overhead incurred from serializing a binary stream. So, when determining the value of <xref:Microsoft.Data.SqlClient.Server.SqlUserDefinedAggregateAttribute.MaxByteSize%2A>, the total size of the serialized data must be considered: the size of the data serialized in binary form plus the overhead incurred by serialization.
  2060. ]]></format>
  2061. </remarks>
  2062. </member>
  2063. <member name="P:Microsoft.Data.SqlClient.Server.SqlUserDefinedAggregateAttribute.IsInvariantToDuplicates">
  2064. <summary>Indicates whether the aggregate is invariant to duplicates.</summary><value> <see langword="true" /> if the aggregate is invariant to duplicates; otherwise <see langword="false" />.</value><remarks>
  2065. <format type="text/markdown"><![CDATA[
  2066. ## Remarks
  2067. Used by the query processor, this property is `true` if the aggregate is invariant to duplicates. That is, the aggregate of S, {X} is the same as aggregate of S when X is already in S. For example, aggregate functions such as MIN and MAX satisfy this property, while SUM does not.
  2068. Incorrectly setting this property can result in incorrect query results. This property is not an optimizer hint; it affects both the plan selected and the results returned by the query.
  2069. ]]></format>
  2070. </remarks>
  2071. </member>
  2072. <member name="P:Microsoft.Data.SqlClient.Server.SqlUserDefinedAggregateAttribute.IsInvariantToNulls">
  2073. <summary>Indicates whether the aggregate is invariant to nulls.</summary><value> <see langword="true" /> if the aggregate is invariant to nulls; otherwise <see langword="false" />.</value><remarks>
  2074. <format type="text/markdown"><![CDATA[
  2075. ## Remarks
  2076. Used by the query processor, this property is `true` if the aggregate is invariant to nulls. That is, the aggregate of S, {NULL} is the same as aggregate of S. For example, aggregate functions such as MIN and MAX satisfy this property, while COUNT(*) does not.
  2077. Incorrectly setting this property can result in incorrect query results. This property is not an optimizer hint; it affects the plan selected and the results returned by the query.
  2078. ]]></format>
  2079. </remarks>
  2080. </member>
  2081. <member name="P:Microsoft.Data.SqlClient.Server.SqlUserDefinedAggregateAttribute.IsInvariantToOrder">
  2082. <summary>Indicates whether the aggregate is invariant to order.</summary><value> <see langword="true" /> if the aggregate is invariant to order; otherwise <see langword="false" />.</value><remarks>
  2083. <format type="text/markdown"><![CDATA[
  2084. ## Remarks
  2085. Reserved for future use. This property is not currently used by the query processor: order is currently not guaranteed.
  2086. Incorrectly setting this property can result in incorrect query results. This property is not an optimizer hint; it affects the plan selected and the results returned by the query.
  2087. The default value for this property is `false`.
  2088. ]]></format>
  2089. </remarks>
  2090. </member>
  2091. <member name="P:Microsoft.Data.SqlClient.Server.SqlUserDefinedAggregateAttribute.IsNullIfEmpty">
  2092. <summary>Indicates whether the aggregate returns <see langword="null" /> if no values have been accumulated.</summary><value> <see langword="true" /> if the aggregate returns <see langword="null" /> if no values have been accumulated; otherwise <see langword="false" />.</value><remarks>
  2093. <format type="text/markdown"><![CDATA[
  2094. ## Remarks
  2095. Used by the query processor, this property is `true` if the aggregate returns `null` if no values have been accumulated.
  2096. Incorrectly setting this property can result in incorrect query results. This property is not an optimizer hint; it affects the plan selected and the results returned by the query.
  2097. ]]></format>
  2098. </remarks>
  2099. </member>
  2100. <member name="P:Microsoft.Data.SqlClient.Server.SqlUserDefinedAggregateAttribute.Format">
  2101. <summary>The serialization format as a <see cref="T:Microsoft.Data.SqlClient.Server.Format" />.</summary><value>A <see cref="T:Microsoft.Data.SqlClient.Server.Format" /> representing the serialization format.</value><remarks>
  2102. <format type="text/markdown"><![CDATA[
  2103. ## Examples
  2104. [!code-csharp[SqlUserDefinedAggregate1#6](~/../sqlclient/doc/samples/SqlUserDefinedAggregate1.cs#6)]
  2105. ]]></format>
  2106. </remarks>
  2107. </member>
  2108. <member name="P:Microsoft.Data.SqlClient.Server.SqlUserDefinedAggregateAttribute.Name">
  2109. <summary>The name of the aggregate.</summary><value>A <see cref="T:System.String" /> value representing the name of the aggregate.</value>
  2110. </member>
  2111. <member name="T:Microsoft.Data.SqlClient.Server.Format">
  2112. <summary>Used by <see cref="T:Microsoft.Data.SqlClient.Server.SqlUserDefinedTypeAttribute" /> and <see cref="T:Microsoft.Data.SqlClient.Server.SqlUserDefinedAggregateAttribute" /> to indicate the serialization format of a user-defined type (UDT) or aggregate.</summary><remarks>
  2113. <format type="text/markdown"><![CDATA[
  2114. ## Remarks
  2115. This enumeration is used by <xref:Microsoft.Data.SqlClient.Server.SqlUserDefinedTypeAttribute> and <xref:Microsoft.Data.SqlClient.Server.SqlUserDefinedAggregateAttribute> to indicate the serialization format of a user-defined type (UDT) or aggregate. Use of the `Native` and `UserDefined` enumeration members has special requirements.
  2116. - `Format.Native`
  2117. The requirements for the `Format.Native` format are:
  2118. - The <xref:System.Runtime.InteropServices.StructLayoutAttribute> with a <xref:System.Runtime.InteropServices.StructLayoutAttribute.Value> property value of <xref:System.Runtime.InteropServices.LayoutKind.Sequential?displayProperty=nameWithType> must be applied to the aggregate or UDT if it is defined in a class and not a structure. This controls the physical layout of the data fields and is used to force the members to be laid out sequentially in the order they appear. SQL Server uses this attribute to determine the field order for UDTs with multiple fields.
  2119. - The type must contain at least one member (serialized values cannot be zero bytes in size).
  2120. - All the fields of the aggregate must be *blittable*; that is, they must have a common representation in both managed and unmanaged memory and not require special handling by the interop marshaler.
  2121. - All the fields of the UDT should be of one of the following types that can be serialized: `bool`, `byte`, `sbyte`, `short`, `ushort`, `int`, `uint`, `long`, `ulong`, `float`, `double`, <xref:System.Data.SqlTypes.SqlByte>, <xref:System.Data.SqlTypes.SqlInt16>, <xref:System.Data.SqlTypes.SqlInt32>, <xref:System.Data.SqlTypes.SqlInt64>, <xref:System.Data.SqlTypes.SqlDateTime>, <xref:System.Data.SqlTypes.SqlSingle>, <xref:System.Data.SqlTypes.SqlDouble>, <xref:System.Data.SqlTypes.SqlMoney>, or other value types defined by the user that contain fields of one of these types.
  2122. - The aggregate must not specify a value for `MaxByteSize`.
  2123. - The aggregate must not have any [NonSerialized] fields.
  2124. - Fields must not be marked as an explicit layout (with a <xref:System.Runtime.InteropServices.StructLayoutAttribute.Value?displayProperty=nameWithType> of <xref:System.Runtime.InteropServices.LayoutKind.Explicit?displayProperty=nameWithType>).
  2125. - `Format.UserDefined`
  2126. The requirements for the `Format.UserDefined` format are:
  2127. - The aggregate must specify a value for `MaxByteSize`.
  2128. - Specify the <xref:Microsoft.Data.SqlClient.Server.SqlUserDefinedTypeAttribute.IsByteOrdered%2A?displayProperty=nameWithType> attribute property. The default value is `false`.
  2129. - If you omit any field in the <xref:Microsoft.Data.SqlClient.Server.IBinarySerialize.Read%2A?displayProperty=nameWithType> or <xref:Microsoft.Data.SqlClient.Server.IBinarySerialize.Write%2A?displayProperty=nameWithType> methods, the state of that field is not serialized.
  2130. ## Examples
  2131. The following example shows the `UserDefinedType` attribute of the Point UDT. The UDT is byte-ordered, is named "Point", has a validation method named "ValidatePoint", and uses the native serialization format.
  2132. [!code-csharp[SqlUserDefinedType Example#1](~/../sqlclient/doc/samples/SqlUserDefinedType.cs#1)]
  2133. ]]></format>
  2134. </remarks>
  2135. </member>
  2136. <member name="F:Microsoft.Data.SqlClient.Server.Format.Unknown">
  2137. <summary>The serialization format is unknown.</summary>
  2138. </member>
  2139. <member name="F:Microsoft.Data.SqlClient.Server.Format.Native">
  2140. <summary>This serialization format uses a very simple algorithm that enables SQL Server to store an efficient representation of the UDT on disk. Types marked for <see langword="Native" /> serialization can only have value types (structs in Microsoft Visual C# and structures in Microsoft Visual Basic .NET) as members. Members of reference types (such as classes in Visual C# and Visual Basic), either user-defined or those existing in .NET class libraries (such as <see cref="T:System.String" />), are not supported.</summary>
  2141. </member>
  2142. <member name="F:Microsoft.Data.SqlClient.Server.Format.UserDefined">
  2143. <summary>This serialization format gives the developer full control over the binary format through the <see cref="M:Microsoft.Data.SqlClient.Server.IBinarySerialize.Write(System.IO.BinaryWriter)" /> and <see cref="M:Microsoft.Data.SqlClient.Server.IBinarySerialize.Read(System.IO.BinaryReader)" /> methods.</summary>
  2144. </member>
  2145. <member name="T:Microsoft.Data.SqlClient.Server.SqlUserDefinedTypeAttribute">
  2146. <summary>Used to mark a type definition in an assembly as a user-defined type (UDT) in SQL Server. The properties on the attribute reflect the physical characteristics used when the type is registered with SQL Server. This class cannot be inherited.</summary><remarks>
  2147. <format type="text/markdown"><![CDATA[
  2148. ## Remarks
  2149. SQL Server creates a user-defined type that is bound to the type definition that has the <xref:Microsoft.Data.SqlClient.Server.SqlUserDefinedTypeAttribute> custom attribute. Every UDT must be annotated with this attribute. See [CLR User-Defined Types](https://go.microsoft.com/fwlink/?LinkId=128028) for more information about UDTs, including an example of a UDT.
  2150. ## Examples
  2151. The following example shows the `UserDefinedType` attribute of the Point UDT. The UDT is byte-ordered, is named "Point", has a validation method named "ValidatePoint", and uses the native serialization format.
  2152. [!code-csharp[SqlUserDefinedType Example#1](~/../sqlclient/doc/samples/SqlUserDefinedType.cs#1)]
  2153. ]]></format>
  2154. </remarks>
  2155. </member>
  2156. <member name="M:Microsoft.Data.SqlClient.Server.SqlUserDefinedTypeAttribute.#ctor(Microsoft.Data.SqlClient.Server.Format)">
  2157. <param name="format">One of the <see cref="T:Microsoft.Data.SqlClient.Server.Format" /> values representing the serialization format of the type.</param><summary>A required attribute on a user-defined type (UDT), used to confirm that the given type is a UDT and to indicate the storage format of the UDT.</summary><remarks>
  2158. <format type="text/markdown"><![CDATA[
  2159. ## Remarks
  2160. The following example specifies that the `Format` of the user-defined type is `SerializedDataWithMetadata` and the `MaxByteSize` is 8000 bytes.
  2161. ## Examples
  2162. [!code-csharp[SqlUserDefinedType1#12](~/../sqlclient/doc/samples/SqlUserDefinedType1.cs#12)]
  2163. ]]></format>
  2164. </remarks>
  2165. </member>
  2166. <member name="P:Microsoft.Data.SqlClient.Server.SqlUserDefinedTypeAttribute.MaxByteSize">
  2167. <summary>The maximum size of the instance, in bytes.</summary><value>An <see cref="T:System.Int32" /> value representing the maximum size of the instance.</value><remarks>
  2168. <format type="text/markdown"><![CDATA[
  2169. ## Remarks
  2170. You must specify the <xref:Microsoft.Data.SqlClient.Server.SqlUserDefinedTypeAttribute.MaxByteSize%2A> property with the `UserDefined` serialization <xref:Microsoft.Data.SqlClient.Server.Format>.
  2171. When connecting to SQL Server 2005 or earlier, <xref:Microsoft.Data.SqlClient.Server.SqlUserDefinedTypeAttribute.MaxByteSize%2A> must be between 1 and 8000.
  2172. When connecting to SQL Server 2008 or later, set <xref:Microsoft.Data.SqlClient.Server.SqlUserDefinedTypeAttribute.MaxByteSize%2A> between 1 and 8000, for a type whose instances are always 8,000 bytes or less. For types that can have instances larger than 8000, specify -1.
  2173. For a UDT with user-defined serialization specified, <xref:Microsoft.Data.SqlClient.Server.SqlUserDefinedTypeAttribute.MaxByteSize%2A> refers to the total size of the UDT in its serialized form as defined by the user. Consider a UDT with a property of a string of 10 characters (<xref:System.Char>). When the UDT is serialized using a <xref:System.IO.BinaryWriter>, the total size of the serialized string is 22 bytes: 2 bytes per Unicode UTF-16 character, multiplied by the maximum number of characters, plus 2 control bytes of overhead incurred from serializing a binary stream. So, when determining the value of <xref:Microsoft.Data.SqlClient.Server.SqlUserDefinedTypeAttribute.MaxByteSize%2A>, the total size of the serialized UDT must be considered: the size of the data serialized in binary form plus the overhead incurred by serialization.
  2174. This property should not be used with `Native` serialization <xref:Microsoft.Data.SqlClient.Server.Format>.
  2175. ]]></format>
  2176. </remarks>
  2177. </member>
  2178. <member name="P:Microsoft.Data.SqlClient.Server.SqlUserDefinedTypeAttribute.IsFixedLength">
  2179. <summary>Indicates whether all instances of this user-defined type are the same length.</summary><value>
  2180. <see langword="true" /> if all instances of this type are the same length; otherwise <see langword="false" />.
  2181. </value><remarks>
  2182. <format type="text/markdown"><![CDATA[
  2183. ## Remarks
  2184. If set to `true`, all instances of UDTs corresponding to this common language runtime (CLR) type must have a length in bytes exactly equal to <xref:Microsoft.Data.SqlClient.Server.SqlUserDefinedTypeAttribute.MaxByteSize%2A>. This attribute is only relevant for UDTs with `UserDefined` serialization <xref:Microsoft.Data.SqlClient.Server.Format>.
  2185. ]]></format>
  2186. </remarks>
  2187. </member>
  2188. <member name="P:Microsoft.Data.SqlClient.Server.SqlUserDefinedTypeAttribute.IsByteOrdered">
  2189. <summary>Indicates whether the user-defined type is byte ordered.</summary><value>
  2190. <see langword="true" /> if the user-defined type is byte ordered; otherwise <see langword="false" /> .</value><remarks>
  2191. <format type="text/markdown"><![CDATA[
  2192. ## Remarks
  2193. When set to `true`, the <xref:Microsoft.Data.SqlClient.Server.SqlUserDefinedTypeAttribute.IsByteOrdered%2A> property in effect guarantees that the serialized binary data can be used for semantic ordering of the information. Thus, each instance of a byte-ordered UDT object can only have one serialized representation. When a comparison operation is performed in SQL Server on the serialized bytes, its results should be the same as if the same comparison operation had taken place in managed code.
  2194. The following features are supported when <xref:Microsoft.Data.SqlClient.Server.SqlUserDefinedTypeAttribute.IsByteOrdered%2A> is set to `true`:
  2195. - The ability to create indexes on columns of this type.
  2196. - The ability to create primary and foreign keys as well as CHECK and UNIQUE constraints on columns of this type.
  2197. - The ability to use Transact-SQL ORDER BY, GROUP BY, and PARTITION BY clauses. In these cases, the binary representation of the type is used to determine the order.
  2198. - The ability to use comparison operators in Transact-SQL statements.
  2199. - The ability to persist computed columns of this type.
  2200. Note that both the `Native` and `UserDefined` serialization formats support the following comparison operators when <xref:Microsoft.Data.SqlClient.Server.SqlUserDefinedTypeAttribute.IsByteOrdered%2A> is set to `true`:
  2201. - Equal to (=)
  2202. - Not equal to (!=)
  2203. - Greater than (>)
  2204. - Less than (\<)
  2205. - Greater than or equal to (>=)
  2206. - Less than or equal to (<=)
  2207. ]]></format>
  2208. </remarks>
  2209. </member>
  2210. <member name="P:Microsoft.Data.SqlClient.Server.SqlUserDefinedTypeAttribute.Format">
  2211. <summary>The serialization format as a <see cref="T:Microsoft.Data.SqlClient.Server.Format" /> .</summary><value>A <see cref="T:Microsoft.Data.SqlClient.Server.Format" /> value representing the serialization format.</value>
  2212. </member>
  2213. <member name="P:Microsoft.Data.SqlClient.Server.SqlUserDefinedTypeAttribute.ValidationMethodName">
  2214. <summary>The name of the method used to validate instances of the user-defined type.</summary><value>A <see cref="T:System.String" /> representing the name of the method used to validate instances of the user-defined type.</value><remarks>
  2215. <format type="text/markdown"><![CDATA[
  2216. ## Remarks
  2217. The method specified by this attribute validates instances of the UDT when the UDT has been deserialized from a binary value that is not trusted.
  2218. ]]></format>
  2219. </remarks>
  2220. </member>
  2221. <member name="P:Microsoft.Data.SqlClient.Server.SqlUserDefinedTypeAttribute.Name">
  2222. <summary>The SQL Server name of the user-defined type.</summary><value>A <see cref="T:System.String" /> value representing the SQL Server name of the user-defined type.</value><remarks>
  2223. <format type="text/markdown"><![CDATA[
  2224. ## Remarks
  2225. The <xref:Microsoft.Data.SqlClient.Server.SqlUserDefinedTypeAttribute.Name%2A> property is not used within SQL Server, but is used by the Microsoft Visual Studio .NET Integrated Development Environment (IDE).
  2226. ]]></format>
  2227. </remarks>
  2228. </member>
  2229. <member name="T:Microsoft.Data.SqlClient.ActiveDirectoryAuthenticationTimeoutRetryState">
  2230. <summary>
  2231. AD auth retry states.
  2232. </summary>
  2233. </member>
  2234. <member name="T:Microsoft.Data.SqlClient.ActiveDirectoryAuthenticationTimeoutRetryHelper">
  2235. <summary>
  2236. AD auth retry helper.
  2237. </summary>
  2238. </member>
  2239. <member name="M:Microsoft.Data.SqlClient.ActiveDirectoryAuthenticationTimeoutRetryHelper.#ctor">
  2240. <summary>
  2241. Constructor.
  2242. </summary>
  2243. </member>
  2244. <member name="P:Microsoft.Data.SqlClient.ActiveDirectoryAuthenticationTimeoutRetryHelper.State">
  2245. <summary>
  2246. Retry state.
  2247. </summary>
  2248. </member>
  2249. <member name="P:Microsoft.Data.SqlClient.ActiveDirectoryAuthenticationTimeoutRetryHelper.CachedToken">
  2250. <summary>
  2251. Cached token.
  2252. </summary>
  2253. </member>
  2254. <member name="M:Microsoft.Data.SqlClient.ActiveDirectoryAuthenticationTimeoutRetryHelper.CanRetryWithSqlException(Microsoft.Data.SqlClient.SqlException)">
  2255. <summary>
  2256. Whether login can be retried after a client/server connection timeout due to a long-time token acquisition.
  2257. </summary>
  2258. </member>
  2259. <member name="T:Microsoft.Data.SqlClient.ActiveDirectoryNativeAuthenticationProvider">
  2260. <summary>
  2261. Default auth provider for AD Integrated.
  2262. </summary>
  2263. </member>
  2264. <member name="M:Microsoft.Data.SqlClient.ActiveDirectoryNativeAuthenticationProvider.AcquireTokenAsync(Microsoft.Data.SqlClient.SqlAuthenticationParameters)">
  2265. <summary>
  2266. Get token.
  2267. </summary>
  2268. </member>
  2269. <member name="M:Microsoft.Data.SqlClient.ActiveDirectoryNativeAuthenticationProvider.IsSupported(Microsoft.Data.SqlClient.SqlAuthenticationMethod)">
  2270. <summary>
  2271. Checks support for authentication type in lower case.
  2272. Interactive authenticatin added.
  2273. </summary>
  2274. </member>
  2275. <member name="T:Microsoft.Data.SqlClient.SqlAuthenticationParameters">
  2276. <summary>Represents AD authentication parameters passed by a driver to authentication providers.</summary>
  2277. </member>
  2278. <member name="P:Microsoft.Data.SqlClient.SqlAuthenticationParameters.AuthenticationMethod">
  2279. <summary>Gets the authentication method.</summary><value>The authentication method.</value>
  2280. </member>
  2281. <member name="P:Microsoft.Data.SqlClient.SqlAuthenticationParameters.Resource">
  2282. <summary>The resource URIs.</summary><value>The resource URI.</value>
  2283. </member>
  2284. <member name="P:Microsoft.Data.SqlClient.SqlAuthenticationParameters.Authority">
  2285. <summary>Gets the authority URI.</summary><value>The authority URI.</value>
  2286. </member>
  2287. <member name="P:Microsoft.Data.SqlClient.SqlAuthenticationParameters.UserId">
  2288. <summary>Gets the user login name/ID.</summary><value>The user login name/ID.</value>
  2289. </member>
  2290. <member name="P:Microsoft.Data.SqlClient.SqlAuthenticationParameters.Password">
  2291. <summary>Gets the user password.</summary><value>The user password.</value>
  2292. </member>
  2293. <member name="P:Microsoft.Data.SqlClient.SqlAuthenticationParameters.ConnectionId">
  2294. <summary>Gets the connection ID.</summary><value>The connection ID.</value>
  2295. </member>
  2296. <member name="P:Microsoft.Data.SqlClient.SqlAuthenticationParameters.ServerName">
  2297. <summary>Gets the server name.</summary><value>The server name.</value>
  2298. </member>
  2299. <member name="P:Microsoft.Data.SqlClient.SqlAuthenticationParameters.DatabaseName">
  2300. <summary>Gets the database name.</summary><value>The database name.</value>
  2301. </member>
  2302. <member name="M:Microsoft.Data.SqlClient.SqlAuthenticationParameters.#ctor(Microsoft.Data.SqlClient.SqlAuthenticationMethod,System.String,System.String,System.String,System.String,System.String,System.String,System.Guid)">
  2303. <param name="authenticationMethod">One of the enumeration values that specifies the authentication method.</param><param name="serverName">The server name.</param><param name="databaseName">The database name.</param><param name="resource">The resource URI.</param><param name="authority">The authority URI.</param><param name="userId">The user login name/ID.</param><param name="password">The user password.</param><param name="connectionId">The connection ID.</param><summary>Initializes a new instance of the <see cref="T:Microsoft.Data.SqlClient.SqlAuthenticationParameters" />
  2304. class using the specified authentication method, server name, database name, resource URI, authority URI, user login name/ID, user password and connection ID.</summary>
  2305. </member>
  2306. <member name="T:Microsoft.Data.SqlClient.SqlAuthenticationParameters.Builder">
  2307. <summary>
  2308. AD authentication parameter builder.
  2309. </summary>
  2310. </member>
  2311. <member name="M:Microsoft.Data.SqlClient.SqlAuthenticationParameters.Builder.op_Implicit(Microsoft.Data.SqlClient.SqlAuthenticationParameters.Builder)~Microsoft.Data.SqlClient.SqlAuthenticationParameters">
  2312. <summary>
  2313. Implicitly converts to <see cref="T:Microsoft.Data.SqlClient.SqlAuthenticationParameters"/>.
  2314. </summary>
  2315. </member>
  2316. <member name="M:Microsoft.Data.SqlClient.SqlAuthenticationParameters.Builder.WithUserId(System.String)">
  2317. <summary>
  2318. Set user id.
  2319. </summary>
  2320. </member>
  2321. <member name="M:Microsoft.Data.SqlClient.SqlAuthenticationParameters.Builder.WithPassword(System.String)">
  2322. <summary>
  2323. Set password.
  2324. </summary>
  2325. </member>
  2326. <member name="M:Microsoft.Data.SqlClient.SqlAuthenticationParameters.Builder.WithPassword(System.Security.SecureString)">
  2327. <summary>
  2328. Set password.
  2329. </summary>
  2330. </member>
  2331. <member name="M:Microsoft.Data.SqlClient.SqlAuthenticationParameters.Builder.WithConnectionId(System.Guid)">
  2332. <summary>
  2333. Set a specific connection id instead of using a random one.
  2334. </summary>
  2335. </member>
  2336. <member name="T:Microsoft.Data.SqlClient.SqlAuthenticationProvider">
  2337. <summary>Defines the core behavior of authentication providers and provides a base class for derived classes. </summary><remarks>Derived classes must provide a parameterless constructor if they can be instantiated from the app.config file.</remarks>
  2338. </member>
  2339. <member name="M:Microsoft.Data.SqlClient.SqlAuthenticationProvider.GetProvider(Microsoft.Data.SqlClient.SqlAuthenticationMethod)">
  2340. <param name="authenticationMethod">The authentication method.</param><summary>Gets an authentication provider by method.</summary><returns>The authentication provider or <see langword="null" /> if not found.</returns><remarks>To be added.</remarks>
  2341. </member>
  2342. <member name="M:Microsoft.Data.SqlClient.SqlAuthenticationProvider.SetProvider(Microsoft.Data.SqlClient.SqlAuthenticationMethod,Microsoft.Data.SqlClient.SqlAuthenticationProvider)">
  2343. <param name="authenticationMethod">The authentication method.</param><param name="provider">The authentication provider.</param><summary>Sets an authentication provider by method.</summary><returns>
  2344. <see langword="true" /> if the operation succeeded; otherwise, <see langword="false" /> (for example, the existing provider disallows overriding).
  2345. </returns><remarks>To be added.</remarks>
  2346. </member>
  2347. <member name="M:Microsoft.Data.SqlClient.SqlAuthenticationProvider.BeforeLoad(Microsoft.Data.SqlClient.SqlAuthenticationMethod)">
  2348. <param name="authenticationMethod">The authentication method.</param><summary>This method is called immediately before the provider is added to SQL drivers registry. </summary><remarks>Avoid performing long-waiting tasks in this method, since it can block other threads from accessing the provider registry.</remarks>
  2349. </member>
  2350. <member name="M:Microsoft.Data.SqlClient.SqlAuthenticationProvider.BeforeUnload(Microsoft.Data.SqlClient.SqlAuthenticationMethod)">
  2351. <param name="authenticationMethod">The authentication method.</param><summary>This method is called immediately before the provider is removed from the SQL drivers registry. </summary><remarks>For example, this method is called when a different provider with the same authentication method overrides this provider in the SQL drivers registry. Avoid performing long-waiting task in this method, since it can block other threads from accessing the provider registry.</remarks>
  2352. </member>
  2353. <member name="M:Microsoft.Data.SqlClient.SqlAuthenticationProvider.IsSupported(Microsoft.Data.SqlClient.SqlAuthenticationMethod)">
  2354. <param name="authenticationMethod">The authentication method.</param><summary>Indicates whether the specified authentication method is supported.</summary><returns>
  2355. <see langword="true" /> if the specified authentication method is supported; otherwise, <see langword="false" />.</returns><remarks>To be added.</remarks>
  2356. </member>
  2357. <member name="M:Microsoft.Data.SqlClient.SqlAuthenticationProvider.AcquireTokenAsync(Microsoft.Data.SqlClient.SqlAuthenticationParameters)">
  2358. <param name="parameters">The Active Directory authentication parameters passed by the driver to authentication providers.</param><summary>Acquires a security token from the authority.</summary><returns>Represents an asynchronous operation that returns the AD authentication token.</returns><remarks>To be added.</remarks>
  2359. </member>
  2360. <member name="T:Microsoft.Data.SqlClient.SqlAuthenticationProviderManager">
  2361. <summary>
  2362. Authentication provider manager.
  2363. </summary>
  2364. </member>
  2365. <member name="M:Microsoft.Data.SqlClient.SqlAuthenticationProviderManager.#ctor(Microsoft.Data.SqlClient.SqlAuthenticationProviderConfigurationSection)">
  2366. <summary>
  2367. Constructor.
  2368. </summary>
  2369. </member>
  2370. <member name="M:Microsoft.Data.SqlClient.SqlAuthenticationProviderManager.GetProvider(Microsoft.Data.SqlClient.SqlAuthenticationMethod)">
  2371. <summary>
  2372. Get an authentication provider by method.
  2373. </summary>
  2374. <param name="authenticationMethod">Authentication method.</param>
  2375. <returns>Authentication provider or null if not found.</returns>
  2376. </member>
  2377. <member name="M:Microsoft.Data.SqlClient.SqlAuthenticationProviderManager.SetProvider(Microsoft.Data.SqlClient.SqlAuthenticationMethod,Microsoft.Data.SqlClient.SqlAuthenticationProvider)">
  2378. <summary>
  2379. Set an authentication provider by method.
  2380. </summary>
  2381. <param name="authenticationMethod">Authentication method.</param>
  2382. <param name="provider">Authentication provider.</param>
  2383. <returns>True if succeeded, false otherwise, e.g., the existing provider disallows overriding.</returns>
  2384. </member>
  2385. <member name="T:Microsoft.Data.SqlClient.SqlAuthenticationProviderConfigurationSection">
  2386. <summary>
  2387. The configuration section definition for reading app.config.
  2388. </summary>
  2389. </member>
  2390. <member name="P:Microsoft.Data.SqlClient.SqlAuthenticationProviderConfigurationSection.Providers">
  2391. <summary>
  2392. User-defined auth providers.
  2393. </summary>
  2394. </member>
  2395. <member name="P:Microsoft.Data.SqlClient.SqlAuthenticationProviderConfigurationSection.InitializerType">
  2396. <summary>
  2397. User-defined initializer.
  2398. </summary>
  2399. </member>
  2400. <member name="T:Microsoft.Data.SqlClient.SqlAuthenticationInitializer">
  2401. <summary>Called from constructors in derived classes to initialize the <see cref="T:Microsoft.Data.SqlClient.SqlAuthenticationInitializer" /> class.</summary><remarks>To be added.</remarks>
  2402. </member>
  2403. <member name="M:Microsoft.Data.SqlClient.SqlAuthenticationInitializer.Initialize">
  2404. <summary>Called from constructors in derived classes to initialize the <see cref="T:Microsoft.Data.SqlClient.SqlAuthenticationInitializer" /> class.</summary><remarks>To be added.</remarks>
  2405. </member>
  2406. <member name="T:Microsoft.Data.SqlClient.SqlAuthenticationToken">
  2407. <summary>Represents an AD authentication token.</summary>
  2408. </member>
  2409. <member name="P:Microsoft.Data.SqlClient.SqlAuthenticationToken.ExpiresOn">
  2410. <summary>Gets the token expiration time.</summary><value>The token expiration time.</value>
  2411. </member>
  2412. <member name="P:Microsoft.Data.SqlClient.SqlAuthenticationToken.AccessToken">
  2413. <summary>Gets the token string.</summary><value>The token string.</value>
  2414. </member>
  2415. <member name="M:Microsoft.Data.SqlClient.SqlAuthenticationToken.#ctor(System.String,System.DateTimeOffset)">
  2416. <param name="accessToken">The access token.</param><param name="expiresOn">The token expiration time.</param><summary>Initializes a new instance of the <see cref="T:Microsoft.Data.SqlClient.SqlAuthenticationToken" /> class.</summary><exception cref="T:System.ArgumentNullException">The <paramref name="accessToken" />parameter is <see langword="null" />or empty.</exception>
  2417. </member>
  2418. <member name="M:Microsoft.Data.SqlClient.SqlAuthenticationToken.#ctor(System.Byte[],System.DateTimeOffset)">
  2419. <summary>
  2420. Constructor.
  2421. </summary>
  2422. </member>
  2423. <member name="M:Microsoft.Data.SqlClient.SqlAuthenticationToken.ToSqlFedAuthToken">
  2424. <summary>
  2425. Convert to driver's internal token class.
  2426. </summary>
  2427. </member>
  2428. <member name="M:Microsoft.Data.SqlClient.SqlAuthenticationToken.AccessTokenStringFromBytes(System.Byte[])">
  2429. <summary>
  2430. Convert token bytes to string.
  2431. </summary>
  2432. </member>
  2433. <member name="M:Microsoft.Data.SqlClient.SqlAuthenticationToken.AccessTokenBytesFromString(System.String)">
  2434. <summary>
  2435. Convert token string to bytes.
  2436. </summary>
  2437. </member>
  2438. <member name="T:Microsoft.Data.SqlClient.ApplicationIntent">
  2439. <summary>
  2440. Specifies a value for <see cref="P:Microsoft.Data.SqlClient.SqlConnectionStringBuilder.ApplicationIntent" />. Possible values are <see langword="ReadWrite" /> and <see langword="ReadOnly" />.
  2441. </summary><remarks>To be added.</remarks>
  2442. </member>
  2443. <member name="F:Microsoft.Data.SqlClient.ApplicationIntent.ReadWrite">
  2444. <summary>The application workload type when connecting to a server is read write.</summary><returns>0</returns><value>0</value>
  2445. </member>
  2446. <member name="F:Microsoft.Data.SqlClient.ApplicationIntent.ReadOnly">
  2447. <summary>The application workload type when connecting to a server is read only.</summary><returns>1</returns><value>1</value>
  2448. </member>
  2449. <member name="T:Microsoft.Data.SqlClient.SqlRowsCopiedEventArgs">
  2450. <summary>Represents the set of arguments passed to the <see cref="T:Microsoft.Data.SqlClient.SqlRowsCopiedEventHandler" />.</summary><remarks>To be added.</remarks>
  2451. </member>
  2452. <member name="M:Microsoft.Data.SqlClient.SqlRowsCopiedEventArgs.#ctor(System.Int64)">
  2453. <param name="rowsCopied">An <see cref="T:System.Int64" /> that indicates the number of rows copied during the current bulk copy operation.</param><summary>Creates a new instance of the <see cref="T:Microsoft.Data.SqlClient.SqlRowsCopiedEventArgs" /> object.</summary><remarks>
  2454. <format type="text/markdown"><![CDATA[
  2455. ## Remarks
  2456. The value in the `rowsCopied` parameter is reset on each call to any one of the `SqlBulkCopy.WriteToServer` methods.
  2457. ]]></format>
  2458. </remarks>
  2459. </member>
  2460. <member name="P:Microsoft.Data.SqlClient.SqlRowsCopiedEventArgs.Abort">
  2461. <summary>Gets or sets a value that indicates whether the bulk copy operation should be aborted.</summary><value>
  2462. <see langword="true" /> if the bulk copy operation should be aborted; otherwise <see langword="false" />.</value><remarks>
  2463. <format type="text/markdown"><![CDATA[
  2464. ## Remarks
  2465. Use the <xref:Microsoft.Data.SqlClient.SqlRowsCopiedEventArgs.Abort%2A> property to cancel a bulk copy operation. Set <xref:Microsoft.Data.SqlClient.SqlRowsCopiedEventArgs.Abort%2A> to `true` to abort the bulk copy operation.
  2466. If you call the **Close** method from <xref:Microsoft.Data.SqlClient.SqlBulkCopy.SqlRowsCopied>, an exception is generated, and the <xref:Microsoft.Data.SqlClient.SqlBulkCopy> object state does not change.
  2467. If an application specifically creates a <xref:Microsoft.Data.SqlClient.SqlTransaction> object in the <xref:Microsoft.Data.SqlClient.SqlCommand> constructor, the transaction is not rolled back. The application is responsible for determining whether it is required to rollback the operation, and if so, it must call the <xref:Microsoft.Data.SqlClient.SqlTransaction.Rollback%2A?displayProperty=nameWithType> method. If the application does not create a transaction, the internal transaction corresponding to the current batch is automatically rolled back. However, changes related to previous batches within the bulk copy operation are retained, because the transactions for them already have been committed.
  2468. ]]></format>
  2469. </remarks>
  2470. </member>
  2471. <member name="P:Microsoft.Data.SqlClient.SqlRowsCopiedEventArgs.RowsCopied">
  2472. <summary>Gets a value that returns the number of rows copied during the current bulk copy operation.</summary><value>
  2473. <see langword="int" /> that returns the number of rows copied.</value><remarks>
  2474. <format type="text/markdown"><![CDATA[
  2475. ## Remarks
  2476. The value in the <xref:Microsoft.Data.SqlClient.SqlRowsCopiedEventArgs.RowsCopied%2A> property is reset on each call to any of the `SqlBulkCopy.WriteToServer` methods.
  2477. ]]></format>
  2478. </remarks>
  2479. </member>
  2480. <member name="T:Microsoft.Data.SqlClient.SqlRowsCopiedEventHandler">
  2481. <param name="sender">The source of the event.</param><param name="e">A <see cref="T:Microsoft.Data.SqlClient.SqlRowsCopiedEventArgs" /> object that contains the event data.</param><summary>Represents the method that handles the <see cref="E:Microsoft.Data.SqlClient.SqlBulkCopy.SqlRowsCopied" /> event of a <see cref="T:Microsoft.Data.SqlClient.SqlBulkCopy" />.</summary><remarks>To be added.</remarks>
  2482. </member>
  2483. <member name="T:Microsoft.Data.SqlClient.SortOrder">
  2484. <summary>
  2485. Specifies how rows of data are sorted.
  2486. </summary><remarks>To be added.</remarks>
  2487. </member>
  2488. <member name="F:Microsoft.Data.SqlClient.SortOrder.Unspecified">
  2489. <summary>The default. No sort order is specified.</summary><value>-1</value><returns>-1</returns>
  2490. </member>
  2491. <member name="F:Microsoft.Data.SqlClient.SortOrder.Ascending">
  2492. <summary>Rows are sorted in ascending order.</summary><value>0</value><returns>0</returns>
  2493. </member>
  2494. <member name="F:Microsoft.Data.SqlClient.SortOrder.Descending">
  2495. <summary>Rows are sorted in descending order.</summary><value>1</value><returns>1</returns>
  2496. </member>
  2497. <member name="T:Microsoft.Data.SqlClient.SqlBulkCopy">
  2498. <summary>
  2499. Lets you efficiently bulk load a SQL Server table with data from another source.
  2500. </summary><remarks>
  2501. <format ttype="text/markdown"><![CDATA[
  2502. ## Remarks
  2503. Microsoft SQL Server includes a popular command-prompt utility named **bcp** for moving data from one table to another, whether on a single server or between servers. The <see cref="Microsoft.Data.SqlClient.SqlBulkCopy"/> class lets you write managed code solutions that provide similar functionality. There are other ways to load data into a SQL Server table (INSERT statements, for example), but <see cref="Microsoft.Data.SqlClient.SqlBulkCopy"/> offers a significant performance advantage over them. The <see cref="Microsoft.Data.SqlClient.SqlBulkCopy"/> class can be used to write data only to SQL Server tables. However, the data source is not limited to SQL Server; any data source can be used, as long as the data can be loaded to a <see cref="System.Data.DataTable"/> instance or read with a <see cref="System.Data.IDataReader"/> instance. <see cref="Microsoft.Data.SqlClient.SqlBulkCopy"/> will fail when bulk loading a <see cref="System.Data.DataTable"/> column of type <see cref="System.Data.SqlTypes.SqlDateTime"/> into a SQL Server column whose type is one of the date/time types added in SQL Server 2008.
  2504. ## Examples
  2505. The following console application demonstrates how to load data using the <xref=Microsoft.Data.SqlClient.SqlBulkCopy> class.
  2506. In this example, a <xref=Microsoft.Data.SqlClient.SqlDataReader> is used to copy data from the **Production.Product** table in the SQL Server **AdventureWorks** database to a similar table in the same database.
  2507. > [!IMPORTANT]
  2508. > This sample will not run unless you have created the work tables as described in [Bulk Copy Example Setup](~/docs/framework/data/adonet/sql/bulk-copy-example-setup.md).
  2509. This code is provided to demonstrate the syntax for using **SqlBulkCopy** only. If the source and destination tables are in the same SQL Server instance,
  2510. it is easier and faster to use a Transact-SQL `INSERT … SELECT` statement to copy the data.
  2511. [!code-csharp[BulkCopy.Single#1](~/../sqlclient/doc/samples/SqlBulkCopy_Single.cs#1)]
  2512. ]]></format>
  2513. </remarks>
  2514. </member>
  2515. <member name="M:Microsoft.Data.SqlClient.SqlBulkCopy.#ctor(Microsoft.Data.SqlClient.SqlConnection)">
  2516. <param name="connection">
  2517. The already open
  2518. <see cref="T:Microsoft.Data.SqlClient.SqlConnection" />
  2519. instance that will be used to perform the bulk copy operation. If your connection string does not use
  2520. <see langword="Integrated Security = true" />
  2521. , you can use
  2522. <see cref="T:Microsoft.Data.SqlClient.SqlCredential" />
  2523. to pass the user ID and password more securely than by specifying the user ID and password as text in the connection string.
  2524. </param><summary>
  2525. Initializes a new instance of the
  2526. <see cref="T:Microsoft.Data.SqlClient.SqlBulkCopy" />
  2527. class using the specified open instance of
  2528. <see cref="T:Microsoft.Data.SqlClient.SqlConnection" />
  2529. .
  2530. </summary><remarks>
  2531. <format type="text/markdown"><![CDATA[
  2532. ## Remarks
  2533. Because the connection is already open when the <xref:Microsoft.Data.SqlClient.SqlBulkCopy> instance is initialized, the connection remains open after the <xref:Microsoft.Data.SqlClient.SqlBulkCopy> instance is closed.
  2534. If the `connection` argument is null, an <xref:System.ArgumentNullException> is thrown.
  2535. ## Examples
  2536. The following console application demonstrates how to bulk load data using a connection that is already open. In this example, a <xref:Microsoft.Data.SqlClient.SqlDataReader>
  2537. is used to copy data from the **Production.Product** table in the SQL Server **AdventureWorks** database to a similar table in the same database. This example is for demonstration
  2538. purposes only. You would not use `SqlBulkCopy` to move data from one table to another in the same database in a production application.
  2539. Note that the source data does not have to be located on SQL Server; you can use any data source that can be read to an <xref:System.Data.IDataReader> or loaded to a
  2540. <xref:System.Data.DataTable>.
  2541. > [!IMPORTANT]
  2542. > This sample will not run unless you have created the work tables as described in [Bulk Copy Example Setup](~/docs/framework/data/adonet/sql/bulk-copy-example-setup.md).
  2543. This code is provided to demonstrate the syntax for using **SqlBulkCopy** only. If the source and destination tables are in the same SQL Server instance, it is easier and faster to use a
  2544. Transact-SQL `INSERT … SELECT` statement to copy the data.
  2545. [!code-csharp[BulkCopy.Single#1](~/../sqlclient/doc/samples/SqlBulkCopy_Single.cs#1)]
  2546. ]]></format>
  2547. </remarks>
  2548. </member>
  2549. <member name="M:Microsoft.Data.SqlClient.SqlBulkCopy.#ctor(Microsoft.Data.SqlClient.SqlConnection,Microsoft.Data.SqlClient.SqlBulkCopyOptions,Microsoft.Data.SqlClient.SqlTransaction)">
  2550. <param name="connection">
  2551. The already open
  2552. <see cref="T:Microsoft.Data.SqlClient.SqlConnection" />
  2553. instance that will be used to perform the bulk copy. If your connection string does not use
  2554. <see langword="Integrated Security = true" />
  2555. , you can use
  2556. <see cref="T:Microsoft.Data.SqlClient.SqlCredential" />
  2557. to pass the user ID and password more securely than by specifying the user ID and password as text in the connection string.
  2558. </param><param name="copyOptions">
  2559. A combination of values from the
  2560. <see cref="T:Microsoft.Data.SqlClient.SqlBulkCopyOptions" />
  2561. enumeration that determines which data source rows are copied to the destination table.
  2562. </param><param name="externalTransaction">
  2563. An existing
  2564. <see cref="T:Microsoft.Data.SqlClient.SqlTransaction" />
  2565. instance under which the bulk copy will occur.
  2566. </param><summary>
  2567. Initializes a new instance of the
  2568. <see cref="T:Microsoft.Data.SqlClient.SqlBulkCopy" />
  2569. class using the supplied existing open instance of
  2570. <see cref="T:Microsoft.Data.SqlClient.SqlConnection" />
  2571. . The
  2572. <see cref="T:Microsoft.Data.SqlClient.SqlBulkCopy" />
  2573. instance behaves according to options supplied in the
  2574. <paramref name="copyOptions" />
  2575. parameter. If a non-null
  2576. <see cref="T:Microsoft.Data.SqlClient.SqlTransaction" />
  2577. is supplied, the copy operations will be performed within that transaction.
  2578. </summary><remarks>
  2579. <format type="text/markdown"><![CDATA[
  2580. ## Remarks
  2581. If options include `UseInternalTransaction` and the `externalTransaction` argument is not null, an **InvalidArgumentException** is thrown.
  2582. For examples demonstrating how to use `SqlBulkCopy` in a transaction, see [Transaction and Bulk Copy Operations](~/docs/framework/data/adonet/sql/transaction-and-bulk-copy-operations.md).
  2583. ]]></format>
  2584. </remarks><related type="Article" href="https://msdn.microsoft.com/library/83a7a0d2-8018-4354-97b9-0b1d99f8342b">
  2585. Performing Bulk Copy Operations
  2586. </related><related type="Article" href="~/docs/framework/data/adonet/ado-net-overview.md">
  2587. ADO.NET Overview
  2588. </related>
  2589. </member>
  2590. <member name="M:Microsoft.Data.SqlClient.SqlBulkCopy.#ctor(System.String)">
  2591. <param name="connectionString">
  2592. The string defining the connection that will be opened for use by the
  2593. <see cref="T:Microsoft.Data.SqlClient.SqlBulkCopy" />
  2594. instance.
  2595. If your connection string does not use
  2596. <see langword="Integrated Security = true" />
  2597. , you can use
  2598. <see cref="M:Microsoft.Data.SqlClient.SqlBulkCopy.#ctor(Microsoft.Data.SqlClient.SqlConnection)" />
  2599. or
  2600. <see cref="M:Microsoft.Data.SqlClient.SqlBulkCopy.#ctor(Microsoft.Data.SqlClient.SqlConnection,Microsoft.Data.SqlClient.SqlBulkCopyOptions,Microsoft.Data.SqlClient.SqlTransaction)" />
  2601. and
  2602. <see cref="T:Microsoft.Data.SqlClient.SqlCredential" />
  2603. to pass the user ID and password more securely than by specifying the user ID and password as text in the connection string.
  2604. </param><summary>
  2605. Initializes and opens a new instance of
  2606. <see cref="T:Microsoft.Data.SqlClient.SqlConnection" />
  2607. based on the supplied
  2608. <paramref name="connectionString" />
  2609. . The constructor uses the
  2610. <see cref="T:Microsoft.Data.SqlClient.SqlConnection" />
  2611. to initialize a new instance of the
  2612. <see cref="T:Microsoft.Data.SqlClient.SqlBulkCopy" />
  2613. class.
  2614. </summary><remarks>
  2615. <format type="text/markdown"><![CDATA[
  2616. ## Remarks
  2617. The connection is automatically closed at the end of the bulk copy operation.
  2618. If `connectionString` is null, an <xref:System.ArgumentNullException> is thrown. If `connectionString` is an empty string, an <xref:System.ArgumentException> is thrown.
  2619. ## Examples
  2620. The following console application demonstrates how to bulk load data by using a connection specified as a string. The connection is automatically
  2621. closed when the <xref:Microsoft.Data.SqlClient.SqlBulkCopy> instance is closed.
  2622. In this example, the source data is first read from a SQL Server table to a <xref:Microsoft.Data.SqlClient.SqlDataReader> instance.
  2623. The source data does not have to be located on SQL Server; you can use any data source that can be read to an <xref:System.Data.IDataReader> or loaded to a <xref:System.Data.DataTable>.
  2624. > [!IMPORTANT]
  2625. > This sample will not run unless you have created the work tables as described in [Bulk Copy Example Setup](~/docs/framework/data/adonet/sql/bulk-copy-example-setup.md).
  2626. This code is provided to demonstrate the syntax for using **SqlBulkCopy** only. If the source and destination tables are in the same SQL Server instance,
  2627. it is easier and faster to use a Transact-SQL `INSERT … SELECT` statement to copy the data.
  2628. [!code-csharp[SqlBulkCopy.ConnectionString#1](~/../sqlclient/doc/samples/SqlBulkCopy_ConnectionString.cs#1)]
  2629. ]]></format>
  2630. </remarks><exception cref="T:System.ArgumentException">
  2631. If `connectionString` is an empty string, an
  2632. <see cref="T:System.ArgumentException" />
  2633. is thrown.
  2634. </exception>
  2635. </member>
  2636. <member name="M:Microsoft.Data.SqlClient.SqlBulkCopy.#ctor(System.String,Microsoft.Data.SqlClient.SqlBulkCopyOptions)">
  2637. <param name="connectionString">
  2638. The string defining the connection that will be opened for use by the
  2639. <see cref="T:Microsoft.Data.SqlClient.SqlBulkCopy" />
  2640. instance. If your connection string does not use
  2641. <see langword="Integrated Security = true" />
  2642. , you can use
  2643. <see cref="M:Microsoft.Data.SqlClient.SqlBulkCopy.#ctor(Microsoft.Data.SqlClient.SqlConnection)" />
  2644. or
  2645. <see cref="M:Microsoft.Data.SqlClient.SqlBulkCopy.#ctor(Microsoft.Data.SqlClient.SqlConnection,Microsoft.Data.SqlClient.SqlBulkCopyOptions,Microsoft.Data.SqlClient.SqlTransaction)" />
  2646. and
  2647. <see cref="T:Microsoft.Data.SqlClient.SqlCredential" />
  2648. to pass the user ID and password more securely than by specifying the user ID and password as text in the connection string.
  2649. </param><param name="copyOptions">
  2650. A combination of values from the
  2651. <see cref="T:Microsoft.Data.SqlClient.SqlBulkCopyOptions" />
  2652. enumeration that determines which data source rows are copied to the destination table.
  2653. </param><summary>
  2654. Initializes and opens a new instance of
  2655. <see cref="T:Microsoft.Data.SqlClient.SqlConnection" />
  2656. based on the supplied
  2657. <paramref name="connectionString" />
  2658. . The constructor uses that
  2659. <see cref="T:Microsoft.Data.SqlClient.SqlConnection" />
  2660. to initialize a new instance of the
  2661. <see cref="T:Microsoft.Data.SqlClient.SqlBulkCopy" />
  2662. class. The
  2663. <see cref="T:Microsoft.Data.SqlClient.SqlConnection" />
  2664. instance behaves according to options supplied in the
  2665. <paramref name="copyOptions" />
  2666. parameter.
  2667. </summary><remarks>
  2668. <format type="text/markdown"><![CDATA[
  2669. ## remarks
  2670. You can obtain detailed information about all the bulk copy options in the <xref:Microsoft.Data.SqlClient.SqlBulkCopyOptions> topic.
  2671. ## Examples
  2672. The following console application demonstrates how to perform a bulk load by using a connection specified as a string.
  2673. An option is set to use the value in the identity column of the source table when you load the destination table. In this example,
  2674. the source data is first read from a SQL Server table to a <xref:Microsoft.Data.SqlClient.SqlDataReader> instance.
  2675. The source table and destination table each include an Identity column. By default, a new value for the **Identity** column is generated in the destination table for each row added.
  2676. In this example, an option is set when the connection is opened that forces the bulk load process to use the **Identity** values from the source table instead.
  2677. To see how the option changes the way the bulk load works, run the sample with the **dbo.BulkCopyDemoMatchingColumns** table empty. All rows load from the source.
  2678. Then run the sample again without emptying the table. An exception is thrown and the code writes a message to the console notifying you that rows weren't
  2679. added because of primary key constraint violations.
  2680. > [!IMPORTANT]
  2681. > This sample will not run unless you have created the work tables as described in [Bulk Copy Example Setup](~/docs/framework/data/adonet/sql/bulk-copy-example-setup.md). This code is provided to
  2682. demonstrate the syntax for using **SqlBulkCopy** only. If the source and destination tables are in the same SQL Server instance, it is easier and faster to use a Transact-SQL `INSERT … SELECT` statement
  2683. to copy the data.
  2684. [!code-csharp[SqlBulkCopy.KeepIdentity#1](~/../sqlclient/doc/samples/SqlBulkCopy_KeepIdentity.cs#1)]
  2685. ]]></format>
  2686. </remarks>
  2687. </member>
  2688. <member name="P:Microsoft.Data.SqlClient.SqlBulkCopy.BatchSize">
  2689. <summary>
  2690. Number of rows in each batch. At the end of each batch, the rows in the batch are sent to the server.
  2691. </summary><value>
  2692. The integer value of the
  2693. <see cref="P:Microsoft.Data.SqlClient.SqlBulkCopy.BatchSize" />
  2694. property, or zero if no value has been set.
  2695. </value><remarks>
  2696. <format type="text/markdown"><![CDATA[
  2697. ## Remarks
  2698. A batch is complete when <xref:Microsoft.Data.SqlClient.SqlBulkCopy.BatchSize> rows have been processed or there are no more rows to send to the destination data source.
  2699. Zero (the default) indicates that each <xref:Microsoft.Data.SqlClient.SqlBulkCopy.WriteToServer%2A> operation is a single batch.
  2700. If the <xref:Microsoft.Data.SqlClient.SqlBulkCopy> instance has been declared without the <xref:Microsoft.Data.SqlClient.SqlBulkCopyOptions.UseInternalTransaction> option in effect,
  2701. rows are sent to the server <xref:Microsoft.Data.SqlClient.SqlBulkCopy.BatchSize> rows at a time, but no transaction-related action is taken.
  2702. If <xref:Microsoft.Data.SqlClient.SqlBulkCopyOptions.UseInternalTransaction> is in effect, each batch of rows is inserted as a separate transaction.
  2703. The <xref:Microsoft.Data.SqlClient.SqlBulkCopy.BatchSize> property can be set at any time. If a bulk copy is already in progress, the current batch is sized according to the previous batch size.
  2704. Subsequent batches use the new size. If the <xref:Microsoft.Data.SqlClient.SqlBulkCopy.BatchSize> is initially zero and changed while a <xref:Microsoft.Data.SqlClient.SqlBulkCopy.WriteToServer%2A>
  2705. operation is already in progress, that operation loads the data as a single batch. Any subsequent <xref:Microsoft.Data.SqlClient.SqlBulkCopy.WriteToServer%2A>
  2706. operations on the same <xref:Microsoft.Data.SqlClient.SqlBulkCopy> instance use the new <xref:Microsoft.Data.SqlClient.SqlBulkCopy.BatchSize>.
  2707. ## Examples
  2708. The following console application demonstrates how to bulk load data in batches of 50 rows. For an example illustrating how <xref:Microsoft.Data.SqlClient.SqlBulkCopy.BatchSize>
  2709. works with a transaction, see [Transaction and Bulk Copy Operations](~/docs/framework/data/adonet/sql/transaction-and-bulk-copy-operations.md).
  2710. > [!IMPORTANT]
  2711. > This sample will not run unless you have created the work tables as described in [Bulk Copy Example Setup](~/docs/framework/data/adonet/sql/bulk-copy-example-setup.md).
  2712. This code is provided to demonstrate the syntax for using **SqlBulkCopy** only. If the source and destination tables are in the same SQL Server instance,
  2713. it is easier and faster to use a Transact-SQL `INSERT … SELECT` statement to copy the data.
  2714. [!code-csharp[SqlBulkCopy.BatchSize#1](~/../sqlclient/doc/samples/SqlBulkCopy_BatchSize.cs#1)]
  2715. ]]></format>
  2716. </remarks>
  2717. </member>
  2718. <member name="P:Microsoft.Data.SqlClient.SqlBulkCopy.BulkCopyTimeout">
  2719. <summary>
  2720. Number of seconds for the operation to complete before it times out.
  2721. </summary><value>
  2722. The integer value of the
  2723. <see cref="P:Microsoft.Data.SqlClient.SqlBulkCopy.BulkCopyTimeout" />
  2724. property. The default is 30 seconds. A value of 0 indicates no limit; the bulk copy will wait indefinitely.
  2725. </value><remarks>
  2726. <format type="text/markdown"><![CDATA[
  2727. ## Remarks
  2728. If the operation does time out, the transaction is not committed and all copied rows are removed from the destination table.
  2729. ## Examples
  2730. The following console application demonstrates how to modify the time-out to 60 seconds when bulk loading data.
  2731. In this example, the source data is first read from a SQL Server table to a <xref:Microsoft.Data.SqlClient.SqlDataReader> instance.
  2732. The source data does not have to be located on SQL Server; you can use any data source that can be read to an <xref:System.Data.IDataReader> or loaded to a
  2733. <xref:System.Data.DataTable>.
  2734. > [!IMPORTANT]
  2735. > This sample will not run unless you have created the work tables as described in [Bulk Copy Example Setup](~/docs/framework/data/adonet/sql/bulk-copy-example-setup.md).
  2736. This code is provided to demonstrate the syntax for using **SqlBulkCopy** only. If the source and destination tables are in the same SQL Server instance, it is easier and faster to use a
  2737. Transact-SQL `INSERT … SELECT` statement to copy the data.
  2738. [!code-csharp[SqlBulkCopy.Timeout#1](~/../sqlclient/doc/samples/SqlBulkCopy_Timeout.cs#1)]
  2739. ]]></format>
  2740. </remarks>
  2741. </member>
  2742. <member name="P:Microsoft.Data.SqlClient.SqlBulkCopy.EnableStreaming">
  2743. <summary>
  2744. Enables or disables a
  2745. <see cref="T:Microsoft.Data.SqlClient.SqlBulkCopy" />
  2746. object to stream data from an
  2747. <see cref="T:System.Data.IDataReader" />
  2748. object
  2749. </summary><value>
  2750. <see langword="true" />
  2751. if a
  2752. <see cref="T:Microsoft.Data.SqlClient.SqlBulkCopy" />
  2753. object can stream data from an
  2754. <see cref="T:System.Data.IDataReader" />
  2755. object; otherwise, false. The default is
  2756. <see langword="false" />
  2757. .
  2758. </value><remarks>
  2759. <format type="text/markdown"><![CDATA[
  2760. When <xref:Microsoft.Data.SqlClient.SqlBulkCopy.EnableStreaming> is `true`, <xref:Microsoft.Data.SqlClient.SqlBulkCopy> reads from an <xref:System.Data.IDataReader> object using <xref:System.Data.CommandBehavior.SequentialAccess>,
  2761. optimizing memory usage by using the <xref:System.Data.IDataReader> streaming capabilities. When it's set to false, the <xref:Microsoft.Data.SqlClient.SqlBulkCopy> class loads all the data returned by the
  2762. <xref:System.Data.IDataReader> object into memory before sending it to SQL Server or SQL Azure.
  2763. ]]></format>
  2764. </remarks>
  2765. </member>
  2766. <member name="P:Microsoft.Data.SqlClient.SqlBulkCopy.ColumnMappings">
  2767. <summary>
  2768. Returns a collection of
  2769. <see cref="T:Microsoft.Data.SqlClient.SqlBulkCopyColumnMapping" />
  2770. items. Column mappings define the relationships between columns in the data source and columns in the destination.
  2771. </summary><value>
  2772. A collection of column mappings. By default, it is an empty collection.
  2773. </value><remarks>
  2774. <format type="text/markdown"><![CDATA[
  2775. If the data source and the destination table have the same number of columns, and the ordinal position of each source column within the data source matches the ordinal position of
  2776. the corresponding destination column, the <xref:Microsoft.Data.SqlClient.SqlBulkCopy.ColumnMappings> collection is unnecessary. However, if the column counts differ,
  2777. or the ordinal positions are not consistent, you must use <xref:Microsoft.Data.SqlClient.SqlBulkCopy.ColumnMappings> to make sure that data is copied into the correct columns.
  2778. During the execution of a bulk copy operation, this collection can be accessed, but it cannot be changed. Any attempt to change it will throw an <xref:System.InvalidOperationException>.
  2779. ]]></format>
  2780. </remarks>
  2781. </member>
  2782. <member name="P:Microsoft.Data.SqlClient.SqlBulkCopy.DestinationTableName">
  2783. <summary>
  2784. Name of the destination table on the server.
  2785. </summary><value>
  2786. The string value of the
  2787. <see cref="P:Microsoft.Data.SqlClient.SqlBulkCopy.DestinationTableName" />
  2788. property, or null if none as been supplied.
  2789. </value><remarks>
  2790. <format type="text/markdown"><![CDATA[
  2791. ## Remarks
  2792. If <xref:Microsoft.Data.SqlClient.SqlBulkCopy.DestinationTableName> has not been set when <xref:Microsoft.Data.SqlClient.SqlBulkCopy.WriteToServer%2A> is called, an <xref:System.ArgumentNullException>
  2793. is thrown. If <xref:Microsoft.Data.SqlClient.SqlBulkCopy.DestinationTableName> is modified while a <xref:Microsoft.Data.SqlClient.SqlBulkCopy.WriteToServer%2A> operation is running,
  2794. the change does not affect the current operation. The new <xref:Microsoft.Data.SqlClient.SqlBulkCopy.DestinationTableName> value is used the next time a <xref:Microsoft.Data.SqlClient.SqlBulkCopy.WriteToServer%2A> method is called.
  2795. <xref:Microsoft.Data.SqlClient.SqlBulkCopy.DestinationTableName> is a three-part name (`<database>.<owningschema>.<name>`). You can qualify the table name with its database and owning schema if you choose.
  2796. However, if the table name uses an underscore ("_") or any other special characters, you must escape the name using surrounding brackets as in (`[<database>.<owningschema>.<name_01>]`).
  2797. You can bulk-copy data to a temporary table by using a value such as `tempdb..#table` or `tempdb.<owner>.#table` for the <xref:Microsoft.Data.SqlClient.SqlBulkCopy.DestinationTableName> property.
  2798. ## Examples
  2799. The following console application demonstrates how to bulk load data using a connection that is already open. The destination table is a table in the **AdventureWorks** database.
  2800. In this example, the connection is first used to read data from a SQL Server table to a <xref:Microsoft.Data.SqlClient.SqlDataReader> instance. The source data does not have to
  2801. be located on SQL Server; you can use any data source that can be read to an <xref:System.Data.IDataReader> or loaded to a <xref:System.Data.DataTable>.
  2802. > [!IMPORTANT]
  2803. > This sample will not run unless you have created the work tables as described in [Bulk Copy Example Setup](~/docs/framework/data/adonet/sql/bulk-copy-example-setup.md).
  2804. This code is provided to demonstrate the syntax for using **SqlBulkCopy** only. If the source and destination tables are in the same SQL Server instance,
  2805. it is easier and faster to use a Transact-SQL `INSERT … SELECT` statement to copy the data.
  2806. [!code-csharp[SqlBulkCopy.Single#1](~/../sqlclient/doc/samples/SqlBulkCopy_Single.cs#1)]
  2807. ]]></format>
  2808. </remarks>
  2809. </member>
  2810. <member name="P:Microsoft.Data.SqlClient.SqlBulkCopy.NotifyAfter">
  2811. <summary>
  2812. Defines the number of rows to be processed before generating a notification event.
  2813. </summary><value>
  2814. The integer value of the
  2815. <see cref="P:Microsoft.Data.SqlClient.SqlBulkCopy.NotifyAfter" />
  2816. property, or zero if the property has not been set.
  2817. </value><remarks>
  2818. <format type="text/markdown"><![CDATA[
  2819. ## Remarks
  2820. This property is designed for user interface components that illustrate the progress of a bulk copy operation. It indicates the number of rows to be processed before generating a notification event.
  2821. The <xref:Microsoft.Data.SqlClient.SqlBulkCopy.NotifyAfter> property can be set at any time, even while a bulk copy operation is underway. Changes made during a bulk copy operation take effect after
  2822. the next notification. The new setting applies to all subsequent operations on the same instance.
  2823. If <xref:Microsoft.Data.SqlClient.SqlBulkCopy.NotifyAfter> is set to a number less than zero, an <xref:System.ArgumentOutOfRangeException> is thrown.
  2824. ## Examples
  2825. The following console application demonstrates how to bulk load data using a connection that is already open. The <xref:Microsoft.Data.SqlClient.SqlBulkCopy.NotifyAfter> property is set so that
  2826. the event handler is called after every 50 rows copied to the table.
  2827. In this example, the connection is first used to read data from a SQL Server table to a <xref:Microsoft.Data.SqlClient.SqlDataReader> instance. Then a second connection is opened to bulk copy the data.
  2828. Note that the source data does not have to be located on SQL Server; you can use any data source that can be read to an <xref:System.Data.IDataReader> or loaded to a <xref:System.Data.DataTable>.
  2829. > [!IMPORTANT]
  2830. > This sample will not run unless you have created the work tables as described in [Bulk Copy Example Setup](~/docs/framework/data/adonet/sql/bulk-copy-example-setup.md). This code is provided to
  2831. demonstrate the syntax for using **SqlBulkCopy** only. If the source and destination tables are in the same SQL Server instance, it is easier and faster to use a Transact-SQL `INSERT … SELECT`
  2832. statement to copy the data.
  2833. [!code-csharp[SqlBulkCopy.NotifyAfter#1](~/../sqlclient/doc/samples/SqlBulkCopy_NotifyAfter.cs#1)]
  2834. ]]></format>
  2835. </remarks>
  2836. </member>
  2837. <member name="E:Microsoft.Data.SqlClient.SqlBulkCopy.SqlRowsCopied">
  2838. <summary>
  2839. Occurs every time that the number of rows specified by the
  2840. <see cref="P:Microsoft.Data.SqlClient.SqlBulkCopy.NotifyAfter" />
  2841. property have been processed.
  2842. </summary><remarks>
  2843. <format type="text/markdown"><![CDATA[
  2844. ## Remarks
  2845. Note that the settings of <xref:Microsoft.Data.SqlClient.SqlBulkCopy.NotifyAfter> and <xref:Microsoft.Data.SqlClient.SqlBulkCopy.BatchSize> are independent. Receipt of a
  2846. <xref:Microsoft.Data.SqlClient.SqlBulkCopy.SqlRowsCopied> event does not imply that any rows have been sent to the server or committed.
  2847. You cannot call SqlBulkCopy.Close (<xref:Microsoft.Data.SqlClient.SqlBulkCopy.Close>) or SqlConnection.Close (<xref:Microsoft.Data.SqlClient.SqlConnection.Close>) from this event.
  2848. Doing this will cause an <xref:System.InvalidOperationException> being thrown, and the <xref:Microsoft.Data.SqlClient.SqlBulkCopy> object state will not change. If the user wants to cancel the
  2849. operation from the event, the <xref:Microsoft.Data.SqlClient.SqlRowsCopiedEventArgs.Abort> property of the <xref:Microsoft.Data.SqlClient.SqlRowsCopiedEventArgs> can be used.
  2850. (See [Transaction and Bulk Copy Operations](~/docs/framework/data/adonet/sql/transaction-and-bulk-copy-operations.md) for examples that use the
  2851. <xref:Microsoft.Data.SqlClient.SqlRowsCopiedEventArgs.Abort> property.)
  2852. No action, such as transaction activity, is supported in the connection during the execution of the bulk copy operation, and it is recommended that you not use the same connection used
  2853. during the <xref:Microsoft.Data.SqlClient.SqlBulkCopy.SqlRowsCopied> event. However, you can open a different connection.
  2854. ## Examples
  2855. The following console application demonstrates how to bulk load data using a connection that is already open. The <xref:Microsoft.Data.SqlClient.SqlBulkCopy.NotifyAfter> property is set so that
  2856. the event handler is called after every 50 rows copied to the table.
  2857. In this example, the connection is first used to read data from a SQL Server table to a <xref:Microsoft.Data.SqlClient.SqlDataReader> instance. Note that the source data does not have to be located on
  2858. SQL Server; you can use any data source that can be read to an <xref:System.Data.IDataReader> or loaded to a <xref:System.Data.DataTable>.
  2859. > [!IMPORTANT]
  2860. > This sample will not run unless you have created the work tables as described in [Bulk Copy Example Setup](~/docs/framework/data/adonet/sql/bulk-copy-example-setup.md).
  2861. This code is provided to demonstrate the syntax for using **SqlBulkCopy** only. If the source and destination tables are in the same SQL Server instance, it is easier
  2862. and faster to use a Transact-SQL `INSERT … SELECT` statement to copy the data.
  2863. [!code-csharp[SqlBulkCopy.NotifyAfter#1](~/../sqlclient/doc/samples/SqlBulkCopy_NotifyAfter.cs#1)]
  2864. ]]></format>
  2865. </remarks>
  2866. </member>
  2867. <member name="M:Microsoft.Data.SqlClient.SqlBulkCopy.Close">
  2868. <summary>
  2869. Closes the <see cref="T:Microsoft.Data.SqlClient.SqlBulkCopy" /> instance.
  2870. </summary><remarks>
  2871. <format type="text/markdown"><![CDATA[
  2872. ## Remarks
  2873. After you call a <xref:Microsoft.Data.SqlClient.SqlBulkCopy.Close> on the <xref:Microsoft.Data.SqlClient.SqlBulkCopy> object, no other operation will succeed. Calls to the <xref:Microsoft.Data.SqlClient.SqlBulkCopy.WriteToServer%2A> method will throw an <xref:System.InvalidOperationException>.
  2874. Calling the <xref:Microsoft.Data.SqlClient.SqlBulkCopy.Close> method from the <xref:Microsoft.Data.SqlClient.SqlBulkCopy.SqlRowsCopied> event causes an <xref:System.InvalidOperationException> to be thrown.
  2875. Note that open <xref:Microsoft.Data.SqlClient.SqlBulkCopy> instances are closed implicitly at the end of a `using` block.
  2876. ## Examples
  2877. The following example uses the same <xref:Microsoft.Data.SqlClient.SqlBulkCopy> instance to add sales orders and their associated details to two destination tables. Because the **AdventureWorks** sales order tables are large, the sample reads only orders placed by a certain account number and bulk copies those orders and details to the destination tables. The <xref:Microsoft.Data.SqlClient.SqlBulkCopy.Close> method is used only after both bulk copy operations are complete.
  2878. > [!IMPORTANT]
  2879. > This sample will not run unless you have created the work tables as described in [Bulk Copy Example Setup](~/docs/framework/data/adonet/sql/bulk-copy-example-setup.md). This code is provided to demonstrate the syntax for using **SqlBulkCopy** only. If the source and destination tables are in the same SQL Server instance, it is easier and faster to use a Transact-SQL `INSERT … SELECT` statement to copy the data.
  2880. [!code-csharp[SqlBulkCopy.OrdersDetails#1](~/../sqlclient/doc/samples/SqlBulkCopy_OrdersDetails.cs#1)]
  2881. ]]></format>
  2882. </remarks>
  2883. </member>
  2884. <member name="M:Microsoft.Data.SqlClient.SqlBulkCopy.WriteToServer(System.Data.Common.DbDataReader)">
  2885. <param name="reader">
  2886. A
  2887. <see cref="T:System.Data.Common.DbDataReader" />
  2888. whose rows will be copied to the destination table.
  2889. </param><summary>
  2890. Copies all rows from the supplied
  2891. <see cref="T:System.Data.Common.DbDataReader" />
  2892. array to a destination table specified by the
  2893. <see cref="P:Microsoft.Data.SqlClient.SqlBulkCopy.DestinationTableName" />
  2894. property of the
  2895. <see cref="T:Microsoft.Data.SqlClient.SqlBulkCopy" />
  2896. object.
  2897. </summary><remarks>
  2898. To be added.
  2899. </remarks>
  2900. </member>
  2901. <member name="M:Microsoft.Data.SqlClient.SqlBulkCopy.WriteToServer(System.Data.IDataReader)">
  2902. <param name="reader">
  2903. A
  2904. <see cref="T:System.Data.IDataReader" />
  2905. whose rows will be copied to the destination table.
  2906. </param><summary>
  2907. Copies all rows in the supplied
  2908. <see cref="T:System.Data.IDataReader" />
  2909. to a destination table specified by the
  2910. <see cref="P:Microsoft.Data.SqlClient.SqlBulkCopy.DestinationTableName" />
  2911. property of the
  2912. <see cref="T:Microsoft.Data.SqlClient.SqlBulkCopy" />
  2913. object.
  2914. </summary><remarks>
  2915. <format type="text/markdown"><![CDATA[
  2916. ## Remarks
  2917. The copy operation starts at the next available row in the reader. Most of the time, the reader was just returned by <xref:System.Data.IDbCommand.ExecuteReader> or a similar call,
  2918. so the next available row is the first row. To process multiple results, call <xref:System.Data.IDataReader.NextResult> on the data reader and call
  2919. <xref:Microsoft.Data.SqlClient.SqlBulkCopy.WriteToServer%2A> again.
  2920. Note that using <xref:Microsoft.Data.SqlClient.SqlBulkCopy.WriteToServer%2A> modifies the state of the reader. The method will call <xref:System.Data.IDataReader.Read>
  2921. until it returns false, the operation is aborted, or an error occurs. This means that the data reader will be in a different state, probably at the end of the result set,
  2922. when the <xref:Microsoft.Data.SqlClient.SqlBulkCopy.WriteToServer%2A> operation is complete.
  2923. While the bulk copy operation is in progress, the associated destination <xref:Microsoft.Data.SqlClient.SqlConnection> is busy serving it, and no other operations can be performed on the connection.
  2924. The <xref:Microsoft.Data.SqlClient.SqlBulkCopy.ColumnMappings> collection maps from the data reader columns to the destination database table.
  2925. ## Examples
  2926. The following console application demonstrates how to bulk load data from a <xref:Microsoft.Data.SqlClient.SqlDataReader>. The destination table is a table in the **AdventureWorks** database.
  2927. > [!IMPORTANT]
  2928. > This sample will not run unless you have created the work tables as described in [Bulk Copy Example Setup](~/docs/framework/data/adonet/sql/bulk-copy-example-setup.md). This code is provided
  2929. to demonstrate the syntax for using **SqlBulkCopy** only. If the source and destination tables are in the same SQL Server instance, it is easier and faster to use a
  2930. Transact-SQL `INSERT … SELECT` statement to copy the data.
  2931. [!code-csharp[SqlBulkCopy.ConnectionString#1](~/../sqlclient/doc/samples/SqlBulkCopy_ConnectionString.cs#1)]
  2932. ]]></format>
  2933. </remarks>
  2934. </member>
  2935. <member name="M:Microsoft.Data.SqlClient.SqlBulkCopy.WriteToServer(System.Data.DataTable)">
  2936. <param name="table">
  2937. A
  2938. <see cref="T:System.Data.DataTable" />
  2939. whose rows will be copied to the destination table.
  2940. </param><summary>
  2941. Copies all rows in the supplied
  2942. <see cref="T:System.Data.DataTable" />
  2943. to a destination table specified by the
  2944. <see cref="P:Microsoft.Data.SqlClient.SqlBulkCopy.DestinationTableName" />
  2945. property of the
  2946. <see cref="T:Microsoft.Data.SqlClient.SqlBulkCopy" />
  2947. object.
  2948. </summary><remarks>
  2949. <format type="text/markdown"><![CDATA[
  2950. ## Remarks
  2951. All rows in the <xref:System.Data.DataTable> are copied to the destination table except those that have been deleted.
  2952. While the bulk copy operation is in progress, the associated destination <xref:Microsoft.Data.SqlClient.SqlConnection> is busy serving it, and no other operations can be performed on the connection.
  2953. The <xref:Microsoft.Data.SqlClient.SqlBulkCopy.ColumnMappings> collection maps from the <xref:System.Data.DataTable> columns to the destination database table.
  2954. ## Examples
  2955. The following Console application demonstrates how to bulk load data from a <xref:System.Data.DataTable>. The destination table is a table in the **AdventureWorks** database.
  2956. In this example, a <xref:System.Data.DataTable> is created at run time and is the source of the `SqlBulkCopy` operation.
  2957. > [!IMPORTANT]
  2958. > This sample will not run unless you have created the work tables as described in [Bulk Copy Example Setup](~/docs/framework/data/adonet/sql/bulk-copy-example-setup.md).
  2959. This code is provided to demonstrate the syntax for using **SqlBulkCopy** only. If the source and destination tables are in the same SQL Server instance, it is easier and faster to use a Transact-SQL `INSERT … SELECT` statement to copy the data.
  2960. [!code-csharp[SqlBulkCopy.DataTable#1](~/../sqlclient/doc/samples/SqlBulkCopy_DataTable.cs#1)]
  2961. ]]></format>
  2962. </remarks><related type="Article" href="https://msdn.microsoft.com/library/83a7a0d2-8018-4354-97b9-0b1d99f8342b">
  2963. Performing Bulk Copy Operations
  2964. </related><related type="Article" href="~/docs/framework/data/adonet/ado-net-overview.md">
  2965. ADO.NET Overview
  2966. </related>
  2967. </member>
  2968. <member name="M:Microsoft.Data.SqlClient.SqlBulkCopy.WriteToServer(System.Data.DataTable,System.Data.DataRowState)">
  2969. <param name="table">
  2970. A
  2971. <see cref="T:System.Data.DataTable" />
  2972. whose rows will be copied to the destination table.
  2973. </param><param name="rowState">
  2974. A value from the
  2975. <see cref="T:System.Data.DataRowState" />
  2976. enumeration. Only rows matching the row state are copied to the destination.
  2977. </param><summary>
  2978. Copies only rows that match the supplied row state in the supplied
  2979. <see cref="T:System.Data.DataTable" />
  2980. to a destination table specified by the
  2981. <see cref="P:Microsoft.Data.SqlClient.SqlBulkCopy.DestinationTableName" />
  2982. property of the
  2983. <see cref="T:Microsoft.Data.SqlClient.SqlBulkCopy" />
  2984. object.
  2985. </summary><remarks>
  2986. <format type="text/markdown"><![CDATA[
  2987. ## Remarks
  2988. Only rows in the <xref:System.Data.DataTable> that are in the states indicated in the `rowState` argument and have not been deleted are copied to the destination table.
  2989. > [!NOTE]
  2990. > If <xref:System.Data.DataRowState.Deleted> is specified, any <xref:System.Data.DataRowState.Unchanged>, <xref:System.Data.DataRowState.Added>, and <xref:System.Data.DataRowState.Modified>
  2991. rows will also be copied to the server. No exception will be raised.
  2992. While the bulk copy operation is in progress, the associated destination <xref:Microsoft.Data.SqlClient.SqlConnection> is busy serving it, and no other operations can be performed on the connection.
  2993. The <xref:Microsoft.Data.SqlClient.SqlBulkCopy.ColumnMappings> collection maps from the <xref:System.Data.DataTable> columns to the destination database table.
  2994. ## Examples
  2995. The following Console application demonstrates how to bulk load only the rows in a <xref:System.Data.DataTable> that match a specified state. In this case, only unchanged rows are added. The destination table is a table in the **AdventureWorks** database.
  2996. In this example, a <xref:System.Data.DataTable> is created at run time and three rows are added to it. Before the <xref:Microsoft.Data.SqlClient.SqlBulkCopy.WriteToServer%2A> method is executed, one of the rows is edited.
  2997. The <xref:Microsoft.Data.SqlClient.SqlBulkCopy.WriteToServer%2A> method is called with a `DataRowState.Unchanged` `rowState` argument, so only the two unchanged rows are bulk copied to the destination.
  2998. > [!IMPORTANT]
  2999. > This sample will not run unless you have created the work tables as described in [Bulk Copy Example Setup](~/docs/framework/data/adonet/sql/bulk-copy-example-setup.md). This code is provided to demonstrate the syntax for using **SqlBulkCopy** only. If the source and destination tables are in the same SQL Server instance, it is easier and faster to use a Transact-SQL `INSERT … SELECT` statement to copy the data.
  3000. [!code-csharp[SqlBulkCopy.DataRowState#1](~/../sqlclient/doc/samples/SqlBulkCopy_DataRowState.cs#1)]
  3001. ]]></format>
  3002. </remarks>
  3003. </member>
  3004. <member name="M:Microsoft.Data.SqlClient.SqlBulkCopy.WriteToServer(System.Data.DataRow[])">
  3005. <param name="rows">An array of <see cref="T:System.Data.DataRow" /> objects that will be copied to the destination table.</param><summary>Copies all rows from the supplied <see cref="T:System.Data.DataRow" /> array to a destination table specified by the <see cref="P:Microsoft.Data.SqlClient.SqlBulkCopy.DestinationTableName" /> property of the <see cref="T:System.Data.SqlClient.SqlBulkCopy" /> object.</summary><remarks>
  3006. <format type="text/markdown"><![CDATA[
  3007. ## Remarks
  3008. While the bulk copy operation is in progress, the associated destination <xref:Microsoft.Data.SqlClient.SqlConnection> is busy serving it, and no other operations can be performed on the connection.
  3009. The <xref:Microsoft.Data.SqlClient.SqlBulkCopy.ColumnMappings> collection maps from the <xref:System.Data.DataRow> columns to the destination database table.
  3010. ## Examples
  3011. The following console application demonstrates how to bulk load data from a <xref:System.Data.DataRow> array. The destination table is a table in the **AdventureWorks** database.
  3012. In this example, a <xref:System.Data.DataTable> is created at run time. A single row is selected from the <xref:System.Data.DataTable> to copy to the destination table.
  3013. > [!IMPORTANT]
  3014. > This sample will not run unless you have created the work tables as described in [Bulk Copy Example Setup](~/docs/framework/data/adonet/sql/bulk-copy-example-setup.md). This code is provided to demonstrate the syntax for using **SqlBulkCopy** only. If the source and destination tables are in the same SQL Server instance, it is easier and faster to use a Transact-SQL `INSERT … SELECT` statement to copy the data.
  3015. [!code-csharp[SqlBulkCopy.RowArray#1](~/../sqlclient/doc/samples/SqlBulkCopy_RowArray.cs#1)]
  3016. ]]></format>
  3017. </remarks>
  3018. </member>
  3019. <member name="M:Microsoft.Data.SqlClient.SqlBulkCopy.WriteToServerAsync(System.Data.DataRow[])">
  3020. <param name="rows">
  3021. An array of
  3022. <see cref="T:System.Data.DataRow" />
  3023. objects that will be copied to the destination table.
  3024. </param><summary>
  3025. The asynchronous version of
  3026. <see cref="M:Microsoft.Data.SqlClient.SqlBulkCopy.WriteToServer(System.Data.DataRow[])" />
  3027. ,
  3028. which copies all rows from the supplied
  3029. <see cref="T:System.Data.DataRow" />
  3030. array to a destination table specified by the
  3031. <see cref="P:Microsoft.Data.SqlClient.SqlBulkCopy.DestinationTableName" />
  3032. property of the
  3033. <see cref="T:Microsoft.Data.SqlClient.SqlBulkCopy" />
  3034. object.
  3035. </summary><returns>
  3036. A task representing the asynchronous operation.
  3037. </returns><remarks>
  3038. <format type="text/markdown"><![CDATA[
  3039. For more information about asynchronous programming in the .NET Framework Data Provider for SQL Server, see [Asynchronous Programming](~/docs/framework/data/adonet/asynchronous-programming.md).
  3040. ]]></format>
  3041. </remarks><exception cref="T:System.InvalidOperationException">
  3042. Calling
  3043. <see cref="M:Microsoft.Data.SqlClient.SqlBulkCopy.WriteToServerAsync(System.Data.DataRow[])" />
  3044. multiple times for the same instance before task completion. Calling
  3045. <see cref="M:Microsoft.Data.SqlClient.SqlBulkCopy.WriteToServerAsync(System.Data.DataRow[])" />
  3046. and
  3047. <see cref="M:Microsoft.Data.SqlClient.SqlBulkCopy.WriteToServer(System.Data.DataRow[])" />
  3048. for the same instance before task completion.
  3049. The connection drops or is closed during
  3050. <see cref="M:Microsoft.Data.SqlClient.SqlBulkCopy.WriteToServerAsync(System.Data.DataRow[])" />
  3051. execution.
  3052. Returned in the task object, the
  3053. <see cref="T:Microsoft.Data.SqlClient.SqlBulkCopy" />
  3054. object was closed during the method execution.
  3055. Returned in the task object, there was a connection pool timeout.
  3056. Returned in the task object, the
  3057. <see cref="T:Microsoft.Data.SqlClient.SqlConnection" />
  3058. object is closed before method execution.
  3059. <see langword="Context Connection=true" />
  3060. is specified in the connection string.
  3061. </exception><exception cref="T:Microsoft.Data.SqlClient.SqlException">
  3062. Returned in the task object, any error returned by SQL Server that occurred while opening the connection.
  3063. </exception>
  3064. </member>
  3065. <member name="M:Microsoft.Data.SqlClient.SqlBulkCopy.WriteToServerAsync(System.Data.DataRow[],System.Threading.CancellationToken)">
  3066. <param name="rows">
  3067. An array of
  3068. <see cref="T:System.Data.DataRow" />
  3069. objects that will be copied to the destination table.
  3070. </param><param name="cancellationToken">
  3071. The cancellation instruction. A
  3072. <see cref="P:System.Threading.CancellationToken.None" />
  3073. value in this parameter makes this method equivalent to
  3074. <see cref="M:Microsoft.Data.SqlClient.SqlBulkCopy.WriteToServerAsync(System.Data.DataTable)" />
  3075. .
  3076. </param><summary>
  3077. The asynchronous version of
  3078. <see cref="M:Microsoft.Data.SqlClient.SqlBulkCopy.WriteToServer(System.Data.DataRow[])" />
  3079. , which copies all rows from the supplied
  3080. <see cref="T:System.Data.DataRow" />
  3081. array to a destination table specified by the
  3082. <see cref="P:Microsoft.Data.SqlClient.SqlBulkCopy.DestinationTableName" />
  3083. property of the
  3084. <see cref="T:Microsoft.Data.SqlClient.SqlBulkCopy" />
  3085. object.
  3086. The cancellation token can be used to request that the operation be abandoned before the command timeout elapses. Exceptions will be reported via the returned Task object.
  3087. </summary><returns>
  3088. A task representing the asynchronous operation.
  3089. </returns><remarks>
  3090. <format type="text/markdown"><![CDATA[
  3091. For more information about asynchronous programming in the .NET Framework Data Provider for SQL Server, see [Asynchronous Programming](~/docs/framework/data/adonet/asynchronous-programming.md).
  3092. ]]></format>
  3093. </remarks><exception cref="T:System.InvalidOperationException">
  3094. Calling
  3095. <see cref="M:Microsoft.Data.SqlClient.SqlBulkCopy.WriteToServerAsync(System.Data.DataRow[])" />
  3096. multiple times for the same instance before
  3097. task completion. Calling
  3098. <see cref="M:Microsoft.Data.SqlClient.SqlBulkCopy.WriteToServerAsync(System.Data.DataRow[])" />
  3099. and
  3100. <see cref="M:Microsoft.Data.SqlClient.SqlBulkCopy.WriteToServer(System.Data.DataRow[])" />
  3101. for the same instance before task completion. The connection drops or is closed during
  3102. <see cref="M:Microsoft.Data.SqlClient.SqlBulkCopy.WriteToServerAsync(System.Data.DataRow[])" />
  3103. execution. Returned in the task object, the
  3104. <see cref="T:Microsoft.Data.SqlClient.SqlBulkCopy" />
  3105. object was closed during the method execution. Returned in the task object, there was a connection pool timeout. Returned in the task object, the
  3106. <see cref="T:Microsoft.Data.SqlClient.SqlConnection" />
  3107. object is closed before method execution.
  3108. <see langword="Context Connection=true" />
  3109. is specified in the connection string.
  3110. </exception><exception cref="T:Microsoft.Data.SqlClient.SqlException">
  3111. Returned in the task object, any error returned by SQL Server that occurred while opening the connection.
  3112. </exception>
  3113. </member>
  3114. <member name="M:Microsoft.Data.SqlClient.SqlBulkCopy.WriteToServerAsync(System.Data.Common.DbDataReader)">
  3115. <param name="reader">
  3116. A
  3117. <see cref="T:System.Data.IDataReader" />
  3118. whose rows will be copied to the destination table.
  3119. </param><summary>
  3120. The asynchronous version of
  3121. <see cref="M:Microsoft.Data.SqlClient.SqlBulkCopy.WriteToServer(System.Data.IDataReader)" />
  3122. , which copies all rows in the supplied
  3123. <see cref="T:System.Data.IDataReader" />
  3124. to a destination table specified by the
  3125. <see cref="P:Microsoft.Data.SqlClient.SqlBulkCopy.DestinationTableName" />
  3126. property of the
  3127. <see cref="T:Microsoft.Data.SqlClient.SqlBulkCopy" />
  3128. object.
  3129. </summary><returns>
  3130. A task representing the asynchronous operation.
  3131. </returns><remarks>
  3132. <format type="text/markdown"><![CDATA[
  3133. For more information about asynchronous programming in the .NET Framework Data Provider for SQL Server, see [Asynchronous Programming](~/docs/framework/data/adonet/asynchronous-programming.md).
  3134. ]]></format>
  3135. </remarks><exception cref="T:System.InvalidOperationException">
  3136. Calling
  3137. <see cref="M:Microsoft.Data.SqlClient.SqlBulkCopy.WriteToServerAsync(System.Data.IDataReader)" />
  3138. multiple times for the same instance before task completion. Calling
  3139. <see cref="M:Microsoft.Data.SqlClient.SqlBulkCopy.WriteToServerAsync(System.Data.IDataReader)" />
  3140. and
  3141. <see cref="M:Microsoft.Data.SqlClient.SqlBulkCopy.WriteToServer(System.Data.IDataReader)" />
  3142. for the same instance before task completion.
  3143. The connection drops or is closed during
  3144. <see cref="M:Microsoft.Data.SqlClient.SqlBulkCopy.WriteToServerAsync(System.Data.IDataReader)" />
  3145. execution.
  3146. Returned in the task object, the
  3147. <see cref="T:Microsoft.Data.SqlClient.SqlBulkCopy" />
  3148. object was closed during the method execution.
  3149. Returned in the task object, there was a connection pool timeout.
  3150. Returned in the task object, the
  3151. <see cref="T:Microsoft.Data.SqlClient.SqlConnection" />
  3152. object is closed before method execution.
  3153. The
  3154. <see cref="T:System.Data.IDataReader" />
  3155. was closed before the completed
  3156. <see cref="T:System.Threading.Tasks.Task" />
  3157. returned.
  3158. The
  3159. <see cref="T:System.Data.IDataReader" />
  3160. 's associated connection was closed before the completed
  3161. <see cref="T:System.Threading.Tasks.Task" />
  3162. returned.
  3163. <see langword="Context Connection=true" />
  3164. is specified in the connection string.
  3165. </exception><exception cref="T:Microsoft.Data.SqlClient.SqlException">
  3166. Returned in the task object, any error returned by SQL Server that occurred while opening the connection.
  3167. </exception>
  3168. </member>
  3169. <member name="M:Microsoft.Data.SqlClient.SqlBulkCopy.WriteToServerAsync(System.Data.Common.DbDataReader,System.Threading.CancellationToken)">
  3170. <param name="reader">
  3171. A
  3172. <see cref="T:System.Data.Common.DbDataReader" />
  3173. whose rows will be copied to the destination table.
  3174. </param><param name="cancellationToken">
  3175. The cancellation instruction. A
  3176. <see cref="P:System.Threading.CancellationToken.None" />
  3177. value in this parameter makes this method equivalent to
  3178. <see cref="M:Microsoft.Data.SqlClient.SqlBulkCopy.WriteToServerAsync(System.Data.Common.DbDataReader)" />
  3179. .
  3180. </param><summary>
  3181. The asynchronous version of
  3182. <see cref="M:Microsoft.Data.SqlClient.SqlBulkCopy.WriteToServer(System.Data.Common.DbDataReader)" />
  3183. , which copies all rows from the supplied
  3184. <see cref="T:System.Data.Common.DbDataReader" />
  3185. array to a destination table specified by the
  3186. <see cref="P:Microsoft.Data.SqlClient.SqlBulkCopy.DestinationTableName" />
  3187. property of the
  3188. <see cref="T:Microsoft.Data.SqlClient.SqlBulkCopy" />
  3189. object.
  3190. </summary><returns>
  3191. Returns
  3192. <see cref="T:System.Threading.Tasks.Task" />
  3193. .
  3194. </returns><remarks>
  3195. To be added.
  3196. </remarks>
  3197. </member>
  3198. <member name="M:Microsoft.Data.SqlClient.SqlBulkCopy.WriteToServerAsync(System.Data.IDataReader)">
  3199. <param name="reader">
  3200. A
  3201. <see cref="T:System.Data.IDataReader" />
  3202. whose rows will be copied to the destination table.
  3203. </param><summary>
  3204. The asynchronous version of
  3205. <see cref="M:Microsoft.Data.SqlClient.SqlBulkCopy.WriteToServer(System.Data.IDataReader)" />
  3206. , which copies all rows in the supplied
  3207. <see cref="T:System.Data.IDataReader" />
  3208. to a destination table specified by the
  3209. <see cref="P:Microsoft.Data.SqlClient.SqlBulkCopy.DestinationTableName" />
  3210. property of the
  3211. <see cref="T:Microsoft.Data.SqlClient.SqlBulkCopy" />
  3212. object.
  3213. </summary><returns>
  3214. A task representing the asynchronous operation.
  3215. </returns><remarks>
  3216. <format type="text/markdown"><![CDATA[
  3217. For more information about asynchronous programming in the .NET Framework Data Provider for SQL Server, see [Asynchronous Programming](~/docs/framework/data/adonet/asynchronous-programming.md).
  3218. ]]></format>
  3219. </remarks><exception cref="T:System.InvalidOperationException">
  3220. Calling
  3221. <see cref="M:Microsoft.Data.SqlClient.SqlBulkCopy.WriteToServerAsync(System.Data.IDataReader)" />
  3222. multiple times for the same
  3223. instance before task completion.
  3224. Calling
  3225. <see cref="M:Microsoft.Data.SqlClient.SqlBulkCopy.WriteToServerAsync(System.Data.IDataReader)" />
  3226. and
  3227. <see cref="M:Microsoft.Data.SqlClient.SqlBulkCopy.WriteToServer(System.Data.IDataReader)" />
  3228. for the same instance before task completion.
  3229. The connection drops or is closed during
  3230. <see cref="M:Microsoft.Data.SqlClient.SqlBulkCopy.WriteToServerAsync(System.Data.IDataReader)" />
  3231. execution.
  3232. Returned in the task object, the
  3233. <see cref="T:Microsoft.Data.SqlClient.SqlBulkCopy" />
  3234. object was closed during the method execution.
  3235. Returned in the task object, there was a connection pool timeout.
  3236. Returned in the task object, the
  3237. <see cref="T:Microsoft.Data.SqlClient.SqlConnection" />
  3238. object is closed before method execution.
  3239. The
  3240. <see cref="T:System.Data.IDataReader" />
  3241. was closed before the completed
  3242. <see cref="T:System.Threading.Tasks.Task" />
  3243. returned.
  3244. The
  3245. <see cref="T:System.Data.IDataReader" />
  3246. 's associated connection was closed before the completed
  3247. <see cref="T:System.Threading.Tasks.Task" />
  3248. returned.
  3249. <see langword="Context Connection=true" />
  3250. is specified in the connection string.
  3251. </exception><exception cref="T:Microsoft.Data.SqlClient.SqlException">
  3252. Returned in the task object, any error returned by SQL Server that occurred while opening the connection.
  3253. </exception>
  3254. </member>
  3255. <member name="M:Microsoft.Data.SqlClient.SqlBulkCopy.WriteToServerAsync(System.Data.IDataReader,System.Threading.CancellationToken)">
  3256. <param name="reader">
  3257. A
  3258. <see cref="T:System.Data.IDataReader" />
  3259. whose rows will be copied to the destination table.
  3260. </param><param name="cancellationToken">
  3261. The cancellation instruction. A
  3262. <see cref="P:System.Threading.CancellationToken.None" />
  3263. value in this parameter makes this method equivalent to
  3264. <see cref="M:Microsoft.Data.SqlClient.SqlBulkCopy.WriteToServerAsync(System.Data.DataTable)" />
  3265. .
  3266. </param><summary>
  3267. The asynchronous version of
  3268. <see cref="M:Microsoft.Data.SqlClient.SqlBulkCopy.WriteToServer(System.Data.IDataReader)" />
  3269. , which copies all rows in the supplied
  3270. <see cref="T:System.Data.IDataReader" />
  3271. to a destination table specified by the
  3272. <see cref="P:Microsoft.Data.SqlClient.SqlBulkCopy.DestinationTableName" />
  3273. property of the
  3274. <see cref="T:Microsoft.Data.SqlClient.SqlBulkCopy" />
  3275. object.
  3276. The cancellation token can be used to request that the operation be abandoned before the command timeout elapses. Exceptions will be reported via the returned Task object.
  3277. </summary><returns>
  3278. A task representing the asynchronous operation.
  3279. </returns><remarks>
  3280. <format type="text/markdown"><![CDATA[
  3281. For more information about asynchronous programming in the .NET Framework Data Provider for SQL Server, see [Asynchronous Programming](~/docs/framework/data/adonet/asynchronous-programming.md).
  3282. ]]></format>
  3283. </remarks><exception cref="T:System.InvalidOperationException">
  3284. Calling
  3285. <see cref="M:Microsoft.Data.SqlClient.SqlBulkCopy.WriteToServerAsync(System.Data.IDataReader)" />
  3286. multiple times for the same instance before task completion.
  3287. Calling
  3288. <see cref="M:Microsoft.Data.SqlClient.SqlBulkCopy.WriteToServerAsync(System.Data.IDataReader)" />
  3289. and
  3290. <see cref="M:Microsoft.Data.SqlClient.SqlBulkCopy.WriteToServer(System.Data.IDataReader)" />
  3291. for the same instance before task completion.
  3292. The connection drops or is closed during
  3293. <see cref="M:Microsoft.Data.SqlClient.SqlBulkCopy.WriteToServerAsync(System.Data.IDataReader)" />
  3294. execution.
  3295. Returned in the task object, the
  3296. <see cref="T:Microsoft.Data.SqlClient.SqlBulkCopy" />
  3297. object was closed during the method execution.
  3298. Returned in the task object, there was a connection pool timeout.
  3299. Returned in the task object, the
  3300. <see cref="T:Microsoft.Data.SqlClient.SqlConnection" />
  3301. object is closed before method execution.
  3302. The
  3303. <see cref="T:System.Data.IDataReader" />
  3304. was closed before the completed
  3305. <see cref="T:System.Threading.Tasks.Task" />
  3306. returned.
  3307. The
  3308. <see cref="T:System.Data.IDataReader" />
  3309. 's associated connection was closed before the completed
  3310. <see cref="T:System.Threading.Tasks.Task" />
  3311. returned.
  3312. <see langword="Context Connection=true" />
  3313. is specified in the connection string.
  3314. </exception><exception cref="T:Microsoft.Data.SqlClient.SqlException">
  3315. Returned in the task object, any error returned by SQL Server that occurred while opening the connection.
  3316. </exception>
  3317. </member>
  3318. <member name="M:Microsoft.Data.SqlClient.SqlBulkCopy.WriteToServerAsync(System.Data.DataTable)">
  3319. <param name="table">
  3320. A
  3321. <see cref="T:System.Data.DataTable" />
  3322. whose rows will be copied to the destination table.
  3323. </param><summary>
  3324. The asynchronous version of
  3325. <see cref="M:Microsoft.Data.SqlClient.SqlBulkCopy.WriteToServer(System.Data.DataTable)" />
  3326. , which copies all rows in the supplied
  3327. <see cref="T:System.Data.DataTable" />
  3328. to a destination table specified by the
  3329. <see cref="P:Microsoft.Data.SqlClient.SqlBulkCopy.DestinationTableName" />
  3330. property of the
  3331. <see cref="T:Microsoft.Data.SqlClient.SqlBulkCopy" />
  3332. object.
  3333. </summary><returns>
  3334. A task representing the asynchronous operation.
  3335. </returns><remarks>
  3336. <format type="text/markdown"><![CDATA[
  3337. For more information about asynchronous programming in the .NET Framework Data Provider for SQL Server, see [Asynchronous Programming](~/docs/framework/data/adonet/asynchronous-programming.md).
  3338. ]]></format>
  3339. </remarks><exception cref="T:System.InvalidOperationException">
  3340. Calling
  3341. <see cref="M:Microsoft.Data.SqlClient.SqlBulkCopy.WriteToServerAsync(System.Data.DataTable)" />
  3342. multiple times for the same instance before task completion.
  3343. Calling
  3344. <see cref="M:Microsoft.Data.SqlClient.SqlBulkCopy.WriteToServerAsync(System.Data.DataTable)" />
  3345. and
  3346. <see cref="M:Microsoft.Data.SqlClient.SqlBulkCopy.WriteToServer(System.Data.DataTable)" />
  3347. for the same instance before task completion.
  3348. The connection drops or is closed during
  3349. <see cref="M:Microsoft.Data.SqlClient.SqlBulkCopy.WriteToServerAsync(System.Data.DataTable)" />
  3350. execution.
  3351. Returned in the task object, the
  3352. <see cref="T:Microsoft.Data.SqlClient.SqlBulkCopy" />
  3353. object was closed during the method execution.
  3354. Returned in the task object, there was a connection pool timeout.
  3355. Returned in the task object, the
  3356. <see cref="T:Microsoft.Data.SqlClient.SqlConnection" />
  3357. object is closed before method execution.
  3358. <see langword="Context Connection=true" />
  3359. is specified in the connection string.
  3360. </exception><exception cref="T:Microsoft.Data.SqlClient.SqlException">
  3361. Returned in the task object, any error returned by SQL Server that occurred while opening the connection.
  3362. </exception>
  3363. </member>
  3364. <member name="M:Microsoft.Data.SqlClient.SqlBulkCopy.WriteToServerAsync(System.Data.DataTable,System.Threading.CancellationToken)">
  3365. <param name="table">
  3366. A
  3367. <see cref="T:System.Data.DataTable" />
  3368. whose rows will be copied to the destination table.
  3369. </param><param name="cancellationToken">
  3370. The cancellation instruction. A
  3371. <see cref="P:System.Threading.CancellationToken.None" />
  3372. value in this parameter makes this method equivalent to
  3373. <see cref="M:Microsoft.Data.SqlClient.SqlBulkCopy.WriteToServerAsync(System.Data.DataTable)" />
  3374. .
  3375. </param><summary>
  3376. The asynchronous version of
  3377. <see cref="M:Microsoft.Data.SqlClient.SqlBulkCopy.WriteToServer(System.Data.DataTable)" />
  3378. , which copies all rows in the supplied
  3379. <see cref="T:System.Data.DataTable" />
  3380. to a destination table specified by the
  3381. <see cref="P:Microsoft.Data.SqlClient.SqlBulkCopy.DestinationTableName" />
  3382. property of the
  3383. <see cref="T:Microsoft.Data.SqlClient.SqlBulkCopy" />
  3384. object.
  3385. The cancellation token can be used to request that the operation be abandoned before the command timeout elapses. Exceptions will be reported via the returned Task object.
  3386. </summary><returns>
  3387. A task representing the asynchronous operation.
  3388. </returns><remarks>
  3389. <format type="text/markdown"><![CDATA[
  3390. For more information about asynchronous programming in the .NET Framework Data Provider for SQL Server, see [Asynchronous Programming](~/docs/framework/data/adonet/asynchronous-programming.md).
  3391. ]]></format>
  3392. </remarks><exception cref="T:System.InvalidOperationException">
  3393. Calling
  3394. <see cref="M:Microsoft.Data.SqlClient.SqlBulkCopy.WriteToServerAsync(System.Data.DataTable)" />
  3395. multiple times for the same instance before task completion.
  3396. Calling
  3397. <see cref="M:Microsoft.Data.SqlClient.SqlBulkCopy.WriteToServerAsync(System.Data.DataTable)" />
  3398. and
  3399. <see cref="M:Microsoft.Data.SqlClient.SqlBulkCopy.WriteToServer(System.Data.DataTable)" />
  3400. for the same instance before task completion.
  3401. The connection drops or is closed during
  3402. <see cref="M:Microsoft.Data.SqlClient.SqlBulkCopy.WriteToServerAsync(System.Data.DataTable)" />
  3403. execution.
  3404. Returned in the task object, the
  3405. <see cref="T:Microsoft.Data.SqlClient.SqlBulkCopy" />
  3406. object was closed during the method execution.
  3407. Returned in the task object, there was a connection pool timeout.
  3408. Returned in the task object, the
  3409. <see cref="T:Microsoft.Data.SqlClient.SqlConnection" />
  3410. object is closed before method execution.
  3411. <see langword="Context Connection=true" />
  3412. is specified in the connection string.
  3413. </exception><exception cref="T:Microsoft.Data.SqlClient.SqlException">
  3414. Returned in the task object, any error returned by SQL Server that occurred while opening the connection.
  3415. </exception>
  3416. </member>
  3417. <member name="M:Microsoft.Data.SqlClient.SqlBulkCopy.WriteToServerAsync(System.Data.DataTable,System.Data.DataRowState)">
  3418. <param name="table">
  3419. A
  3420. <see cref="T:System.Data.DataTable" />
  3421. whose rows will be copied to the destination table.
  3422. </param><param name="rowState">
  3423. A value from the
  3424. <see cref="T:System.Data.DataRowState" />
  3425. enumeration. Only rows matching the row state are copied to the destination.
  3426. </param><summary>
  3427. The asynchronous version of
  3428. <see cref="M:Microsoft.Data.SqlClient.SqlBulkCopy.WriteToServer(System.Data.DataTable,System.Data.DataRowState)" />
  3429. ,
  3430. which copies only rows that match the supplied row state in the supplied
  3431. <see cref="T:System.Data.DataTable" /> to a destination table specified by the <see cref="P:Microsoft.Data.SqlClient.SqlBulkCopy.DestinationTableName" />
  3432. property of the <see cref="T:Microsoft.Data.SqlClient.SqlBulkCopy" /> object.
  3433. </summary><returns>
  3434. A task representing the asynchronous operation.
  3435. </returns><remarks>
  3436. <format type="text/markdown"><![CDATA[
  3437. For more information about asynchronous programming in the .NET Framework Data Provider for SQL Server, see [Asynchronous Programming](~/docs/framework/data/adonet/asynchronous-programming.md).
  3438. ]]></format>
  3439. </remarks><exception cref="T:System.InvalidOperationException">
  3440. Calling
  3441. <see cref="M:Microsoft.Data.SqlClient.SqlBulkCopy.WriteToServerAsync(System.Data.DataTable,System.Data.DataRowState)" />
  3442. multiple times for the same instance before task completion.
  3443. Calling
  3444. <see cref="M:Microsoft.Data.SqlClient.SqlBulkCopy.WriteToServerAsync(System.Data.DataTable,System.Data.DataRowState)" />
  3445. and
  3446. <see cref="M:Microsoft.Data.SqlClient.SqlBulkCopy.WriteToServer(System.Data.DataTable,System.Data.DataRowState)" />
  3447. for the same instance before task completion.
  3448. The connection drops or is closed during
  3449. <see cref="M:Microsoft.Data.SqlClient.SqlBulkCopy.WriteToServerAsync(System.Data.DataTable,System.Data.DataRowState)" />
  3450. execution.
  3451. Returned in the task object, the
  3452. <see cref="T:Microsoft.Data.SqlClient.SqlBulkCopy" />
  3453. object was closed during the method execution.
  3454. Returned in the task object, there was a connection pool timeout.
  3455. Returned in the task object, the
  3456. <see cref="T:Microsoft.Data.SqlClient.SqlConnection" />
  3457. object is closed before method execution.
  3458. <see langword="Context Connection=true" />
  3459. is specified in the connection string.
  3460. </exception><exception cref="T:Microsoft.Data.SqlClient.SqlException">
  3461. Returned in the task object, any error returned by SQL Server that occurred while opening the connection.
  3462. </exception>
  3463. </member>
  3464. <member name="M:Microsoft.Data.SqlClient.SqlBulkCopy.WriteToServerAsync(System.Data.DataTable,System.Data.DataRowState,System.Threading.CancellationToken)">
  3465. <param name="table">
  3466. A
  3467. <see cref="T:System.Data.DataTable" />
  3468. whose rows will be copied to the destination table.
  3469. </param><param name="rowState">
  3470. A value from the
  3471. <see cref="T:System.Data.DataRowState" />
  3472. enumeration. Only rows matching the row state are copied to the destination.
  3473. </param><param name="cancellationToken">
  3474. The cancellation instruction. A
  3475. <see cref="P:System.Threading.CancellationToken.None" />
  3476. value in this parameter makes this method equivalent to
  3477. <see cref="M:Microsoft.Data.SqlClient.SqlBulkCopy.WriteToServerAsync(System.Data.DataTable)" />
  3478. .
  3479. </param><summary>
  3480. The asynchronous version of
  3481. <see cref="M:Microsoft.Data.SqlClient.SqlBulkCopy.WriteToServer(System.Data.DataTable,System.Data.DataRowState)" />
  3482. ,
  3483. which copies only rows that match the supplied row state in the supplied
  3484. <see cref="T:System.Data.DataTable" />
  3485. to a destination table specified by the
  3486. <see cref="P:Microsoft.Data.SqlClient.SqlBulkCopy.DestinationTableName" />
  3487. property of the
  3488. <see cref="T:Microsoft.Data.SqlClient.SqlBulkCopy" />
  3489. object.
  3490. The cancellation token can be used to request that the operation be abandoned before the command timeout elapses. Exceptions will be reported via the returned Task object.\
  3491. </summary><returns>
  3492. A task representing the asynchronous operation.
  3493. </returns><remarks>
  3494. <format type="text/markdown"><![CDATA[
  3495. For more information about asynchronous programming in the .NET Framework Data Provider for SQL Server, see [Asynchronous Programming](~/docs/framework/data/adonet/asynchronous-programming.md).
  3496. ]]></format>
  3497. </remarks><exception cref="T:System.InvalidOperationException">
  3498. Calling
  3499. <see cref="M:Microsoft.Data.SqlClient.SqlBulkCopy.WriteToServerAsync(System.Data.DataTable,System.Data.DataRowState)" />
  3500. multiple times for the same instance before task completion.
  3501. Calling
  3502. <see cref="M:Microsoft.Data.SqlClient.SqlBulkCopy.WriteToServerAsync(System.Data.DataTable,System.Data.DataRowState)" />
  3503. and
  3504. <see cref="M:Microsoft.Data.SqlClient.SqlBulkCopy.WriteToServer(System.Data.DataTable,System.Data.DataRowState)" />
  3505. for the same instance before task completion.
  3506. The connection drops or is closed during
  3507. <see cref="M:Microsoft.Data.SqlClient.SqlBulkCopy.WriteToServerAsync(System.Data.DataTable,System.Data.DataRowState)" />
  3508. execution.
  3509. Returned in the task object, the
  3510. <see cref="T:Microsoft.Data.SqlClient.SqlBulkCopy" />
  3511. object was closed during the method execution.
  3512. Returned in the task object, there was a connection pool timeout.
  3513. Returned in the task object, the
  3514. <see cref="T:Microsoft.Data.SqlClient.SqlConnection" />
  3515. object is closed before method execution.
  3516. <see langword="Context Connection=true" />
  3517. is specified in the connection string.
  3518. </exception><exception cref="T:Microsoft.Data.SqlClient.SqlException">
  3519. Returned in the task object, any error returned by SQL Server that occurred while opening the connection.
  3520. </exception>
  3521. </member>
  3522. <member name="T:Microsoft.Data.SqlClient.SqlBulkCopyColumnMapping">
  3523. <summary>
  3524. Defines the mapping between a column in a
  3525. <see cref="T:Microsoft.Data.SqlClient.SqlBulkCopy" />
  3526. instance's data source and a column in the instance's destination table.
  3527. </summary><remarks>
  3528. <format type="text/markdown"><![CDATA[
  3529. ## Remarks
  3530. Column mappings define the mapping between data source and the target table.
  3531. If mappings are not defined - that is, the <xref:Microsoft.Data.SqlClient.SqlBulkCopy.ColumnMappings%2A> collection is empty - the columns are mapped implicitly based on ordinal position.
  3532. For this to work, source and target schemas must match. If they do not, an <xref:System.InvalidOperationException> will be thrown.
  3533. If the <xref:Microsoft.Data.SqlClient.SqlBulkCopy.ColumnMappings%2A> collection is not empty, not every column present in the data source has to be specified. Those not mapped by the collection
  3534. are ignored.
  3535. You can refer to source and target columns by either name or ordinal. You can also mix by-name and by-ordinal column references in the same mappings collection.
  3536. ## Examples
  3537. The following example bulk copies data from a source table in the **AdventureWorks** sample database to a destination table in the same database. Although the number of columns in the
  3538. destination matches the number of columns in the source, and each destination column is in the same ordinal position as its corresponding source column, the column names do not match.
  3539. <xref:Microsoft.Data.SqlClient.SqlBulkCopyColumnMapping> objects are used to create a column map for the bulk copy.
  3540. > [!IMPORTANT]
  3541. > This sample will not run unless you have created the work tables as described in [Bulk Copy Example Setup](~/docs/framework/data/adonet/sql/bulk-copy-example-setup.md).
  3542. This code is provided to demonstrate the syntax for using **SqlBulkCopy** only. If the source and destination tables are in the same SQL Server instance, it is easier and faster to use a
  3543. Transact-SQL `INSERT … SELECT` statement to copy the data.
  3544. [!code-csharp[SqlBulkCopy.ColumnMapping#1](~/../sqlclient/doc/samples/SqlBulkCopy_ColumnMapping.cs#1)]
  3545. ]]></format>
  3546. </remarks>
  3547. </member>
  3548. <member name="P:Microsoft.Data.SqlClient.SqlBulkCopyColumnMapping.DestinationColumn">
  3549. <summary>
  3550. Name of the column being mapped in the destination database table.
  3551. </summary><value>
  3552. The string value of the
  3553. <see cref="P:Microsoft.Data.SqlClient.SqlBulkCopyColumnMapping.DestinationColumn" />
  3554. property.
  3555. </value><remarks>
  3556. <format type="text/markdown"><![CDATA[
  3557. ## Remarks
  3558. The <xref:Microsoft.Data.SqlClient.SqlBulkCopyColumnMapping.DestinationColumn%2A> and <xref:Microsoft.Data.SqlClient.SqlBulkCopyColumnMapping.DestinationOrdinal%2A> properties are mutually exclusive.
  3559. The last value set takes precedence.
  3560. ## Examples
  3561. The following example bulk copies data from a source table in the **AdventureWorks** sample database to a destination table in the same database.
  3562. Although the number of columns in the destination matches the number of columns in the source, the column names and ordinal positions do not match.
  3563. <xref:Microsoft.Data.SqlClient.SqlBulkCopyColumnMapping> objects are used to create a column map for the bulk copy.
  3564. > [!IMPORTANT]
  3565. > This sample will not run unless you have created the work tables as described in [Bulk Copy Example Setup](~/docs/framework/data/adonet/sql/bulk-copy-example-setup.md).
  3566. This code is provided to demonstrate the syntax for using **SqlBulkCopy** only. If the source and destination tables are in the same SQL Server instance, it is easier and faster to use a
  3567. Transact-SQL `INSERT … SELECT` statement to copy the data.
  3568. [!code-csharp[SqlBulkCopy.ColumnMappingDestinationColumn#1](~/../sqlclient/doc/samples/SqlBulkCopy_ColumnMappingDestinationColumn.cs#1)]
  3569. ]]></format>
  3570. </remarks>
  3571. </member>
  3572. <member name="P:Microsoft.Data.SqlClient.SqlBulkCopyColumnMapping.DestinationOrdinal">
  3573. <summary>
  3574. Ordinal value of the destination column within the destination table.
  3575. </summary><value>
  3576. The integer value of the
  3577. <see cref="P:Microsoft.Data.SqlClient.SqlBulkCopyColumnMapping.DestinationOrdinal" />
  3578. property, or -1 if the property has not been set.
  3579. </value><remarks>
  3580. <format type="text/markdown"><![CDATA[
  3581. ## Remarks
  3582. The <xref:Microsoft.Data.SqlClient.SqlBulkCopyColumnMapping.DestinationColumn%2A> and <xref:Microsoft.Data.SqlClient.SqlBulkCopyColumnMapping.DestinationOrdinal%2A> properties are mutually exclusive.
  3583. The last value set takes precedence.
  3584. ## Examples
  3585. The following example bulk copies data from a source table in the **AdventureWorks** sample database to a destination table in the same database. Although the number of columns in the
  3586. destination matches the number of columns in the source, the column names and ordinal positions do not match. <xref:Microsoft.Data.SqlClient.SqlBulkCopyColumnMapping> objects are used to create a
  3587. column map for the bulk copy.
  3588. > [!IMPORTANT]
  3589. > This sample will not run unless you have created the work tables as described in [Bulk Copy Example Setup](~/docs/framework/data/adonet/sql/bulk-copy-example-setup.md).
  3590. This code is provided to demonstrate the syntax for using **SqlBulkCopy** only. If the source and destination tables are in the same SQL Server instance, it is easier and faster to use a
  3591. Transact-SQL `INSERT … SELECT` statement to copy the data.
  3592. [!code-csharp[SqlBulkCopy.ColumnMappingDestinationOrdinal#1](~/../sqlclient/doc/samples/SqlBulkCopy_ColumnMappingDestinationOrdinal.cs#1)]
  3593. ]]></format>
  3594. </remarks>
  3595. </member>
  3596. <member name="P:Microsoft.Data.SqlClient.SqlBulkCopyColumnMapping.SourceColumn">
  3597. <summary>
  3598. Name of the column being mapped in the data source.
  3599. </summary><value>
  3600. The string value of the
  3601. <see cref="P:Microsoft.Data.SqlClient.SqlBulkCopyColumnMapping.SourceColumn" />
  3602. property.
  3603. </value><remarks>
  3604. <format type="text/markdown"><![CDATA[
  3605. ## Remarks
  3606. The <xref:Microsoft.Data.SqlClient.SqlBulkCopyColumnMapping.SourceColumn%2A> and <xref:Microsoft.Data.SqlClient.SqlBulkCopyColumnMapping.SourceOrdinal%2A> properties are mutually exclusive.
  3607. The last value set takes precedence.
  3608. ## Examples
  3609. The following example bulk copies data from a source table in the **AdventureWorks** sample database to a destination table in the same database. Although the number of columns in the
  3610. destination matches the number of columns in the source, the column names and ordinal positions do not match. <xref:Microsoft.Data.SqlClient.SqlBulkCopyColumnMapping> objects are used to create a
  3611. column map for the bulk copy.
  3612. > [!IMPORTANT]
  3613. > This sample will not run unless you have created the work tables as described in [Bulk Copy Example Setup](~/docs/framework/data/adonet/sql/bulk-copy-example-setup.md).
  3614. This code is provided to demonstrate the syntax for using **SqlBulkCopy** only. If the source and destination tables are in the same SQL Server instance, it is easier and faster to use a
  3615. Transact-SQL `INSERT … SELECT` statement to copy the data.
  3616. [!code-csharp[SqlBulkCopy.ColumnMappingDestinationColumn#1](~/../sqlclient/doc/samples/SqlBulkCopy_ColumnMappingDestinationColumn.cs#1)]
  3617. ]]></format>
  3618. </remarks>
  3619. </member>
  3620. <member name="P:Microsoft.Data.SqlClient.SqlBulkCopyColumnMapping.SourceOrdinal">
  3621. <summary>
  3622. The ordinal position of the source column within the data source.
  3623. </summary><value>
  3624. The integer value of the
  3625. <see cref="P:Microsoft.Data.SqlClient.SqlBulkCopyColumnMapping.SourceOrdinal" />
  3626. property.
  3627. </value><remarks>
  3628. <format type="text/markdown"><![CDATA[
  3629. ## Remarks
  3630. The <xref:Microsoft.Data.SqlClient.SqlBulkCopyColumnMapping.SourceColumn%2A> and <xref:Microsoft.Data.SqlClient.SqlBulkCopyColumnMapping.SourceOrdinal%2A> properties are mutually exclusive.
  3631. The last value set takes precedence.
  3632. ## Examples
  3633. The following example bulk copies data from a source table in the **AdventureWorks** sample database to a destination table in the same database. Although the number of columns in the destination
  3634. matches the number of columns in the source, the column names and ordinal positions do not match. <xref:Microsoft.Data.SqlClient.SqlBulkCopyColumnMapping> objects are used to create a column map for the
  3635. bulk copy.
  3636. > [!IMPORTANT]
  3637. > This sample will not run unless you have created the work tables as described in [Bulk Copy Example Setup](~/docs/framework/data/adonet/sql/bulk-copy-example-setup.md).
  3638. This code is provided to demonstrate the syntax for using **SqlBulkCopy** only. If the source and destination tables are in the same SQL Server instance, it is easier and faster to use a
  3639. Transact-SQL `INSERT … SELECT` statement to copy the data.
  3640. [!code-csharp[SqlBulkCopy.ColumnMappingDestinationOrdinal#1](~/../sqlclient/doc/samples/SqlBulkCopy_ColumnMappingDestinationOrdinal.cs#1)]
  3641. ]]></format>
  3642. </remarks>
  3643. </member>
  3644. <member name="M:Microsoft.Data.SqlClient.SqlBulkCopyColumnMapping.#ctor">
  3645. <summary>
  3646. Parameterless constructor that initializes a new
  3647. <see cref="T:Microsoft.Data.SqlClient.SqlBulkCopyColumnMapping" />
  3648. object.
  3649. </summary><remarks>
  3650. <format type="text/markdown"><![CDATA[
  3651. ## Remarks
  3652. If you use this constructor, you must then define the source for the mapping using the <xref:Microsoft.Data.SqlClient.SqlBulkCopyColumnMapping.SourceColumn>
  3653. property or the <xref:Microsoft.Data.SqlClient.SqlBulkCopyColumnMapping.SourceOrdinal%2A> property, and define the destination for the mapping using the
  3654. <xref:Microsoft.Data.SqlClient.SqlBulkCopyColumnMapping.DestinationColumn%2A> property or the <xref:Microsoft.Data.SqlClient.SqlBulkCopyColumnMapping.DestinationOrdinal%2A> property.
  3655. ## Examples
  3656. The following example bulk copies data from a source table in the **AdventureWorks** sample database to a destination table in the same database.
  3657. Although the number of columns in the destination matches the number of columns in the source, the column names and ordinal positions do not match.
  3658. <xref:Microsoft.Data.SqlClient.SqlBulkCopyColumnMapping> objects are used to create a column map for the bulk copy.
  3659. > [!IMPORTANT]
  3660. > This sample will not run unless you have created the work tables as described in [Bulk Copy Example Setup](~/docs/framework/data/adonet/sql/bulk-copy-example-setup.md).
  3661. This code is provided to demonstrate the syntax for using **SqlBulkCopy** only. If the source and destination tables are in the same SQL Server instance,
  3662. it is easier and faster to use a Transact-SQL `INSERT … SELECT` statement to copy the data.
  3663. [!code-csharp[SqlBulkCopy.ColumnMapping#1](~/../sqlclient/doc/samples/SqlBulkCopy_ColumnMapping.cs#1)]
  3664. ]]></format>
  3665. </remarks>
  3666. </member>
  3667. <member name="M:Microsoft.Data.SqlClient.SqlBulkCopyColumnMapping.#ctor(System.String,System.String)">
  3668. <param name="sourceColumn">
  3669. The name of the source column within the data source.
  3670. </param><param name="destinationColumn">
  3671. The name of the destination column within the destination table.
  3672. </param><summary>
  3673. Creates a new column mapping, using column names to refer to source and destination columns.
  3674. </summary><remarks>
  3675. <format type="text/markdown"><![CDATA[
  3676. ## Examples
  3677. The following example bulk copies data from a source table in the **AdventureWorks** sample database to a destination table in the same database. Although the number of columns in the
  3678. destination matches the number of columns in the source, the column names and ordinal positions do not match. <xref:Microsoft.Data.SqlClient.SqlBulkCopyColumnMapping> objects are used to create a
  3679. column map for the bulk copy.
  3680. > [!IMPORTANT]
  3681. > This sample will not run unless you have created the work tables as described in [Bulk Copy Example Setup](~/docs/framework/data/adonet/sql/bulk-copy-example-setup.md).
  3682. This code is provided to demonstrate the syntax for using **SqlBulkCopy** only. If the source and destination tables are in the same SQL Server instance, it is easier and faster to use a
  3683. Transact-SQL `INSERT … SELECT` statement to copy the data.
  3684. [!code-csharp[SqlBulkCopy.ColumnMapping#1](~/../sqlclient/doc/samples/SqlBulkCopy_ColumnMapping.cs#1)]
  3685. ]]></format>
  3686. </remarks>
  3687. </member>
  3688. <member name="M:Microsoft.Data.SqlClient.SqlBulkCopyColumnMapping.#ctor(System.Int32,System.String)">
  3689. <param name="sourceColumnOrdinal">
  3690. The ordinal position of the source column within the data source.
  3691. </param><param name="destinationColumn">
  3692. The name of the destination column within the destination table.
  3693. </param><summary>
  3694. Creates a new column mapping, using a column ordinal to refer to the source column and a column name for the target column.
  3695. </summary><remarks>
  3696. <format type="text/markdown"><![CDATA[
  3697. ## Examples
  3698. The following example bulk copies data from a source table in the **AdventureWorks** sample database to a destination table in the same database. Although the number of columns in
  3699. the destination matches the number of columns in the source, the column names and ordinal positions do not match. <xref:Microsoft.Data.SqlClient.SqlBulkCopyColumnMapping> objects are used to create a
  3700. column map for the bulk copy.
  3701. > [!IMPORTANT]
  3702. > This sample will not run unless you have created the work tables as described in [Bulk Copy Example Setup](~/docs/framework/data/adonet/sql/bulk-copy-example-setup.md).
  3703. This code is provided to demonstrate the syntax for using **SqlBulkCopy** only. If the source and destination tables are in the same SQL Server instance, it is easier and
  3704. faster to use a Transact-SQL `INSERT … SELECT` statement to copy the data.
  3705. [!code-csharp[SqlBulkCopy.ColumnMappingOrdinalName#1](~/../sqlclient/doc/samples/SqlBulkCopy_ColumnMappingOrdinalName.cs#1)]
  3706. ]]></format>
  3707. </remarks>
  3708. </member>
  3709. <member name="M:Microsoft.Data.SqlClient.SqlBulkCopyColumnMapping.#ctor(System.String,System.Int32)">
  3710. <param name="sourceColumn">
  3711. The name of the source column within the data source.
  3712. </param><param name="destinationOrdinal">
  3713. The ordinal position of the destination column within the destination table.
  3714. </param><summary>
  3715. Creates a new column mapping, using a column name to refer to the source column and a column ordinal for the target column.
  3716. </summary><remarks>
  3717. <format type="text/markdown"><![CDATA[
  3718. ## Examples
  3719. The following example bulk copies data from a source table in the **AdventureWorks** sample database to a destination table in the same database. Although the number of columns in
  3720. the destination matches the number of columns in the source, the column names and ordinal positions do not match. <xref:Microsoft.Data.SqlClient.SqlBulkCopyColumnMapping> objects are used to create
  3721. a column map for the bulk copy.
  3722. > [!IMPORTANT]
  3723. > This sample will not run unless you have created the work tables as described in [Bulk Copy Example Setup](~/docs/framework/data/adonet/sql/bulk-copy-example-setup.md). This code is
  3724. provided to demonstrate the syntax for using **SqlBulkCopy** only. If the source and destination tables are in the same SQL Server instance, it is easier and faster to
  3725. use a Transact-SQL `INSERT … SELECT` statement to copy the data.
  3726. [!code-csharp[SqlBulkCopy.ColumnMappingNameOrdinal#1](~/../sqlclient/doc/samples/SqlBulkCopy_ColumnMappingNameOrdinal.cs#1)]
  3727. ]]></format>
  3728. </remarks>
  3729. </member>
  3730. <member name="M:Microsoft.Data.SqlClient.SqlBulkCopyColumnMapping.#ctor(System.Int32,System.Int32)">
  3731. <param name="sourceColumnOrdinal">
  3732. The ordinal position of the source column within the data source.
  3733. </param><param name="destinationOrdinal">
  3734. The ordinal position of the destination column within the destination table.
  3735. </param><summary>
  3736. Creates a new column mapping, using column ordinals to refer to source and destination columns.
  3737. </summary><remarks>
  3738. <format type="text/markdown"><![CDATA[
  3739. ## Examples
  3740. The following example bulk copies data from a source table in the **AdventureWorks** sample database to a destination table in the same database.
  3741. Although the number of columns in the destination matches the number of columns in the source, the column names and ordinal positions do not match.
  3742. <xref:Microsoft.Data.SqlClient.SqlBulkCopyColumnMapping> objects are used to create a column map for the bulk copy based on the ordinal positions of the columns.
  3743. > [!IMPORTANT]
  3744. > This sample will not run unless you have created the work tables as described in [Bulk Copy Example Setup](~/docs/framework/data/adonet/sql/bulk-copy-example-setup.md).
  3745. This code is provided to demonstrate the syntax for using **SqlBulkCopy** only. If the source and destination tables are in the same SQL Server instance, it is easier
  3746. and faster to use a Transact-SQL `INSERT … SELECT` statement to copy the data.
  3747. [!code-csharp[SqlBulkCopy.ColumnMappingOrdinal#1](~/../sqlclient/doc/samples/SqlBulkCopy_ColumnMappingOrdinal.cs#1)]
  3748. ]]></format>
  3749. </remarks>
  3750. </member>
  3751. <member name="T:Microsoft.Data.SqlClient.SqlBulkCopyColumnMappingCollection">
  3752. <summary>Collection of <see cref="T:Microsoft.Data.SqlClient.SqlBulkCopyColumnMapping" /> objects that inherits from <see cref="T:System.Collections.CollectionBase" />.</summary><remarks>
  3753. <format type="text/markdown"><![CDATA[
  3754. ## Remarks
  3755. Column mappings define the mapping between data source and the target table.
  3756. If mappings are not defined - that is, the <xref:Microsoft.Data.SqlClient.SqlBulkCopy.ColumnMappings%2A> collection is empty - the columns are mapped implicitly based on ordinal position.
  3757. For this to work, source and target schemas must match. If they do not, an <xref:System.InvalidOperationException> is thrown.
  3758. If the <xref:Microsoft.Data.SqlClient.SqlBulkCopy.ColumnMappings%2A> collection is not empty, not every column present in the data source has to be specified. Those not mapped by the collection are
  3759. ignored.
  3760. You can refer to source and target columns by either name or ordinal. You can mix by-name and by-ordinal column references in the same mappings collection.
  3761. ## Examples
  3762. The following example bulk copies data from a source table in the **AdventureWorks** sample database to a destination table in the same database.
  3763. Although the number of columns in the destination matches the number of columns in the source, the column names and ordinal positions do not match.
  3764. <xref:Microsoft.Data.SqlClient.SqlBulkCopyColumnMapping> are added to the <xref:Microsoft.Data.SqlClient.SqlBulkCopyColumnMappingCollection> for the
  3765. <xref:Microsoft.Data.SqlClient.SqlBulkCopy> object to create a column map for the bulk copy.
  3766. > [!IMPORTANT]
  3767. > This sample will not run unless you have created the work tables as described in [Bulk Copy Example Setup](~/docs/framework/data/adonet/sql/bulk-copy-example-setup.md).
  3768. This code is provided to demonstrate the syntax for using **SqlBulkCopy** only. If the source and destination tables are in the same SQL Server instance, it is easier and faster to
  3769. use a Transact-SQL `INSERT … SELECT` statement to copy the data.
  3770. [!code-csharp[SqlBulkCopy.ColumnMappingCollection#1](~/../sqlclient/doc/samples/SqlBulkCopy_ColumnMappingCollection.cs#1)]
  3771. ]]></format>
  3772. </remarks>
  3773. </member>
  3774. <member name="P:Microsoft.Data.SqlClient.SqlBulkCopyColumnMappingCollection.Item(System.Int32)">
  3775. <param name="index">The zero-based index of the <see cref="T:Microsoft.Data.SqlClient.SqlBulkCopyColumnMapping" /> to find.</param><summary>Gets the <see cref="T:Microsoft.Data.SqlClient.SqlBulkCopyColumnMapping" /> object at the specified index.</summary><value>A <see cref="T:Microsoft.Data.SqlClient.SqlBulkCopyColumnMapping" /> object.</value><remarks>To be added.</remarks>
  3776. </member>
  3777. <member name="M:Microsoft.Data.SqlClient.SqlBulkCopyColumnMappingCollection.Add(Microsoft.Data.SqlClient.SqlBulkCopyColumnMapping)">
  3778. <param name="bulkCopyColumnMapping">The <see cref="T:Microsoft.Data.SqlClient.SqlBulkCopyColumnMapping" /> object that describes the mapping to be added to the collection.</param><summary>Adds the specified mapping to the <see cref="T:Microsoft.Data.SqlClient.SqlBulkCopyColumnMappingCollection" />.</summary><returns>A <see cref="T:Microsoft.Data.SqlClient.SqlBulkCopyColumnMapping" /> object.</returns><remarks>
  3779. <format type="text/markdown"><![CDATA[
  3780. ## Examples
  3781. The following example bulk copies data from a source table in the **AdventureWorks** sample database to a destination table in the same database.
  3782. Although the number of columns in the destination matches the number of columns in the source, the column names and ordinal positions do not match.
  3783. <xref:Microsoft.Data.SqlClient.SqlBulkCopyColumnMapping> objects are used to create a column map for the bulk copy.
  3784. > [!IMPORTANT]
  3785. > This sample will not run unless you have created the work tables as described in [Bulk Copy Example Setup](~/docs/framework/data/adonet/sql/bulk-copy-example-setup.md).
  3786. This code is provided to demonstrate the syntax for using **SqlBulkCopy** only. If the source and destination tables are in the same SQL Server instance,
  3787. it is easier and faster to use a Transact-SQL `INSERT … SELECT` statement to copy the data.
  3788. [!code-csharp[SqlBulkCopy.ColumnMapping#1](~/../sqlclient/doc/samples/SqlBulkCopy_ColumnMapping.cs)]
  3789. ]]>
  3790. </format>
  3791. </remarks>
  3792. </member>
  3793. <member name="M:Microsoft.Data.SqlClient.SqlBulkCopyColumnMappingCollection.Add(System.String,System.String)">
  3794. <param name="sourceColumn">The name of the source column within the data source.</param><param name="destinationColumn">The name of the destination column within the destination table.</param><summary>Creates a new <see cref="T:Microsoft.Data.SqlClient.SqlBulkCopyColumnMapping" /> and adds it to the collection, using column names to specify both source and destination columns.</summary><returns>A column mapping.</returns><remarks>
  3795. <format type="text/markdown"><![CDATA[
  3796. ## Remarks
  3797. Mappings in a collection must be uniform: either all integer/integer pairs, all string/string pairs, all integer/string pairs, or all string/integer pairs.
  3798. If you try to add a mapping that is different from others already in the collection, an <xref:System.InvalidOperationException> is thrown.
  3799. ## Examples
  3800. The following example bulk copies data from a source table in the **AdventureWorks** sample database to a destination table in the same database.
  3801. Although the number of columns in the destination matches the number of columns in the source, the column names and ordinal positions do not match. The code creates a
  3802. <xref:Microsoft.Data.SqlClient.SqlBulkCopyColumnMapping> object by specifying the column names.
  3803. > [!IMPORTANT]
  3804. > This sample will not run unless you have created the work tables as described in [Bulk Copy Example Setup](~/docs/framework/data/adonet/sql/bulk-copy-example-setup.md).
  3805. This code is provided to demonstrate the syntax for using **SqlBulkCopy** only. If the source and destination tables are in the same SQL Server instance,
  3806. it is easier and faster to use a Transact-SQL `INSERT … SELECT` statement to copy the data.
  3807. [!code-csharp[SqlBulkCopy.ColumnMappingCollection#1](~/../sqlclient/doc/samples/SqlBulkCopy_ColumnMappingCollection.cs#1)]
  3808. ]]></format>
  3809. </remarks>
  3810. </member>
  3811. <member name="M:Microsoft.Data.SqlClient.SqlBulkCopyColumnMappingCollection.Add(System.Int32,System.String)">
  3812. <param name="sourceColumnIndex">The ordinal position of the source column within the data source.</param><param name="destinationColumn">The name of the destination column within the destination table.</param><summary>Creates a new <see cref="T:Microsoft.Data.SqlClient.SqlBulkCopyColumnMapping" /> and adds it to the collection, using an ordinal for the source column and a string for the destination column.</summary><returns>A column mapping.</returns><remarks>
  3813. <format type="text/markdown"><![CDATA[
  3814. ## Remarks
  3815. Mappings in a collection must be uniform: either all integer/integer pairs, all string/string pairs, all integer/string pairs, or all string/integer pairs.
  3816. If you try to add a mapping that is different from others already in the collection, an <xref:System.InvalidOperationException> is thrown.
  3817. ## Examples
  3818. The following example bulk copies data from a source table in the **AdventureWorks** sample database to a destination table in the same database. Although the number of columns in the
  3819. destination matches the number of columns in the source, the column names and ordinal positions do not match. <xref:Microsoft.Data.SqlClient.SqlBulkCopyColumnMapping> objects are used to create a
  3820. column map for the bulk copy.
  3821. > [!IMPORTANT]
  3822. > This sample will not run unless you have created the work tables as described in [Bulk Copy Example Setup](~/docs/framework/data/adonet/sql/bulk-copy-example-setup.md).
  3823. This code is provided to demonstrate the syntax for using **SqlBulkCopy** only. If the source and destination tables are in the same SQL Server instance, it is easier and faster to use a
  3824. Transact-SQL `INSERT … SELECT` statement to copy the data.
  3825. [!code-csharp[SqlBulkCopy_ColumnMappingIndexColName#1](~/../sqlclient/doc/samples/SqlBulkCopy_ColumnMappingIndexColName.cs#1)]
  3826. ]]></format>
  3827. </remarks>
  3828. </member>
  3829. <member name="M:Microsoft.Data.SqlClient.SqlBulkCopyColumnMappingCollection.Add(System.String,System.Int32)">
  3830. <param name="sourceColumn">The name of the source column within the data source.</param><param name="destinationColumnIndex">The ordinal position of the destination column within the destination table.</param><summary>Creates a new <see cref="T:Microsoft.Data.SqlClient.SqlBulkCopyColumnMapping" /> and adds it to the collection, using a column name to describe the source column and an ordinal to specify the destination column.</summary><returns>A column mapping.</returns><remarks>
  3831. <format type="text/markdown"><![CDATA[
  3832. ## Remarks
  3833. Mappings in a collection must be uniform: either all integer/integer pairs, all string/string pairs, all integer/string pairs, or all string/integer pairs.
  3834. If you try to add a mapping that is different from others already in the collection, an <xref:System.InvalidOperationException> is thrown.
  3835. ## Examples
  3836. The following example bulk copies data from a source table in the **AdventureWorks** sample database to a destination table in the same database.
  3837. Although the number of columns in the destination matches the number of columns in the source, the column names and ordinal positions do not match.
  3838. <xref:Microsoft.Data.SqlClient.SqlBulkCopyColumnMapping> objects are used to create a column map for the bulk copy.
  3839. > [!IMPORTANT]
  3840. > This sample will not run unless you have created the work tables as described in [Bulk Copy Example Setup](~/docs/framework/data/adonet/sql/bulk-copy-example-setup.md).
  3841. This code is provided to demonstrate the syntax for using **SqlBulkCopy** only. If the source and destination tables are in the same SQL Server instance,
  3842. it is easier and faster to use a Transact-SQL `INSERT … SELECT` statement to copy the data.
  3843. [!code-csharp[SqlBulkCopy.ColumnMappingColNameIndex#1](~/../sqlclient/doc/samples/SqlBulkCopy_ColumnMappingColNameIndex.cs#1)]
  3844. ]]></format>
  3845. </remarks>
  3846. </member>
  3847. <member name="M:Microsoft.Data.SqlClient.SqlBulkCopyColumnMappingCollection.Add(System.Int32,System.Int32)">
  3848. <param name="sourceColumnIndex">The ordinal position of the source column within the data source.</param><param name="destinationColumnIndex">The ordinal position of the destination column within the destination table.</param><summary>Creates a new <see cref="T:Microsoft.Data.SqlClient.SqlBulkCopyColumnMapping" /> and adds it to the collection, using ordinals to specify both source and destination columns.</summary><returns>A column mapping.</returns><remarks>
  3849. <format type="text/markdown"><![CDATA[
  3850. ## Remarks
  3851. Mappings in a collection must be uniform: either all integer/integer pairs, all string/string pairs, all integer/string pairs, or all string/integer pairs. If you try to add a
  3852. mapping that is different from others already in the collection, an <xref:System.InvalidOperationException> is thrown.
  3853. ## Examples
  3854. The following example bulk copies data from a source table in the **AdventureWorks** sample database to a destination table in the same database.
  3855. Although the number of columns in the destination matches the number of columns in the source, the column names and ordinal positions do not match.
  3856. <xref:Microsoft.Data.SqlClient.SqlBulkCopyColumnMapping> objects are used to create a column map for the bulk copy using the ordinal position of the source and destination columns.
  3857. > [!IMPORTANT]
  3858. > This sample will not run unless you have created the work tables as described in [Bulk Copy Example Setup](~/docs/framework/data/adonet/sql/bulk-copy-example-setup.md).
  3859. This code is provided to demonstrate the syntax for using **SqlBulkCopy** only. If the source and destination tables are in the same SQL Server instance, it is easier and faster to use a
  3860. Transact-SQL `INSERT … SELECT` statement to copy the data.
  3861. [!code-csharp[SqlBulkCopy.ColumnMappingCollectionOrdinal#1](~/../sqlclient/doc/samples/SqlBulkCopy_ColumnMappingCollectionOrdinal.cs#1)]
  3862. ]]></format>
  3863. </remarks>
  3864. </member>
  3865. <member name="M:Microsoft.Data.SqlClient.SqlBulkCopyColumnMappingCollection.Clear">
  3866. <summary>Clears the contents of the collection.</summary><remarks>
  3867. <format type="text/markdown"><![CDATA[
  3868. ## Remarks
  3869. The <xref:Microsoft.Data.SqlClient.SqlBulkCopyColumnMappingCollection.Clear%2A> method is most commonly used when you use a single <xref:Microsoft.Data.SqlClient.SqlBulkCopy>
  3870. instance to process more than one bulk copy operation. If you create column mappings for one bulk copy operation, you must clear the
  3871. <xref:Microsoft.Data.SqlClient.SqlBulkCopyColumnMappingCollection> after the <xref:Microsoft.Data.SqlClient.SqlBulkCopy.WriteToServer%2A> method and before processing the next bulk copy.
  3872. Performing several bulk copies using the same <xref:Microsoft.Data.SqlClient.SqlBulkCopy> instance will usually be more efficient from a performance point of view than using a separate
  3873. <xref:Microsoft.Data.SqlClient.SqlBulkCopy> for each operation.
  3874. ## Examples
  3875. The following example performs two bulk copy operations. The first operation copies sales order header information, and the second copies sales order details.
  3876. Although not strictly necessary in this example (because the ordinal positions of the source and destination columns do match), the example defines column mappings for each bulk copy operation.
  3877. The <xref:Microsoft.Data.SqlClient.SqlBulkCopyColumnMappingCollection.Clear%2A> method must be used after the first bulk copy is performed and before the next bulk copy's column mappings are defined.
  3878. > [!IMPORTANT]
  3879. > This sample will not run unless you have created the work tables as described in [Bulk Copy Example Setup](~/docs/framework/data/adonet/sql/bulk-copy-example-setup.md).
  3880. This code is provided to demonstrate the syntax for using **SqlBulkCopy** only. If the source and destination tables are in the same SQL Server instance, it is easier and faster to use a
  3881. Transact-SQL `INSERT … SELECT` statement to copy the data.
  3882. [!code-csharp[SqlBulkCopy.ColumnMappingOrdersDetails#1](~/../sqlclient/doc/samples/SqlBulkCopy_ColumnMappingOrdersDetails.cs#1)]
  3883. ]]></format>
  3884. </remarks>
  3885. </member>
  3886. <member name="M:Microsoft.Data.SqlClient.SqlBulkCopyColumnMappingCollection.Contains(Microsoft.Data.SqlClient.SqlBulkCopyColumnMapping)">
  3887. <param name="value">A valid <see cref="T:Microsoft.Data.SqlClient.SqlBulkCopyColumnMapping" /> object.</param><summary>Gets a value indicating whether a specified <see cref="T:Microsoft.Data.SqlClient.SqlBulkCopyColumnMapping" /> object exists in the collection.</summary><returns>
  3888. <see langword="true" /> if the specified mapping exists in the collection; otherwise <see langword="false" />.</returns>
  3889. </member>
  3890. <member name="M:Microsoft.Data.SqlClient.SqlBulkCopyColumnMappingCollection.CopyTo(Microsoft.Data.SqlClient.SqlBulkCopyColumnMapping[],System.Int32)">
  3891. <param name="array">The one-dimensional <see cref="T:Microsoft.Data.SqlClient.SqlBulkCopyColumnMapping" /> array that is the destination of the elements copied from
  3892. <see cref="T:Microsoft.Data.SqlClient.SqlBulkCopyColumnMappingCollection" />. The array must have zero-based indexing.</param><param name="index">The zero-based index in <paramref name="array" /> at which copying begins.</param><summary>Copies the elements of the <see cref="T:Microsoft.Data.SqlClient.SqlBulkCopyColumnMappingCollection" /> to an array of <see cref="T:Microsoft.Data.SqlClient.SqlBulkCopyColumnMapping" />
  3893. items, starting at a particular index.
  3894. </summary>
  3895. </member>
  3896. <member name="M:Microsoft.Data.SqlClient.SqlBulkCopyColumnMappingCollection.IndexOf(Microsoft.Data.SqlClient.SqlBulkCopyColumnMapping)">
  3897. <param name="value">The <see cref="T:Microsoft.Data.SqlClient.SqlBulkCopyColumnMapping" /> object for which to search.</param><summary>Gets the index of the specified <see cref="T:Microsoft.Data.SqlClient.SqlBulkCopyColumnMapping" /> object.</summary><returns>The zero-based index of the column mapping, or -1 if the column mapping is not found in the collection.</returns><remarks>To be added.</remarks>
  3898. </member>
  3899. <member name="M:Microsoft.Data.SqlClient.SqlBulkCopyColumnMappingCollection.Insert(System.Int32,Microsoft.Data.SqlClient.SqlBulkCopyColumnMapping)">
  3900. <param name="index">Integer value of the location within the <see cref="T:Microsoft.Data.SqlClient.SqlBulkCopyColumnMappingCollection" /> at which to insert the new
  3901. <see cref="T:Microsoft.Data.SqlClient.SqlBulkCopyColumnMapping" />.</param><param name="value">
  3902. <see cref="T:Microsoft.Data.SqlClient.SqlBulkCopyColumnMapping" /> object to be inserted in the collection.</param><summary>Insert a new <see cref="T:Microsoft.Data.SqlClient.SqlBulkCopyColumnMapping" /> at the index specified.</summary><remarks>To be added.</remarks>
  3903. </member>
  3904. <member name="M:Microsoft.Data.SqlClient.SqlBulkCopyColumnMappingCollection.Remove(Microsoft.Data.SqlClient.SqlBulkCopyColumnMapping)">
  3905. <param name="value">
  3906. <see cref="T:Microsoft.Data.SqlClient.SqlBulkCopyColumnMapping" /> object to be removed from the collection.</param><summary>Removes the specified <see cref="T:Microsoft.Data.SqlClient.SqlBulkCopyColumnMapping" /> element from the <see cref="T:Microsoft.Data.SqlClient.SqlBulkCopyColumnMappingCollection" />.</summary><remarks>
  3907. <format type="text/markdown"><![CDATA[
  3908. ## Remarks
  3909. The <xref:Microsoft.Data.SqlClient.SqlBulkCopyColumnMappingCollection.Remove%2A> method is most commonly used when you use a single <xref:Microsoft.Data.SqlClient.SqlBulkCopy>
  3910. instance to process more than one bulk copy operation. If you create column mappings for one bulk copy operation, you must remove mappings that no longer apply after the
  3911. <xref:Microsoft.Data.SqlClient.SqlBulkCopy.WriteToServer%2A> method is called and before defining mapping for the next bulk copy. You can clear the entire collection by using the
  3912. <xref:Microsoft.Data.SqlClient.SqlBulkCopyColumnMappingCollection.Clear%2A> method, or remove mappings individually using the <xref:Microsoft.Data.SqlClient.SqlBulkCopyColumnMappingCollection.Remove%2A>
  3913. method or the <xref:Microsoft.Data.SqlClient.SqlBulkCopyColumnMappingCollection.RemoveAt%2A> method.
  3914. Performing several bulk copies using the same <xref:Microsoft.Data.SqlClient.SqlBulkCopy> instance will usually be more efficient from a performance point of view than using a separate
  3915. <xref:Microsoft.Data.SqlClient.SqlBulkCopy> for each operation.
  3916. ## Examples
  3917. The following example performs two bulk copy operations. The first operation copies sales order header information, and the second copies sales order details.
  3918. Although not strictly necessary in this example (because the ordinal positions of the source and destination columns do match), the example defines column mappings for each bulk copy operation.
  3919. Both bulk copies include a mapping for the **SalesOrderID**, so rather than clearing the entire collection between bulk copy operations, the example removes all mappings except for the **SalesOrderID**
  3920. mapping and then adds the appropriate mappings for the second bulk copy operation.
  3921. > [!IMPORTANT]
  3922. > This sample will not run unless you have created the work tables as described in [Bulk Copy Example Setup](~/docs/framework/data/adonet/sql/bulk-copy-example-setup.md).
  3923. This code is provided to demonstrate the syntax for using **SqlBulkCopy** only. If the source and destination tables are in the same SQL Server instance, it is easier and faster to use a
  3924. Transact-SQL `INSERT … SELECT` statement to copy the data.
  3925. [!code-csharp[SqlBulkCopy.ColumnMappingRemove#1](~/../sqlclient/doc/samples/SqlBulkCopy_ColumnMappingRemove.cs#1)]
  3926. ]]></format>
  3927. </remarks>
  3928. </member>
  3929. <member name="M:Microsoft.Data.SqlClient.SqlBulkCopyColumnMappingCollection.RemoveAt(System.Int32)">
  3930. <param name="index">The zero-based index of the <see cref="T:Microsoft.Data.SqlClient.SqlBulkCopyColumnMapping" /> object to be removed from the collection.</param><summary>Removes the mapping at the specified index from the collection.</summary><remarks>
  3931. <format type="text/markdown"><![CDATA[
  3932. ## Remarks
  3933. The <xref:Microsoft.Data.SqlClient.SqlBulkCopyColumnMappingCollection.RemoveAt%2A> method is most commonly used when you use a single <xref:Microsoft.Data.SqlClient.SqlBulkCopy>
  3934. instance to process more than one bulk copy operation. If you create column mappings for one bulk copy operation, you must remove mappings that no longer apply after the
  3935. <xref:Microsoft.Data.SqlClient.SqlBulkCopy.WriteToServer%2A> method is called and before defining mapping for the next bulk copy. You can clear the entire collection by using the
  3936. <xref:Microsoft.Data.SqlClient.SqlBulkCopyColumnMappingCollection.Clear%2A> method, or remove mappings individually using the <xref:Microsoft.Data.SqlClient.SqlBulkCopyColumnMappingCollection.Remove%2A>
  3937. method or the <xref:Microsoft.Data.SqlClient.SqlBulkCopyColumnMappingCollection.RemoveAt%2A> method.
  3938. Performing several bulk copies using the same <xref:Microsoft.Data.SqlClient.SqlBulkCopy> instance will usually be more efficient from a performance point of view than using a separate
  3939. <xref:Microsoft.Data.SqlClient.SqlBulkCopy> for each operation.
  3940. ## Examples
  3941. The following example performs two bulk copy operations. The first operation copies sales order header information, and the second copies sales order details.
  3942. Although not strictly necessary in this example (because the ordinal positions of the source and destination columns do match), the example defines column mappings for each bulk copy operation.
  3943. Both bulk copies include a mapping for the **SalesOrderID**, so rather than clearing the entire collection between bulk copy operations, the example removes all mappings except for the
  3944. **SalesOrderID** mapping and then adds the appropriate mappings for the second bulk copy operation.
  3945. > [!IMPORTANT]
  3946. > This sample will not run unless you have created the work tables as described in [Bulk Copy Example Setup](~/docs/framework/data/adonet/sql/bulk-copy-example-setup.md).
  3947. This code is provided to demonstrate the syntax for using **SqlBulkCopy** only. If the source and destination tables are in the same SQL Server instance, it is easier and faster to use a
  3948. Transact-SQL `INSERT … SELECT` statement to copy the data.
  3949. [!code-csharp[SqlBulkCopy.ColumnMappingRemoveAt#1](~/../sqlclient/doc/samples/SqlBulkCopy_ColumnMappingRemoveAt.cs#1)]
  3950. ]]></format>
  3951. </remarks>
  3952. </member>
  3953. <member name="T:Microsoft.Data.SqlClient.SqlBulkCopyOptions">
  3954. <summary>Bitwise flag that specifies one or more options to use with an instance of <see cref="T:Microsoft.Data.SqlClient.SqlBulkCopy" />.</summary><remarks>
  3955. <format type="text/markdown"><![CDATA[
  3956. ## Remarks
  3957. You can use the <xref:Microsoft.Data.SqlClient.SqlBulkCopyOptions> enumeration when you construct a <xref:Microsoft.Data.SqlClient.SqlBulkCopy> instance to change how the
  3958. <xref:Microsoft.Data.SqlClient.SqlBulkCopy.WriteToServer%2A> methods for that instance behave.
  3959. ## Examples
  3960. The following console application demonstrates how to perform a bulk load that copies the value in the identity column of the source table to the corresponding column in the destination table,
  3961. instead of generating a new value for each row's identity column.
  3962. To see how the option changes the way the bulk load works, run the sample with the **dbo.BulkCopyDemoMatchingColumns** table empty. All rows load from the source.
  3963. Next, run the sample again without emptying the table. An exception is thrown, and the code writes a message to the console window notifying you that rows were not added because of
  3964. primary key violations.
  3965. > [!IMPORTANT]
  3966. > This sample will not run unless you have created the work tables as described in [Bulk Copy Example Setup](~/docs/framework/data/adonet/sql/bulk-copy-example-setup.md).
  3967. This code is provided to demonstrate the syntax for using **SqlBulkCopy** only. If the source and destination tables are in the same SQL Server instance,
  3968. it is easier and faster to use a Transact-SQL `INSERT … SELECT` statement to copy the data.
  3969. [!code-csharp[SqlBulkCopy.KeepIdentity#1](~/../sqlclient/doc/samples/SqlBulkCopy_KeepIdentity.cs)]
  3970. ]]></format>
  3971. </remarks>
  3972. </member>
  3973. <member name="F:Microsoft.Data.SqlClient.SqlBulkCopyOptions.Default">
  3974. <summary>Use the default values for all options.</summary>
  3975. </member>
  3976. <member name="F:Microsoft.Data.SqlClient.SqlBulkCopyOptions.KeepIdentity">
  3977. <summary>Preserve source identity values. When not specified, identity values are assigned by the destination.</summary>
  3978. </member>
  3979. <member name="F:Microsoft.Data.SqlClient.SqlBulkCopyOptions.CheckConstraints">
  3980. <summary>Check constraints while data is being inserted. By default, constraints are not checked.</summary>
  3981. </member>
  3982. <member name="F:Microsoft.Data.SqlClient.SqlBulkCopyOptions.TableLock">
  3983. <summary>Obtain a bulk update lock for the duration of the bulk copy operation. When not specified, row locks are used.</summary>
  3984. </member>
  3985. <member name="F:Microsoft.Data.SqlClient.SqlBulkCopyOptions.KeepNulls">
  3986. <summary>Preserve null values in the destination table regardless of the settings for default values. When not specified, null values are replaced by default values where applicable.</summary>
  3987. </member>
  3988. <member name="F:Microsoft.Data.SqlClient.SqlBulkCopyOptions.FireTriggers">
  3989. <summary>When specified, cause the server to fire the insert triggers for the rows being inserted into the database.</summary>
  3990. </member>
  3991. <member name="F:Microsoft.Data.SqlClient.SqlBulkCopyOptions.UseInternalTransaction">
  3992. <summary>When specified, each batch of the bulk-copy operation will occur within a transaction. If you indicate this option and also provide a <see cref="T:Microsoft.Data.SqlClient.SqlTransaction" />
  3993. object to the constructor, an <see cref="T:System.ArgumentException" /> occurs.
  3994. </summary>
  3995. </member>
  3996. <member name="F:Microsoft.Data.SqlClient.SqlBulkCopyOptions.AllowEncryptedValueModifications">
  3997. <summary>
  3998. <format type="text/markdown"><![CDATA[
  3999. When specified, **AllowEncryptedValueModifications** enables bulk copying of encrypted data between tables or databases, without decrypting the data. Typically,
  4000. an application would select data from encrypted columns from one table without decrypting the data (the app would connect to the database with the column encryption setting keyword set
  4001. to disabled) and then would use this option to bulk insert the data, which is still encrypted.
  4002. Use caution when specifying **AllowEncryptedValueModifications** as this may lead to corrupting the database because the driver does not check if the data is indeed encrypted,
  4003. or if it is correctly encrypted using the same encryption type, algorithm and key as the target column.
  4004. ]]></format>
  4005. </summary>
  4006. </member>
  4007. <member name="T:Microsoft.Data.SqlClient.SqlClientDiagnosticListenerExtensions">
  4008. <summary>
  4009. Extension methods on the DiagnosticListener class to log SqlCommand data
  4010. </summary>
  4011. </member>
  4012. <member name="T:Microsoft.Data.SqlClient.SqlClientFactory">
  4013. <summary>
  4014. Represents a set of methods for creating instances of the
  4015. <see cref="N:Microsoft.Data.SqlClient" />
  4016. provider's implementation of the data source classes.
  4017. </summary><remarks>
  4018. To be added.
  4019. </remarks>
  4020. </member>
  4021. <member name="F:Microsoft.Data.SqlClient.SqlClientFactory.Instance">
  4022. <summary>
  4023. Gets an instance of the
  4024. <see cref="T:Microsoft.Data.SqlClient.SqlClientFactory" />
  4025. . This can be used to retrieve strongly typed data objects.
  4026. </summary><remarks>
  4027. <format type="text/markdown"><![CDATA[
  4028. ## Examples
  4029. The following code fragment uses the <xref:Microsoft.Data.SqlClient.SqlClientFactory.Instance> property to retrieve a **SqlClientFactory** instance, and then return a strongly typed
  4030. <xref:System.Data.Common.DbCommand> instance:
  4031. ```csharp
  4032. SqlClientFactory newFactory = SqlClientFactory.Instance;
  4033. DbCommand cmd = newFactory.CreateCommand();
  4034. ```
  4035. ]]></format>
  4036. </remarks>
  4037. </member>
  4038. <member name="M:Microsoft.Data.SqlClient.SqlClientFactory.CreateCommand">
  4039. <summary>
  4040. Returns a strongly typed
  4041. <see cref="T:System.Data.Common.DbCommand" />
  4042. instance.
  4043. </summary><returns>
  4044. A new strongly typed instance of
  4045. <see cref="T:System.Data.Common.DbCommand" />
  4046. .
  4047. </returns><remarks>
  4048. <format type="text/markdown"><![CDATA[
  4049. ## Examples
  4050. The following code fragment returns a strongly typed <xref:System.Data.Common.DbCommand> instance:
  4051. ```csharp
  4052. SqlClientFactory newFactory = SqlClientFactory.Instance;
  4053. DbCommand cmd = newFactory.CreateCommand();
  4054. ```
  4055. ]]></format>
  4056. </remarks>
  4057. </member>
  4058. <member name="M:Microsoft.Data.SqlClient.SqlClientFactory.CreateCommandBuilder">
  4059. <summary>
  4060. Returns a strongly typed
  4061. <see cref="T:System.Data.Common.DbCommandBuilder" />
  4062. instance.
  4063. </summary><returns>
  4064. A new strongly typed instance of
  4065. <see cref="T:System.Data.Common.DbCommandBuilder" />
  4066. .
  4067. </returns><remarks>
  4068. <format type="text/markdown"><![CDATA[
  4069. ## Examples
  4070. The following code fragment returns a strongly typed <xref:System.Data.Common.DbCommandBuilder> instance:
  4071. ```csharp
  4072. SqlClientFactory newFactory = SqlClientFactory.Instance;
  4073. DbCommandBuilder cmd = newFactory.CreateCommandBuilder();
  4074. ```
  4075. ]]></format>
  4076. </remarks>
  4077. </member>
  4078. <member name="M:Microsoft.Data.SqlClient.SqlClientFactory.CreateConnection">
  4079. <summary>
  4080. Returns a strongly typed
  4081. <see cref="T:System.Data.Common.DbConnection" />
  4082. instance.
  4083. </summary><returns>
  4084. A new strongly typed instance of
  4085. <see cref="T:System.Data.Common.DbConnection" />
  4086. .
  4087. </returns><remarks>
  4088. <format type="text/markdown"><![CDATA[
  4089. ## Examples
  4090. The following code fragment returns a strongly typed <xref:System.Data.Common.DbConnection> instance:
  4091. ```csharp
  4092. SqlClientFactory newFactory = SqlClientFactory.Instance;
  4093. DbConnection cmd = newFactory.CreateConnection();
  4094. ```
  4095. ]]></format>
  4096. </remarks>
  4097. </member>
  4098. <member name="M:Microsoft.Data.SqlClient.SqlClientFactory.CreateConnectionStringBuilder">
  4099. <summary>
  4100. Returns a strongly typed
  4101. <see cref="T:System.Data.Common.DbConnectionStringBuilder" />
  4102. instance.
  4103. </summary><returns>
  4104. A new strongly typed instance of
  4105. <see cref="T:System.Data.Common.DbConnectionStringBuilder" />
  4106. .
  4107. </returns><remarks>
  4108. <format type="text/markdown"><![CDATA[
  4109. ## Examples
  4110. The following code fragment returns a strongly typed <xref:System.Data.Common.DbConnectionStringBuilder> instance:
  4111. ```csharp
  4112. SqlClientFactory newFactory = SqlClientFactory.Instance;
  4113. DbConnectionStringBuilder cmd =
  4114. newFactory.CreateConnectionStringBuilder();
  4115. ```
  4116. ]]></format>
  4117. </remarks>
  4118. </member>
  4119. <member name="M:Microsoft.Data.SqlClient.SqlClientFactory.CreateDataAdapter">
  4120. <summary>
  4121. Returns a strongly typed
  4122. <see cref="T:System.Data.Common.DbDataAdapter" />
  4123. instance.
  4124. </summary><returns>
  4125. A new strongly typed instance of
  4126. <see cref="T:System.Data.Common.DbDataAdapter" />
  4127. .
  4128. </returns><remarks>
  4129. <format type="text/markdown"><![CDATA[
  4130. ## Examples
  4131. The following code fragment returns a strongly typed <xref:System.Data.Common.DbDataAdapter> instance:
  4132. ```csharp
  4133. SqlClientFactory newFactory = SqlClientFactory.Instance;
  4134. DbDataAdapter cmd = newFactory.CreateDataAdapter();
  4135. ```
  4136. ]]></format>
  4137. </remarks>
  4138. </member>
  4139. <member name="M:Microsoft.Data.SqlClient.SqlClientFactory.CreateParameter">
  4140. <summary>
  4141. Returns a strongly typed
  4142. <see cref="T:System.Data.Common.DbParameter" />
  4143. instance.
  4144. </summary><returns>
  4145. A new strongly typed instance of
  4146. <see cref="T:System.Data.Common.DbParameter" />
  4147. .
  4148. </returns><remarks>
  4149. <format type="text/markdown"><![CDATA[
  4150. ## Examples
  4151. The following code fragment returns a strongly typed <xref:System.Data.Common.DbParameter> instance:
  4152. ```csharp
  4153. SqlClientFactory newFactory = SqlClientFactory.Instance;
  4154. DbParameter cmd = newFactory.CreateParameter();
  4155. ```
  4156. ]]></format>
  4157. </remarks>
  4158. </member>
  4159. <member name="T:Microsoft.Data.SqlClient.SqlClientMetaDataCollectionNames">
  4160. <summary>Provides a list of constants for use with the **GetSchema** method to retrieve metadata collections.</summary><remarks>To be added.</remarks>
  4161. </member>
  4162. <member name="F:Microsoft.Data.SqlClient.SqlClientMetaDataCollectionNames.Columns">
  4163. <summary>A constant for use with the **GetSchema** method that represents the **Columns** collection.</summary><remarks>To be added.</remarks>
  4164. </member>
  4165. <member name="F:Microsoft.Data.SqlClient.SqlClientMetaDataCollectionNames.Databases">
  4166. <summary>A constant for use with the **GetSchema** method that represents the **Databases** collection.</summary><remarks>To be added.</remarks>
  4167. </member>
  4168. <member name="F:Microsoft.Data.SqlClient.SqlClientMetaDataCollectionNames.ForeignKeys">
  4169. <summary>A constant for use with the **GetSchema** method that represents the **ForeignKeys** collection.</summary><remarks>To be added.</remarks>
  4170. </member>
  4171. <member name="F:Microsoft.Data.SqlClient.SqlClientMetaDataCollectionNames.IndexColumns">
  4172. <summary>A constant for use with the **GetSchema** method that represents the **IndexColumns** collection.</summary><remarks>To be added.</remarks>
  4173. </member>
  4174. <member name="F:Microsoft.Data.SqlClient.SqlClientMetaDataCollectionNames.Indexes">
  4175. <summary>A constant for use with the **GetSchema** method that represents the **Indexes** collection.</summary><remarks>To be added.</remarks>
  4176. </member>
  4177. <member name="F:Microsoft.Data.SqlClient.SqlClientMetaDataCollectionNames.Parameters">
  4178. <summary>A constant for use with the **GetSchema** method that represents the **Parameters** collection.</summary><remarks>To be added.</remarks>
  4179. </member>
  4180. <member name="F:Microsoft.Data.SqlClient.SqlClientMetaDataCollectionNames.ProcedureColumns">
  4181. <summary>A constant for use with the **GetSchema** method that represents the **ProcedureColumns** collection.</summary><remarks>To be added.</remarks>
  4182. </member>
  4183. <member name="F:Microsoft.Data.SqlClient.SqlClientMetaDataCollectionNames.Procedures">
  4184. <summary>A constant for use with the **GetSchema** method that represents the **Procedures** collection.</summary><remarks>To be added.</remarks>
  4185. </member>
  4186. <member name="F:Microsoft.Data.SqlClient.SqlClientMetaDataCollectionNames.Tables">
  4187. <summary>A constant for use with the **GetSchema** method that represents the **Tables** collection.</summary><remarks>To be added.</remarks>
  4188. </member>
  4189. <member name="F:Microsoft.Data.SqlClient.SqlClientMetaDataCollectionNames.UserDefinedTypes">
  4190. <summary>A constant for use with the **GetSchema** method that represents the **UserDefinedTypes** collection.</summary><remarks>To be added.</remarks>
  4191. </member>
  4192. <member name="F:Microsoft.Data.SqlClient.SqlClientMetaDataCollectionNames.Users">
  4193. <summary>A constant for use with the **GetSchema** method that represents the **Users** collection.</summary><remarks>To be added.</remarks>
  4194. </member>
  4195. <member name="F:Microsoft.Data.SqlClient.SqlClientMetaDataCollectionNames.ViewColumns">
  4196. <summary>A constant for use with the **GetSchema** method that represents the **ViewColumns** collection.</summary><remarks>To be added.</remarks>
  4197. </member>
  4198. <member name="F:Microsoft.Data.SqlClient.SqlClientMetaDataCollectionNames.Views">
  4199. <summary>A constant for use with the **GetSchema** method that represents the **Views** collection.</summary><remarks>To be added.</remarks>
  4200. </member>
  4201. <member name="T:Microsoft.Data.SqlClient.SqlCommand">
  4202. <summary>
  4203. Represents a Transact-SQL statement or stored procedure to execute against a SQL Server database. This class cannot be inherited.
  4204. </summary><remarks>
  4205. <format type="text/markdown"><![CDATA[
  4206. ## Remarks
  4207. When an instance of <xref:Microsoft.Data.SqlClient.SqlCommand> is created, the read/write properties are set to their initial values. For a list of these values, see the <xref:Microsoft.Data.SqlClient.SqlCommand> constructor.
  4208. <xref:Microsoft.Data.SqlClient.SqlCommand> features the following methods for executing commands at a SQL Server database:
  4209. |Item|Description|
  4210. |----------|-----------------|
  4211. |<xref:Microsoft.Data.SqlClient.SqlCommand.BeginExecuteNonQuery%2A>|Initiates the asynchronous execution of the Transact-SQL statement or stored procedure that is described by this <xref:Microsoft.Data.SqlClient.SqlCommand>, generally executing commands such as INSERT, DELETE, UPDATE, and SET statements. Each call to <xref:Microsoft.Data.SqlClient.SqlCommand.BeginExecuteNonQuery%2A> must be paired with a call to <xref:Microsoft.Data.SqlClient.SqlCommand.EndExecuteNonQuery%2A> which finishes the operation, typically on a separate thread.|
  4212. |<xref:Microsoft.Data.SqlClient.SqlCommand.BeginExecuteReader%2A>|Initiates the asynchronous execution of the Transact-SQL statement or stored procedure that is described by this <xref:Microsoft.Data.SqlClient.SqlCommand> and retrieves one or more results sets from the server. Each call to <xref:Microsoft.Data.SqlClient.SqlCommand.BeginExecuteReader%2A> must be paired with a call to <xref:Microsoft.Data.SqlClient.SqlCommand.EndExecuteReader%2A> which finishes the operation, typically on a separate thread.|
  4213. |<xref:Microsoft.Data.SqlClient.SqlCommand.BeginExecuteXmlReader%2A>|Initiates the asynchronous execution of the Transact-SQL statement or stored procedure that is described by this <xref:Microsoft.Data.SqlClient.SqlCommand>. Each call to `BeginExecuteXmlReader` must be paired with a call to `EndExecuteXmlReader`, which finishes the operation, typically on a separate thread, and returns an <xref:System.Xml.XmlReader> object.|
  4214. |<xref:Microsoft.Data.SqlClient.SqlCommand.ExecuteReader%2A>|Executes commands that return rows. For increased performance, <xref:Microsoft.Data.SqlClient.SqlCommand.ExecuteReader%2A> invokes commands using the Transact-SQL `sp_executesql` system stored procedure. Therefore, <xref:Microsoft.Data.SqlClient.SqlCommand.ExecuteReader%2A> might not have the effect that you want if used to execute commands such as Transact-SQL SET statements.|
  4215. |<xref:Microsoft.Data.SqlClient.SqlCommand.ExecuteNonQuery%2A>|Executes commands such as Transact-SQL INSERT, DELETE, UPDATE, and SET statements.|
  4216. |<xref:Microsoft.Data.SqlClient.SqlCommand.ExecuteScalar%2A>|Retrieves a single value (for example, an aggregate value) from a database.|
  4217. |<xref:Microsoft.Data.SqlClient.SqlCommand.ExecuteXmlReader%2A>|Sends the <xref:Microsoft.Data.SqlClient.SqlCommand.CommandText%2A> to the <xref:Microsoft.Data.SqlClient.SqlCommand.Connection%2A> and builds an <xref:System.Xml.XmlReader> object.|
  4218. You can reset the <xref:Microsoft.Data.SqlClient.SqlCommand.CommandText%2A> property and reuse the <xref:Microsoft.Data.SqlClient.SqlCommand> object. However, you must close the <xref:Microsoft.Data.SqlClient.SqlDataReader> before you can execute a new or previous command.
  4219. If a <xref:Microsoft.Data.SqlClient.SqlException> is generated by the method executing a <xref:Microsoft.Data.SqlClient.SqlCommand>, the <xref:Microsoft.Data.SqlClient.SqlConnection> remains open when the severity level is 19 or less. When the severity level is 20 or greater, the server ordinarily closes the <xref:Microsoft.Data.SqlClient.SqlConnection>. However, the user can reopen the connection and continue.
  4220. > [!NOTE]
  4221. > Nameless, also called ordinal, parameters are not supported by the .NET Framework Data Provider for SQL Server.
  4222. ## Examples
  4223. The following example creates a <xref:Microsoft.Data.SqlClient.SqlConnection>, a <xref:Microsoft.Data.SqlClient.SqlCommand>, and a <xref:Microsoft.Data.SqlClient.SqlDataReader>. The example reads through the data, writing it to the console. Finally, the example closes the <xref:Microsoft.Data.SqlClient.SqlDataReader> and then the <xref:Microsoft.Data.SqlClient.SqlConnection> as it exits the `Using` code blocks.
  4224. [!code-csharp[SqlCommand Example#1](~/../sqlclient/doc/samples/SqlCommand.cs#1)]
  4225. The following sample shows how to create and execute different types of SqlCommand objects.
  4226. First you must create the sample database, by executing the following script:
  4227. [!code-sql[Setup Database](~/../sqlclient/doc/samples/SqlCommand_Setup.sql#1)]
  4228. Next, compile and execute the following:
  4229. [!code-csharp[SqlCommand Example#2](~/../sqlclient/doc/samples/SqlCommand_Intro.cs#1)]
  4230. ]]></format>
  4231. </remarks>
  4232. </member>
  4233. <member name="F:Microsoft.Data.SqlClient.SqlCommand._wasBatchModeColumnEncryptionSettingSetOnce">
  4234. <summary>
  4235. Indicates if the column encryption setting was set at-least once in the batch rpc mode, when using AddBatchCommand.
  4236. </summary>
  4237. </member>
  4238. <member name="F:Microsoft.Data.SqlClient.SqlCommand._columnEncryptionSetting">
  4239. <summary>
  4240. Column Encryption Override. Defaults to SqlConnectionSetting, in which case
  4241. it will be Enabled if SqlConnectionOptions.IsColumnEncryptionSettingEnabled = true, Disabled if false.
  4242. This may also be used to set other behavior which overrides connection level setting.
  4243. </summary>
  4244. </member>
  4245. <member name="P:Microsoft.Data.SqlClient.SqlCommand.IsColumnEncryptionEnabled">
  4246. <summary>
  4247. Return if column encryption setting is enabled.
  4248. The order in the below if is important since _activeConnection.Parser can throw if the
  4249. underlying tds connection is closed and we don't want to change the behavior for folks
  4250. not trying to use transparent parameter encryption i.e. who don't use (SqlCommandColumnEncryptionSetting.Enabled or _activeConnection.IsColumnEncryptionSettingEnabled) here.
  4251. </summary>
  4252. </member>
  4253. <member name="F:Microsoft.Data.SqlClient.SqlCommand._currentlyExecutingDescribeParameterEncryptionRPC">
  4254. <summary>
  4255. This variable is used to keep track of which RPC batch's results are being read when reading the results of
  4256. describe parameter encryption RPC requests in BatchRPCMode.
  4257. </summary>
  4258. </member>
  4259. <member name="F:Microsoft.Data.SqlClient.SqlCommand._internalEndExecuteInitiated">
  4260. <summary>
  4261. A flag to indicate if EndExecute was already initiated by the Begin call.
  4262. </summary>
  4263. </member>
  4264. <member name="P:Microsoft.Data.SqlClient.SqlCommand.IsDescribeParameterEncryptionRPCCurrentlyInProgress">
  4265. <summary>
  4266. A flag to indicate if we have in-progress describe parameter encryption RPC requests.
  4267. Reset to false when completed.
  4268. </summary>
  4269. </member>
  4270. <member name="P:Microsoft.Data.SqlClient.SqlCommand.CachingQueryMetadataPostponed">
  4271. <summary>
  4272. A flag to indicate whether we postponed caching the query metadata for this command.
  4273. </summary>
  4274. </member>
  4275. <member name="M:Microsoft.Data.SqlClient.SqlCommand.#ctor">
  4276. <summary>
  4277. Initializes a new instance of the
  4278. <see cref="T:Microsoft.Data.SqlClient.SqlCommand" />
  4279. class.
  4280. </summary><remarks>
  4281. <format type="text/markdown"><![CDATA[
  4282. ## Remarks
  4283. The base constructor initializes all fields to their default values. The following table shows initial property values for an instance of <xref:Microsoft.Data.SqlClient.SqlCommand>.
  4284. |Properties|Initial value|
  4285. |----------------|-------------------|
  4286. |<xref:Microsoft.Data.SqlClient.SqlCommand.CommandText%2A>|empty string ("")|
  4287. |<xref:Microsoft.Data.SqlClient.SqlCommand.CommandTimeout%2A>|30|
  4288. |<xref:Microsoft.Data.SqlClient.SqlCommand.CommandType%2A>|`CommandType.Text`|
  4289. |<xref:Microsoft.Data.SqlClient.SqlCommand.Connection%2A>|Null|
  4290. You can change the value for any of these properties through a separate call to the property.
  4291. ## Examples
  4292. The following example creates a <xref:Microsoft.Data.SqlClient.SqlCommand> and sets the `CommandTimeout` property.
  4293. [!code-csharp[Classic WebData IDbCommand_CommandTimeout.cs](~/../sqlclient/doc/samples/IDbCommand_CommandTimeout.cs)]
  4294. ]]></format>
  4295. </remarks>
  4296. </member>
  4297. <member name="M:Microsoft.Data.SqlClient.SqlCommand.#ctor(System.String)">
  4298. <param name="cmdText">
  4299. The text of the query.
  4300. </param><summary>
  4301. Initializes a new instance of the
  4302. <see cref="T:Microsoft.Data.SqlClient.SqlCommand" />
  4303. class with the text of the query.
  4304. </summary><remarks>
  4305. <format type="text/markdown"><![CDATA[
  4306. ## Remarks
  4307. When an instance of <xref:Microsoft.Data.SqlClient.SqlCommand> is created, the following read/write properties are set to initial values.
  4308. |Properties|Initial value|
  4309. |----------------|-------------------|
  4310. |<xref:Microsoft.Data.SqlClient.SqlCommand.CommandText%2A>|`cmdText`|
  4311. |<xref:Microsoft.Data.SqlClient.SqlCommand.CommandTimeout%2A>|30|
  4312. |<xref:Microsoft.Data.SqlClient.SqlCommand.CommandType%2A>|`CommandType.Text`|
  4313. |<xref:Microsoft.Data.SqlClient.SqlCommand.Connection%2A>|null|
  4314. You can change the value for any of these properties through a separate call to the property.
  4315. ## Examples
  4316. The following example creates a <xref:Microsoft.Data.SqlClient.SqlCommand>, passing in the connection string and command text.
  4317. [!code-csharp[SqlCommand_SqlCommand1](~/../sqlclient/doc/samples/SqlCommand_SqlCommand1.cs#1)]
  4318. ]]></format>
  4319. </remarks>
  4320. </member>
  4321. <member name="M:Microsoft.Data.SqlClient.SqlCommand.#ctor(System.String,Microsoft.Data.SqlClient.SqlConnection)">
  4322. <param name="cmdText">
  4323. The text of the query.
  4324. </param><param name="connection">
  4325. A
  4326. <see cref="T:Microsoft.Data.SqlClient.SqlConnection" />
  4327. that represents the connection to an instance of SQL Server.
  4328. </param><summary>
  4329. Initializes a new instance of the
  4330. <see cref="T:Microsoft.Data.SqlClient.SqlCommand" />
  4331. class with the text of the query and a
  4332. <see cref="T:Microsoft.Data.SqlClient.SqlConnection" />
  4333. .
  4334. </summary><remarks>
  4335. <format type="text/markdown"><![CDATA[
  4336. ## Remarks
  4337. The following table shows initial property values for an instance of <xref:Microsoft.Data.SqlClient.SqlCommand>.
  4338. |Properties|Initial value|
  4339. |----------------|-------------------|
  4340. |<xref:Microsoft.Data.SqlClient.SqlCommand.CommandText%2A>|`cmdText`|
  4341. |<xref:Microsoft.Data.SqlClient.SqlCommand.CommandTimeout%2A>|30|
  4342. |<xref:Microsoft.Data.SqlClient.SqlCommand.CommandType%2A>|`CommandType.Text`|
  4343. |<xref:Microsoft.Data.SqlClient.SqlCommand.Connection%2A>|A new <xref:Microsoft.Data.SqlClient.SqlConnection> that is the value for the `connection` parameter.|
  4344. You can change the value for any of these parameters by setting the related property.
  4345. ## Examples
  4346. The following example creates a <xref:Microsoft.Data.SqlClient.SqlCommand> and sets some of its properties.
  4347. [!code-csharp[SqlCommand_SqlCommand2.cs](~/../sqlclient/doc/samples/SqlCommand_SqlCommand2.cs#1)]
  4348. ]]></format>
  4349. </remarks>
  4350. </member>
  4351. <member name="M:Microsoft.Data.SqlClient.SqlCommand.#ctor(System.String,Microsoft.Data.SqlClient.SqlConnection,Microsoft.Data.SqlClient.SqlTransaction)">
  4352. <param name="cmdText">
  4353. The text of the query.
  4354. </param><param name="connection">
  4355. A
  4356. <see cref="T:Microsoft.Data.SqlClient.SqlConnection" />
  4357. that represents the connection to an instance of SQL Server.
  4358. </param><param name="transaction">
  4359. The
  4360. <see cref="T:Microsoft.Data.SqlClient.SqlTransaction" />
  4361. in which the
  4362. <see cref="T:Microsoft.Data.SqlClient.SqlCommand" />
  4363. executes.
  4364. </param><summary>
  4365. Initializes a new instance of the
  4366. <see cref="T:Microsoft.Data.SqlClient.SqlCommand" />
  4367. class with the text of the query, a
  4368. <see cref="T:Microsoft.Data.SqlClient.SqlConnection" />
  4369. , and the
  4370. <see cref="T:Microsoft.Data.SqlClient.SqlTransaction" />
  4371. .
  4372. </summary><remarks>
  4373. <format type="text/markdown"><![CDATA[
  4374. ## Remarks
  4375. The following table shows initial property values for an instance of <xref:Microsoft.Data.SqlClient.SqlCommand>.
  4376. |Properties|Initial value|
  4377. |----------------|-------------------|
  4378. |<xref:Microsoft.Data.SqlClient.SqlCommand.CommandText%2A>|`cmdText`|
  4379. |<xref:Microsoft.Data.SqlClient.SqlCommand.CommandTimeout%2A>|30|
  4380. |<xref:Microsoft.Data.SqlClient.SqlCommand.CommandType%2A>|`CommandType.Text`|
  4381. |<xref:Microsoft.Data.SqlClient.SqlCommand.Connection%2A>|A new <xref:Microsoft.Data.SqlClient.SqlConnection> that is the value for the `connection` parameter.|
  4382. You can change the value for any of these parameters by setting the related property.
  4383. ]]></format>
  4384. </remarks>
  4385. </member>
  4386. <member name="M:Microsoft.Data.SqlClient.SqlCommand.#ctor(System.String,Microsoft.Data.SqlClient.SqlConnection,Microsoft.Data.SqlClient.SqlTransaction,Microsoft.Data.SqlClient.SqlCommandColumnEncryptionSetting)">
  4387. <param name="cmdText">
  4388. The text of the query.
  4389. </param><param name="connection">
  4390. A
  4391. <see cref="T:Microsoft.Data.SqlClient.SqlConnection" />
  4392. that represents the connection to an instance of SQL Server.
  4393. </param><param name="transaction">
  4394. The
  4395. <see cref="T:Microsoft.Data.SqlClient.SqlTransaction" />
  4396. in which the
  4397. <see cref="T:Microsoft.Data.SqlClient.SqlCommand" />
  4398. executes.
  4399. </param><param name="columnEncryptionSetting">
  4400. The encryption setting. For more information, see [Always Encrypted](/sql/relational-databases/security/encryption/always-encrypted-database-engine).
  4401. </param><summary>
  4402. Initializes a new instance of the
  4403. <see cref="T:Microsoft.Data.SqlClient.SqlCommand" />
  4404. class with specified command text, connection, transaction, and encryption setting.
  4405. </summary><remarks>
  4406. To be added.
  4407. </remarks>
  4408. </member>
  4409. <member name="P:Microsoft.Data.SqlClient.SqlCommand.Connection">
  4410. <summary>
  4411. Gets or sets the
  4412. <see cref="T:Microsoft.Data.SqlClient.SqlConnection" />
  4413. used by this instance of the
  4414. <see cref="T:Microsoft.Data.SqlClient.SqlCommand" />
  4415. .
  4416. </summary><value>
  4417. The connection to a data source. The default value is
  4418. <see langword="null" />
  4419. .
  4420. </value><remarks>
  4421. <format type="text/markdown"><![CDATA[
  4422. ## Remarks
  4423. If the command is enlisted in an existing transaction, and the connection is changed, trying to execute the command will throw an <xref:System.InvalidOperationException>.
  4424. If the <xref:Microsoft.Data.SqlClient.SqlCommand.Transaction%2A> property is not null and the transaction has already been committed or rolled back, <xref:Microsoft.Data.SqlClient.SqlCommand.Transaction%2A> is set to null.
  4425. ## Examples
  4426. The following example creates a <xref:Microsoft.Data.SqlClient.SqlCommand> and sets some of its properties.
  4427. [!code-csharp[SqlCommand_Connection](~/../sqlclient/doc/samples/SqlCommand_Connection.cs)]
  4428. ]]></format>
  4429. </remarks><exception cref="T:System.InvalidOperationException">
  4430. The
  4431. <see cref="P:Microsoft.Data.SqlClient.SqlCommand.Connection" />
  4432. property was changed while the command was enlisted in a transaction.
  4433. </exception>
  4434. </member>
  4435. <member name="P:Microsoft.Data.SqlClient.SqlCommand.DbConnection">
  4436. <summary>
  4437. To be added.
  4438. </summary><value>
  4439. To be added.
  4440. </value><remarks>
  4441. To be added.
  4442. </remarks>
  4443. </member>
  4444. <member name="P:Microsoft.Data.SqlClient.SqlCommand.Notification">
  4445. <summary>
  4446. Gets or sets a value that specifies the
  4447. <see cref="T:Microsoft.Data.Sql.SqlNotificationRequest" />
  4448. object bound to this command.
  4449. </summary><value>
  4450. When set to null (default), no notification should be requested.
  4451. </value><remarks>
  4452. <format type="text/markdown"><![CDATA[
  4453. ## Remarks
  4454. You must set the value for this property before the command is executed for it to take effect.
  4455. ]]></format>
  4456. </remarks>
  4457. </member>
  4458. <member name="P:Microsoft.Data.SqlClient.SqlCommand.Transaction">
  4459. <summary>
  4460. Gets or sets the
  4461. <see cref="T:Microsoft.Data.SqlClient.SqlTransaction" />
  4462. within which the
  4463. <see cref="T:Microsoft.Data.SqlClient.SqlCommand" />
  4464. executes.
  4465. </summary><value>
  4466. The
  4467. <see cref="T:Microsoft.Data.SqlClient.SqlTransaction" />
  4468. . The default value is
  4469. <see langword="null" />
  4470. .
  4471. </value><remarks>
  4472. <format type="text/markdown"><![CDATA[
  4473. ## Remarks
  4474. You cannot set the <xref:Microsoft.Data.SqlClient.SqlCommand.Transaction%2A> property if it is already set to a specific value, and the command is in the process of executing. If you set the transaction property to a <xref:Microsoft.Data.SqlClient.SqlTransaction> object that is not connected to the same <xref:Microsoft.Data.SqlClient.SqlConnection> as the <xref:Microsoft.Data.SqlClient.SqlCommand> object, an exception is thrown the next time that you attempt to execute a statement.
  4475. ]]></format>
  4476. </remarks>
  4477. </member>
  4478. <member name="P:Microsoft.Data.SqlClient.SqlCommand.DbTransaction">
  4479. <summary>
  4480. To be added.
  4481. </summary><value>
  4482. To be added.
  4483. </value><remarks>
  4484. To be added.
  4485. </remarks>
  4486. </member>
  4487. <member name="P:Microsoft.Data.SqlClient.SqlCommand.CommandText">
  4488. <summary>
  4489. Gets or sets the Transact-SQL statement, table name or stored procedure to execute at the data source.
  4490. </summary><value>
  4491. The Transact-SQL statement or stored procedure to execute. The default is an empty string.
  4492. </value><remarks>
  4493. <format type="text/markdown"><![CDATA[
  4494. ## Remarks
  4495. When the <xref:Microsoft.Data.SqlClient.SqlCommand.CommandType%2A> property is set to `StoredProcedure`, the <xref:Microsoft.Data.SqlClient.SqlCommand.CommandText%2A> property should be set to the name of the stored procedure. The user may be required to use escape character syntax if the stored procedure name contains any special characters. The command executes this stored procedure when you call one of the `Execute` methods.
  4496. The Microsoft .NET Framework Data Provider for SQL Server does not support the question mark (?) placeholder for passing parameters to a Transact-SQL statement or a stored procedure called by a command of `CommandType.Text`. In this case, named parameters must be used. For example:
  4497. ```sql
  4498. SELECT * FROM dbo.Customers WHERE CustomerID = @CustomerID
  4499. ```
  4500. For more information, see [Configuring Parameters and Parameter Data Types](~/docs/framework/data/adonet/configuring-parameters-and-parameter-data-types.md).
  4501. ## Examples
  4502. The following example creates a <xref:Microsoft.Data.SqlClient.SqlCommand> and sets some of its properties.
  4503. [!code-csharp[SqlCommand_CommandText](~/../sqlclient/doc/samples/SqlCommand_CommandText.cs)]
  4504. ]]></format>
  4505. </remarks>
  4506. </member>
  4507. <member name="P:Microsoft.Data.SqlClient.SqlCommand.ColumnEncryptionSetting">
  4508. <summary>
  4509. Gets or sets the column encryption setting for this command.
  4510. </summary><value>
  4511. The column encryption setting for this command.
  4512. </value><remarks>
  4513. To be added.
  4514. </remarks>
  4515. </member>
  4516. <member name="P:Microsoft.Data.SqlClient.SqlCommand.CommandTimeout">
  4517. <summary>
  4518. Gets or sets the wait time (in seconds) before terminating the attempt to execute a command and generating an error. The default is 30 seconds.
  4519. </summary><value>
  4520. The time in seconds to wait for the command to execute. The default is 30 seconds.
  4521. </value><remarks>
  4522. <format type="text/markdown"><![CDATA[
  4523. ## Remarks
  4524. A value of 0 indicates no limit (an attempt to execute a command will wait indefinitely).
  4525. > [!NOTE]
  4526. > The <xref:Microsoft.Data.SqlClient.SqlCommand.CommandTimeout%2A> property will be ignored during old-style asynchronous method calls such as <xref:Microsoft.Data.SqlClient.SqlCommand.BeginExecuteReader%2A>. It will be honored by the newer async methods such as <xref:Microsoft.Data.SqlClient.SqlCommand.ExecuteReaderAsync%2A>.
  4527. <xref:Microsoft.Data.SqlClient.SqlCommand.CommandTimeout%2A> has no effect when the command is executed against a context connection (a <xref:Microsoft.Data.SqlClient.SqlConnection> opened with "context connection=true" in the connection string).
  4528. > [!NOTE]
  4529. > This property is the cumulative time-out (for all network packets that are read during the invocation of a method) for all network reads during command execution or processing of the results. A time-out can still occur after the first row is returned, and does not include user processing time, only network read time.
  4530. For example, with a 30 second time out, if <xref:Microsoft.Data.SqlClient.SqlDataReader.Read%2A> requires two network packets, then it has 30 seconds to read both network packets. If you call <xref:Microsoft.Data.SqlClient.SqlDataReader.Read%2A> again, it will have another 30 seconds to read any data that it requires.
  4531. [!code-csharp[SqlCommand CommandTimeout](~/../sqlclient/doc/samples/SqlCommand_CommandTimeout.cs)]
  4532. ]]></format>
  4533. </remarks>
  4534. </member>
  4535. <member name="M:Microsoft.Data.SqlClient.SqlCommand.ResetCommandTimeout">
  4536. <summary> Resets the <see cref="P:Microsoft.Data.SqlClient.SqlCommand.CommandTimeout" /> property to its default value.
  4537. </summary><remarks>
  4538. <format type="text/markdown"><![CDATA[
  4539. ## Remarks
  4540. The default value of the <xref:Microsoft.Data.SqlClient.SqlCommand.CommandTimeout%2A> is 30 seconds.
  4541. ]]></format>
  4542. </remarks>
  4543. </member>
  4544. <member name="P:Microsoft.Data.SqlClient.SqlCommand.CommandType">
  4545. <summary>
  4546. Gets or sets a value indicating how the
  4547. <see cref="P:Microsoft.Data.SqlClient.SqlCommand.CommandText" />
  4548. property is to be interpreted.
  4549. </summary><value>
  4550. One of the
  4551. <see cref="T:System.Data.CommandType" />
  4552. values. The default is
  4553. <see langword="Text" />
  4554. .
  4555. </value><remarks>
  4556. <format type="text/markdown"><![CDATA[
  4557. ## Remarks
  4558. When you set the <xref:Microsoft.Data.SqlClient.SqlCommand.CommandType%2A> property to `StoredProcedure`, you should set the <xref:Microsoft.Data.SqlClient.SqlCommand.CommandText%2A> property to the name of the stored procedure. The command executes this stored procedure when you call one of the Execute methods.
  4559. The Microsoft .NET Framework Data Provider for SQL Server does not support the question mark (?) placeholder for passing parameters to a SQL Statement or a stored procedure called with a <xref:Microsoft.Data.SqlClient.SqlCommand.CommandType%2A> of <xref:System.Data.CommandType.Text>. In this case, named parameters must be used. For example:
  4560. SELECT * FROM Customers WHERE CustomerID = @CustomerID
  4561. For more information, see [Configuring Parameters and Parameter Data Types](~/docs/framework/data/adonet/configuring-parameters-and-parameter-data-types.md).
  4562. ## Examples
  4563. The following example creates a <xref:Microsoft.Data.SqlClient.SqlCommand> and sets some of its properties.
  4564. [!code-csharp[IDbCommand_CommandTimeout](~/../sqlclient/doc/samples/IDbCommand_CommandTimeout.cs)]
  4565. ]]></format>
  4566. </remarks>
  4567. </member>
  4568. <member name="P:Microsoft.Data.SqlClient.SqlCommand.DesignTimeVisible">
  4569. <summary>
  4570. Gets or sets a value indicating whether the command object should be visible in a Windows Form Designer control.
  4571. </summary><value>
  4572. A value indicating whether the command object should be visible in a control. The default is
  4573. <see langword="true" />
  4574. .
  4575. </value><remarks>
  4576. To be added.
  4577. </remarks>
  4578. </member>
  4579. <member name="P:Microsoft.Data.SqlClient.SqlCommand.Parameters">
  4580. <summary>
  4581. Gets the
  4582. <see cref="T:Microsoft.Data.SqlClient.SqlParameterCollection" />
  4583. .
  4584. </summary><value>
  4585. The parameters of the Transact-SQL statement or stored procedure. The default is an empty collection.
  4586. </value><remarks>
  4587. <format type="text/markdown"><![CDATA[
  4588. ## Remarks
  4589. The Microsoft .NET Framework Data Provider for SQL Server does not support the question mark (?) placeholder for passing parameters to a SQL Statement or a stored procedure called by a command of `CommandType.Text`. In this case, named parameters must be used. For example:
  4590. SELECT * FROM Customers WHERE CustomerID = @CustomerID
  4591. > [!NOTE]
  4592. > If the parameters in the collection do not match the requirements of the query to be executed, an error may result.
  4593. For more information, see [Configuring Parameters and Parameter Data Types](~/docs/framework/data/adonet/configuring-parameters-and-parameter-data-types.md).
  4594. ## Examples
  4595. The following example demonstrates how to create a <xref:Microsoft.Data.SqlClient.SqlCommand> and add parameters to the <xref:Microsoft.Data.SqlClient.SqlParameterCollection>.
  4596. [!code-csharp[SqlParameterCollection.AddWithValue#1](~/../sqlclient/doc/samples/SqlParameterCollection_AddWithValue.cs#1)]
  4597. ]]></format>
  4598. </remarks>
  4599. </member>
  4600. <member name="P:Microsoft.Data.SqlClient.SqlCommand.DbParameterCollection">
  4601. <summary>
  4602. To be added.
  4603. </summary><value>
  4604. To be added.
  4605. </value><remarks>
  4606. To be added.
  4607. </remarks>
  4608. </member>
  4609. <member name="P:Microsoft.Data.SqlClient.SqlCommand.UpdatedRowSource">
  4610. <summary>
  4611. Gets or sets how command results are applied to the <see cref="T:System.Data.DataRow" /> when used by the **Update** method of the <see cref="T:System.Data.Common.DbDataAdapter" />.
  4612. </summary><value>
  4613. One of the <see cref="T:System.Data.UpdateRowSource" /> values.
  4614. </value><remarks>
  4615. <format type="text/markdown"><![CDATA[
  4616. ## Remarks
  4617. The default <xref:System.Data.UpdateRowSource> value is **Both** unless the command is automatically generated (as in the case of the <xref:Microsoft.Data.SqlClient.SqlCommandBuilder>), in which case the default is **None**.
  4618. For more information about using the **UpdatedRowSource** property, see [DataAdapter Parameters](~/docs/framework/data/adonet/dataadapter-parameters.md).
  4619. ]]></format>
  4620. </remarks>
  4621. </member>
  4622. <member name="E:Microsoft.Data.SqlClient.SqlCommand.StatementCompleted">
  4623. <summary>
  4624. Occurs when the execution of a Transact-SQL statement completes.
  4625. </summary><remarks>
  4626. To be added.
  4627. </remarks>
  4628. </member>
  4629. <member name="M:Microsoft.Data.SqlClient.SqlCommand.Prepare">
  4630. <summary>
  4631. Creates a prepared version of the command on an instance of SQL Server.
  4632. </summary><remarks>
  4633. <format type="text/markdown"><![CDATA[
  4634. ## Remarks
  4635. If <xref:Microsoft.Data.SqlClient.SqlCommand.CommandType%2A> is set to `StoredProcedure`, the call to <xref:Microsoft.Data.SqlClient.SqlCommand.Prepare%2A> should succeed, although it may cause a no-op.
  4636. Before you call <xref:Microsoft.Data.SqlClient.SqlCommand.Prepare%2A>, specify the data type of each parameter in the statement to be prepared. For each parameter that has a variable length data type, you must set the <xref:Microsoft.Data.SqlClient.SqlParameter.Size%2A> property to the maximum size needed. <xref:Microsoft.Data.SqlClient.SqlCommand.Prepare%2A> returns an error if these conditions are not met.
  4637. > [!NOTE]
  4638. > If the database context is changed by executing the Transact-SQL `USE <database>` statement, or by calling the <xref:Microsoft.Data.SqlClient.SqlConnection.ChangeDatabase%2A> method, then <xref:Microsoft.Data.SqlClient.SqlCommand.Prepare%2A> must be called a second time.
  4639. If you call an `Execute` method after calling <xref:Microsoft.Data.SqlClient.SqlCommand.Prepare%2A>, any parameter value that is larger than the value specified by the <xref:Microsoft.Data.SqlClient.SqlParameter.Size%2A> property is automatically truncated to the original specified size of the parameter, and no truncation errors are returned.
  4640. Output parameters (whether prepared or not) must have a user-specified data type. If you specify a variable length data type, you must also specify the maximum <xref:Microsoft.Data.SqlClient.SqlParameter.Size%2A>.
  4641. Prior to Visual Studio 2010, <xref:Microsoft.Data.SqlClient.SqlCommand.Prepare%2A> threw an exception. Beginning in Visual Studio 2010, this method does not throw an exception.
  4642. ## Examples
  4643. The following example demonstrates the use of the <xref:Microsoft.Data.SqlClient.SqlCommand.Prepare%2A> method.
  4644. [!code-csharp[SqlCommand.Prepare#1](~/../sqlclient/doc/samples/SqlCommand_Prepare.cs#1)]
  4645. ]]></format>
  4646. </remarks>
  4647. </member>
  4648. <member name="M:Microsoft.Data.SqlClient.SqlCommand.Cancel">
  4649. <summary>
  4650. Tries to cancel the execution of a
  4651. <see cref="T:Microsoft.Data.SqlClient.SqlCommand" />
  4652. .
  4653. </summary><remarks>
  4654. <format type="text/markdown"><![CDATA[
  4655. ## Remarks
  4656. If there is nothing to cancel, nothing occurs. However, if there is a command in process, and the attempt to cancel fails, no exception is generated.
  4657. In some rare cases, if you call <xref:Microsoft.Data.SqlClient.SqlCommand.ExecuteReader%2A>, then call <xref:Microsoft.Data.SqlClient.SqlDataReader.Close%2A> (implicitly or explicitly) before calling <xref:Microsoft.Data.SqlClient.SqlCommand.Cancel%2A>, and then call <xref:Microsoft.Data.SqlClient.SqlCommand.Cancel%2A>, the cancel command will not be sent to SQL Server and the result set can continue to stream after you call <xref:Microsoft.Data.SqlClient.SqlConnection.Close%2A>. To avoid this, make sure that you call <xref:Microsoft.Data.SqlClient.SqlCommand.Cancel%2A> before closing the reader or connection.
  4658. ## Examples
  4659. The following example demonstrates the use of the <xref:Microsoft.Data.SqlClient.SqlCommand.Cancel%2A> method.
  4660. [!code-csharp[SqlCommand_Cancel](~/../sqlclient/doc/samples/WebData SqlCommand_Cancel.cs)]
  4661. ]]></format>
  4662. </remarks>
  4663. </member>
  4664. <member name="M:Microsoft.Data.SqlClient.SqlCommand.CreateParameter">
  4665. <summary>
  4666. Creates a new instance of a
  4667. <see cref="T:Microsoft.Data.SqlClient.SqlParameter" />
  4668. object.
  4669. </summary><returns>
  4670. A
  4671. <see cref="T:Microsoft.Data.SqlClient.SqlParameter" />
  4672. object.
  4673. </returns><remarks>
  4674. <format type="text/markdown"><![CDATA[
  4675. ## Remarks
  4676. The <xref:Microsoft.Data.SqlClient.SqlCommand.CreateParameter%2A> method is a strongly-typed version of <xref:System.Data.IDbCommand.CreateParameter%2A>.
  4677. ]]></format>
  4678. </remarks><summary>
  4679. Creates a new instance of a <see cref="T:Microsoft.Data.SqlClient.SqlParameter" /> object.
  4680. </summary><returns>
  4681. A <see cref="T:Microsoft.Data.SqlClient.SqlParameter" /> object.
  4682. </returns><remarks>
  4683. To be added.
  4684. </remarks>
  4685. </member>
  4686. <member name="M:Microsoft.Data.SqlClient.SqlCommand.CreateDbParameter">
  4687. <summary>
  4688. To be added.
  4689. </summary><returns>
  4690. To be added.
  4691. </returns><remarks>
  4692. To be added.
  4693. </remarks>
  4694. </member>
  4695. <member name="M:Microsoft.Data.SqlClient.SqlCommand.Dispose(System.Boolean)">
  4696. <param name="disposing">
  4697. To be added.
  4698. </param><summary>
  4699. To be added.
  4700. </summary><remarks>
  4701. To be added.
  4702. </remarks>
  4703. </member>
  4704. <member name="M:Microsoft.Data.SqlClient.SqlCommand.ExecuteScalar">
  4705. <summary>
  4706. Executes the query, and returns the first column of the first row in the result set returned by the query. Additional columns or rows are ignored.
  4707. </summary><returns>
  4708. The first column of the first row in the result set, or a null reference (
  4709. <see langword="Nothing" />
  4710. in Visual Basic) if the result set is empty. Returns a maximum of 2033 characters.
  4711. </returns><remarks>
  4712. <format type="text/markdown"><![CDATA[
  4713. ## Remarks
  4714. Use the <xref:Microsoft.Data.SqlClient.SqlCommand.ExecuteScalar%2A> method to retrieve a single value (for example, an aggregate value) from a database. This requires less code than using the <xref:Microsoft.Data.SqlClient.SqlCommand.ExecuteReader%2A> method, and then performing the operations that you need to generate the single value using the data returned by a <xref:Microsoft.Data.SqlClient.SqlDataReader>.
  4715. A typical <xref:Microsoft.Data.SqlClient.SqlCommand.ExecuteScalar%2A> query can be formatted as in the following C# example:
  4716. ```csharp
  4717. cmd.CommandText = "SELECT COUNT(*) FROM dbo.region";
  4718. Int32 count = (Int32) cmd.ExecuteScalar();
  4719. ```
  4720. ## Examples
  4721. The following example creates a <xref:Microsoft.Data.SqlClient.SqlCommand> and then executes it using <xref:Microsoft.Data.SqlClient.SqlCommand.ExecuteScalar%2A>. The example is passed a string representing a new value to be inserted into a table, and a string to use to connect to the data source. The function returns the new **Identity** column value if a new row was inserted, 0 on failure.
  4722. [!code-csharp[SqlCommand.ExecuteScalar#1](~/../sqlclient/doc/samples/SqlCommand_ExecuteScalar.cs#1)]
  4723. ]]></format>
  4724. </remarks><exception cref="T:System.InvalidCastException">
  4725. A
  4726. <see cref="P:Microsoft.Data.SqlClient.SqlParameter.SqlDbType" />
  4727. other than **Binary** or **VarBinary** was used when
  4728. <see cref="P:Microsoft.Data.SqlClient.SqlParameter.Value" />
  4729. was set to
  4730. <see cref="T:System.IO.Stream" />
  4731. . For more information about streaming, see [SqlClient Streaming Support](~/docs/framework/data/adonet/sqlclient-streaming-support.md).
  4732. -or-
  4733. A
  4734. <see cref="P:Microsoft.Data.SqlClient.SqlParameter.SqlDbType" />
  4735. other than **Char**, **NChar**, **NVarChar**, **VarChar**, or **Xml** was used when
  4736. <see cref="P:Microsoft.Data.SqlClient.SqlParameter.Value" />
  4737. was set to
  4738. <see cref="T:System.IO.TextReader" />
  4739. .
  4740. -or-
  4741. A
  4742. <see cref="P:Microsoft.Data.SqlClient.SqlParameter.SqlDbType" />
  4743. other than **Xml** was used when
  4744. <see cref="P:Microsoft.Data.SqlClient.SqlParameter.Value" />
  4745. was set to
  4746. <see cref="T:System.Xml.XmlReader" />
  4747. .
  4748. </exception><exception cref="T:Microsoft.Data.SqlClient.SqlException">
  4749. An exception occurred while executing the command against a locked row. This exception is not generated when you are using Microsoft .NET Framework version 1.0.
  4750. -or-
  4751. A timeout occurred during a streaming operation. For more information about streaming, see [SqlClient Streaming Support](~/docs/framework/data/adonet/sqlclient-streaming-support.md).
  4752. </exception><exception cref="T:System.InvalidOperationException">
  4753. The
  4754. <see cref="T:Microsoft.Data.SqlClient.SqlConnection" />
  4755. closed or dropped during a streaming operation. For more information about streaming, see [SqlClient Streaming Support](~/docs/framework/data/adonet/sqlclient-streaming-support.md).
  4756. </exception><exception cref="T:System.IO.IOException">
  4757. An error occurred in a
  4758. <see cref="T:System.IO.Stream" />
  4759. ,
  4760. <see cref="T:System.Xml.XmlReader" />
  4761. or
  4762. <see cref="T:System.IO.TextReader" />
  4763. object during a streaming operation. For more information about streaming, see [SqlClient Streaming Support](~/docs/framework/data/adonet/sqlclient-streaming-support.md).
  4764. </exception><exception cref="T:System.ObjectDisposedException">
  4765. The
  4766. <see cref="T:System.IO.Stream" />
  4767. ,
  4768. <see cref="T:System.Xml.XmlReader" />
  4769. or
  4770. <see cref="T:System.IO.TextReader" />
  4771. object was closed during a streaming operation. For more information about streaming, see [SqlClient Streaming Support](~/docs/framework/data/adonet/sqlclient-streaming-support.md).
  4772. </exception>
  4773. </member>
  4774. <member name="M:Microsoft.Data.SqlClient.SqlCommand.ExecuteNonQuery">
  4775. <summary>
  4776. Executes the query, and returns the first column of the first row in the result set returned by the query. Additional columns or rows are ignored.
  4777. </summary><returns>
  4778. The first column of the first row in the result set, or a null reference (
  4779. <see langword="Nothing" />
  4780. in Visual Basic) if the result set is empty. Returns a maximum of 2033 characters.
  4781. </returns><remarks>
  4782. <format type="text/markdown"><![CDATA[
  4783. ## Remarks
  4784. Use the <xref:Microsoft.Data.SqlClient.SqlCommand.ExecuteScalar%2A> method to retrieve a single value (for example, an aggregate value) from a database. This requires less code than using the <xref:Microsoft.Data.SqlClient.SqlCommand.ExecuteReader%2A> method, and then performing the operations that you need to generate the single value using the data returned by a <xref:Microsoft.Data.SqlClient.SqlDataReader>.
  4785. A typical <xref:Microsoft.Data.SqlClient.SqlCommand.ExecuteScalar%2A> query can be formatted as in the following C# example:
  4786. ```csharp
  4787. cmd.CommandText = "SELECT COUNT(*) FROM dbo.region";
  4788. Int32 count = (Int32) cmd.ExecuteScalar();
  4789. ```
  4790. ## Examples
  4791. The following example creates a <xref:Microsoft.Data.SqlClient.SqlCommand> and then executes it using <xref:Microsoft.Data.SqlClient.SqlCommand.ExecuteScalar%2A>. The example is passed a string representing a new value to be inserted into a table, and a string to use to connect to the data source. The function returns the new **Identity** column value if a new row was inserted, 0 on failure.
  4792. [!code-csharp[SqlCommand.ExecuteScalar#1](~/../sqlclient/doc/samples/SqlCommand_ExecuteScalar.cs#1)]
  4793. ]]></format>
  4794. </remarks><exception cref="T:System.InvalidCastException">
  4795. A
  4796. <see cref="P:Microsoft.Data.SqlClient.SqlParameter.SqlDbType" />
  4797. other than **Binary** or **VarBinary** was used when
  4798. <see cref="P:Microsoft.Data.SqlClient.SqlParameter.Value" />
  4799. was set to
  4800. <see cref="T:System.IO.Stream" />
  4801. . For more information about streaming, see [SqlClient Streaming Support](~/docs/framework/data/adonet/sqlclient-streaming-support.md).
  4802. -or-
  4803. A
  4804. <see cref="P:Microsoft.Data.SqlClient.SqlParameter.SqlDbType" />
  4805. other than **Char**, **NChar**, **NVarChar**, **VarChar**, or **Xml** was used when
  4806. <see cref="P:Microsoft.Data.SqlClient.SqlParameter.Value" />
  4807. was set to
  4808. <see cref="T:System.IO.TextReader" />
  4809. .
  4810. -or-
  4811. A
  4812. <see cref="P:Microsoft.Data.SqlClient.SqlParameter.SqlDbType" />
  4813. other than **Xml** was used when
  4814. <see cref="P:Microsoft.Data.SqlClient.SqlParameter.Value" />
  4815. was set to
  4816. <see cref="T:System.Xml.XmlReader" />
  4817. .
  4818. </exception><exception cref="T:Microsoft.Data.SqlClient.SqlException">
  4819. An exception occurred while executing the command against a locked row. This exception is not generated when you are using Microsoft .NET Framework version 1.0.
  4820. -or-
  4821. A timeout occurred during a streaming operation. For more information about streaming, see [SqlClient Streaming Support](~/docs/framework/data/adonet/sqlclient-streaming-support.md).
  4822. </exception><exception cref="T:System.InvalidOperationException">
  4823. The
  4824. <see cref="T:Microsoft.Data.SqlClient.SqlConnection" />
  4825. closed or dropped during a streaming operation. For more information about streaming, see [SqlClient Streaming Support](~/docs/framework/data/adonet/sqlclient-streaming-support.md).
  4826. </exception><exception cref="T:System.IO.IOException">
  4827. An error occurred in a
  4828. <see cref="T:System.IO.Stream" />
  4829. ,
  4830. <see cref="T:System.Xml.XmlReader" />
  4831. or
  4832. <see cref="T:System.IO.TextReader" />
  4833. object during a streaming operation. For more information about streaming, see [SqlClient Streaming Support](~/docs/framework/data/adonet/sqlclient-streaming-support.md).
  4834. </exception><exception cref="T:System.ObjectDisposedException">
  4835. The
  4836. <see cref="T:System.IO.Stream" />
  4837. ,
  4838. <see cref="T:System.Xml.XmlReader" />
  4839. or
  4840. <see cref="T:System.IO.TextReader" />
  4841. object was closed during a streaming operation. For more information about streaming, see [SqlClient Streaming Support](~/docs/framework/data/adonet/sqlclient-streaming-support.md).
  4842. </exception>
  4843. </member>
  4844. <member name="M:Microsoft.Data.SqlClient.SqlCommand.BeginExecuteNonQuery">
  4845. <summary>
  4846. Initiates the asynchronous execution of the Transact-SQL statement or stored procedure that is described by this
  4847. <see cref="T:Microsoft.Data.SqlClient.SqlCommand" />
  4848. .
  4849. </summary><returns>
  4850. An
  4851. <see cref="T:System.IAsyncResult" />
  4852. that can be used to poll or wait for results, or both; this value is also needed when invoking
  4853. <see cref="M:Microsoft.Data.SqlClient.SqlCommand.EndExecuteNonQuery(System.IAsyncResult)" />
  4854. , which returns the number of affected rows.
  4855. </returns><remarks>
  4856. <format type="text/markdown"><![CDATA[
  4857. ## Remarks
  4858. The <xref:Microsoft.Data.SqlClient.SqlCommand.BeginExecuteNonQuery%2A> method starts the process of asynchronously executing a Transact-SQL statement or stored procedure that does not return rows, so that other tasks can run concurrently while the statement is executing. When the statement has completed, developers must call the <xref:Microsoft.Data.SqlClient.SqlCommand.EndExecuteNonQuery%2A> method to finish the operation. The <xref:Microsoft.Data.SqlClient.SqlCommand.BeginExecuteNonQuery%2A> method returns immediately, but until the code executes the corresponding <xref:Microsoft.Data.SqlClient.SqlCommand.EndExecuteNonQuery%2A> method call, it must not execute any other calls that start a synchronous or asynchronous execution against the same <xref:Microsoft.Data.SqlClient.SqlCommand> object. Calling the <xref:Microsoft.Data.SqlClient.SqlCommand.EndExecuteNonQuery%2A> before the command's execution is completed causes the <xref:Microsoft.Data.SqlClient.SqlCommand> object to block until the execution is finished.
  4859. Note that the command text and parameters are sent to the server synchronously. If a large command or many parameters are sent, this method may block during writes. After the command is sent, the method returns immediately without waiting for an answer from the server--that is, reads are asynchronous.
  4860. Because this overload does not support a callback procedure, developers must either poll to determine whether the command has completed, using the <xref:System.IAsyncResult.IsCompleted%2A> property of the <xref:System.IAsyncResult> returned by the <xref:Microsoft.Data.SqlClient.SqlCommand.BeginExecuteNonQuery%2A> method; or wait for the completion of one or more commands using the <xref:System.IAsyncResult.AsyncWaitHandle%2A> property of the returned <xref:System.IAsyncResult>.
  4861. This method ignores the <xref:Microsoft.Data.SqlClient.SqlCommand.CommandTimeout%2A> property.
  4862. ## Examples
  4863. The following console application creates updates data within the **AdventureWorks** sample database, doing its work asynchronously. In order to emulate a long-running process, this example inserts a WAITFOR statement in the command text. Normally, you would not take efforts to make your commands run slower, but doing this in this case makes it easier to demonstrate the asynchronous behavior.
  4864. [!code-csharp[SqlCommand_BeginExecuteNonQuery](~/../sqlclient/doc/samples/SqlCommand_BeginExecuteNonQuery.cs)]
  4865. ]]></format>
  4866. </remarks><exception cref="T:System.InvalidCastException">
  4867. A
  4868. <see cref="P:Microsoft.Data.SqlClient.SqlParameter.SqlDbType" />
  4869. other than **Binary** or **VarBinary** was used when
  4870. <see cref="P:Microsoft.Data.SqlClient.SqlParameter.Value" />
  4871. was set to
  4872. <see cref="T:System.IO.Stream" />
  4873. . For more information about streaming, see [SqlClient Streaming Support](~/docs/framework/data/adonet/sqlclient-streaming-support.md).
  4874. -or-
  4875. A
  4876. <see cref="P:Microsoft.Data.SqlClient.SqlParameter.SqlDbType" />
  4877. other than **Char**, **NChar**, **NVarChar**, **VarChar**, or **Xml** was used when
  4878. <see cref="P:Microsoft.Data.SqlClient.SqlParameter.Value" />
  4879. was set to
  4880. <see cref="T:System.IO.TextReader" />
  4881. .
  4882. -or-
  4883. A
  4884. <see cref="P:Microsoft.Data.SqlClient.SqlParameter.SqlDbType" />
  4885. other than **Xml** was used when
  4886. <see cref="P:Microsoft.Data.SqlClient.SqlParameter.Value" />
  4887. was set to
  4888. <see cref="T:System.Xml.XmlReader" />
  4889. .
  4890. </exception><exception cref="T:Microsoft.Data.SqlClient.SqlException">
  4891. Any error that occurred while executing the command text.
  4892. -or-
  4893. A timeout occurred during a streaming operation. For more information about streaming, see [SqlClient Streaming Support](~/docs/framework/data/adonet/sqlclient-streaming-support.md).
  4894. </exception><exception cref="T:System.InvalidOperationException">
  4895. The name/value pair "Asynchronous Processing=true" was not included within the connection string defining the connection for this
  4896. <see cref="T:Microsoft.Data.SqlClient.SqlCommand" />
  4897. .
  4898. -or-
  4899. The
  4900. <see cref="T:Microsoft.Data.SqlClient.SqlConnection" />
  4901. closed or dropped during a streaming operation. For more information about streaming, see [SqlClient Streaming Support](~/docs/framework/data/adonet/sqlclient-streaming-support.md).
  4902. </exception><exception cref="T:System.IO.IOException">
  4903. An error occurred in a
  4904. <see cref="T:System.IO.Stream" />
  4905. ,
  4906. <see cref="T:System.Xml.XmlReader" />
  4907. or
  4908. <see cref="T:System.IO.TextReader" />
  4909. object during a streaming operation. For more information about streaming, see [SqlClient Streaming Support](~/docs/framework/data/adonet/sqlclient-streaming-support.md).
  4910. </exception><exception cref="T:System.ObjectDisposedException">
  4911. The
  4912. <see cref="T:System.IO.Stream" />
  4913. ,
  4914. <see cref="T:System.Xml.XmlReader" />
  4915. or
  4916. <see cref="T:System.IO.TextReader" />
  4917. object was closed during a streaming operation. For more information about streaming, see [SqlClient Streaming Support](~/docs/framework/data/adonet/sqlclient-streaming-support.md).
  4918. </exception>
  4919. </member>
  4920. <member name="M:Microsoft.Data.SqlClient.SqlCommand.BeginExecuteNonQuery(System.AsyncCallback,System.Object)">
  4921. <param name="callback">
  4922. An
  4923. <see cref="T:System.AsyncCallback" />
  4924. delegate that is invoked when the command's execution has completed. Pass
  4925. <see langword="null" />
  4926. (
  4927. <see langword="Nothing" />
  4928. in Microsoft Visual Basic) to indicate that no callback is required.
  4929. </param><param name="stateObject">
  4930. A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback procedure using the
  4931. <see cref="P:System.IAsyncResult.AsyncState" />
  4932. property.
  4933. </param><summary>
  4934. Initiates the asynchronous execution of the Transact-SQL statement or stored procedure that is described by this
  4935. <see cref="T:Microsoft.Data.SqlClient.SqlCommand" />
  4936. , given a callback procedure and state information.
  4937. </summary><returns>
  4938. An
  4939. <see cref="T:System.IAsyncResult" />
  4940. that can be used to poll or wait for results, or both; this value is also needed when invoking
  4941. <see cref="M:Microsoft.Data.SqlClient.SqlCommand.EndExecuteNonQuery(System.IAsyncResult)" />
  4942. , which returns the number of affected rows.
  4943. </returns><remarks>
  4944. <format type="text/markdown"><![CDATA[
  4945. ## Remarks
  4946. The <xref:Microsoft.Data.SqlClient.SqlCommand.BeginExecuteNonQuery%2A> method starts the process of asynchronously executing a Transact-SQL statement or stored procedure that does not return rows, so that other tasks can run concurrently while the statement is executing. When the statement has completed, developers must call the <xref:Microsoft.Data.SqlClient.SqlCommand.EndExecuteNonQuery%2A> method to finish the operation. The <xref:Microsoft.Data.SqlClient.SqlCommand.BeginExecuteNonQuery%2A> method returns immediately, but until the code executes the corresponding <xref:Microsoft.Data.SqlClient.SqlCommand.EndExecuteNonQuery%2A> method call, it must not execute any other calls that start a synchronous or asynchronous execution against the same <xref:Microsoft.Data.SqlClient.SqlCommand> object. Calling the <xref:Microsoft.Data.SqlClient.SqlCommand.EndExecuteNonQuery%2A> before the command's execution is completed causes the <xref:Microsoft.Data.SqlClient.SqlCommand> object to block until the execution is finished.
  4947. The `callback` parameter lets you specify an <xref:System.AsyncCallback> delegate that is called when the statement has completed. You can call the <xref:Microsoft.Data.SqlClient.SqlCommand.EndExecuteNonQuery%2A> method from within this delegate procedure, or from any other location within your application. In addition, you can pass any object in the `asyncStateObject` parameter, and your callback procedure can retrieve this information using the <xref:System.IAsyncResult.AsyncState%2A> property.
  4948. Note that the command text and parameters are sent to the server synchronously. If a large command or many parameters are sent, this method may block during writes. After the command is sent, the method returns immediately without waiting for an answer from the server--that is, reads are asynchronous.
  4949. Because the callback procedure executes from within a background thread supplied by the Microsoft .NET common language runtime, it is very important that you take a rigorous approach to handling cross-thread interactions from within your applications. For example, you must not interact with a form's contents from within your callback procedure; should you have to update the form, you must switch back to the form's thread in order to do your work. The example in this topic demonstrates this behavior.
  4950. All errors that occur during the execution of the operation are thrown as exceptions in the callback procedure. You must handle the exception in the callback procedure, not in the main application. See the example in this topic for additional information on handling exceptions in the callback procedure.
  4951. This method ignores the <xref:Microsoft.Data.SqlClient.SqlCommand.CommandTimeout%2A> property.
  4952. ## Examples
  4953. The following Windows application demonstrates the use of the <xref:Microsoft.Data.SqlClient.SqlCommand.BeginExecuteNonQuery%2A> method, executing a Transact-SQL statement that includes a delay of several seconds (emulating a long-running command).
  4954. This example demonstrates many important techniques. This includes calling a method that interacts with the form from a separate thread. In addition, this example demonstrates how you must block users from executing a command multiple times concurrently, and how you must make sure that the form does not close before the callback procedure is called.
  4955. To set up this example, create a new Windows application. Put a <xref:System.Windows.Forms.Button> control and a <xref:System.Windows.Forms.Label> control on the form (accepting the default name for each control). Add the following code to the form's class, modifying the connection string as needed for your environment.
  4956. [!code-csharp[DataWorks SqlCommand_BeginExecuteNonQueryForm#1](~/../sqlclient/doc/samples/SqlCommand_BeginExecuteNonQueryForm.cs)]
  4957. ]]></format>
  4958. </remarks><exception cref="T:System.InvalidCastException">
  4959. A
  4960. <see cref="P:Microsoft.Data.SqlClient.SqlParameter.SqlDbType" />
  4961. other than **Binary** or **VarBinary** was used when
  4962. <see cref="P:Microsoft.Data.SqlClient.SqlParameter.Value" />
  4963. was set to
  4964. <see cref="T:System.IO.Stream" />
  4965. . For more information about streaming, see [SqlClient Streaming Support](~/docs/framework/data/adonet/sqlclient-streaming-support.md).
  4966. -or-
  4967. A
  4968. <see cref="P:Microsoft.Data.SqlClient.SqlParameter.SqlDbType" />
  4969. other than **Char**, **NChar**, **NVarChar**, **VarChar**, or **Xml** was used when
  4970. <see cref="P:Microsoft.Data.SqlClient.SqlParameter.Value" />
  4971. was set to
  4972. <see cref="T:System.IO.TextReader" />
  4973. .
  4974. -or-
  4975. A
  4976. <see cref="P:Microsoft.Data.SqlClient.SqlParameter.SqlDbType" />
  4977. other than **Xml** was used when
  4978. <see cref="P:Microsoft.Data.SqlClient.SqlParameter.Value" />
  4979. was set to
  4980. <see cref="T:System.Xml.XmlReader" />
  4981. .
  4982. </exception><exception cref="T:Microsoft.Data.SqlClient.SqlException">
  4983. Any error that occurred while executing the command text.
  4984. -or-
  4985. A timeout occurred during a streaming operation. For more information about streaming, see [SqlClient Streaming Support](~/docs/framework/data/adonet/sqlclient-streaming-support.md).
  4986. </exception><exception cref="T:System.InvalidOperationException">
  4987. The name/value pair "Asynchronous Processing=true" was not included within the connection string defining the connection for this
  4988. <see cref="T:Microsoft.Data.SqlClient.SqlCommand" />
  4989. .
  4990. -or-
  4991. The
  4992. <see cref="T:Microsoft.Data.SqlClient.SqlConnection" />
  4993. closed or dropped during a streaming operation. For more information about streaming, see [SqlClient Streaming Support](~/docs/framework/data/adonet/sqlclient-streaming-support.md).
  4994. </exception>
  4995. </member>
  4996. <member name="M:Microsoft.Data.SqlClient.SqlCommand.EndExecuteNonQuery(System.IAsyncResult)">
  4997. <param name="asyncResult">
  4998. The
  4999. <see cref="T:System.IAsyncResult" />
  5000. returned by the call to
  5001. <see cref="M:Microsoft.Data.SqlClient.SqlCommand.BeginExecuteNonQuery" />
  5002. .
  5003. </param><summary>
  5004. Finishes asynchronous execution of a Transact-SQL statement.
  5005. </summary><returns>
  5006. The number of rows affected (the same behavior as
  5007. <see cref="M:Microsoft.Data.SqlClient.SqlCommand.ExecuteNonQuery" />
  5008. ).
  5009. </returns><remarks>
  5010. <format type="text/markdown"><![CDATA[
  5011. ## Remarks
  5012. When you call <xref:Microsoft.Data.SqlClient.SqlCommand.BeginExecuteNonQuery> to execute a Transact-SQL statement, you must call <xref:Microsoft.Data.SqlClient.SqlCommand.EndExecuteNonQuery%2A> in order to complete the operation. If the process of executing the command has not yet finished, this method blocks until the operation is complete. Users can verify that the command has completed its operation by using the <xref:System.IAsyncResult> instance returned by the <xref:Microsoft.Data.SqlClient.SqlCommand.BeginExecuteNonQuery> method. If a callback procedure was specified in the call to <xref:Microsoft.Data.SqlClient.SqlCommand.BeginExecuteNonQuery>, this method must be called.
  5013. ## Examples
  5014. For examples demonstrating the use of the <xref:Microsoft.Data.SqlClient.SqlCommand.EndExecuteNonQuery%2A> method, see <xref:Microsoft.Data.SqlClient.SqlCommand.BeginExecuteNonQuery>.
  5015. ]]></format>
  5016. </remarks><exception cref="T:System.ArgumentException">
  5017. <paramref name="asyncResult" />
  5018. parameter is null (
  5019. <see langword="Nothing" />
  5020. in Microsoft Visual Basic)
  5021. </exception><exception cref="T:System.InvalidOperationException">
  5022. <see cref="M:Microsoft.Data.SqlClient.SqlCommand.EndExecuteNonQuery(System.IAsyncResult)" />
  5023. was called more than once for a single command execution, or the method was mismatched against its execution method (for example, the code called
  5024. <see cref="M:Microsoft.Data.SqlClient.SqlCommand.EndExecuteNonQuery(System.IAsyncResult)" />
  5025. to complete execution of a call to
  5026. <see cref="M:Microsoft.Data.SqlClient.SqlCommand.BeginExecuteXmlReader" />
  5027. .
  5028. </exception><exception cref="T:Microsoft.Data.SqlClient.SqlException">
  5029. The amount of time specified in
  5030. <see cref="P:Microsoft.Data.SqlClient.SqlCommand.CommandTimeout" />
  5031. elapsed and the asynchronous operation specified with
  5032. <see cref="M:Microsoft.Data.SqlClient.SqlCommand.BeginExecuteNonQuery" />
  5033. is not complete.
  5034. -or-
  5035. In some situations,
  5036. <see cref="T:System.IAsyncResult" />
  5037. can be set to
  5038. <see langword="IsCompleted" />
  5039. incorrectly. If this occurs and
  5040. <see cref="M:Microsoft.Data.SqlClient.SqlCommand.EndExecuteNonQuery(System.IAsyncResult)" />
  5041. is called, EndExecuteNonQuery could raise a SqlException error if the amount of time specified in
  5042. <see cref="P:Microsoft.Data.SqlClient.SqlCommand.CommandTimeout" />
  5043. elapsed and the asynchronous operation specified with
  5044. <see cref="M:Microsoft.Data.SqlClient.SqlCommand.BeginExecuteNonQuery" />
  5045. is not complete. To correct this situation, you should either increase the value of CommandTimeout or reduce the work being done by the asynchronous operation.
  5046. </exception>
  5047. </member>
  5048. <member name="M:Microsoft.Data.SqlClient.SqlCommand.EndExecuteNonQueryAsync(System.IAsyncResult)">
  5049. <summary>
  5050. To be added.
  5051. </summary><remarks>
  5052. To be added.
  5053. </remarks>
  5054. </member>
  5055. <member name="M:Microsoft.Data.SqlClient.SqlCommand.ExecuteXmlReader">
  5056. <summary>
  5057. Sends the
  5058. <see cref="P:Microsoft.Data.SqlClient.SqlCommand.CommandText" />
  5059. to the
  5060. <see cref="P:Microsoft.Data.SqlClient.SqlCommand.Connection" />
  5061. and builds an
  5062. <see cref="T:System.Xml.XmlReader" />
  5063. object.
  5064. </summary><returns>
  5065. An
  5066. <see cref="T:System.Xml.XmlReader" />
  5067. object.
  5068. </returns><remarks>
  5069. <format type="text/markdown"><![CDATA[
  5070. ## Remarks
  5071. The **XmlReader** returned by this method does not support asynchronous operations.
  5072. The <xref:Microsoft.Data.SqlClient.SqlCommand.CommandText%2A> property ordinarily specifies a Transact-SQL statement with a valid FOR XML clause. However, <xref:Microsoft.Data.SqlClient.SqlCommand.CommandText%2A> can also specify a statement that returns `ntext` or `nvarchar` data that contains valid XML, or the contents of a column defined with the `xml` data type.
  5073. A typical <xref:Microsoft.Data.SqlClient.SqlCommand.ExecuteXmlReader%2A> query can be formatted as in the following Microsoft Visual C# example:
  5074. ```csharp
  5075. SqlCommand command = new SqlCommand("SELECT * FROM dbo.Customers FOR XML AUTO, XMLDATA", SqlConn);
  5076. ```
  5077. This method can also be used to retrieve a single-row, single-column result set that contains XML data. In this case, if more than one row is returned, the <xref:Microsoft.Data.SqlClient.SqlCommand.ExecuteXmlReader%2A> method attaches the <xref:System.Xml.XmlReader> to the value on the first row, and discards the rest of the result set.
  5078. The multiple active result set (MARS) feature allows for multiple actions using the same connection.
  5079. If you use <xref:Microsoft.Data.SqlClient.SqlCommand.ExecuteReader%2A> or <xref:Microsoft.Data.SqlClient.SqlCommand.BeginExecuteReader%2A> to access XML data, SQL Server will return any XML results greater than 2,033 characters in length in multiple rows of 2,033 characters each. To avoid this behavior, use <xref:Microsoft.Data.SqlClient.SqlCommand.ExecuteXmlReader%2A> or <xref:Microsoft.Data.SqlClient.SqlCommand.BeginExecuteXmlReader%2A> to read FOR XML queries.
  5080. ## Examples
  5081. The following example creates a <xref:Microsoft.Data.SqlClient.SqlCommand> and then executes it using <xref:Microsoft.Data.SqlClient.SqlCommand.ExecuteXmlReader%2A>. The example is passed a string that is a Transact-SQL FOR XML SELECT statement, and a string to use to connect to the data source.
  5082. [!code-csharp[SqlCommand_ExecuteXmlReader#1](~/../sqlclient/doc/samples/SqlCommand_ExecuteXmlReader.cs#1)]
  5083. ]]></format>
  5084. </remarks><exception cref="T:System.InvalidCastException">
  5085. A
  5086. <see cref="P:Microsoft.Data.SqlClient.SqlParameter.SqlDbType" />
  5087. other than **Binary** or **VarBinary** was used when
  5088. <see cref="P:Microsoft.Data.SqlClient.SqlParameter.Value" />
  5089. was set to
  5090. <see cref="T:System.IO.Stream" />
  5091. . For more information about streaming, see [SqlClient Streaming Support](~/docs/framework/data/adonet/sqlclient-streaming-support.md).
  5092. -or-
  5093. A
  5094. <see cref="P:Microsoft.Data.SqlClient.SqlParameter.SqlDbType" />
  5095. other than **Char**, **NChar**, **NVarChar**, **VarChar**, or **Xml** was used when
  5096. <see cref="P:Microsoft.Data.SqlClient.SqlParameter.Value" />
  5097. was set to
  5098. <see cref="T:System.IO.TextReader" />
  5099. .
  5100. -or-
  5101. A
  5102. <see cref="P:Microsoft.Data.SqlClient.SqlParameter.SqlDbType" />
  5103. other than **Xml** was used when
  5104. <see cref="P:Microsoft.Data.SqlClient.SqlParameter.Value" />
  5105. was set to
  5106. <see cref="T:System.Xml.XmlReader" />
  5107. .
  5108. </exception><exception cref="T:Microsoft.Data.SqlClient.SqlException">
  5109. An exception occurred while executing the command against a locked row. This exception is not generated when you are using Microsoft .NET Framework version 1.0.
  5110. -or-
  5111. A timeout occurred during a streaming operation. For more information about streaming, see [SqlClient Streaming Support](~/docs/framework/data/adonet/sqlclient-streaming-support.md).
  5112. </exception><exception cref="T:System.InvalidOperationException">
  5113. The
  5114. <see cref="T:Microsoft.Data.SqlClient.SqlConnection" />
  5115. closed or dropped during a streaming operation. For more information about streaming, see [SqlClient Streaming Support](~/docs/framework/data/adonet/sqlclient-streaming-support.md).
  5116. </exception><exception cref="T:System.IO.IOException">
  5117. An error occurred in a
  5118. <see cref="T:System.IO.Stream" />
  5119. ,
  5120. <see cref="T:System.Xml.XmlReader" />
  5121. or
  5122. <see cref="T:System.IO.TextReader" />
  5123. object during a streaming operation. For more information about streaming, see [SqlClient Streaming Support](~/docs/framework/data/adonet/sqlclient-streaming-support.md).
  5124. </exception><exception cref="T:System.ObjectDisposedException">
  5125. The
  5126. <see cref="T:System.IO.Stream" />
  5127. ,
  5128. <see cref="T:System.Xml.XmlReader" />
  5129. or
  5130. <see cref="T:System.IO.TextReader" />
  5131. object was closed during a streaming operation. For more information about streaming, see [SqlClient Streaming Support](~/docs/framework/data/adonet/sqlclient-streaming-support.md).
  5132. </exception>
  5133. </member>
  5134. <member name="M:Microsoft.Data.SqlClient.SqlCommand.BeginExecuteXmlReader">
  5135. <summary>
  5136. Initiates the asynchronous execution of the Transact-SQL statement or stored procedure that is described by this
  5137. <see cref="T:Microsoft.Data.SqlClient.SqlCommand" />
  5138. and returns results as an
  5139. <see cref="T:System.Xml.XmlReader" />
  5140. object.
  5141. </summary><returns>
  5142. An
  5143. <see cref="T:System.IAsyncResult" />
  5144. that can be used to poll or wait for results, or both; this value is also needed when invoking
  5145. <see langword="EndExecuteXmlReader" />
  5146. , which returns a single XML value.
  5147. </returns><remarks>
  5148. <format type="text/markdown"><![CDATA[
  5149. ## Remarks
  5150. The <xref:Microsoft.Data.SqlClient.SqlCommand.BeginExecuteXmlReader%2A> method starts the process of asynchronously executing a Transact-SQL statement that returns rows as XML, so that other tasks can run concurrently while the statement is executing. When the statement has completed, developers must call the `EndExecuteXmlReader` method to finish the operation and retrieve the XML returned by the command. The <xref:Microsoft.Data.SqlClient.SqlCommand.BeginExecuteXmlReader%2A> method returns immediately, but until the code executes the corresponding `EndExecuteXmlReader` method call, it must not execute any other calls that start a synchronous or asynchronous execution against the same <xref:Microsoft.Data.SqlClient.SqlCommand> object. Calling the `EndExecuteXmlReader` before the command's execution is completed causes the <xref:Microsoft.Data.SqlClient.SqlCommand> object to block until the execution is finished.
  5151. The <xref:Microsoft.Data.SqlClient.SqlCommand.CommandText%2A> property ordinarily specifies a Transact-SQL statement with a valid FOR XML clause. However, `CommandText` can also specify a statement that returns `ntext` data that contains valid XML.
  5152. A typical <xref:Microsoft.Data.SqlClient.SqlCommand.BeginExecuteXmlReader%2A> query can be formatted as in the following C# example:
  5153. ```csharp
  5154. SqlCommand command = new SqlCommand("SELECT ContactID, FirstName, LastName FROM dbo.Contact FOR XML AUTO, XMLDATA", SqlConn);
  5155. ```
  5156. This method can also be used to retrieve a single-row, single-column result set. In this case, if more than one row is returned, the `EndExecuteXmlReader` method attaches the <xref:System.Xml.XmlReader> to the value on the first row, and discards the rest of the result set.
  5157. The multiple active result set (MARS) feature lets multiple actions use the same connection.
  5158. Note that the command text and parameters are sent to the server synchronously. If a large command or many parameters are sent, this method may block during writes. After the command is sent, the method returns immediately without waiting for an answer from the server--that is, reads are asynchronous. Although command execution is asynchronous, value fetching is still synchronous.
  5159. Because this overload does not support a callback procedure, developers need to either poll to determine whether the command has completed, using the <xref:System.IAsyncResult.IsCompleted%2A> property of the <xref:System.IAsyncResult> returned by the <xref:Microsoft.Data.SqlClient.SqlCommand.BeginExecuteXmlReader%2A> method; or wait for the completion of one or more commands using the <xref:System.IAsyncResult.AsyncWaitHandle%2A> property of the returned <xref:System.IAsyncResult>.
  5160. If you use <xref:Microsoft.Data.SqlClient.SqlCommand.ExecuteReader%2A> or <xref:Microsoft.Data.SqlClient.SqlCommand.BeginExecuteReader%2A> to access XML data, SQL Server returns any XML results greater than 2,033 characters in length in multiple rows of 2,033 characters each. To avoid this behavior, use <xref:Microsoft.Data.SqlClient.SqlCommand.ExecuteXmlReader%2A> or <xref:Microsoft.Data.SqlClient.SqlCommand.BeginExecuteXmlReader%2A> to read FOR XML queries.
  5161. This method ignores the <xref:Microsoft.Data.SqlClient.SqlCommand.CommandTimeout%2A> property.
  5162. ## Examples
  5163. The following console application starts the process of retrieving XML data asynchronously. While waiting for the results, this simple application sits in a loop, investigating the <xref:System.IAsyncResult.IsCompleted%2A> property value. Once the process has completed, the code retrieves the XML and displays its contents.
  5164. [!code-csharp[SqlCommand_BeginExecuteXmlReader#1]((~/../sqlclient/doc/samples/SqlCommand_BeginExecuteXmlReader.cs)]
  5165. ]]></format>
  5166. </remarks><exception cref="T:System.InvalidCastException">
  5167. A
  5168. <see cref="P:Microsoft.Data.SqlClient.SqlParameter.SqlDbType" />
  5169. other than **Binary** or **VarBinary** was used when
  5170. <see cref="P:Microsoft.Data.SqlClient.SqlParameter.Value" />
  5171. was set to
  5172. <see cref="T:System.IO.Stream" />
  5173. . For more information about streaming, see [SqlClient Streaming Support](~/docs/framework/data/adonet/sqlclient-streaming-support.md).
  5174. -or-
  5175. A
  5176. <see cref="P:Microsoft.Data.SqlClient.SqlParameter.SqlDbType" />
  5177. other than **Char**, **NChar**, **NVarChar**, **VarChar**, or **Xml** was used when
  5178. <see cref="P:Microsoft.Data.SqlClient.SqlParameter.Value" />
  5179. was set to
  5180. <see cref="T:System.IO.TextReader" />
  5181. .
  5182. -or-
  5183. A
  5184. <see cref="P:Microsoft.Data.SqlClient.SqlParameter.SqlDbType" />
  5185. other than **Xml** was used when
  5186. <see cref="P:Microsoft.Data.SqlClient.SqlParameter.Value" />
  5187. was set to
  5188. <see cref="T:System.Xml.XmlReader" />
  5189. .
  5190. </exception><exception cref="T:Microsoft.Data.SqlClient.SqlException">
  5191. Any error that occurred while executing the command text.
  5192. -or-
  5193. A timeout occurred during a streaming operation. For more information about streaming, see [SqlClient Streaming Support](~/docs/framework/data/adonet/sqlclient-streaming-support.md).
  5194. </exception><exception cref="T:System.InvalidOperationException">
  5195. The name/value pair "Asynchronous Processing=true" was not included within the connection string defining the connection for this
  5196. <see cref="T:Microsoft.Data.SqlClient.SqlCommand" />
  5197. .
  5198. -or-
  5199. The
  5200. <see cref="T:Microsoft.Data.SqlClient.SqlConnection" />
  5201. closed or dropped during a streaming operation. For more information about streaming, see [SqlClient Streaming Support](~/docs/framework/data/adonet/sqlclient-streaming-support.md).
  5202. </exception><exception cref="T:System.IO.IOException">
  5203. An error occurred in a
  5204. <see cref="T:System.IO.Stream" />
  5205. ,
  5206. <see cref="T:System.Xml.XmlReader" />
  5207. or
  5208. <see cref="T:System.IO.TextReader" />
  5209. object during a streaming operation. For more information about streaming, see [SqlClient Streaming Support](~/docs/framework/data/adonet/sqlclient-streaming-support.md).
  5210. </exception><exception cref="T:System.ObjectDisposedException">
  5211. The
  5212. <see cref="T:System.IO.Stream" />
  5213. ,
  5214. <see cref="T:System.Xml.XmlReader" />
  5215. or
  5216. <see cref="T:System.IO.TextReader" />
  5217. object was closed during a streaming operation. For more information about streaming, see [SqlClient Streaming Support](~/docs/framework/data/adonet/sqlclient-streaming-support.md).
  5218. </exception>
  5219. </member>
  5220. <member name="M:Microsoft.Data.SqlClient.SqlCommand.BeginExecuteXmlReader(System.AsyncCallback,System.Object)">
  5221. <param name="callback">
  5222. An
  5223. <see cref="T:System.AsyncCallback" />
  5224. delegate that is invoked when the command's execution has completed. Pass
  5225. <see langword="null" />
  5226. (
  5227. <see langword="Nothing" />
  5228. in Microsoft Visual Basic) to indicate that no callback is required.
  5229. </param><param name="stateObject">
  5230. A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback procedure using the
  5231. <see cref="P:System.IAsyncResult.AsyncState" />
  5232. property.
  5233. </param><summary>
  5234. Initiates the asynchronous execution of the Transact-SQL statement or stored procedure that is described by this
  5235. <see cref="T:Microsoft.Data.SqlClient.SqlCommand" />
  5236. and returns results as an
  5237. <see cref="T:System.Xml.XmlReader" />
  5238. object, using a callback procedure.
  5239. </summary><returns>
  5240. An
  5241. <see cref="T:System.IAsyncResult" />
  5242. that can be used to poll, wait for results, or both; this value is also needed when the
  5243. <see cref="M:Microsoft.Data.SqlClient.SqlCommand.EndExecuteXmlReader(System.IAsyncResult)" />
  5244. is called, which returns the results of the command as XML.
  5245. </returns><remarks>
  5246. <format type="text/markdown"><![CDATA[
  5247. ## Remarks
  5248. The <xref:Microsoft.Data.SqlClient.SqlCommand.BeginExecuteXmlReader%2A> method starts the process of asynchronously executing a Transact-SQL statement or stored procedure that returns rows as XML, so that other tasks can run concurrently while the statement is executing. When the statement has completed, developers must call the <xref:Microsoft.Data.SqlClient.SqlCommand.EndExecuteXmlReader%2A> method to finish the operation and retrieve the requested XML data. The <xref:Microsoft.Data.SqlClient.SqlCommand.BeginExecuteXmlReader%2A> method returns immediately, but until the code executes the corresponding <xref:Microsoft.Data.SqlClient.SqlCommand.EndExecuteXmlReader%2A> method call, it must not execute any other calls that start a synchronous or asynchronous execution against the same <xref:Microsoft.Data.SqlClient.SqlCommand> object. Calling the <xref:Microsoft.Data.SqlClient.SqlCommand.EndExecuteXmlReader%2A> before the command's execution is completed causes the <xref:Microsoft.Data.SqlClient.SqlCommand> object to block until the execution is finished.
  5249. The <xref:Microsoft.Data.SqlClient.SqlCommand.CommandText%2A> property ordinarily specifies a Transact-SQL statement with a valid FOR XML clause. However, `CommandText` can also specify a statement that returns data that contains valid XML. This method can also be used to retrieve a single-row, single-column result set. In this case, if more than one row is returned, the <xref:Microsoft.Data.SqlClient.SqlCommand.EndExecuteXmlReader%2A> method attaches the <xref:System.Xml.XmlReader> to the value on the first row, and discards the rest of the result set.
  5250. A typical <xref:Microsoft.Data.SqlClient.SqlCommand.BeginExecuteXmlReader%2A> query can be formatted as in the following C# example:
  5251. ```csharp
  5252. SqlCommand command = new SqlCommand("SELECT ContactID, FirstName, LastName FROM Contact FOR XML AUTO, XMLDATA", SqlConn);
  5253. ```
  5254. This method can also be used to retrieve a single-row, single-column result set. In this case, if more than one row is returned, the <xref:Microsoft.Data.SqlClient.SqlCommand.EndExecuteXmlReader%2A> method attaches the <xref:System.Xml.XmlReader> to the value on the first row, and discards the rest of the result set.
  5255. The multiple active result set (MARS) feature lets multiple actions use the same connection.
  5256. The `callback` parameter lets you specify an <xref:System.AsyncCallback> delegate that is called when the statement has completed. You can call the <xref:Microsoft.Data.SqlClient.SqlCommand.EndExecuteXmlReader%2A> method from within this delegate procedure, or from any other location within your application. In addition, you can pass any object in the `stateObject` parameter, and your callback procedure can retrieve this information using the <xref:System.IAsyncResult.AsyncState%2A> property.
  5257. Note that the command text and parameters are sent to the server synchronously. If a large command or many parameters is sent, this method may block during writes. After the command is sent, the method returns immediately without waiting for an answer from the server--that is, reads are asynchronous.
  5258. All errors that occur during the execution of the operation are thrown as exceptions in the callback procedure. You must handle the exception in the callback procedure, not in the main application. See the example in this topic for additional information on handling exceptions in the callback procedure.
  5259. If you use <xref:Microsoft.Data.SqlClient.SqlCommand.ExecuteReader%2A> or <xref:Microsoft.Data.SqlClient.SqlCommand.BeginExecuteReader%2A> to access XML data, SQL Server will return any XML results greater than 2,033 characters in length in multiple rows of 2,033 characters each. To avoid this behavior, use <xref:Microsoft.Data.SqlClient.SqlCommand.ExecuteXmlReader%2A> or <xref:Microsoft.Data.SqlClient.SqlCommand.BeginExecuteXmlReader%2A> to read FOR XML queries.
  5260. This method ignores the <xref:Microsoft.Data.SqlClient.SqlCommand.CommandTimeout%2A> property.
  5261. ## Examples
  5262. The following Windows application demonstrates the use of the <xref:Microsoft.Data.SqlClient.SqlCommand.BeginExecuteXmlReader%2A> method, executing a Transact-SQL statement that includes a delay of a few seconds (emulating a long-running command). This example passes the executing <xref:Microsoft.Data.SqlClient.SqlCommand> object as the `stateObject` parameter--doing so makes it simple to retrieve the <xref:Microsoft.Data.SqlClient.SqlCommand> object from within the callback procedure, so that the code can call the <xref:Microsoft.Data.SqlClient.SqlCommand.EndExecuteXmlReader%2A> method corresponding to the initial call to <xref:Microsoft.Data.SqlClient.SqlCommand.BeginExecuteXmlReader%2A>.
  5263. This example demonstrates many important techniques. This includes calling a method that interacts with the form from a separate thread. In addition, this example demonstrates how you must block users from executing a command multiple times concurrently, and how you must make sure that the form does not close before the callback procedure is called.
  5264. To set up this example, create a new Windows application. Put a <xref:System.Windows.Forms.Button> control, a <xref:System.Windows.Forms.ListBox> control, and a <xref:System.Windows.Forms.Label> control on the form (accepting the default name for each control). Add the following code to the form's class, modifying the connection string as needed for your environment.
  5265. [!code-csharp[SqlCommand_BeginExecuteXmlReaderAsync](~/../sqlclient/doc/samples/SqlCommand_BeginExecuteXmlReaderAsync.cs)]
  5266. ]]></format>
  5267. </remarks><exception cref="T:System.InvalidCastException">
  5268. A
  5269. <see cref="P:Microsoft.Data.SqlClient.SqlParameter.SqlDbType" />
  5270. other than **Binary** or **VarBinary** was used when
  5271. <see cref="P:Microsoft.Data.SqlClient.SqlParameter.Value" />
  5272. was set to
  5273. <see cref="T:System.IO.Stream" />
  5274. . For more information about streaming, see [SqlClient Streaming Support](~/docs/framework/data/adonet/sqlclient-streaming-support.md).
  5275. -or-
  5276. A
  5277. <see cref="P:Microsoft.Data.SqlClient.SqlParameter.SqlDbType" />
  5278. other than **Char**, **NChar**, **NVarChar**, **VarChar**, or **Xml** was used when
  5279. <see cref="P:Microsoft.Data.SqlClient.SqlParameter.Value" />
  5280. was set to
  5281. <see cref="T:System.IO.TextReader" />
  5282. .
  5283. -or-
  5284. A
  5285. <see cref="P:Microsoft.Data.SqlClient.SqlParameter.SqlDbType" />
  5286. other than **Xml** was used when
  5287. <see cref="P:Microsoft.Data.SqlClient.SqlParameter.Value" />
  5288. was set to
  5289. <see cref="T:System.Xml.XmlReader" />
  5290. .
  5291. </exception><exception cref="T:Microsoft.Data.SqlClient.SqlException">
  5292. Any error that occurred while executing the command text.
  5293. -or-
  5294. A timeout occurred during a streaming operation. For more information about streaming, see [SqlClient Streaming Support](~/docs/framework/data/adonet/sqlclient-streaming-support.md).
  5295. </exception><exception cref="T:System.InvalidOperationException">
  5296. The name/value pair "Asynchronous Processing=true" was not included within the connection string defining the connection for this
  5297. <see cref="T:Microsoft.Data.SqlClient.SqlCommand" />
  5298. .
  5299. -or-
  5300. The
  5301. <see cref="T:Microsoft.Data.SqlClient.SqlConnection" />
  5302. closed or dropped during a streaming operation. For more information about streaming, see [SqlClient Streaming Support](~/docs/framework/data/adonet/sqlclient-streaming-support.md).
  5303. </exception><exception cref="T:System.IO.IOException">
  5304. An error occurred in a
  5305. <see cref="T:System.IO.Stream" />
  5306. ,
  5307. <see cref="T:System.Xml.XmlReader" />
  5308. or
  5309. <see cref="T:System.IO.TextReader" />
  5310. object during a streaming operation. For more information about streaming, see [SqlClient Streaming Support](~/docs/framework/data/adonet/sqlclient-streaming-support.md).
  5311. </exception><exception cref="T:System.ObjectDisposedException">
  5312. The
  5313. <see cref="T:System.IO.Stream" />
  5314. ,
  5315. <see cref="T:System.Xml.XmlReader" />
  5316. or
  5317. <see cref="T:System.IO.TextReader" />
  5318. object was closed during a streaming operation. For more information about streaming, see [SqlClient Streaming Support](~/docs/framework/data/adonet/sqlclient-streaming-support.md).
  5319. </exception><altmember cref="M:Microsoft.Data.SqlClient.SqlCommand.EndExecuteXmlReader(System.IAsyncResult)" /><altmember cref="M:Microsoft.Data.SqlClient.SqlCommand.ExecuteXmlReader" />
  5320. </member>
  5321. <member name="M:Microsoft.Data.SqlClient.SqlCommand.EndExecuteXmlReader(System.IAsyncResult)">
  5322. <param name="asyncResult">
  5323. The
  5324. <see cref="T:System.IAsyncResult" />
  5325. returned by the call to
  5326. <see cref="M:Microsoft.Data.SqlClient.SqlCommand.BeginExecuteXmlReader" />
  5327. .
  5328. </param><summary>
  5329. Finishes asynchronous execution of a Transact-SQL statement, returning the requested data as XML.
  5330. </summary><returns>
  5331. An
  5332. <see cref="T:System.Xml.XmlReader" />
  5333. object that can be used to fetch the resulting XML data.
  5334. </returns><remarks>
  5335. <format type="text/markdown"><![CDATA[
  5336. ## Remarks
  5337. When you call <xref:Microsoft.Data.SqlClient.SqlCommand.BeginExecuteXmlReader%2A> to execute a Transact-SQL statement, you must call <xref:Microsoft.Data.SqlClient.SqlCommand.EndExecuteXmlReader%2A> in order to complete the operation. If the process of executing the command has not yet finished, this method blocks until the operation is complete. Users can verify that the command has completed its operation by using the <xref:System.IAsyncResult> instance returned by the <xref:Microsoft.Data.SqlClient.SqlCommand.BeginExecuteXmlReader%2A> method. If a callback procedure was specified in the call to <xref:Microsoft.Data.SqlClient.SqlCommand.BeginExecuteXmlReader%2A>, this method must be called.
  5338. ## Examples
  5339. For examples demonstrating the use of the <xref:Microsoft.Data.SqlClient.SqlCommand.EndExecuteXmlReader%2A> method, see <xref:Microsoft.Data.SqlClient.SqlCommand.BeginExecuteXmlReader%2A>.
  5340. ]]></format>
  5341. </remarks><exception cref="T:System.ArgumentException">
  5342. <paramref name="asyncResult" />
  5343. parameter is null (
  5344. <see langword="Nothing" />
  5345. in Microsoft Visual Basic)
  5346. </exception><exception cref="T:System.InvalidOperationException">
  5347. <see cref="M:Microsoft.Data.SqlClient.SqlCommand.EndExecuteXmlReader(System.IAsyncResult)" />
  5348. was called more than once for a single command execution, or the method was mismatched against its execution method (for example, the code called
  5349. <see cref="M:Microsoft.Data.SqlClient.SqlCommand.EndExecuteXmlReader(System.IAsyncResult)" />
  5350. to complete execution of a call to
  5351. <see cref="M:Microsoft.Data.SqlClient.SqlCommand.BeginExecuteNonQuery" />
  5352. .
  5353. </exception>
  5354. </member>
  5355. <member name="M:Microsoft.Data.SqlClient.SqlCommand.BeginExecuteReader">
  5356. <summary>
  5357. Initiates the asynchronous execution of the Transact-SQL statement or stored procedure that is described by this
  5358. <see cref="T:Microsoft.Data.SqlClient.SqlCommand" />
  5359. and returns results as an
  5360. <see cref="T:System.Xml.XmlReader" />
  5361. object.
  5362. </summary><returns>
  5363. An
  5364. <see cref="T:System.IAsyncResult" />
  5365. that can be used to poll or wait for results, or both; this value is also needed when invoking
  5366. <see langword="EndExecuteXmlReader" />
  5367. , which returns a single XML value.
  5368. </returns><remarks>
  5369. <format type="text/markdown"><![CDATA[
  5370. ## Remarks
  5371. The <xref:Microsoft.Data.SqlClient.SqlCommand.BeginExecuteXmlReader%2A> method starts the process of asynchronously executing a Transact-SQL statement that returns rows as XML, so that other tasks can run concurrently while the statement is executing. When the statement has completed, developers must call the `EndExecuteXmlReader` method to finish the operation and retrieve the XML returned by the command. The <xref:Microsoft.Data.SqlClient.SqlCommand.BeginExecuteXmlReader%2A> method returns immediately, but until the code executes the corresponding `EndExecuteXmlReader` method call, it must not execute any other calls that start a synchronous or asynchronous execution against the same <xref:Microsoft.Data.SqlClient.SqlCommand> object. Calling the `EndExecuteXmlReader` before the command's execution is completed causes the <xref:Microsoft.Data.SqlClient.SqlCommand> object to block until the execution is finished.
  5372. The <xref:Microsoft.Data.SqlClient.SqlCommand.CommandText%2A> property ordinarily specifies a Transact-SQL statement with a valid FOR XML clause. However, `CommandText` can also specify a statement that returns `ntext` data that contains valid XML.
  5373. A typical <xref:Microsoft.Data.SqlClient.SqlCommand.BeginExecuteXmlReader%2A> query can be formatted as in the following C# example:
  5374. ```csharp
  5375. SqlCommand command = new SqlCommand("SELECT ContactID, FirstName, LastName FROM dbo.Contact FOR XML AUTO, XMLDATA", SqlConn);
  5376. ```
  5377. This method can also be used to retrieve a single-row, single-column result set. In this case, if more than one row is returned, the `EndExecuteXmlReader` method attaches the <xref:System.Xml.XmlReader> to the value on the first row, and discards the rest of the result set.
  5378. The multiple active result set (MARS) feature lets multiple actions use the same connection.
  5379. Note that the command text and parameters are sent to the server synchronously. If a large command or many parameters are sent, this method may block during writes. After the command is sent, the method returns immediately without waiting for an answer from the server--that is, reads are asynchronous. Although command execution is asynchronous, value fetching is still synchronous.
  5380. Because this overload does not support a callback procedure, developers need to either poll to determine whether the command has completed, using the <xref:System.IAsyncResult.IsCompleted%2A> property of the <xref:System.IAsyncResult> returned by the <xref:Microsoft.Data.SqlClient.SqlCommand.BeginExecuteXmlReader%2A> method; or wait for the completion of one or more commands using the <xref:System.IAsyncResult.AsyncWaitHandle%2A> property of the returned <xref:System.IAsyncResult>.
  5381. If you use <xref:Microsoft.Data.SqlClient.SqlCommand.ExecuteReader%2A> or <xref:Microsoft.Data.SqlClient.SqlCommand.BeginExecuteReader%2A> to access XML data, SQL Server returns any XML results greater than 2,033 characters in length in multiple rows of 2,033 characters each. To avoid this behavior, use <xref:Microsoft.Data.SqlClient.SqlCommand.ExecuteXmlReader%2A> or <xref:Microsoft.Data.SqlClient.SqlCommand.BeginExecuteXmlReader%2A> to read FOR XML queries.
  5382. This method ignores the <xref:Microsoft.Data.SqlClient.SqlCommand.CommandTimeout%2A> property.
  5383. ## Examples
  5384. The following console application starts the process of retrieving XML data asynchronously. While waiting for the results, this simple application sits in a loop, investigating the <xref:System.IAsyncResult.IsCompleted%2A> property value. Once the process has completed, the code retrieves the XML and displays its contents.
  5385. [!code-csharp[SqlCommand_BeginExecuteXmlReader#1]((~/../sqlclient/doc/samples/SqlCommand_BeginExecuteXmlReader.cs)]
  5386. ]]></format>
  5387. </remarks><exception cref="T:System.InvalidCastException">
  5388. A
  5389. <see cref="P:Microsoft.Data.SqlClient.SqlParameter.SqlDbType" />
  5390. other than **Binary** or **VarBinary** was used when
  5391. <see cref="P:Microsoft.Data.SqlClient.SqlParameter.Value" />
  5392. was set to
  5393. <see cref="T:System.IO.Stream" />
  5394. . For more information about streaming, see [SqlClient Streaming Support](~/docs/framework/data/adonet/sqlclient-streaming-support.md).
  5395. -or-
  5396. A
  5397. <see cref="P:Microsoft.Data.SqlClient.SqlParameter.SqlDbType" />
  5398. other than **Char**, **NChar**, **NVarChar**, **VarChar**, or **Xml** was used when
  5399. <see cref="P:Microsoft.Data.SqlClient.SqlParameter.Value" />
  5400. was set to
  5401. <see cref="T:System.IO.TextReader" />
  5402. .
  5403. -or-
  5404. A
  5405. <see cref="P:Microsoft.Data.SqlClient.SqlParameter.SqlDbType" />
  5406. other than **Xml** was used when
  5407. <see cref="P:Microsoft.Data.SqlClient.SqlParameter.Value" />
  5408. was set to
  5409. <see cref="T:System.Xml.XmlReader" />
  5410. .
  5411. </exception><exception cref="T:Microsoft.Data.SqlClient.SqlException">
  5412. Any error that occurred while executing the command text.
  5413. -or-
  5414. A timeout occurred during a streaming operation. For more information about streaming, see [SqlClient Streaming Support](~/docs/framework/data/adonet/sqlclient-streaming-support.md).
  5415. </exception><exception cref="T:System.InvalidOperationException">
  5416. The name/value pair "Asynchronous Processing=true" was not included within the connection string defining the connection for this
  5417. <see cref="T:Microsoft.Data.SqlClient.SqlCommand" />
  5418. .
  5419. -or-
  5420. The
  5421. <see cref="T:Microsoft.Data.SqlClient.SqlConnection" />
  5422. closed or dropped during a streaming operation. For more information about streaming, see [SqlClient Streaming Support](~/docs/framework/data/adonet/sqlclient-streaming-support.md).
  5423. </exception><exception cref="T:System.IO.IOException">
  5424. An error occurred in a
  5425. <see cref="T:System.IO.Stream" />
  5426. ,
  5427. <see cref="T:System.Xml.XmlReader" />
  5428. or
  5429. <see cref="T:System.IO.TextReader" />
  5430. object during a streaming operation. For more information about streaming, see [SqlClient Streaming Support](~/docs/framework/data/adonet/sqlclient-streaming-support.md).
  5431. </exception><exception cref="T:System.ObjectDisposedException">
  5432. The
  5433. <see cref="T:System.IO.Stream" />
  5434. ,
  5435. <see cref="T:System.Xml.XmlReader" />
  5436. or
  5437. <see cref="T:System.IO.TextReader" />
  5438. object was closed during a streaming operation. For more information about streaming, see [SqlClient Streaming Support](~/docs/framework/data/adonet/sqlclient-streaming-support.md).
  5439. </exception>
  5440. </member>
  5441. <member name="M:Microsoft.Data.SqlClient.SqlCommand.BeginExecuteReader(System.AsyncCallback,System.Object)">
  5442. <param name="callback">
  5443. An
  5444. <see cref="T:System.AsyncCallback" />
  5445. delegate that is invoked when the command's execution has completed. Pass
  5446. <see langword="null" />
  5447. (
  5448. <see langword="Nothing" />
  5449. in Microsoft Visual Basic) to indicate that no callback is required.
  5450. </param><param name="stateObject">
  5451. A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback procedure using the
  5452. <see cref="P:System.IAsyncResult.AsyncState" />
  5453. property.
  5454. </param><summary>
  5455. Initiates the asynchronous execution of the Transact-SQL statement or stored procedure that is described by this
  5456. <see cref="T:Microsoft.Data.SqlClient.SqlCommand" />
  5457. and returns results as an
  5458. <see cref="T:System.Xml.XmlReader" />
  5459. object, using a callback procedure.
  5460. </summary><returns>
  5461. An
  5462. <see cref="T:System.IAsyncResult" />
  5463. that can be used to poll, wait for results, or both; this value is also needed when the
  5464. <see cref="M:Microsoft.Data.SqlClient.SqlCommand.EndExecuteXmlReader(System.IAsyncResult)" />
  5465. is called, which returns the results of the command as XML.
  5466. </returns><remarks>
  5467. <format type="text/markdown"><![CDATA[
  5468. ## Remarks
  5469. The <xref:Microsoft.Data.SqlClient.SqlCommand.BeginExecuteXmlReader%2A> method starts the process of asynchronously executing a Transact-SQL statement or stored procedure that returns rows as XML, so that other tasks can run concurrently while the statement is executing. When the statement has completed, developers must call the <xref:Microsoft.Data.SqlClient.SqlCommand.EndExecuteXmlReader%2A> method to finish the operation and retrieve the requested XML data. The <xref:Microsoft.Data.SqlClient.SqlCommand.BeginExecuteXmlReader%2A> method returns immediately, but until the code executes the corresponding <xref:Microsoft.Data.SqlClient.SqlCommand.EndExecuteXmlReader%2A> method call, it must not execute any other calls that start a synchronous or asynchronous execution against the same <xref:Microsoft.Data.SqlClient.SqlCommand> object. Calling the <xref:Microsoft.Data.SqlClient.SqlCommand.EndExecuteXmlReader%2A> before the command's execution is completed causes the <xref:Microsoft.Data.SqlClient.SqlCommand> object to block until the execution is finished.
  5470. The <xref:Microsoft.Data.SqlClient.SqlCommand.CommandText%2A> property ordinarily specifies a Transact-SQL statement with a valid FOR XML clause. However, `CommandText` can also specify a statement that returns data that contains valid XML. This method can also be used to retrieve a single-row, single-column result set. In this case, if more than one row is returned, the <xref:Microsoft.Data.SqlClient.SqlCommand.EndExecuteXmlReader%2A> method attaches the <xref:System.Xml.XmlReader> to the value on the first row, and discards the rest of the result set.
  5471. A typical <xref:Microsoft.Data.SqlClient.SqlCommand.BeginExecuteXmlReader%2A> query can be formatted as in the following C# example:
  5472. ```csharp
  5473. SqlCommand command = new SqlCommand("SELECT ContactID, FirstName, LastName FROM Contact FOR XML AUTO, XMLDATA", SqlConn);
  5474. ```
  5475. This method can also be used to retrieve a single-row, single-column result set. In this case, if more than one row is returned, the <xref:Microsoft.Data.SqlClient.SqlCommand.EndExecuteXmlReader%2A> method attaches the <xref:System.Xml.XmlReader> to the value on the first row, and discards the rest of the result set.
  5476. The multiple active result set (MARS) feature lets multiple actions use the same connection.
  5477. The `callback` parameter lets you specify an <xref:System.AsyncCallback> delegate that is called when the statement has completed. You can call the <xref:Microsoft.Data.SqlClient.SqlCommand.EndExecuteXmlReader%2A> method from within this delegate procedure, or from any other location within your application. In addition, you can pass any object in the `stateObject` parameter, and your callback procedure can retrieve this information using the <xref:System.IAsyncResult.AsyncState%2A> property.
  5478. Note that the command text and parameters are sent to the server synchronously. If a large command or many parameters is sent, this method may block during writes. After the command is sent, the method returns immediately without waiting for an answer from the server--that is, reads are asynchronous.
  5479. All errors that occur during the execution of the operation are thrown as exceptions in the callback procedure. You must handle the exception in the callback procedure, not in the main application. See the example in this topic for additional information on handling exceptions in the callback procedure.
  5480. If you use <xref:Microsoft.Data.SqlClient.SqlCommand.ExecuteReader%2A> or <xref:Microsoft.Data.SqlClient.SqlCommand.BeginExecuteReader%2A> to access XML data, SQL Server will return any XML results greater than 2,033 characters in length in multiple rows of 2,033 characters each. To avoid this behavior, use <xref:Microsoft.Data.SqlClient.SqlCommand.ExecuteXmlReader%2A> or <xref:Microsoft.Data.SqlClient.SqlCommand.BeginExecuteXmlReader%2A> to read FOR XML queries.
  5481. This method ignores the <xref:Microsoft.Data.SqlClient.SqlCommand.CommandTimeout%2A> property.
  5482. ## Examples
  5483. The following Windows application demonstrates the use of the <xref:Microsoft.Data.SqlClient.SqlCommand.BeginExecuteXmlReader%2A> method, executing a Transact-SQL statement that includes a delay of a few seconds (emulating a long-running command). This example passes the executing <xref:Microsoft.Data.SqlClient.SqlCommand> object as the `stateObject` parameter--doing so makes it simple to retrieve the <xref:Microsoft.Data.SqlClient.SqlCommand> object from within the callback procedure, so that the code can call the <xref:Microsoft.Data.SqlClient.SqlCommand.EndExecuteXmlReader%2A> method corresponding to the initial call to <xref:Microsoft.Data.SqlClient.SqlCommand.BeginExecuteXmlReader%2A>.
  5484. This example demonstrates many important techniques. This includes calling a method that interacts with the form from a separate thread. In addition, this example demonstrates how you must block users from executing a command multiple times concurrently, and how you must make sure that the form does not close before the callback procedure is called.
  5485. To set up this example, create a new Windows application. Put a <xref:System.Windows.Forms.Button> control, a <xref:System.Windows.Forms.ListBox> control, and a <xref:System.Windows.Forms.Label> control on the form (accepting the default name for each control). Add the following code to the form's class, modifying the connection string as needed for your environment.
  5486. [!code-csharp[SqlCommand_BeginExecuteXmlReaderAsync](~/../sqlclient/doc/samples/SqlCommand_BeginExecuteXmlReaderAsync.cs)]
  5487. ]]></format>
  5488. </remarks><exception cref="T:System.InvalidCastException">
  5489. A
  5490. <see cref="P:Microsoft.Data.SqlClient.SqlParameter.SqlDbType" />
  5491. other than **Binary** or **VarBinary** was used when
  5492. <see cref="P:Microsoft.Data.SqlClient.SqlParameter.Value" />
  5493. was set to
  5494. <see cref="T:System.IO.Stream" />
  5495. . For more information about streaming, see [SqlClient Streaming Support](~/docs/framework/data/adonet/sqlclient-streaming-support.md).
  5496. -or-
  5497. A
  5498. <see cref="P:Microsoft.Data.SqlClient.SqlParameter.SqlDbType" />
  5499. other than **Char**, **NChar**, **NVarChar**, **VarChar**, or **Xml** was used when
  5500. <see cref="P:Microsoft.Data.SqlClient.SqlParameter.Value" />
  5501. was set to
  5502. <see cref="T:System.IO.TextReader" />
  5503. .
  5504. -or-
  5505. A
  5506. <see cref="P:Microsoft.Data.SqlClient.SqlParameter.SqlDbType" />
  5507. other than **Xml** was used when
  5508. <see cref="P:Microsoft.Data.SqlClient.SqlParameter.Value" />
  5509. was set to
  5510. <see cref="T:System.Xml.XmlReader" />
  5511. .
  5512. </exception><exception cref="T:Microsoft.Data.SqlClient.SqlException">
  5513. Any error that occurred while executing the command text.
  5514. -or-
  5515. A timeout occurred during a streaming operation. For more information about streaming, see [SqlClient Streaming Support](~/docs/framework/data/adonet/sqlclient-streaming-support.md).
  5516. </exception><exception cref="T:System.InvalidOperationException">
  5517. The name/value pair "Asynchronous Processing=true" was not included within the connection string defining the connection for this
  5518. <see cref="T:Microsoft.Data.SqlClient.SqlCommand" />
  5519. .
  5520. -or-
  5521. The
  5522. <see cref="T:Microsoft.Data.SqlClient.SqlConnection" />
  5523. closed or dropped during a streaming operation. For more information about streaming, see [SqlClient Streaming Support](~/docs/framework/data/adonet/sqlclient-streaming-support.md).
  5524. </exception><exception cref="T:System.IO.IOException">
  5525. An error occurred in a
  5526. <see cref="T:System.IO.Stream" />
  5527. ,
  5528. <see cref="T:System.Xml.XmlReader" />
  5529. or
  5530. <see cref="T:System.IO.TextReader" />
  5531. object during a streaming operation. For more information about streaming, see [SqlClient Streaming Support](~/docs/framework/data/adonet/sqlclient-streaming-support.md).
  5532. </exception><exception cref="T:System.ObjectDisposedException">
  5533. The
  5534. <see cref="T:System.IO.Stream" />
  5535. ,
  5536. <see cref="T:System.Xml.XmlReader" />
  5537. or
  5538. <see cref="T:System.IO.TextReader" />
  5539. object was closed during a streaming operation. For more information about streaming, see [SqlClient Streaming Support](~/docs/framework/data/adonet/sqlclient-streaming-support.md).
  5540. </exception><altmember cref="M:Microsoft.Data.SqlClient.SqlCommand.EndExecuteXmlReader(System.IAsyncResult)" /><altmember cref="M:Microsoft.Data.SqlClient.SqlCommand.ExecuteXmlReader" />
  5541. </member>
  5542. <member name="M:Microsoft.Data.SqlClient.SqlCommand.BeginExecuteReader(System.Data.CommandBehavior)">
  5543. <param name="behavior">
  5544. One of the
  5545. <see cref="T:System.Data.CommandBehavior" />
  5546. values, indicating options for statement execution and data retrieval.
  5547. </param><summary>
  5548. Initiates the asynchronous execution of the Transact-SQL statement or stored procedure that is described by this
  5549. <see cref="T:Microsoft.Data.SqlClient.SqlCommand" />
  5550. using one of the
  5551. <see cref="T:System.Data.CommandBehavior" />
  5552. values.
  5553. </summary><returns>
  5554. An
  5555. <see cref="T:System.IAsyncResult" />
  5556. that can be used to poll, wait for results, or both; this value is also needed when invoking
  5557. <see cref="M:Microsoft.Data.SqlClient.SqlCommand.EndExecuteReader(System.IAsyncResult)" />
  5558. , which returns a
  5559. <see cref="T:Microsoft.Data.SqlClient.SqlDataReader" />
  5560. instance that can be used to retrieve the returned rows.
  5561. </returns><remarks>
  5562. <format type="text/markdown"><![CDATA[
  5563. ## Remarks
  5564. The <xref:Microsoft.Data.SqlClient.SqlCommand.BeginExecuteReader%2A> method starts the process of asynchronously executing a Transact-SQL statement or stored procedure that returns rows, so that other tasks can run concurrently while the statement is executing. When the statement has completed, developers must call the <xref:Microsoft.Data.SqlClient.SqlCommand.EndExecuteReader%2A> method to finish the operation and retrieve the <xref:Microsoft.Data.SqlClient.SqlDataReader> returned by the command. The <xref:Microsoft.Data.SqlClient.SqlCommand.BeginExecuteReader%2A> method returns immediately, but until the code executes the corresponding <xref:Microsoft.Data.SqlClient.SqlCommand.EndExecuteReader%2A> method call, it must not execute any other calls that start a synchronous or asynchronous execution against the same <xref:Microsoft.Data.SqlClient.SqlCommand> object. Calling the <xref:Microsoft.Data.SqlClient.SqlCommand.EndExecuteReader%2A> before the command's execution is completed causes the <xref:Microsoft.Data.SqlClient.SqlCommand> object to block until the execution is finished.
  5565. The `behavior` parameter lets you specify options that control the behavior of the command and its connection. These values can be combined together (using the programming language's `OR` operator); generally, developers use the `CommandBehavior.CloseConnection` value to make sure that the connection is closed by the runtime when the <xref:Microsoft.Data.SqlClient.SqlDataReader> is closed.
  5566. Note that the command text and parameters are sent to the server synchronously. If a large command or many parameters are sent, this method may block during writes. After the command is sent, the method returns immediately without waiting for an answer from the server--that is, reads are asynchronous. Although command execution is asynchronous, value fetching is still synchronous. This means that calls to <xref:Microsoft.Data.SqlClient.SqlDataReader.Read%2A> may block if more data is required and the underlying network's read operation blocks.
  5567. Because this overload does not support a callback procedure, developers must either poll to determine whether the command has completed, using the <xref:System.IAsyncResult.IsCompleted%2A> property of the <xref:System.IAsyncResult> returned by the <xref:Microsoft.Data.SqlClient.SqlCommand.BeginExecuteNonQuery%2A> method; or wait for the completion of one or more commands using the <xref:System.IAsyncResult.AsyncWaitHandle%2A> property of the returned <xref:System.IAsyncResult>.
  5568. If you use <xref:Microsoft.Data.SqlClient.SqlCommand.ExecuteReader%2A> or <xref:Microsoft.Data.SqlClient.SqlCommand.BeginExecuteReader%2A> to access XML data, SQL Server returns any XML results greater than 2,033 characters in length in multiple rows of 2,033 characters each. To avoid this behavior, use <xref:Microsoft.Data.SqlClient.SqlCommand.ExecuteXmlReader%2A> or <xref:Microsoft.Data.SqlClient.SqlCommand.BeginExecuteXmlReader%2A> to read FOR XML queries.
  5569. This method ignores the <xref:Microsoft.Data.SqlClient.SqlCommand.CommandTimeout%2A> property.
  5570. ## Examples
  5571. The following console application starts the process of retrieving a data reader asynchronously. While waiting for the results, this simple application sits in a loop, investigating the <xref:System.IAsyncResult.IsCompleted%2A> property value. Once the process has completed, the code retrieves the <xref:Microsoft.Data.SqlClient.SqlDataReader> and displays its contents.
  5572. This example also passes the `CommandBehavior.CloseConnection` and `CommandBehavior.SingleRow` values in the behavior parameter, causing the connection to be closed with the returned <xref:Microsoft.Data.SqlClient.SqlDataReader> is closed, and to optimize for a single row result.
  5573. [!code-csharp[SqlCommand_BeginExecuteReaderAsyncSimple](~/../sqlclient/doc/samples/SqlCommand_BeginExecuteReaderAsyncSimple.cs)]
  5574. ]]></format>
  5575. </remarks><exception cref="T:System.InvalidCastException">
  5576. A
  5577. <see cref="P:Microsoft.Data.SqlClient.SqlParameter.SqlDbType" />
  5578. other than **Binary** or **VarBinary** was used when
  5579. <see cref="P:Microsoft.Data.SqlClient.SqlParameter.Value" />
  5580. was set to
  5581. <see cref="T:System.IO.Stream" />
  5582. . For more information about streaming, see [SqlClient Streaming Support](~/docs/framework/data/adonet/sqlclient-streaming-support.md).
  5583. -or-
  5584. A
  5585. <see cref="P:Microsoft.Data.SqlClient.SqlParameter.SqlDbType" />
  5586. other than **Char**, **NChar**, **NVarChar**, **VarChar**, or **Xml** was used when
  5587. <see cref="P:Microsoft.Data.SqlClient.SqlParameter.Value" />
  5588. was set to
  5589. <see cref="T:System.IO.TextReader" />
  5590. .
  5591. -or-
  5592. A
  5593. <see cref="P:Microsoft.Data.SqlClient.SqlParameter.SqlDbType" />
  5594. other than **Xml** was used when
  5595. <see cref="P:Microsoft.Data.SqlClient.SqlParameter.Value" />
  5596. was set to
  5597. <see cref="T:System.Xml.XmlReader" />
  5598. .
  5599. </exception><exception cref="T:Microsoft.Data.SqlClient.SqlException">
  5600. Any error that occurred while executing the command text.
  5601. -or-
  5602. A timeout occurred during a streaming operation. For more information about streaming, see [SqlClient Streaming Support](~/docs/framework/data/adonet/sqlclient-streaming-support.md).
  5603. </exception><exception cref="T:System.InvalidOperationException">
  5604. The name/value pair "Asynchronous Processing=true" was not included within the connection string defining the connection for this
  5605. <see cref="T:Microsoft.Data.SqlClient.SqlCommand" />
  5606. .
  5607. -or-
  5608. The
  5609. <see cref="T:Microsoft.Data.SqlClient.SqlConnection" />
  5610. closed or dropped during a streaming operation. For more information about streaming, see [SqlClient Streaming Support](~/docs/framework/data/adonet/sqlclient-streaming-support.md).
  5611. </exception><exception cref="T:System.IO.IOException">
  5612. An error occurred in a
  5613. <see cref="T:System.IO.Stream" />
  5614. ,
  5615. <see cref="T:System.Xml.XmlReader" />
  5616. or
  5617. <see cref="T:System.IO.TextReader" />
  5618. object during a streaming operation. For more information about streaming, see [SqlClient Streaming Support](~/docs/framework/data/adonet/sqlclient-streaming-support.md).
  5619. </exception><exception cref="T:System.ObjectDisposedException">
  5620. The
  5621. <see cref="T:System.IO.Stream" />
  5622. ,
  5623. <see cref="T:System.Xml.XmlReader" />
  5624. or
  5625. <see cref="T:System.IO.TextReader" />
  5626. object was closed during a streaming operation. For more information about streaming, see [SqlClient Streaming Support](~/docs/framework/data/adonet/sqlclient-streaming-support.md).
  5627. </exception>
  5628. </member>
  5629. <member name="M:Microsoft.Data.SqlClient.SqlCommand.BeginExecuteReader(System.AsyncCallback,System.Object,System.Data.CommandBehavior)">
  5630. <param name="callback">
  5631. An
  5632. <see cref="T:System.AsyncCallback" />
  5633. delegate that is invoked when the command's execution has completed. Pass
  5634. <see langword="null" />
  5635. (
  5636. <see langword="Nothing" />
  5637. in Microsoft Visual Basic) to indicate that no callback is required.
  5638. </param><param name="stateObject">
  5639. A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback procedure using the
  5640. <see cref="P:System.IAsyncResult.AsyncState" />
  5641. property.
  5642. </param><param name="behavior">
  5643. One of the
  5644. <see cref="T:System.Data.CommandBehavior" />
  5645. values, indicating options for statement execution and data retrieval.
  5646. </param><summary>
  5647. Initiates the asynchronous execution of the Transact-SQL statement or stored procedure that is described by this
  5648. <see cref="T:Microsoft.Data.SqlClient.SqlCommand" />
  5649. , using one of the
  5650. <see langword="CommandBehavior" />
  5651. values, and retrieving one or more result sets from the server, given a callback procedure and state information.
  5652. </summary><returns>
  5653. An
  5654. <see cref="T:System.IAsyncResult" />
  5655. that can be used to poll or wait for results, or both; this value is also needed when invoking
  5656. <see cref="M:Microsoft.Data.SqlClient.SqlCommand.EndExecuteReader(System.IAsyncResult)" />
  5657. , which returns a
  5658. <see cref="T:Microsoft.Data.SqlClient.SqlDataReader" />
  5659. instance which can be used to retrieve the returned rows.
  5660. </returns><remarks>
  5661. <format type="text/markdown"><![CDATA[
  5662. ## Remarks
  5663. The <xref:Microsoft.Data.SqlClient.SqlCommand.BeginExecuteReader%2A> method starts the process of asynchronously executing a Transact-SQL statement or stored procedure that returns rows, so that other tasks can run concurrently while the statement is executing. When the statement has completed, developers must call the <xref:Microsoft.Data.SqlClient.SqlCommand.EndExecuteReader%2A> method to finish the operation and retrieve the <xref:Microsoft.Data.SqlClient.SqlDataReader> returned by the command. The <xref:Microsoft.Data.SqlClient.SqlCommand.BeginExecuteReader%2A> method returns immediately, but until the code executes the corresponding <xref:Microsoft.Data.SqlClient.SqlCommand.EndExecuteReader%2A> method call, it must not execute any other calls that start a synchronous or asynchronous execution against the same <xref:Microsoft.Data.SqlClient.SqlCommand> object. Calling the <xref:Microsoft.Data.SqlClient.SqlCommand.EndExecuteReader%2A> before the command's execution is completed causes the <xref:Microsoft.Data.SqlClient.SqlCommand> object to block until the execution is finished.
  5664. The `callback` parameter lets you specify an <xref:System.AsyncCallback> delegate that is called when the statement has completed. You can call the <xref:Microsoft.Data.SqlClient.SqlCommand.EndExecuteReader%2A> method from within this delegate procedure, or from any other location within your application. In addition, you can pass any object in the `stateObject` parameter, and your callback procedure can retrieve this information using the <xref:System.IAsyncResult.AsyncState%2A> property.
  5665. The `behavior` parameter lets you specify options that control the behavior of the command and its connection. These values can be combined together (using the programming language's `Or` operator); generally, developers use the `CloseConnection` value to make sure that the connection is closed by the runtime when the <xref:Microsoft.Data.SqlClient.SqlDataReader> is closed. Developers can also optimize the behavior of the <xref:Microsoft.Data.SqlClient.SqlDataReader> by specifying the `SingleRow` value when it is known in advance that the Transact-SQL statement or stored procedure only returns a single row.
  5666. Note that the command text and parameters are sent to the server synchronously. If a large command or many parameters are sent, this method may block during writes. After the command is sent, the method returns immediately without waiting for an answer from the server--that is, reads are asynchronous. Although command execution is asynchronous, value fetching is still synchronous. This means that calls to <xref:Microsoft.Data.SqlClient.SqlDataReader.Read%2A> may block if more data is required and the underlying network's read operation blocks.
  5667. Because the callback procedure executes from within a background thread supplied by the Microsoft .NET common language runtime, it is very important that you take a rigorous approach to handling cross-thread interactions from within your applications. For example, you must not interact with a form's contents from within your callback procedure--should you have to update the form, you must switch back to the form's thread in order to do your work. The example in this topic demonstrates this behavior.
  5668. All errors that occur during the execution of the operation are thrown as exceptions in the callback procedure. You must handle the exception in the callback procedure, not in the main application. See the example in this topic for additional information on handling exceptions in the callback procedure.
  5669. If you use <xref:Microsoft.Data.SqlClient.SqlCommand.ExecuteReader%2A> or <xref:Microsoft.Data.SqlClient.SqlCommand.BeginExecuteReader%2A> to access XML data, SQL Server will return any XML results greater than 2,033 characters in length in multiple rows of 2,033 characters each. To avoid this behavior, use <xref:Microsoft.Data.SqlClient.SqlCommand.ExecuteXmlReader%2A> or <xref:Microsoft.Data.SqlClient.SqlCommand.BeginExecuteXmlReader%2A> to read FOR XML queries.
  5670. This method ignores the <xref:Microsoft.Data.SqlClient.SqlCommand.CommandTimeout%2A> property.
  5671. ## Examples
  5672. The following Windows application demonstrates the use of the <xref:Microsoft.Data.SqlClient.SqlCommand.BeginExecuteReader%2A> method, executing a Transact-SQL statement that includes a delay of a few seconds (emulating a long-running command). Because the sample executes the command asynchronously, the form remains responsive while awaiting the results. This example passes the executing <xref:Microsoft.Data.SqlClient.SqlCommand> object as the `stateObject` parameter; doing so makes it simple to retrieve the <xref:Microsoft.Data.SqlClient.SqlCommand> object from within the callback procedure, so that the code can call the <xref:Microsoft.Data.SqlClient.SqlCommand.EndExecuteReader%2A> method corresponding to the initial call to <xref:Microsoft.Data.SqlClient.SqlCommand.BeginExecuteReader%2A>.
  5673. This example demonstrates many important techniques. This includes calling a method that interacts with the form from a separate thread. In addition, this example demonstrates how you must block users from executing a command multiple times concurrently, and how you must make sure that the form does not close before the callback procedure is called.
  5674. To set up this example, create a new Windows application. Put a <xref:System.Windows.Forms.Button> control, a <xref:System.Windows.Forms.DataGridView> control, and a <xref:System.Windows.Forms.Label> control on the form (accepting the default name for each control). Add the following code to the form's class, modifying the connection string as needed for your environment.
  5675. This example passes the `CommandBehavior.CloseConnection` value in the `behavior` parameter, causing the returned <xref:Microsoft.Data.SqlClient.SqlDataReader> to automatically close its connection when it is closed.
  5676. [!code-csharp[SqlCommand_BeginExecuteReaderAsyncBehavior](~/../sqlclient/doc/samples/SqlCommand_BeginExecuteReaderAsyncBehavior.cs)]
  5677. ]]></format>
  5678. </remarks><exception cref="T:System.InvalidCastException">
  5679. A
  5680. <see cref="P:Microsoft.Data.SqlClient.SqlParameter.SqlDbType" />
  5681. other than **Binary** or **VarBinary** was used when
  5682. <see cref="P:Microsoft.Data.SqlClient.SqlParameter.Value" />
  5683. was set to
  5684. <see cref="T:System.IO.Stream" />
  5685. . For more information about streaming, see [SqlClient Streaming Support](~/docs/framework/data/adonet/sqlclient-streaming-support.md).
  5686. -or-
  5687. A
  5688. <see cref="P:Microsoft.Data.SqlClient.SqlParameter.SqlDbType" />
  5689. other than **Char**, **NChar**, **NVarChar**, **VarChar**, or **Xml** was used when
  5690. <see cref="P:Microsoft.Data.SqlClient.SqlParameter.Value" />
  5691. was set to
  5692. <see cref="T:System.IO.TextReader" />
  5693. .
  5694. -or-
  5695. A
  5696. <see cref="P:Microsoft.Data.SqlClient.SqlParameter.SqlDbType" />
  5697. other than **Xml** was used when
  5698. <see cref="P:Microsoft.Data.SqlClient.SqlParameter.Value" />
  5699. was set to
  5700. <see cref="T:System.Xml.XmlReader" />
  5701. .
  5702. </exception><exception cref="T:Microsoft.Data.SqlClient.SqlException">
  5703. Any error that occurred while executing the command text.
  5704. -or-
  5705. A timeout occurred during a streaming operation. For more information about streaming, see [SqlClient Streaming Support](~/docs/framework/data/adonet/sqlclient-streaming-support.md).
  5706. </exception><exception cref="T:System.InvalidOperationException">
  5707. The name/value pair "Asynchronous Processing=true" was not included within the connection string defining the connection for this
  5708. <see cref="T:Microsoft.Data.SqlClient.SqlCommand" />
  5709. .
  5710. -or-
  5711. The
  5712. <see cref="T:Microsoft.Data.SqlClient.SqlConnection" />
  5713. closed or dropped during a streaming operation. For more information about streaming, see [SqlClient Streaming Support](~/docs/framework/data/adonet/sqlclient-streaming-support.md).
  5714. </exception><exception cref="T:System.IO.IOException">
  5715. An error occurred in a
  5716. <see cref="T:System.IO.Stream" />
  5717. ,
  5718. <see cref="T:System.Xml.XmlReader" />
  5719. or
  5720. <see cref="T:System.IO.TextReader" />
  5721. object during a streaming operation. For more information about streaming, see [SqlClient Streaming Support](~/docs/framework/data/adonet/sqlclient-streaming-support.md).
  5722. </exception><exception cref="T:System.ObjectDisposedException">
  5723. The
  5724. <see cref="T:System.IO.Stream" />
  5725. ,
  5726. <see cref="T:System.Xml.XmlReader" />
  5727. or
  5728. <see cref="T:System.IO.TextReader" />
  5729. object was closed during a streaming operation. For more information about streaming, see [SqlClient Streaming Support](~/docs/framework/data/adonet/sqlclient-streaming-support.md).
  5730. </exception>
  5731. </member>
  5732. <member name="M:Microsoft.Data.SqlClient.SqlCommand.ExecuteDbDataReader(System.Data.CommandBehavior)">
  5733. <param name="behavior">
  5734. To be added.
  5735. </param><summary>
  5736. To be added.
  5737. </summary><returns>
  5738. To be added.
  5739. </returns><remarks>
  5740. To be added.
  5741. </remarks>
  5742. </member>
  5743. <member name="M:Microsoft.Data.SqlClient.SqlCommand.ExecuteReader">
  5744. <summary>
  5745. Sends the
  5746. <see cref="P:Microsoft.Data.SqlClient.SqlCommand.CommandText" />
  5747. to the
  5748. <see cref="P:Microsoft.Data.SqlClient.SqlCommand.Connection" />
  5749. and builds a
  5750. <see cref="T:Microsoft.Data.SqlClient.SqlDataReader" />
  5751. .
  5752. </summary><returns>
  5753. A
  5754. <see cref="T:Microsoft.Data.SqlClient.SqlDataReader" />
  5755. object.
  5756. </returns><remarks>
  5757. <format type="text/markdown"><![CDATA[
  5758. ## Remarks
  5759. When the <xref:Microsoft.Data.SqlClient.SqlCommand.CommandType%2A> property is set to `StoredProcedure`, the <xref:Microsoft.Data.SqlClient.SqlCommand.CommandText%2A> property should be set to the name of the stored procedure. The command executes this stored procedure when you call <xref:Microsoft.Data.SqlClient.SqlCommand.ExecuteReader%2A>.
  5760. > [!NOTE]
  5761. > If a transaction is deadlocked, an exception may not be thrown until <xref:Microsoft.Data.SqlClient.SqlDataReader.Read%2A> is called.
  5762. The multiple active result set (MARS) feature allows for multiple actions using the same connection.
  5763. If you use <xref:Microsoft.Data.SqlClient.SqlCommand.ExecuteReader%2A> or <xref:Microsoft.Data.SqlClient.SqlCommand.BeginExecuteReader%2A> to access XML data, SQL Server will return any XML results greater than 2,033 characters in length in multiple rows of 2,033 characters each. To avoid this behavior, use <xref:Microsoft.Data.SqlClient.SqlCommand.ExecuteXmlReader%2A> or <xref:Microsoft.Data.SqlClient.SqlCommand.BeginExecuteXmlReader%2A> to read FOR XML queries.
  5764. ## Examples
  5765. The following example creates a <xref:Microsoft.Data.SqlClient.SqlCommand>, and then executes it by passing a string that is a Transact-SQL SELECT statement, and a string to use to connect to the data source.
  5766. [!code-csharp[SqlCommand_ExecuteReader](~/../sqlclient/doc/samples/SqlCommand_ExecuteReader.cs)]
  5767. ]]></format>
  5768. </remarks><exception cref="T:System.InvalidCastException">
  5769. A
  5770. <see cref="P:Microsoft.Data.SqlClient.SqlParameter.SqlDbType" />
  5771. other than **Binary** or **VarBinary** was used when
  5772. <see cref="P:Microsoft.Data.SqlClient.SqlParameter.Value" />
  5773. was set to
  5774. <see cref="T:System.IO.Stream" />
  5775. . For more information about streaming, see [SqlClient Streaming Support](~/docs/framework/data/adonet/sqlclient-streaming-support.md).
  5776. -or-
  5777. A
  5778. <see cref="P:Microsoft.Data.SqlClient.SqlParameter.SqlDbType" />
  5779. other than **Char**, **NChar**, **NVarChar**, **VarChar**, or **Xml** was used when
  5780. <see cref="P:Microsoft.Data.SqlClient.SqlParameter.Value" />
  5781. was set to
  5782. <see cref="T:System.IO.TextReader" />
  5783. .
  5784. -or-
  5785. A
  5786. <see cref="P:Microsoft.Data.SqlClient.SqlParameter.SqlDbType" />
  5787. other than **Xml** was used when
  5788. <see cref="P:Microsoft.Data.SqlClient.SqlParameter.Value" />
  5789. was set to
  5790. <see cref="T:System.Xml.XmlReader" />
  5791. .
  5792. </exception><exception cref="T:Microsoft.Data.SqlClient.SqlException">
  5793. An exception occurred while executing the command against a locked row. This exception is not generated when you are using Microsoft .NET Framework version 1.0.
  5794. -or-
  5795. A timeout occurred during a streaming operation. For more information about streaming, see [SqlClient Streaming Support](~/docs/framework/data/adonet/sqlclient-streaming-support.md).
  5796. </exception><exception cref="T:System.InvalidOperationException">
  5797. The current state of the connection is closed.
  5798. <see cref="M:Microsoft.Data.SqlClient.SqlCommand.ExecuteReader" />
  5799. requires an open
  5800. <see cref="T:Microsoft.Data.SqlClient.SqlConnection" />
  5801. .
  5802. -or-
  5803. The
  5804. <see cref="T:Microsoft.Data.SqlClient.SqlConnection" />
  5805. closed or dropped during a streaming operation. For more information about streaming, see [SqlClient Streaming Support](~/docs/framework/data/adonet/sqlclient-streaming-support.md).
  5806. </exception><exception cref="T:System.IO.IOException">
  5807. An error occurred in a
  5808. <see cref="T:System.IO.Stream" />
  5809. ,
  5810. <see cref="T:System.Xml.XmlReader" />
  5811. or
  5812. <see cref="T:System.IO.TextReader" />
  5813. object during a streaming operation. For more information about streaming, see [SqlClient Streaming Support](~/docs/framework/data/adonet/sqlclient-streaming-support.md).
  5814. </exception><exception cref="T:System.ObjectDisposedException">
  5815. The
  5816. <see cref="T:System.IO.Stream" />
  5817. ,
  5818. <see cref="T:System.Xml.XmlReader" />
  5819. or
  5820. <see cref="T:System.IO.TextReader" />
  5821. object was closed during a streaming operation. For more information about streaming, see [SqlClient Streaming Support](~/docs/framework/data/adonet/sqlclient-streaming-support.md).
  5822. </exception>
  5823. </member>
  5824. <member name="M:Microsoft.Data.SqlClient.SqlCommand.ExecuteReader(System.Data.CommandBehavior)">
  5825. <param name="behavior">
  5826. One of the
  5827. <see cref="T:System.Data.CommandBehavior" />
  5828. values.
  5829. </param><summary>
  5830. Sends the
  5831. <see cref="P:Microsoft.Data.SqlClient.SqlCommand.CommandText" />
  5832. to the
  5833. <see cref="P:Microsoft.Data.SqlClient.SqlCommand.Connection" />
  5834. , and builds a
  5835. <see cref="T:Microsoft.Data.SqlClient.SqlDataReader" />
  5836. using one of the
  5837. <see cref="T:System.Data.CommandBehavior" />
  5838. values.
  5839. </summary><returns>
  5840. A
  5841. <see cref="T:Microsoft.Data.SqlClient.SqlDataReader" />
  5842. object.
  5843. </returns><remarks>
  5844. <format type="text/markdown"><![CDATA[
  5845. ## Remarks
  5846. When the <xref:Microsoft.Data.SqlClient.SqlCommand.CommandType%2A> property is set to `StoredProcedure`, the <xref:Microsoft.Data.SqlClient.SqlCommand.CommandText%2A> property should be set to the name of the stored procedure. The command executes this stored procedure when you call <xref:Microsoft.Data.SqlClient.SqlCommand.ExecuteReader%2A>.
  5847. > [!NOTE]
  5848. > Use <xref:System.Data.CommandBehavior.SequentialAccess> to retrieve large values and binary data. Otherwise, an <xref:System.OutOfMemoryException> might occur and the connection will be closed.
  5849. The multiple active result set (MARS) feature allows for multiple actions using the same connection.
  5850. If you use <xref:Microsoft.Data.SqlClient.SqlCommand.ExecuteReader%2A> or <xref:Microsoft.Data.SqlClient.SqlCommand.BeginExecuteReader%2A> to access XML data, SQL Server will return any XML results greater than 2,033 characters in length in multiple rows of 2,033 characters each. To avoid this behavior, use <xref:Microsoft.Data.SqlClient.SqlCommand.ExecuteXmlReader%2A> or <xref:Microsoft.Data.SqlClient.SqlCommand.BeginExecuteXmlReader%2A> to read FOR XML queries.
  5851. ## Examples
  5852. The following example creates a <xref:Microsoft.Data.SqlClient.SqlCommand>, and then executes it by passing a string that is a Transact-SQL SELECT statement, and a string to use to connect to the data source. <xref:System.Data.CommandBehavior> is set to <xref:System.Data.CommandBehavior.CloseConnection>.
  5853. [!code-csharp[SqlCommand_ExecuteReader2](~/../sqlclient/doc/samples/SqlCommand_ExecuteReader2.cs#1)]
  5854. ]]></format>
  5855. </remarks><exception cref="T:System.InvalidCastException">
  5856. A
  5857. <see cref="P:Microsoft.Data.SqlClient.SqlParameter.SqlDbType" />
  5858. other than **Binary** or **VarBinary** was used when
  5859. <see cref="P:Microsoft.Data.SqlClient.SqlParameter.Value" />
  5860. was set to
  5861. <see cref="T:System.IO.Stream" />
  5862. . For more information about streaming, see [SqlClient Streaming Support](~/docs/framework/data/adonet/sqlclient-streaming-support.md).
  5863. -or-
  5864. A
  5865. <see cref="P:Microsoft.Data.SqlClient.SqlParameter.SqlDbType" />
  5866. other than **Char**, **NChar**, **NVarChar**, **VarChar**, or **Xml** was used when
  5867. <see cref="P:Microsoft.Data.SqlClient.SqlParameter.Value" />
  5868. was set to
  5869. <see cref="T:System.IO.TextReader" />
  5870. .
  5871. -or-
  5872. A
  5873. <see cref="P:Microsoft.Data.SqlClient.SqlParameter.SqlDbType" />
  5874. other than **Xml** was used when
  5875. <see cref="P:Microsoft.Data.SqlClient.SqlParameter.Value" />
  5876. was set to
  5877. <see cref="T:System.Xml.XmlReader" />
  5878. .
  5879. </exception><exception cref="T:Microsoft.Data.SqlClient.SqlException">
  5880. A timeout occurred during a streaming operation. For more information about streaming, see [SqlClient Streaming Support](~/docs/framework/data/adonet/sqlclient-streaming-support.md).
  5881. </exception><exception cref="T:System.IO.IOException">
  5882. An error occurred in a
  5883. <see cref="T:System.IO.Stream" />
  5884. ,
  5885. <see cref="T:System.Xml.XmlReader" />
  5886. or
  5887. <see cref="T:System.IO.TextReader" />
  5888. object during a streaming operation. For more information about streaming, see [SqlClient Streaming Support](~/docs/framework/data/adonet/sqlclient-streaming-support.md).
  5889. </exception><exception cref="T:System.InvalidOperationException">
  5890. The
  5891. <see cref="T:Microsoft.Data.SqlClient.SqlConnection" />
  5892. closed or dropped during a streaming operation. For more information about streaming, see [SqlClient Streaming Support](~/docs/framework/data/adonet/sqlclient-streaming-support.md).
  5893. </exception><exception cref="T:System.ObjectDisposedException">
  5894. The
  5895. <see cref="T:System.IO.Stream" />
  5896. ,
  5897. <see cref="T:System.Xml.XmlReader" />
  5898. or
  5899. <see cref="T:System.IO.TextReader" />
  5900. object was closed during a streaming operation. For more information about streaming, see [SqlClient Streaming Support](~/docs/framework/data/adonet/sqlclient-streaming-support.md).
  5901. </exception>
  5902. </member>
  5903. <member name="M:Microsoft.Data.SqlClient.SqlCommand.EndExecuteReader(System.IAsyncResult)">
  5904. <param name="asyncResult">
  5905. The
  5906. <see cref="T:System.IAsyncResult" />
  5907. returned by the call to
  5908. <see cref="M:Microsoft.Data.SqlClient.SqlCommand.BeginExecuteReader" />
  5909. .
  5910. </param><summary>
  5911. Finishes asynchronous execution of a Transact-SQL statement, returning the requested
  5912. <see cref="T:Microsoft.Data.SqlClient.SqlDataReader" />
  5913. .
  5914. </summary><returns>
  5915. A
  5916. <see cref="T:Microsoft.Data.SqlClient.SqlDataReader" />
  5917. object that can be used to retrieve the requested rows.
  5918. </returns><remarks>
  5919. <format type="text/markdown"><![CDATA[
  5920. ## Remarks
  5921. When you call <xref:Microsoft.Data.SqlClient.SqlCommand.BeginExecuteReader%2A> to execute a Transact-SQL statement, you must call <xref:Microsoft.Data.SqlClient.SqlCommand.EndExecuteReader%2A> in order to complete the operation. If the process of executing the command has not yet finished, this method blocks until the operation is complete. Users can verify that the command has completed its operation by using the <xref:System.IAsyncResult> instance returned by the <xref:Microsoft.Data.SqlClient.SqlCommand.BeginExecuteReader%2A> method. If a callback procedure was specified in the call to <xref:Microsoft.Data.SqlClient.SqlCommand.BeginExecuteReader%2A>, this method must be called.
  5922. ## Examples
  5923. For examples demonstrating the use of the <xref:Microsoft.Data.SqlClient.SqlCommand.EndExecuteReader%2A> method, see <xref:Microsoft.Data.SqlClient.SqlCommand.BeginExecuteReader%2A>.
  5924. ]]></format>
  5925. </remarks><exception cref="T:System.ArgumentException">
  5926. <paramref name="asyncResult" />
  5927. parameter is null (
  5928. <see langword="Nothing" />
  5929. in Microsoft Visual Basic)
  5930. </exception><exception cref="T:System.InvalidOperationException">
  5931. <see cref="M:Microsoft.Data.SqlClient.SqlCommand.EndExecuteReader(System.IAsyncResult)" />
  5932. was called more than once for a single command execution, or the method was mismatched against its execution method (for example, the code called
  5933. <see cref="M:Microsoft.Data.SqlClient.SqlCommand.EndExecuteReader(System.IAsyncResult)" />
  5934. to complete execution of a call to
  5935. <see cref="M:Microsoft.Data.SqlClient.SqlCommand.BeginExecuteXmlReader" />
  5936. .
  5937. </exception>
  5938. </member>
  5939. <member name="M:Microsoft.Data.SqlClient.SqlCommand.ExecuteNonQueryAsync(System.Threading.CancellationToken)">
  5940. <param name="cancellationToken">
  5941. The cancellation instruction.
  5942. </param><summary>
  5943. An asynchronous version of
  5944. <see cref="M:Microsoft.Data.SqlClient.SqlCommand.ExecuteNonQuery" />
  5945. , which executes a Transact-SQL statement against the connection and returns the number of rows affected. The cancellation token can be used to request that the operation be abandoned before the command timeout elapses. Exceptions will be reported via the returned Task object.
  5946. </summary><returns>
  5947. A task representing the asynchronous operation.
  5948. </returns><remarks>
  5949. <format type="text/markdown"><![CDATA[
  5950. ## Remarks
  5951. For more information about asynchronous programming in the .NET Framework Data Provider for SQL Server, see [Asynchronous Programming](~/docs/framework/data/adonet/asynchronous-programming.md).
  5952. ]]></format>
  5953. </remarks><exception cref="T:System.InvalidCastException">
  5954. A
  5955. <see cref="P:Microsoft.Data.SqlClient.SqlParameter.SqlDbType" />
  5956. other than **Binary** or **VarBinary** was used when
  5957. <see cref="P:Microsoft.Data.SqlClient.SqlParameter.Value" />
  5958. was set to
  5959. <see cref="T:System.IO.Stream" />
  5960. . For more information about streaming, see [SqlClient Streaming Support](~/docs/framework/data/adonet/sqlclient-streaming-support.md).
  5961. -or-
  5962. A
  5963. <see cref="P:Microsoft.Data.SqlClient.SqlParameter.SqlDbType" />
  5964. other than **Char**, **NChar**, **NVarChar**, **VarChar**, or **Xml** was used when
  5965. <see cref="P:Microsoft.Data.SqlClient.SqlParameter.Value" />
  5966. was set to
  5967. <see cref="T:System.IO.TextReader" />
  5968. .
  5969. -or-
  5970. A
  5971. <see cref="P:Microsoft.Data.SqlClient.SqlParameter.SqlDbType" />
  5972. other than **Xml** was used when
  5973. <see cref="P:Microsoft.Data.SqlClient.SqlParameter.Value" />
  5974. was set to
  5975. <see cref="T:System.Xml.XmlReader" />
  5976. .
  5977. </exception><exception cref="T:System.InvalidOperationException">
  5978. Calling
  5979. <see cref="M:Microsoft.Data.SqlClient.SqlCommand.ExecuteNonQueryAsync(System.Threading.CancellationToken)" />
  5980. more than once for the same instance before task completion.
  5981. -or-
  5982. The
  5983. <see cref="T:Microsoft.Data.SqlClient.SqlConnection" />
  5984. closed or dropped during a streaming operation. For more information about streaming, see [SqlClient Streaming Support](~/docs/framework/data/adonet/sqlclient-streaming-support.md).
  5985. -or-
  5986. <see langword="Context Connection=true" />
  5987. is specified in the connection string.
  5988. </exception><exception cref="T:Microsoft.Data.SqlClient.SqlException">
  5989. SQL Server returned an error while executing the command text.
  5990. -or-
  5991. A timeout occurred during a streaming operation. For more information about streaming, see [SqlClient Streaming Support](~/docs/framework/data/adonet/sqlclient-streaming-support.md).
  5992. </exception><exception cref="T:System.IO.IOException">
  5993. An error occurred in a
  5994. <see cref="T:System.IO.Stream" />
  5995. ,
  5996. <see cref="T:System.Xml.XmlReader" />
  5997. or
  5998. <see cref="T:System.IO.TextReader" />
  5999. object during a streaming operation. For more information about streaming, see [SqlClient Streaming Support](~/docs/framework/data/adonet/sqlclient-streaming-support.md).
  6000. </exception><exception cref="T:System.ObjectDisposedException">
  6001. The
  6002. <see cref="T:System.IO.Stream" />
  6003. ,
  6004. <see cref="T:System.Xml.XmlReader" />
  6005. or
  6006. <see cref="T:System.IO.TextReader" />
  6007. object was closed during a streaming operation. For more information about streaming, see [SqlClient Streaming Support](~/docs/framework/data/adonet/sqlclient-streaming-support.md).
  6008. </exception>
  6009. </member>
  6010. <member name="M:Microsoft.Data.SqlClient.SqlCommand.ExecuteDbDataReaderAsync(System.Data.CommandBehavior,System.Threading.CancellationToken)">
  6011. <param name="behavior">
  6012. To be added.
  6013. </param><param name="cancellationToken">
  6014. To be added.
  6015. </param><summary>
  6016. To be added.
  6017. </summary><returns>
  6018. To be added.
  6019. </returns><remarks>
  6020. To be added.
  6021. </remarks>
  6022. </member>
  6023. <member name="M:Microsoft.Data.SqlClient.SqlCommand.ExecuteReaderAsync">
  6024. <summary>
  6025. An asynchronous version of
  6026. <see cref="M:Microsoft.Data.SqlClient.SqlCommand.ExecuteReader" />
  6027. , which sends the
  6028. <see cref="P:Microsoft.Data.SqlClient.SqlCommand.CommandText" />
  6029. to the
  6030. <see cref="P:Microsoft.Data.SqlClient.SqlCommand.Connection" />
  6031. and builds a
  6032. <see cref="T:Microsoft.Data.SqlClient.SqlDataReader" />
  6033. . Exceptions will be reported via the returned Task object.
  6034. </summary><returns>
  6035. A task representing the asynchronous operation.
  6036. </returns><remarks>
  6037. <format type="text/markdown"><![CDATA[
  6038. ## Remarks
  6039. For more information about asynchronous programming in the .NET Framework Data Provider for SQL Server, see [Asynchronous Programming](~/docs/framework/data/adonet/asynchronous-programming.md).
  6040. ]]></format>
  6041. </remarks><exception cref="T:System.InvalidCastException">
  6042. A
  6043. <see cref="P:Microsoft.Data.SqlClient.SqlParameter.SqlDbType" />
  6044. other than **Binary** or **VarBinary** was used when
  6045. <see cref="P:Microsoft.Data.SqlClient.SqlParameter.Value" />
  6046. was set to
  6047. <see cref="T:System.IO.Stream" />
  6048. . For more information about streaming, see [SqlClient Streaming Support](~/docs/framework/data/adonet/sqlclient-streaming-support.md).
  6049. -or-
  6050. A
  6051. <see cref="P:Microsoft.Data.SqlClient.SqlParameter.SqlDbType" />
  6052. other than **Char**, **NChar**, **NVarChar**, **VarChar**, or **Xml** was used when
  6053. <see cref="P:Microsoft.Data.SqlClient.SqlParameter.Value" />
  6054. was set to
  6055. <see cref="T:System.IO.TextReader" />
  6056. .
  6057. -or-
  6058. A
  6059. <see cref="P:Microsoft.Data.SqlClient.SqlParameter.SqlDbType" />
  6060. other than **Xml** was used when
  6061. <see cref="P:Microsoft.Data.SqlClient.SqlParameter.Value" />
  6062. was set to
  6063. <see cref="T:System.Xml.XmlReader" />
  6064. .
  6065. </exception><exception cref="T:System.ArgumentException">
  6066. An invalid
  6067. <see cref="T:System.Data.CommandBehavior" />
  6068. value.
  6069. </exception><exception cref="T:System.InvalidOperationException">
  6070. Calling
  6071. <see cref="M:Microsoft.Data.SqlClient.SqlCommand.ExecuteReaderAsync" />
  6072. more than once for the same instance before task completion.
  6073. -or-
  6074. The
  6075. <see cref="T:Microsoft.Data.SqlClient.SqlConnection" />
  6076. closed or dropped during a streaming operation. For more information about streaming, see [SqlClient Streaming Support](~/docs/framework/data/adonet/sqlclient-streaming-support.md).
  6077. -or-
  6078. <see langword="Context Connection=true" />
  6079. is specified in the connection string.
  6080. </exception><exception cref="T:Microsoft.Data.SqlClient.SqlException">
  6081. SQL Server returned an error while executing the command text.
  6082. -or-
  6083. A timeout occurred during a streaming operation. For more information about streaming, see [SqlClient Streaming Support](~/docs/framework/data/adonet/sqlclient-streaming-support.md).
  6084. </exception><exception cref="T:System.IO.IOException">
  6085. An error occurred in a
  6086. <see cref="T:System.IO.Stream" />
  6087. ,
  6088. <see cref="T:System.Xml.XmlReader" />
  6089. or
  6090. <see cref="T:System.IO.TextReader" />
  6091. object during a streaming operation. For more information about streaming, see [SqlClient Streaming Support](~/docs/framework/data/adonet/sqlclient-streaming-support.md).
  6092. </exception><exception cref="T:System.ObjectDisposedException">
  6093. The
  6094. <see cref="T:System.IO.Stream" />
  6095. ,
  6096. <see cref="T:System.Xml.XmlReader" />
  6097. or
  6098. <see cref="T:System.IO.TextReader" />
  6099. object was closed during a streaming operation. For more information about streaming, see [SqlClient Streaming Support](~/docs/framework/data/adonet/sqlclient-streaming-support.md).
  6100. </exception>
  6101. </member>
  6102. <member name="M:Microsoft.Data.SqlClient.SqlCommand.ExecuteReaderAsync(System.Data.CommandBehavior)">
  6103. <param name="behavior">
  6104. Options for statement execution and data retrieval. When is set to
  6105. <see langword="Default" />
  6106. ,
  6107. <see cref="M:Microsoft.Data.SqlClient.SqlDataReader.ReadAsync(System.Threading.CancellationToken)" />
  6108. reads the entire row before returning a complete Task.
  6109. </param><summary>
  6110. An asynchronous version of
  6111. <see cref="M:Microsoft.Data.SqlClient.SqlCommand.ExecuteReader(System.Data.CommandBehavior)" />
  6112. , which sends the
  6113. <see cref="P:Microsoft.Data.SqlClient.SqlCommand.CommandText" />
  6114. to the
  6115. <see cref="P:Microsoft.Data.SqlClient.SqlCommand.Connection" />
  6116. , and builds a
  6117. <see cref="T:Microsoft.Data.SqlClient.SqlDataReader" />
  6118. . Exceptions will be reported via the returned Task object.
  6119. </summary><returns>
  6120. A task representing the asynchronous operation.
  6121. </returns><remarks>
  6122. <format type="text/markdown"><![CDATA[
  6123. ## Remarks
  6124. For more information about asynchronous programming in the .NET Framework Data Provider for SQL Server, see [Asynchronous Programming](~/docs/framework/data/adonet/asynchronous-programming.md).
  6125. ]]></format>
  6126. </remarks><exception cref="T:System.InvalidCastException">
  6127. A
  6128. <see cref="P:Microsoft.Data.SqlClient.SqlParameter.SqlDbType" />
  6129. other than **Binary** or **VarBinary** was used when
  6130. <see cref="P:Microsoft.Data.SqlClient.SqlParameter.Value" />
  6131. was set to
  6132. <see cref="T:System.IO.Stream" />
  6133. . For more information about streaming, see [SqlClient Streaming Support](~/docs/framework/data/adonet/sqlclient-streaming-support.md).
  6134. -or-
  6135. A
  6136. <see cref="P:Microsoft.Data.SqlClient.SqlParameter.SqlDbType" />
  6137. other than **Char**, **NChar**, **NVarChar**, **VarChar**, or **Xml** was used when
  6138. <see cref="P:Microsoft.Data.SqlClient.SqlParameter.Value" />
  6139. was set to
  6140. <see cref="T:System.IO.TextReader" />
  6141. .
  6142. -or-
  6143. A
  6144. <see cref="P:Microsoft.Data.SqlClient.SqlParameter.SqlDbType" />
  6145. other than **Xml** was used when
  6146. <see cref="P:Microsoft.Data.SqlClient.SqlParameter.Value" />
  6147. was set to
  6148. <see cref="T:System.Xml.XmlReader" />
  6149. .
  6150. </exception><exception cref="T:System.ArgumentException">
  6151. An invalid
  6152. <see cref="T:System.Data.CommandBehavior" />
  6153. value.
  6154. </exception><exception cref="T:System.InvalidOperationException">
  6155. Calling
  6156. <see cref="M:Microsoft.Data.SqlClient.SqlCommand.ExecuteReaderAsync(System.Data.CommandBehavior)" />
  6157. more than once for the same instance before task completion.
  6158. -or-
  6159. <see cref="T:Microsoft.Data.SqlClient.SqlConnection" />
  6160. closed or dropped during a streaming operation. For more information about streaming, see [SqlClient Streaming Support](~/docs/framework/data/adonet/sqlclient-streaming-support.md).
  6161. -or-
  6162. <see langword="Context Connection=true" />
  6163. is specified in the connection string.
  6164. </exception><exception cref="T:Microsoft.Data.SqlClient.SqlException">
  6165. SQL Server returned an error while executing the command text.
  6166. -or-
  6167. A timeout occurred during a streaming operation. For more information about streaming, see [SqlClient Streaming Support](~/docs/framework/data/adonet/sqlclient-streaming-support.md).
  6168. </exception><exception cref="T:System.IO.IOException">
  6169. An error occurred in a
  6170. <see cref="T:System.IO.Stream" />
  6171. ,
  6172. <see cref="T:System.Xml.XmlReader" />
  6173. or
  6174. <see cref="T:System.IO.TextReader" />
  6175. object during a streaming operation. For more information about streaming, see [SqlClient Streaming Support](~/docs/framework/data/adonet/sqlclient-streaming-support.md).
  6176. </exception><exception cref="T:System.ObjectDisposedException">
  6177. The
  6178. <see cref="T:System.IO.Stream" />
  6179. ,
  6180. <see cref="T:System.Xml.XmlReader" />
  6181. or
  6182. <see cref="T:System.IO.TextReader" />
  6183. object was closed during a streaming operation. For more information about streaming, see [SqlClient Streaming Support](~/docs/framework/data/adonet/sqlclient-streaming-support.md).
  6184. </exception>
  6185. </member>
  6186. <member name="M:Microsoft.Data.SqlClient.SqlCommand.ExecuteReaderAsync(System.Threading.CancellationToken)">
  6187. <param name="cancellationToken">
  6188. The cancellation instruction.
  6189. </param><summary>
  6190. An asynchronous version of
  6191. <see cref="M:Microsoft.Data.SqlClient.SqlCommand.ExecuteReader" />
  6192. , which sends the
  6193. <see cref="P:Microsoft.Data.SqlClient.SqlCommand.CommandText" />
  6194. to the
  6195. <see cref="P:Microsoft.Data.SqlClient.SqlCommand.Connection" />
  6196. and builds a
  6197. <see cref="T:Microsoft.Data.SqlClient.SqlDataReader" />
  6198. .
  6199. The cancellation token can be used to request that the operation be abandoned before the command timeout elapses. Exceptions will be reported via the returned Task object.
  6200. </summary><returns>
  6201. A task representing the asynchronous operation.
  6202. </returns><remarks>
  6203. <format type="text/markdown">
  6204. <![CDATA[
  6205. ## Remarks
  6206. For more information about asynchronous programming in the .NET Framework Data Provider for SQL Server, see [Asynchronous Programming](~/docs/framework/data/adonet/asynchronous-programming.md).
  6207. ]]>
  6208. </format>
  6209. </remarks><exception cref="T:System.InvalidCastException">
  6210. A
  6211. <see cref="P:Microsoft.Data.SqlClient.SqlParameter.SqlDbType" />
  6212. other than **Binary** or **VarBinary** was used when
  6213. <see cref="P:Microsoft.Data.SqlClient.SqlParameter.Value" />
  6214. was set to
  6215. <see cref="T:System.IO.Stream" />
  6216. . For more information about streaming, see [SqlClient Streaming Support](~/docs/framework/data/adonet/sqlclient-streaming-support.md).
  6217. -or-
  6218. A
  6219. <see cref="P:Microsoft.Data.SqlClient.SqlParameter.SqlDbType" />
  6220. other than **Char**, **NChar**, **NVarChar**, **VarChar**, or **Xml** was used when
  6221. <see cref="P:Microsoft.Data.SqlClient.SqlParameter.Value" />
  6222. was set to
  6223. <see cref="T:System.IO.TextReader" />
  6224. .
  6225. -or-
  6226. A
  6227. <see cref="P:Microsoft.Data.SqlClient.SqlParameter.SqlDbType" />
  6228. other than **Xml** was used when
  6229. <see cref="P:Microsoft.Data.SqlClient.SqlParameter.Value" />
  6230. was set to
  6231. <see cref="T:System.Xml.XmlReader" />
  6232. .
  6233. </exception><exception cref="T:System.ArgumentException">
  6234. An invalid
  6235. <see cref="T:System.Data.CommandBehavior" />
  6236. value.
  6237. </exception><exception cref="T:System.InvalidOperationException">
  6238. Calling
  6239. <see cref="M:Microsoft.Data.SqlClient.SqlCommand.ExecuteReaderAsync(System.Data.CommandBehavior,System.Threading.CancellationToken)" />
  6240. more than once for the same instance before task completion.
  6241. -or-
  6242. The
  6243. <see cref="T:Microsoft.Data.SqlClient.SqlConnection" />
  6244. closed or dropped during a streaming operation. For more information about streaming, see [SqlClient Streaming Support](~/docs/framework/data/adonet/sqlclient-streaming-support.md).
  6245. -or-
  6246. <see langword="Context Connection=true" />
  6247. is specified in the connection string.
  6248. </exception><exception cref="T:Microsoft.Data.SqlClient.SqlException">
  6249. SQL Server returned an error while executing the command text.
  6250. -or-
  6251. A timeout occurred during a streaming operation. For more information about streaming, see [SqlClient Streaming Support](~/docs/framework/data/adonet/sqlclient-streaming-support.md).
  6252. </exception><exception cref="T:System.IO.IOException">
  6253. An error occurred in a
  6254. <see cref="T:System.IO.Stream" />
  6255. ,
  6256. <see cref="T:System.Xml.XmlReader" />
  6257. or
  6258. <see cref="T:System.IO.TextReader" />
  6259. object during a streaming operation. For more information about streaming, see [SqlClient Streaming Support](~/docs/framework/data/adonet/sqlclient-streaming-support.md).
  6260. </exception><exception cref="T:System.ObjectDisposedException">
  6261. The
  6262. <see cref="T:System.IO.Stream" />
  6263. ,
  6264. <see cref="T:System.Xml.XmlReader" />
  6265. or
  6266. <see cref="T:System.IO.TextReader" />
  6267. object was closed during a streaming operation. For more information about streaming, see [SqlClient Streaming Support](~/docs/framework/data/adonet/sqlclient-streaming-support.md).
  6268. </exception>
  6269. </member>
  6270. <member name="M:Microsoft.Data.SqlClient.SqlCommand.ExecuteReaderAsync(System.Data.CommandBehavior,System.Threading.CancellationToken)">
  6271. <param name="behavior">
  6272. Options for statement execution and data retrieval. When is set to
  6273. <see langword="Default" />
  6274. ,
  6275. <see cref="M:Microsoft.Data.SqlClient.SqlDataReader.ReadAsync(System.Threading.CancellationToken)" />
  6276. reads the entire row before returning a complete Task.
  6277. </param><param name="cancellationToken">
  6278. The cancellation instruction.
  6279. </param><summary>
  6280. An asynchronous version of
  6281. <see cref="M:Microsoft.Data.SqlClient.SqlCommand.ExecuteReader(System.Data.CommandBehavior)" />
  6282. , which sends the
  6283. <see cref="P:Microsoft.Data.SqlClient.SqlCommand.CommandText" />
  6284. to the
  6285. <see cref="P:Microsoft.Data.SqlClient.SqlCommand.Connection" />
  6286. , and builds a
  6287. <see cref="T:Microsoft.Data.SqlClient.SqlDataReader" />
  6288. The cancellation token can be used to request that the operation be abandoned before the command timeout elapses. Exceptions will be reported via the returned Task object.
  6289. </summary><returns>
  6290. A task representing the asynchronous operation.
  6291. </returns><remarks>
  6292. <format type="text/markdown"><![CDATA[
  6293. ## Remarks
  6294. For more information about asynchronous programming in the .NET Framework Data Provider for SQL Server, see [Asynchronous Programming](~/docs/framework/data/adonet/asynchronous-programming.md).
  6295. ]]></format>
  6296. </remarks><exception cref="T:System.InvalidCastException">
  6297. A
  6298. <see cref="P:Microsoft.Data.SqlClient.SqlParameter.SqlDbType" />
  6299. other than **Binary** or **VarBinary** was used when
  6300. <see cref="P:Microsoft.Data.SqlClient.SqlParameter.Value" />
  6301. was set to
  6302. <see cref="T:System.IO.Stream" />
  6303. . For more information about streaming, see [SqlClient Streaming Support](~/docs/framework/data/adonet/sqlclient-streaming-support.md).
  6304. -or-
  6305. A
  6306. <see cref="P:Microsoft.Data.SqlClient.SqlParameter.SqlDbType" />
  6307. other than **Char**, **NChar**, **NVarChar**, **VarChar**, or **Xml** was used when
  6308. <see cref="P:Microsoft.Data.SqlClient.SqlParameter.Value" />
  6309. was set to
  6310. <see cref="T:System.IO.TextReader" />
  6311. .
  6312. -or-
  6313. A
  6314. <see cref="P:Microsoft.Data.SqlClient.SqlParameter.SqlDbType" />
  6315. other than **Xml** was used when
  6316. <see cref="P:Microsoft.Data.SqlClient.SqlParameter.Value" />
  6317. was set to
  6318. <see cref="T:System.Xml.XmlReader" />
  6319. .
  6320. </exception><exception cref="T:System.ArgumentException">
  6321. An invalid
  6322. <see cref="T:System.Data.CommandBehavior" />
  6323. value.
  6324. </exception><exception cref="T:System.InvalidOperationException">
  6325. Calling
  6326. <see cref="M:Microsoft.Data.SqlClient.SqlCommand.ExecuteReaderAsync(System.Data.CommandBehavior,System.Threading.CancellationToken)" />
  6327. more than once for the same instance before task completion.
  6328. -or-
  6329. The
  6330. <see cref="T:Microsoft.Data.SqlClient.SqlConnection" />
  6331. closed or dropped during a streaming operation. For more information about streaming, see [SqlClient Streaming Support](~/docs/framework/data/adonet/sqlclient-streaming-support.md).
  6332. -or-
  6333. <see langword="Context Connection=true" />
  6334. is specified in the connection string.
  6335. </exception><exception cref="T:Microsoft.Data.SqlClient.SqlException">
  6336. SQL Server returned an error while executing the command text.
  6337. -or-
  6338. A timeout occurred during a streaming operation. For more information about streaming, see [SqlClient Streaming Support](~/docs/framework/data/adonet/sqlclient-streaming-support.md).
  6339. </exception><exception cref="T:System.IO.IOException">
  6340. An error occurred in a
  6341. <see cref="T:System.IO.Stream" />
  6342. ,
  6343. <see cref="T:System.Xml.XmlReader" />
  6344. or
  6345. <see cref="T:System.IO.TextReader" />
  6346. object during a streaming operation. For more information about streaming, see [SqlClient Streaming Support](~/docs/framework/data/adonet/sqlclient-streaming-support.md).
  6347. </exception><exception cref="T:System.ObjectDisposedException">
  6348. The
  6349. <see cref="T:System.IO.Stream" />
  6350. ,
  6351. <see cref="T:System.Xml.XmlReader" />
  6352. or
  6353. <see cref="T:System.IO.TextReader" />
  6354. object was closed during a streaming operation. For more information about streaming, see [SqlClient Streaming Support](~/docs/framework/data/adonet/sqlclient-streaming-support.md).
  6355. </exception>
  6356. </member>
  6357. <member name="M:Microsoft.Data.SqlClient.SqlCommand.ExecuteScalarAsync(System.Threading.CancellationToken)">
  6358. <param name="cancellationToken">
  6359. The cancellation instruction.
  6360. </param><summary>
  6361. An asynchronous version of
  6362. <see cref="M:Microsoft.Data.SqlClient.SqlCommand.ExecuteReader" />
  6363. , which sends the
  6364. <see cref="P:Microsoft.Data.SqlClient.SqlCommand.CommandText" />
  6365. to the
  6366. <see cref="P:Microsoft.Data.SqlClient.SqlCommand.Connection" />
  6367. and builds a
  6368. <see cref="T:Microsoft.Data.SqlClient.SqlDataReader" />
  6369. .
  6370. The cancellation token can be used to request that the operation be abandoned before the command timeout elapses. Exceptions will be reported via the returned Task object.
  6371. </summary><returns>
  6372. A task representing the asynchronous operation.
  6373. </returns><remarks>
  6374. <format type="text/markdown">
  6375. <![CDATA[
  6376. ## Remarks
  6377. For more information about asynchronous programming in the .NET Framework Data Provider for SQL Server, see [Asynchronous Programming](~/docs/framework/data/adonet/asynchronous-programming.md).
  6378. ]]>
  6379. </format>
  6380. </remarks><exception cref="T:System.InvalidCastException">
  6381. A
  6382. <see cref="P:Microsoft.Data.SqlClient.SqlParameter.SqlDbType" />
  6383. other than **Binary** or **VarBinary** was used when
  6384. <see cref="P:Microsoft.Data.SqlClient.SqlParameter.Value" />
  6385. was set to
  6386. <see cref="T:System.IO.Stream" />
  6387. . For more information about streaming, see [SqlClient Streaming Support](~/docs/framework/data/adonet/sqlclient-streaming-support.md).
  6388. -or-
  6389. A
  6390. <see cref="P:Microsoft.Data.SqlClient.SqlParameter.SqlDbType" />
  6391. other than **Char**, **NChar**, **NVarChar**, **VarChar**, or **Xml** was used when
  6392. <see cref="P:Microsoft.Data.SqlClient.SqlParameter.Value" />
  6393. was set to
  6394. <see cref="T:System.IO.TextReader" />
  6395. .
  6396. -or-
  6397. A
  6398. <see cref="P:Microsoft.Data.SqlClient.SqlParameter.SqlDbType" />
  6399. other than **Xml** was used when
  6400. <see cref="P:Microsoft.Data.SqlClient.SqlParameter.Value" />
  6401. was set to
  6402. <see cref="T:System.Xml.XmlReader" />
  6403. .
  6404. </exception><exception cref="T:System.ArgumentException">
  6405. An invalid
  6406. <see cref="T:System.Data.CommandBehavior" />
  6407. value.
  6408. </exception><exception cref="T:System.InvalidOperationException">
  6409. Calling
  6410. <see cref="M:Microsoft.Data.SqlClient.SqlCommand.ExecuteReaderAsync(System.Data.CommandBehavior,System.Threading.CancellationToken)" />
  6411. more than once for the same instance before task completion.
  6412. -or-
  6413. The
  6414. <see cref="T:Microsoft.Data.SqlClient.SqlConnection" />
  6415. closed or dropped during a streaming operation. For more information about streaming, see [SqlClient Streaming Support](~/docs/framework/data/adonet/sqlclient-streaming-support.md).
  6416. -or-
  6417. <see langword="Context Connection=true" />
  6418. is specified in the connection string.
  6419. </exception><exception cref="T:Microsoft.Data.SqlClient.SqlException">
  6420. SQL Server returned an error while executing the command text.
  6421. -or-
  6422. A timeout occurred during a streaming operation. For more information about streaming, see [SqlClient Streaming Support](~/docs/framework/data/adonet/sqlclient-streaming-support.md).
  6423. </exception><exception cref="T:System.IO.IOException">
  6424. An error occurred in a
  6425. <see cref="T:System.IO.Stream" />
  6426. ,
  6427. <see cref="T:System.Xml.XmlReader" />
  6428. or
  6429. <see cref="T:System.IO.TextReader" />
  6430. object during a streaming operation. For more information about streaming, see [SqlClient Streaming Support](~/docs/framework/data/adonet/sqlclient-streaming-support.md).
  6431. </exception><exception cref="T:System.ObjectDisposedException">
  6432. The
  6433. <see cref="T:System.IO.Stream" />
  6434. ,
  6435. <see cref="T:System.Xml.XmlReader" />
  6436. or
  6437. <see cref="T:System.IO.TextReader" />
  6438. object was closed during a streaming operation. For more information about streaming, see [SqlClient Streaming Support](~/docs/framework/data/adonet/sqlclient-streaming-support.md).
  6439. </exception>
  6440. </member>
  6441. <member name="M:Microsoft.Data.SqlClient.SqlCommand.ExecuteXmlReaderAsync">
  6442. <summary>
  6443. An asynchronous version of
  6444. <see cref="M:Microsoft.Data.SqlClient.SqlCommand.ExecuteXmlReader" />
  6445. , which sends the
  6446. <see cref="P:Microsoft.Data.SqlClient.SqlCommand.CommandText" />
  6447. to the
  6448. <see cref="P:Microsoft.Data.SqlClient.SqlCommand.Connection" />
  6449. and builds an
  6450. <see cref="T:System.Xml.XmlReader" />
  6451. object.
  6452. Exceptions will be reported via the returned Task object.
  6453. </summary><returns>
  6454. A task representing the asynchronous operation.
  6455. </returns><remarks>
  6456. <format type="text/markdown"><![CDATA[
  6457. ## Remarks
  6458. The **XmlReader** returned by this method does not support asynchronous operations.
  6459. For more information about asynchronous programming in the .NET Framework Data Provider for SQL Server, see [Asynchronous Programming](~/docs/framework/data/adonet/asynchronous-programming.md).
  6460. ]]></format>
  6461. </remarks><exception cref="T:System.InvalidCastException">
  6462. A
  6463. <see cref="P:Microsoft.Data.SqlClient.SqlParameter.SqlDbType" />
  6464. other than **Binary** or **VarBinary** was used when
  6465. <see cref="P:Microsoft.Data.SqlClient.SqlParameter.Value" />
  6466. was set to
  6467. <see cref="T:System.IO.Stream" />
  6468. . For more information about streaming, see [SqlClient Streaming Support](~/docs/framework/data/adonet/sqlclient-streaming-support.md).
  6469. -or-
  6470. A
  6471. <see cref="P:Microsoft.Data.SqlClient.SqlParameter.SqlDbType" />
  6472. other than **Char**, **NChar**, **NVarChar**, **VarChar**, or **Xml** was used when
  6473. <see cref="P:Microsoft.Data.SqlClient.SqlParameter.Value" />
  6474. was set to
  6475. <see cref="T:System.IO.TextReader" />
  6476. .
  6477. -or-
  6478. A
  6479. <see cref="P:Microsoft.Data.SqlClient.SqlParameter.SqlDbType" />
  6480. other than **Xml** was used when
  6481. <see cref="P:Microsoft.Data.SqlClient.SqlParameter.Value" />
  6482. was set to
  6483. <see cref="T:System.Xml.XmlReader" />
  6484. .
  6485. </exception><exception cref="T:System.InvalidOperationException">
  6486. Calling
  6487. <see cref="M:Microsoft.Data.SqlClient.SqlCommand.ExecuteScalarAsync(System.Threading.CancellationToken)" />
  6488. more than once for the same instance before task completion.
  6489. -or-
  6490. The
  6491. <see cref="T:Microsoft.Data.SqlClient.SqlConnection" />
  6492. closed or dropped during a streaming operation. For more information about streaming, see [SqlClient Streaming Support](~/docs/framework/data/adonet/sqlclient-streaming-support.md).
  6493. -or-
  6494. <see langword="Context Connection=true" />
  6495. is specified in the connection string.
  6496. </exception><exception cref="T:Microsoft.Data.SqlClient.SqlException">
  6497. SQL Server returned an error while executing the command text.
  6498. -or-
  6499. A timeout occurred during a streaming operation. For more information about streaming, see [SqlClient Streaming Support](~/docs/framework/data/adonet/sqlclient-streaming-support.md).
  6500. </exception><exception cref="T:System.IO.IOException">
  6501. An error occurred in a
  6502. <see cref="T:System.IO.Stream" />
  6503. ,
  6504. <see cref="T:System.Xml.XmlReader" />
  6505. or
  6506. <see cref="T:System.IO.TextReader" />
  6507. object during a streaming operation. For more information about streaming, see [SqlClient Streaming Support](~/docs/framework/data/adonet/sqlclient-streaming-support.md).
  6508. </exception><exception cref="T:System.ObjectDisposedException">
  6509. The
  6510. <see cref="T:System.IO.Stream" />
  6511. ,
  6512. <see cref="T:System.Xml.XmlReader" />
  6513. or
  6514. <see cref="T:System.IO.TextReader" />
  6515. object was closed during a streaming operation. For more information about streaming, see [SqlClient Streaming Support](~/docs/framework/data/adonet/sqlclient-streaming-support.md).
  6516. </exception>
  6517. </member>
  6518. <member name="M:Microsoft.Data.SqlClient.SqlCommand.ExecuteXmlReaderAsync(System.Threading.CancellationToken)">
  6519. <param name="cancellationToken">
  6520. The cancellation instruction.
  6521. </param><summary>
  6522. An asynchronous version of
  6523. <see cref="M:Microsoft.Data.SqlClient.SqlCommand.ExecuteXmlReader" />
  6524. , which sends the
  6525. <see cref="P:Microsoft.Data.SqlClient.SqlCommand.CommandText" />
  6526. to the
  6527. <see cref="P:Microsoft.Data.SqlClient.SqlCommand.Connection" />
  6528. and builds an
  6529. <see cref="T:System.Xml.XmlReader" />
  6530. object.
  6531. The cancellation token can be used to request that the operation be abandoned before the command timeout elapses. Exceptions will be reported via the returned Task object.
  6532. </summary><returns>
  6533. A task representing the asynchronous operation.
  6534. </returns><remarks>
  6535. <format type="text/markdown"><![CDATA[
  6536. ## Remarks
  6537. The **XmlReader** returned by this method does not support asynchronous operations.
  6538. For more information about asynchronous programming in the .NET Framework Data Provider for SQL Server, see [Asynchronous Programming](~/docs/framework/data/adonet/asynchronous-programming.md).
  6539. ]]></format>
  6540. </remarks><exception cref="T:System.InvalidCastException">
  6541. A
  6542. <see cref="P:Microsoft.Data.SqlClient.SqlParameter.SqlDbType" />
  6543. other than **Binary** or **VarBinary** was used when
  6544. <see cref="P:Microsoft.Data.SqlClient.SqlParameter.Value" />
  6545. was set to
  6546. <see cref="T:System.IO.Stream" />
  6547. . For more information about streaming, see [SqlClient Streaming Support](~/docs/framework/data/adonet/sqlclient-streaming-support.md).
  6548. -or-
  6549. A
  6550. <see cref="P:Microsoft.Data.SqlClient.SqlParameter.SqlDbType" />
  6551. other than **Char**, **NChar**, **NVarChar**, **VarChar**, or **Xml** was used when
  6552. <see cref="P:Microsoft.Data.SqlClient.SqlParameter.Value" />
  6553. was set to
  6554. <see cref="T:System.IO.TextReader" />
  6555. .
  6556. -or-
  6557. A
  6558. <see cref="P:Microsoft.Data.SqlClient.SqlParameter.SqlDbType" />
  6559. other than **Xml** was used when
  6560. <see cref="P:Microsoft.Data.SqlClient.SqlParameter.Value" />
  6561. was set to
  6562. <see cref="T:System.Xml.XmlReader" />
  6563. .
  6564. </exception><exception cref="T:System.InvalidOperationException">
  6565. Calling
  6566. <see cref="M:Microsoft.Data.SqlClient.SqlCommand.ExecuteScalarAsync(System.Threading.CancellationToken)" />
  6567. more than once for the same instance before task completion.
  6568. -or-
  6569. The
  6570. <see cref="T:Microsoft.Data.SqlClient.SqlConnection" />
  6571. closed or dropped during a streaming operation. For more information about streaming, see [SqlClient Streaming Support](~/docs/framework/data/adonet/sqlclient-streaming-support.md).
  6572. -or-
  6573. <see langword="Context Connection=true" />
  6574. is specified in the connection string.
  6575. </exception><exception cref="T:Microsoft.Data.SqlClient.SqlException">
  6576. SQL Server returned an error while executing the command text.
  6577. -or-
  6578. A timeout occurred during a streaming operation. For more information about streaming, see [SqlClient Streaming Support](~/docs/framework/data/adonet/sqlclient-streaming-support.md).
  6579. </exception><exception cref="T:System.IO.IOException">
  6580. An error occurred in a
  6581. <see cref="T:System.IO.Stream" />
  6582. ,
  6583. <see cref="T:System.Xml.XmlReader" />
  6584. or
  6585. <see cref="T:System.IO.TextReader" />
  6586. object during a streaming operation. For more information about streaming, see [SqlClient Streaming Support](~/docs/framework/data/adonet/sqlclient-streaming-support.md).
  6587. </exception><exception cref="T:System.ObjectDisposedException">
  6588. The
  6589. <see cref="T:System.IO.Stream" />
  6590. ,
  6591. <see cref="T:System.Xml.XmlReader" />
  6592. or
  6593. <see cref="T:System.IO.TextReader" />
  6594. object was closed during a streaming operation. For more information about streaming, see [SqlClient Streaming Support](~/docs/framework/data/adonet/sqlclient-streaming-support.md).
  6595. </exception>
  6596. </member>
  6597. <member name="M:Microsoft.Data.SqlClient.SqlCommand.ResetEncryptionState">
  6598. <summary>
  6599. Resets the encryption related state of the command object and each of the parameters.
  6600. BatchRPC doesn't need special handling to cleanup the state of each RPC object and its parameters since a new RPC object and
  6601. parameters are generated on every execution.
  6602. </summary>
  6603. </member>
  6604. <member name="M:Microsoft.Data.SqlClient.SqlCommand.PrepareTransparentEncryptionFinallyBlock(System.Boolean,System.Boolean,System.Boolean,System.Boolean,System.Collections.ObjectModel.ReadOnlyDictionary{Microsoft.Data.SqlClient._SqlRPC,Microsoft.Data.SqlClient._SqlRPC},Microsoft.Data.SqlClient.SqlDataReader)">
  6605. <summary>
  6606. Steps to be executed in the Prepare Transparent Encryption finally block.
  6607. </summary>
  6608. </member>
  6609. <member name="M:Microsoft.Data.SqlClient.SqlCommand.PrepareForTransparentEncryption(System.Data.CommandBehavior,System.Boolean,System.Boolean,System.Int32,System.Threading.Tasks.TaskCompletionSource{System.Object},System.Threading.Tasks.Task@,System.Boolean,System.Boolean@,System.Boolean)">
  6610. <summary>
  6611. Executes the reader after checking to see if we need to encrypt input parameters and then encrypting it if required.
  6612. TryFetchInputParameterEncryptionInfo() -> ReadDescribeEncryptionParameterResults()-> EncryptInputParameters() ->RunExecuteReaderTds()
  6613. </summary>
  6614. <param name="cmdBehavior"></param>
  6615. <param name="returnStream"></param>
  6616. <param name="isAsync"></param>
  6617. <param name="timeout"></param>
  6618. <param name="completion"></param>
  6619. <param name="returnTask"></param>
  6620. <param name="asyncWrite"></param>
  6621. <param name="usedCache"></param>
  6622. <param name="inRetry"></param>
  6623. <returns></returns>
  6624. </member>
  6625. <member name="M:Microsoft.Data.SqlClient.SqlCommand.TryFetchInputParameterEncryptionInfo(System.Int32,System.Boolean,System.Boolean,System.Boolean@,System.Threading.Tasks.Task@,System.Collections.ObjectModel.ReadOnlyDictionary{Microsoft.Data.SqlClient._SqlRPC,Microsoft.Data.SqlClient._SqlRPC}@)">
  6626. <summary>
  6627. Executes an RPC to fetch param encryption info from SQL Engine. If this method is not done writing
  6628. the request to wire, it'll set the "task" parameter which can be used to create continuations.
  6629. </summary>
  6630. <param name="timeout"></param>
  6631. <param name="isAsync"></param>
  6632. <param name="asyncWrite"></param>
  6633. <param name="inputParameterEncryptionNeeded"></param>
  6634. <param name="task"></param>
  6635. <param name="describeParameterEncryptionRpcOriginalRpcMap"></param>
  6636. <returns></returns>
  6637. </member>
  6638. <member name="M:Microsoft.Data.SqlClient.SqlCommand.GetSqlParameterWithQueryText(System.String)">
  6639. <summary>
  6640. Constructs a SqlParameter with a given string value
  6641. </summary>
  6642. <param name="queryText"></param>
  6643. <returns></returns>
  6644. </member>
  6645. <member name="M:Microsoft.Data.SqlClient.SqlCommand.ReadDescribeEncryptionParameterResults(Microsoft.Data.SqlClient.SqlDataReader,System.Collections.ObjectModel.ReadOnlyDictionary{Microsoft.Data.SqlClient._SqlRPC,Microsoft.Data.SqlClient._SqlRPC})">
  6646. <summary>
  6647. Read the output of sp_describe_parameter_encryption
  6648. </summary>
  6649. <param name="ds">Resultset from calling to sp_describe_parameter_encryption</param>
  6650. <param name="describeParameterEncryptionRpcOriginalRpcMap"> Readonly dictionary with the map of parameter encryption rpc requests with the corresponding original rpc requests.</param>
  6651. </member>
  6652. <member name="M:Microsoft.Data.SqlClient.SqlCommand.OnDoneDescribeParameterEncryptionProc(Microsoft.Data.SqlClient.TdsParserStateObject)">
  6653. <summary>
  6654. IMPORTANT NOTE: This is created as a copy of OnDoneProc below for Transparent Column Encryption improvement
  6655. as there is not much time, to address regressions. Will revisit removing the duplication, when we have time again.
  6656. </summary>
  6657. </member>
  6658. <member name="M:Microsoft.Data.SqlClient.SqlCommand.OnDoneProc">
  6659. <summary>
  6660. IMPORTANT NOTE: There is a copy of this function above in OnDoneDescribeParameterEncryptionProc.
  6661. Please consider the changes being done in this function for the above function as well.
  6662. </summary>
  6663. </member>
  6664. <member name="M:Microsoft.Data.SqlClient.SqlCommand.BuildStoredProcedureStatementForColumnEncryption(System.String,Microsoft.Data.SqlClient.SqlParameter[])">
  6665. <summary>
  6666. This function constructs a string parameter containing the exec statement in the following format
  6667. N'EXEC sp_name @param1=@param1, @param1=@param2, ..., @paramN=@paramN'
  6668. TODO: Need to handle return values.
  6669. </summary>
  6670. <param name="storedProcedureName">Stored procedure name</param>
  6671. <param name="parameters">SqlParameter list</param>
  6672. <returns>A string SqlParameter containing the constructed sql statement value</returns>
  6673. </member>
  6674. <member name="P:Microsoft.Data.SqlClient.SqlCommand.RowsAffectedByDescribeParameterEncryption">
  6675. <summary>
  6676. Get or add to the number of records affected by SpDescribeParameterEncryption.
  6677. The below line is used only for debug asserts and not exposed publicly or impacts functionality otherwise.
  6678. </summary>
  6679. </member>
  6680. <member name="M:Microsoft.Data.SqlClient.SqlCommand.ClearDescribeParameterEncryptionRequests">
  6681. <summary>
  6682. Clear the state in sqlcommand related to describe parameter encryption RPC requests.
  6683. </summary>
  6684. </member>
  6685. <member name="M:Microsoft.Data.SqlClient.SqlCommand.SetColumnEncryptionSetting(Microsoft.Data.SqlClient.SqlCommandColumnEncryptionSetting)">
  6686. <summary>
  6687. Set the column encryption setting to the new one.
  6688. Do not allow conflicting column encryption settings.
  6689. </summary>
  6690. </member>
  6691. <member name="M:Microsoft.Data.SqlClient.SqlCommand.Clone">
  6692. <summary>
  6693. Creates a new
  6694. <see cref="T:Microsoft.Data.SqlClient.SqlCommand" />
  6695. object that is a copy of the current instance.
  6696. </summary><returns>
  6697. A new
  6698. <see cref="T:Microsoft.Data.SqlClient.SqlCommand" />
  6699. object that is a copy of this instance.
  6700. </returns><remarks>
  6701. To be added.
  6702. </remarks>
  6703. </member>
  6704. <member name="T:Microsoft.Data.SqlClient.SqlCommandBuilder">
  6705. <summary>
  6706. Automatically generates single-table commands that are used to reconcile changes made to a
  6707. <see cref="T:System.Data.DataSet" />
  6708. with the associated SQL Server database. This class cannot be inherited.
  6709. </summary><remarks>
  6710. <format type="text/markdown"><![CDATA[
  6711. ## Remarks
  6712. The <xref:Microsoft.Data.SqlClient.SqlDataAdapter> does not automatically generate the Transact-SQL statements required to reconcile changes made to a <xref:System.Data.DataSet> with the associated instance of SQL Server. However, you can create a <xref:Microsoft.Data.SqlClient.SqlCommandBuilder> object to automatically generate Transact-SQL statements for single-table updates if you set the <xref:Microsoft.Data.SqlClient.SqlDataAdapter.SelectCommand%2A> property of the <xref:Microsoft.Data.SqlClient.SqlDataAdapter>. Then, any additional Transact-SQL statements that you do not set are generated by the <xref:Microsoft.Data.SqlClient.SqlCommandBuilder>.
  6713. The <xref:Microsoft.Data.SqlClient.SqlCommandBuilder> registers itself as a listener for <xref:Microsoft.Data.SqlClient.SqlDataAdapter.RowUpdating> events whenever you set the <xref:Microsoft.Data.SqlClient.SqlCommandBuilder.DataAdapter%2A> property. You can only associate one <xref:Microsoft.Data.SqlClient.SqlDataAdapter> or <xref:Microsoft.Data.SqlClient.SqlCommandBuilder> object with each other at one time.
  6714. To generate INSERT, UPDATE, or DELETE statements, the <xref:Microsoft.Data.SqlClient.SqlCommandBuilder> uses the <xref:Microsoft.Data.SqlClient.SqlDataAdapter.SelectCommand%2A> property to retrieve a required set of metadata automatically. If you change the <xref:Microsoft.Data.SqlClient.SqlDataAdapter.SelectCommand%2A> after the metadata has been retrieved, such as after the first update, you should call the <xref:System.Data.Common.DbCommandBuilder.RefreshSchema%2A> method to update the metadata.
  6715. The `SelectCommand` must also return at least one primary key or unique column. If none are present, an **InvalidOperation** exception is generated, and the commands are not generated.
  6716. The <xref:Microsoft.Data.SqlClient.SqlCommandBuilder> also uses the <xref:Microsoft.Data.SqlClient.SqlCommand.Connection%2A>, <xref:Microsoft.Data.SqlClient.SqlCommand.CommandTimeout%2A>, and <xref:Microsoft.Data.SqlClient.SqlCommand.Transaction%2A> properties referenced by the <xref:Microsoft.Data.SqlClient.SqlDataAdapter.SelectCommand%2A>. The user should call <xref:System.Data.Common.DbCommandBuilder.RefreshSchema%2A> if one or more of these properties are modified, or if the <xref:Microsoft.Data.SqlClient.SqlDataAdapter.SelectCommand%2A> itself is replaced. Otherwise the <xref:Microsoft.Data.SqlClient.SqlDataAdapter.InsertCommand%2A>, <xref:Microsoft.Data.SqlClient.SqlDataAdapter.UpdateCommand%2A>, and <xref:Microsoft.Data.SqlClient.SqlDataAdapter.DeleteCommand%2A> properties retain their previous values.
  6717. If you call <xref:System.ComponentModel.Component.Dispose%2A>, the <xref:Microsoft.Data.SqlClient.SqlCommandBuilder> is disassociated from the <xref:Microsoft.Data.SqlClient.SqlDataAdapter>, and the generated commands are no longer used.
  6718. ## Examples
  6719. The following example uses the <xref:Microsoft.Data.SqlClient.SqlCommand>, along <xref:Microsoft.Data.SqlClient.SqlDataAdapter> and <xref:Microsoft.Data.SqlClient.SqlConnection>, to select rows from a data source. The example is passed a connection string, a query string that is a Transact-SQL SELECT statement, and a string that is the name of the database table. The example then creates a <xref:Microsoft.Data.SqlClient.SqlCommandBuilder>.
  6720. [!code-csharp[SqlCommandBuilder#1](~/../sqlclient/doc/samples/SqlCommandBuilder.cs#1)]
  6721. ]]></format>
  6722. </remarks>
  6723. </member>
  6724. <member name="M:Microsoft.Data.SqlClient.SqlCommandBuilder.#ctor">
  6725. <summary>
  6726. Initializes a new instance of the
  6727. <see cref="T:Microsoft.Data.SqlClient.SqlCommandBuilder" />
  6728. class.
  6729. </summary><remarks>
  6730. To be added.
  6731. </remarks>
  6732. </member>
  6733. <member name="M:Microsoft.Data.SqlClient.SqlCommandBuilder.#ctor(Microsoft.Data.SqlClient.SqlDataAdapter)">
  6734. <param name="adapter">
  6735. The name of the
  6736. <see cref="T:Microsoft.Data.SqlClient.SqlDataAdapter" />
  6737. .
  6738. </param><summary>
  6739. Initializes a new instance of the
  6740. <see cref="T:Microsoft.Data.SqlClient.SqlCommandBuilder" />
  6741. class with the associated
  6742. <see cref="T:Microsoft.Data.SqlClient.SqlDataAdapter" />
  6743. object.
  6744. </summary><remarks>
  6745. <format type="text/markdown"><![CDATA[
  6746. ## Remarks
  6747. The <xref:Microsoft.Data.SqlClient.SqlCommandBuilder> registers itself as a listener for <xref:Microsoft.Data.SqlClient.SqlDataAdapter.RowUpdating> events that are generated by the <xref:Microsoft.Data.SqlClient.SqlDataAdapter> specified in this property.
  6748. When you create a new instance of <xref:Microsoft.Data.SqlClient.SqlCommandBuilder>, any existing <xref:Microsoft.Data.SqlClient.SqlCommandBuilder> associated with this <xref:Microsoft.Data.SqlClient.SqlDataAdapter> is released.
  6749. ]]></format>
  6750. </remarks>
  6751. </member>
  6752. <member name="P:Microsoft.Data.SqlClient.SqlCommandBuilder.CatalogLocation">
  6753. <summary>
  6754. Sets or gets the
  6755. <see cref="T:System.Data.Common.CatalogLocation" />
  6756. for an instance of the
  6757. <see cref="T:Microsoft.Data.SqlClient.SqlCommandBuilder" />
  6758. class.
  6759. </summary><value>
  6760. A
  6761. <see cref="T:System.Data.Common.CatalogLocation" />
  6762. object.
  6763. </value><remarks>
  6764. To be added.
  6765. </remarks>
  6766. <devnote>SqlServer only supports CatalogLocation.Start</devnote>
  6767. </member>
  6768. <member name="P:Microsoft.Data.SqlClient.SqlCommandBuilder.CatalogSeparator">
  6769. <summary>
  6770. Sets or gets a string used as the catalog separator for an instance of the
  6771. <see cref="T:Microsoft.Data.SqlClient.SqlCommandBuilder" />
  6772. class.
  6773. </summary><value>
  6774. A string that indicates the catalog separator for use with an instance of the
  6775. <see cref="T:Microsoft.Data.SqlClient.SqlCommandBuilder" />
  6776. class.
  6777. </value><remarks>
  6778. To be added.
  6779. </remarks>
  6780. <devnote>SqlServer only supports '.'</devnote>
  6781. </member>
  6782. <member name="P:Microsoft.Data.SqlClient.SqlCommandBuilder.DataAdapter">
  6783. <summary>Gets or sets a <see cref="T:Microsoft.Data.SqlClient.SqlDataAdapter" /> object for which Transact-SQL statements are automatically generated.</summary><value>A <see cref="T:Microsoft.Data.SqlClient.SqlDataAdapter" /> object.</value><remarks>
  6784. <format type="text/markdown"><![CDATA[
  6785. ## Remarks
  6786. The <xref:Microsoft.Data.SqlClient.SqlCommandBuilder> registers itself as a listener for <xref:Microsoft.Data.SqlClient.SqlDataAdapter.RowUpdating> events that are generated by the <xref:Microsoft.Data.SqlClient.SqlDataAdapter> specified in this property.
  6787. When you create a new instance of <xref:Microsoft.Data.SqlClient.SqlCommandBuilder>, any existing <xref:Microsoft.Data.SqlClient.SqlCommandBuilder> associated with this <xref:Microsoft.Data.SqlClient.SqlDataAdapter> is released.
  6788. ]]></format>
  6789. </remarks>
  6790. </member>
  6791. <member name="P:Microsoft.Data.SqlClient.SqlCommandBuilder.QuotePrefix">
  6792. <summary>Gets or sets the starting character or characters to use when specifying SQL Server database objects, such as tables or columns, whose names contain characters such as spaces or reserved tokens.</summary><value>The starting character or characters to use. The default is an empty string.</value><remarks>
  6793. <format type="text/markdown"><![CDATA[
  6794. ## Remarks
  6795. > [!NOTE]
  6796. > Although you cannot change the <xref:Microsoft.Data.SqlClient.SqlCommandBuilder.QuotePrefix%2A> or <xref:Microsoft.Data.SqlClient.SqlCommandBuilder.QuoteSuffix%2A> properties after an insert, update, or delete command has been generated, you can change their settings after calling the `Update` method of a DataAdapter.
  6797. ]]></format>
  6798. </remarks><exception cref="T:System.InvalidOperationException">This property cannot be changed after an INSERT, UPDATE, or DELETE command has been generated.</exception>
  6799. <devnote>SqlServer only supports '.'</devnote>
  6800. </member>
  6801. <member name="P:Microsoft.Data.SqlClient.SqlCommandBuilder.QuoteSuffix">
  6802. <summary>Gets or sets the ending character or characters to use when specifying SQL Server database objects, such as tables or columns, whose names contain characters such as spaces or reserved tokens.</summary><value>The ending character or characters to use. The default is an empty string.</value><remarks>
  6803. <format type="text/markdown"><![CDATA[
  6804. ## Remarks
  6805. > [!NOTE]
  6806. > Although you cannot change the <xref:Microsoft.Data.SqlClient.SqlCommandBuilder.QuotePrefix%2A> or <xref:Microsoft.Data.SqlClient.SqlCommandBuilder.QuoteSuffix%2A> properties after an insert, update, or delete operation has been generated, you can change their settings after calling the `Update` method of a DataAdapter.
  6807. ]]></format>
  6808. </remarks><exception cref="T:System.InvalidOperationException">This property cannot be changed after an insert, update, or delete command has been generated.</exception>
  6809. </member>
  6810. <member name="P:Microsoft.Data.SqlClient.SqlCommandBuilder.SchemaSeparator">
  6811. <summary>Gets or sets the character to be used for the separator between the schema identifier and any other identifiers.</summary><value>The character to be used as the schema separator.</value><remarks>
  6812. <format type="text/markdown"><![CDATA[
  6813. ## Remarks
  6814. Generally, database servers indicate the schema for a identifier by separating the schema name from the identifier with some character. For example, SQL Server uses a period, creating complete identifiers such as Person.CustomerName, where "Person" is the schema name and "CustomerName" is the identifier. Setting this property lets developers modify this behavior.
  6815. ]]></format>
  6816. </remarks>
  6817. </member>
  6818. <member name="M:Microsoft.Data.SqlClient.SqlCommandBuilder.GetInsertCommand">
  6819. <summary>Gets the automatically generated <see cref="T:Microsoft.Data.SqlClient.SqlCommand" /> object required to perform insertions on the database.</summary><returns>The automatically generated <see cref="T:Microsoft.Data.SqlClient.SqlCommand" /> object required to perform insertions.</returns><remarks>
  6820. <format type="text/markdown"><![CDATA[
  6821. ## Remarks
  6822. An application can use the <xref:Microsoft.Data.SqlClient.SqlCommandBuilder.GetInsertCommand%2A> method for informational or troubleshooting purposes because it returns the <xref:Microsoft.Data.SqlClient.SqlCommand> object to be executed.
  6823. You can also use <xref:Microsoft.Data.SqlClient.SqlCommandBuilder.GetInsertCommand%2A> as the basis of a modified command. For example, you might call <xref:Microsoft.Data.SqlClient.SqlCommandBuilder.GetInsertCommand%2A> and modify the <xref:Microsoft.Data.SqlClient.SqlCommand.CommandTimeout%2A> value, and then explicitly set that on the <xref:Microsoft.Data.SqlClient.SqlDataAdapter>.
  6824. After the Transact-SQL statement is first generated, the application must explicitly call <xref:System.Data.Common.DbCommandBuilder.RefreshSchema%2A> if it changes the statement in any way. Otherwise, the <xref:Microsoft.Data.SqlClient.SqlCommandBuilder.GetInsertCommand%2A> will still be using information from the previous statement, which might not be correct. The Transact-SQL statements are first generated when the application calls either <xref:System.Data.Common.DbDataAdapter.Update%2A> or <xref:Microsoft.Data.SqlClient.SqlCommandBuilder.GetInsertCommand%2A>.
  6825. For more information, see [Generating Commands with CommandBuilders](~/docs/framework/data/adonet/generating-commands-with-commandbuilders.md).
  6826. ]]></format>
  6827. </remarks>
  6828. </member>
  6829. <member name="M:Microsoft.Data.SqlClient.SqlCommandBuilder.GetInsertCommand(System.Boolean)">
  6830. <param name="useColumnsForParameterNames">If <see langword="true" />, generate parameter names matching column names if possible. If <see langword="false" />, generate <c>@p1</c>, <c>@p2</c>, and so on.</param><summary>Gets the automatically generated <see cref="T:Microsoft.Data.SqlClient.SqlCommand" /> object that is required to perform insertions on the database.</summary><returns>The automatically generated <see cref="T:Microsoft.Data.SqlClient.SqlCommand" /> object that is required to perform insertions.</returns><remarks>
  6831. <format type="text/markdown"><![CDATA[
  6832. ## Remarks
  6833. An application can use the <xref:Microsoft.Data.SqlClient.SqlCommandBuilder.GetInsertCommand%2A> method for informational or troubleshooting purposes because it returns the <xref:Microsoft.Data.SqlClient.SqlCommand> object to be executed.
  6834. You can also use <xref:Microsoft.Data.SqlClient.SqlCommandBuilder.GetInsertCommand%2A> as the basis of a modified command. For example, you might call <xref:Microsoft.Data.SqlClient.SqlCommandBuilder.GetInsertCommand%2A> and modify the <xref:Microsoft.Data.SqlClient.SqlCommand.CommandTimeout%2A> value, and then explicitly set that on the <xref:Microsoft.Data.SqlClient.SqlDataAdapter>.
  6835. After the Transact-SQL statement is first generated, the application must explicitly call <xref:System.Data.Common.DbCommandBuilder.RefreshSchema%2A> if it changes the statement in any way. Otherwise, the <xref:Microsoft.Data.SqlClient.SqlCommandBuilder.GetInsertCommand%2A> will still be using information from the previous statement, which might not be correct. The Transact-SQL statements are first generated when the application calls either <xref:System.Data.Common.DbDataAdapter.Update%2A> or <xref:Microsoft.Data.SqlClient.SqlCommandBuilder.GetInsertCommand%2A>.
  6836. The default behavior, when generating parameter names, is to use `@p1`, `@p2`, and so on for the various parameters. Passing `true` for the `useColumnsForParameterNames` parameter lets you force the <xref:System.Data.OleDb.OleDbCommandBuilder> to generate parameters based on the column names instead. This succeeds only if the following conditions are met:
  6837. - The <xref:System.Data.Common.DbMetaDataColumnNames.ParameterNameMaxLength> returned from the **GetSchema** method call and found in the <xref:System.Data.Common.DbMetaDataCollectionNames.DataSourceInformation> collection has been specified and its length is equal to or greater than the generated parameter name.
  6838. - The generated parameter name meets the criteria specified in the <xref:System.Data.Common.DbMetaDataColumnNames.ParameterNamePattern> returned from the **GetSchema** method call and found in the <xref:System.Data.Common.DbMetaDataCollectionNames.DataSourceInformation> collection regular expression.
  6839. - A <xref:System.Data.Common.DbMetaDataColumnNames.ParameterMarkerFormat> returned from the **GetSchema** method call and found in the <xref:System.Data.Common.DbMetaDataCollectionNames.DataSourceInformation> collection is specified.
  6840. For more information, see [Generating Commands with CommandBuilders](~/docs/framework/data/adonet/generating-commands-with-commandbuilders.md).
  6841. ]]></format>
  6842. </remarks>
  6843. </member>
  6844. <member name="M:Microsoft.Data.SqlClient.SqlCommandBuilder.GetUpdateCommand">
  6845. <summary>Gets the automatically generated <see cref="T:Microsoft.Data.SqlClient.SqlCommand" /> object required to perform updates on the database.</summary><returns>The automatically generated <see cref="T:Microsoft.Data.SqlClient.SqlCommand" /> object that is required to perform updates.</returns><remarks>
  6846. <format type="text/markdown"><![CDATA[
  6847. ## Remarks
  6848. An application can use the <xref:Microsoft.Data.SqlClient.SqlCommandBuilder.GetUpdateCommand%2A> method for informational or troubleshooting purposes because it returns the <xref:Microsoft.Data.SqlClient.SqlCommand> object to be executed.
  6849. You can also use <xref:Microsoft.Data.SqlClient.SqlCommandBuilder.GetUpdateCommand%2A> as the basis of a modified command. For example, you might call <xref:Microsoft.Data.SqlClient.SqlCommandBuilder.GetUpdateCommand%2A> and modify the <xref:Microsoft.Data.SqlClient.SqlCommand.CommandTimeout%2A> value, and then explicitly set that on the <xref:Microsoft.Data.SqlClient.SqlDataAdapter>.
  6850. After the Transact-SQL statement is first generated, the application must explicitly call <xref:System.Data.Common.DbCommandBuilder.RefreshSchema%2A> if it changes the statement in any way. Otherwise, the <xref:Microsoft.Data.SqlClient.SqlCommandBuilder.GetUpdateCommand%2A> will still be using information from the previous statement, which might not be correct. The Transact-SQL statements are first generated when the application calls either <xref:System.Data.Common.DbDataAdapter.Update%2A> or <xref:Microsoft.Data.SqlClient.SqlCommandBuilder.GetUpdateCommand%2A>.
  6851. For more information, see [Generating Commands with CommandBuilders](~/docs/framework/data/adonet/generating-commands-with-commandbuilders.md).
  6852. ]]></format>
  6853. </remarks>
  6854. </member>
  6855. <member name="M:Microsoft.Data.SqlClient.SqlCommandBuilder.GetUpdateCommand(System.Boolean)">
  6856. <param name="useColumnsForParameterNames">If <see langword="true" />, generate parameter names matching column names if possible. If <see langword="false" />, generate <c>@p1</c>, <c>@p2</c>, and so on.</param><summary>Gets the automatically generated <see cref="T:Microsoft.Data.SqlClient.SqlCommand" /> object required to perform updates on the database.</summary><returns>The automatically generated <see cref="T:Microsoft.Data.SqlClient.SqlCommand" /> object required to perform updates.</returns><remarks>
  6857. <format type="text/markdown"><![CDATA[
  6858. ## Remarks
  6859. An application can use the <xref:Microsoft.Data.SqlClient.SqlCommandBuilder.GetUpdateCommand%2A> method for informational or troubleshooting purposes because it returns the <xref:Microsoft.Data.SqlClient.SqlCommand> object to be executed.
  6860. You can also use <xref:Microsoft.Data.SqlClient.SqlCommandBuilder.GetUpdateCommand%2A> as the basis of a modified command. For example, you might call <xref:Microsoft.Data.SqlClient.SqlCommandBuilder.GetUpdateCommand%2A> and modify the <xref:Microsoft.Data.SqlClient.SqlCommand.CommandTimeout%2A> value, and then explicitly set that on the <xref:Microsoft.Data.SqlClient.SqlDataAdapter>.
  6861. After the Transact-SQL statement is first generated, the application must explicitly call <xref:System.Data.Common.DbCommandBuilder.RefreshSchema%2A> if it changes the statement in any way. Otherwise, the <xref:Microsoft.Data.SqlClient.SqlCommandBuilder.GetUpdateCommand%2A> will still be using information from the previous statement, which might not be correct. The Transact-SQL statements are first generated when the application calls either <xref:System.Data.Common.DbDataAdapter.Update%2A> or <xref:Microsoft.Data.SqlClient.SqlCommandBuilder.GetUpdateCommand%2A>.
  6862. The default behavior, when generating parameter names, is to use `@p1`, `@p2`, and so on for the various parameters. Passing `true` for the `useColumnsForParameterNames` parameter lets you force the <xref:System.Data.OleDb.OleDbCommandBuilder> to generate parameters based on the column names instead. This succeeds only if the following conditions are met:
  6863. - The <xref:System.Data.Common.DbMetaDataColumnNames.ParameterNameMaxLength> returned from the **GetSchema** method call and found in the <xref:System.Data.Common.DbMetaDataCollectionNames.DataSourceInformation> collection has been specified and its length is equal to or greater than the generated parameter name.
  6864. - The generated parameter name meets the criteria specified in the <xref:System.Data.Common.DbMetaDataColumnNames.ParameterNamePattern> returned from the **GetSchema** method call and found in the <xref:System.Data.Common.DbMetaDataCollectionNames.DataSourceInformation> collection regular expression.
  6865. - A <xref:System.Data.Common.DbMetaDataColumnNames.ParameterMarkerFormat> returned from the **GetSchema** method call and found in the <xref:System.Data.Common.DbMetaDataCollectionNames.DataSourceInformation> collection is specified.
  6866. For more information, see [Generating Commands with CommandBuilders](~/docs/framework/data/adonet/generating-commands-with-commandbuilders.md).
  6867. ]]></format>
  6868. </remarks>
  6869. </member>
  6870. <member name="M:Microsoft.Data.SqlClient.SqlCommandBuilder.GetDeleteCommand">
  6871. <summary>Gets the automatically generated <see cref="T:Microsoft.Data.SqlClient.SqlCommand" /> object required to perform deletions on the database.</summary><returns>The automatically generated <see cref="T:Microsoft.Data.SqlClient.SqlCommand" /> object required to perform deletions.</returns><remarks>
  6872. <format type="text/markdown"><![CDATA[
  6873. ## Remarks
  6874. An application can use the <xref:Microsoft.Data.SqlClient.SqlCommandBuilder.GetDeleteCommand%2A> method for informational or troubleshooting purposes because it returns the <xref:Microsoft.Data.SqlClient.SqlCommand> object to be executed.
  6875. You can also use <xref:Microsoft.Data.SqlClient.SqlCommandBuilder.GetDeleteCommand%2A> as the basis of a modified command. For example, you might call <xref:Microsoft.Data.SqlClient.SqlCommandBuilder.GetDeleteCommand%2A> and modify the <xref:Microsoft.Data.SqlClient.SqlCommand.CommandTimeout%2A> value, and then explicitly set that on the <xref:Microsoft.Data.SqlClient.SqlDataAdapter>.
  6876. After the SQL statement is first generated, the application must explicitly call <xref:System.Data.Common.DbCommandBuilder.RefreshSchema%2A> if it changes the statement in any way. Otherwise, the <xref:Microsoft.Data.SqlClient.SqlCommandBuilder.GetDeleteCommand%2A> will still be using information from the previous statement, which might not be correct. The SQL statements are first generated when the application calls either <xref:System.Data.Common.DbDataAdapter.Update%2A> or <xref:Microsoft.Data.SqlClient.SqlCommandBuilder.GetDeleteCommand%2A>.
  6877. For more information, see [Generating Commands with CommandBuilders](~/docs/framework/data/adonet/generating-commands-with-commandbuilders.md).
  6878. ]]></format>
  6879. </remarks>
  6880. </member>
  6881. <member name="M:Microsoft.Data.SqlClient.SqlCommandBuilder.GetDeleteCommand(System.Boolean)">
  6882. <param name="useColumnsForParameterNames">If <see langword="true" />, generate parameter names matching column names if possible. If <see langword="false" />, generate <c>@p1</c>, <c>@p2</c>, and so on.</param><summary>Gets the automatically generated <see cref="T:Microsoft.Data.SqlClient.SqlCommand" /> object that is required to perform deletions on the database.</summary><returns>The automatically generated <see cref="T:Microsoft.Data.SqlClient.SqlCommand" /> object that is required to perform deletions.</returns><remarks>
  6883. <format type="text/markdown"><![CDATA[
  6884. ## Remarks
  6885. An application can use the <xref:Microsoft.Data.SqlClient.SqlCommandBuilder.GetDeleteCommand%2A> method for informational or troubleshooting purposes because it returns the <xref:Microsoft.Data.SqlClient.SqlCommand> object to be executed.
  6886. You can also use <xref:Microsoft.Data.SqlClient.SqlCommandBuilder.GetDeleteCommand%2A> as the basis of a modified command. For example, you might call <xref:Microsoft.Data.SqlClient.SqlCommandBuilder.GetDeleteCommand%2A> and modify the <xref:Microsoft.Data.SqlClient.SqlCommand.CommandTimeout%2A> value, and then explicitly set that on the <xref:Microsoft.Data.SqlClient.SqlDataAdapter>.
  6887. After the SQL statement is first generated, the application must explicitly call <xref:System.Data.Common.DbCommandBuilder.RefreshSchema%2A> if it changes the statement in any way. Otherwise, the <xref:Microsoft.Data.SqlClient.SqlCommandBuilder.GetDeleteCommand%2A> will still be using information from the previous statement, which might not be correct. The SQL statements are first generated when the application calls either <xref:System.Data.Common.DbDataAdapter.Update%2A> or <xref:Microsoft.Data.SqlClient.SqlCommandBuilder.GetDeleteCommand%2A>.
  6888. The default behavior, when generating parameter names, is to use `@p1`, `@p2`, and so on for the various parameters. Passing `true` for the `useColumnsForParameterNames` parameter lets you force the <xref:System.Data.OleDb.OleDbCommandBuilder> to generate parameters based on the column names instead. This succeeds only if the following conditions are met:
  6889. - The <xref:System.Data.Common.DbMetaDataColumnNames.ParameterNameMaxLength> returned from the **GetSchema** method call and found in the <xref:System.Data.Common.DbMetaDataCollectionNames.DataSourceInformation> collection has been specified and its length is equal to or greater than the generated parameter name.
  6890. - The generated parameter name meets the criteria specified in the <xref:System.Data.Common.DbMetaDataColumnNames.ParameterNamePattern> returned from the **GetSchema** method call and found in the <xref:System.Data.Common.DbMetaDataCollectionNames.DataSourceInformation> collection regular expression.
  6891. - A <xref:System.Data.Common.DbMetaDataColumnNames.ParameterMarkerFormat> returned from the **GetSchema** method call and found in the <xref:System.Data.Common.DbMetaDataCollectionNames.DataSourceInformation> collection is specified.
  6892. For more information, see [Generating Commands with CommandBuilders](~/docs/framework/data/adonet/generating-commands-with-commandbuilders.md).
  6893. ]]></format>
  6894. </remarks>
  6895. </member>
  6896. <member name="M:Microsoft.Data.SqlClient.SqlCommandBuilder.ApplyParameterInfo(System.Data.Common.DbParameter,System.Data.DataRow,System.Data.StatementType,System.Boolean)">
  6897. <param name="parameter">
  6898. To be added.
  6899. </param><param name="datarow">
  6900. To be added.
  6901. </param><param name="statementType">
  6902. To be added.
  6903. </param><param name="whereClause">
  6904. To be added.
  6905. </param><summary>
  6906. To be added.
  6907. </summary><remarks>
  6908. To be added.
  6909. </remarks>
  6910. </member>
  6911. <member name="M:Microsoft.Data.SqlClient.SqlCommandBuilder.GetParameterName(System.Int32)">
  6912. <param name="parameterOrdinal">To be added.</param><summary>To be added.</summary><returns>To be added.</returns><remarks>To be added.</remarks>
  6913. </member>
  6914. <member name="M:Microsoft.Data.SqlClient.SqlCommandBuilder.GetParameterName(System.String)">
  6915. <param name="parameterName">To be added.</param><summary>To be added.</summary><returns>To be added.</returns><remarks>To be added.</remarks>
  6916. </member>
  6917. <member name="M:Microsoft.Data.SqlClient.SqlCommandBuilder.GetParameterPlaceholder(System.Int32)">
  6918. <param name="parameterOrdinal">To be added.</param><summary>To be added.</summary><returns>To be added.</returns><remarks>To be added.</remarks>
  6919. </member>
  6920. <member name="M:Microsoft.Data.SqlClient.SqlCommandBuilder.DeriveParameters(Microsoft.Data.SqlClient.SqlCommand)">
  6921. <param name="command">The <see cref="T:Microsoft.Data.SqlClient.SqlCommand" /> referencing the stored procedure from which the parameter information is to be derived. The derived parameters are added to the <see cref="P:Microsoft.Data.SqlClient.SqlCommand.Parameters" /> collection of the <see cref="T:Microsoft.Data.SqlClient.SqlCommand" />.</param><summary>Retrieves parameter information from the stored procedure specified in the <see cref="T:Microsoft.Data.SqlClient.SqlCommand" /> and populates the <see cref="P:Microsoft.Data.SqlClient.SqlCommand.Parameters" /> collection of the specified <see cref="T:Microsoft.Data.SqlClient.SqlCommand" /> object.</summary><remarks>
  6922. <format type="text/markdown"><![CDATA[
  6923. ## Remarks
  6924. `DeriveParameters` overwrites any existing parameter information for the `SqlDbCommand`.
  6925. `DeriveParameters` requires an additional call to the database to obtain the information. If the parameter information is known in advance, it is more efficient to populate the parameters collection by setting the information explicitly.
  6926. You can only use `DeriveParameters` with stored procedures. You cannot use `DeriveParameters` with extended stored procedures. You cannot use `DeriveParameters` to populate the <xref:Microsoft.Data.SqlClient.SqlParameterCollection> with arbitrary Transact-SQL statements, such as a parameterized SELECT statement.
  6927. For more information, see [Configuring Parameters and Parameter Data Types](~/docs/framework/data/adonet/configuring-parameters-and-parameter-data-types.md).
  6928. ]]></format>
  6929. </remarks><exception cref="T:System.InvalidOperationException">The command text is not a valid stored procedure name.</exception>
  6930. </member>
  6931. <member name="M:Microsoft.Data.SqlClient.SqlCommandBuilder.GetSchemaTable(System.Data.Common.DbCommand)">
  6932. <param name="srcCommand">To be added.</param><summary>To be added.</summary><returns>To be added.</returns><remarks>To be added.</remarks>
  6933. </member>
  6934. <member name="M:Microsoft.Data.SqlClient.SqlCommandBuilder.InitializeCommand(System.Data.Common.DbCommand)">
  6935. <param name="command">To be added.</param><summary>To be added.</summary><returns>To be added.</returns><remarks>To be added.</remarks>
  6936. </member>
  6937. <member name="M:Microsoft.Data.SqlClient.SqlCommandBuilder.QuoteIdentifier(System.String)">
  6938. <param name="unquotedIdentifier">To be added.</param><summary>To be added.</summary><returns>To be added.</returns><remarks>To be added.</remarks>
  6939. </member>
  6940. <member name="M:Microsoft.Data.SqlClient.SqlCommandBuilder.SetRowUpdatingHandler(System.Data.Common.DbDataAdapter)">
  6941. <param name="adapter">To be added.</param><summary>To be added.</summary><remarks>To be added.</remarks>
  6942. </member>
  6943. <member name="M:Microsoft.Data.SqlClient.SqlCommandBuilder.UnquoteIdentifier(System.String)">
  6944. <param name="quotedIdentifier">The identifier that will have its embedded quotes removed.</param><summary>Given a quoted identifier, returns the correct unquoted form of that identifier. This includes correctly unescaping any embedded quotes in the identifier.</summary><returns>The unquoted identifier, with embedded quotes properly unescaped.</returns><remarks>To be added.</remarks><related type="Article" href="~/docs/framework/data/adonet/retrieving-and-modifying-data.md">Connecting and Retrieving Data in ADO.NET</related><related type="Article" href="~/docs/framework/data/adonet/sql/index.md">Using the .NET Framework Data Provider for SQL Server</related><related type="Article" href="~/docs/framework/data/adonet/ado-net-overview.md">ADO.NET Overview</related>
  6945. </member>
  6946. <member name="T:Microsoft.Data.SqlClient.SqlConnection">
  6947. <summary>Represents a connection to a SQL Server database. This class cannot be inherited.</summary><remarks>
  6948. <format type="text/markdown"><![CDATA[
  6949. ## Remarks
  6950. A <xref:Microsoft.Data.SqlClient.SqlConnection> object represents a unique session to a SQL Server data source. With a client/server database system, it is equivalent to a network connection to the server. <xref:Microsoft.Data.SqlClient.SqlConnection> is used together with <xref:Microsoft.Data.SqlClient.SqlDataAdapter> and <xref:Microsoft.Data.SqlClient.SqlCommand> to increase performance when connecting to a Microsoft SQL Server database. For all third-party SQL Server products and other OLE DB-supported data sources, use <xref:System.Data.OleDb.OleDbConnection>.
  6951. When you create an instance of <xref:Microsoft.Data.SqlClient.SqlConnection>, all properties are set to their initial values. For a list of these values, see the <xref:Microsoft.Data.SqlClient.SqlConnection> constructor.
  6952. See <xref:Microsoft.Data.SqlClient.SqlConnection.ConnectionString%2A> for a list of the keywords in a connection string.
  6953. If the <xref:Microsoft.Data.SqlClient.SqlConnection> goes out of scope, it won't be closed. Therefore, you must explicitly close the connection by calling `Close` or `Dispose`. `Close` and `Dispose` are functionally equivalent. If the connection pooling value `Pooling` is set to `true` or `yes`, the underlying connection is returned back to the connection pool. On the other hand, if `Pooling` is set to `false` or `no`, the underlying connection to the server is actually closed.
  6954. > [!NOTE]
  6955. > Login and logout events will not be raised on the server when a connection is fetched from or returned to the connection pool, because the connection is not actually closed when it is returned to the connection pool. For more information, see [SQL Server Connection Pooling (ADO.NET)](~/docs/framework/data/adonet/sql-server-connection-pooling.md).
  6956. To ensure that connections are always closed, open the connection inside of a `using` block, as shown in the following code fragment. Doing so ensures that the connection is automatically closed when the code exits the block.
  6957. ```vb
  6958. Using connection As New SqlConnection(connectionString)
  6959. connection.Open()
  6960. ' Do work here; connection closed on following line.
  6961. End Using
  6962. ```
  6963. ```csharp
  6964. using (SqlConnection connection = new SqlConnection(connectionString))
  6965. {
  6966. connection.Open();
  6967. // Do work here; connection closed on following line.
  6968. }
  6969. ```
  6970. > [!NOTE]
  6971. > To deploy high-performance applications, you must use connection pooling. When you use the .NET Framework Data Provider for SQL Server, you do not have to enable connection pooling because the provider manages this automatically, although you can modify some settings. For more information, see [SQL Server Connection Pooling (ADO.NET)](~/docs/framework/data/adonet/sql-server-connection-pooling.md).
  6972. If a <xref:Microsoft.Data.SqlClient.SqlException> is generated by the method executing a <xref:Microsoft.Data.SqlClient.SqlCommand>, the <xref:Microsoft.Data.SqlClient.SqlConnection> remains open when the severity level is 19 or less. When the severity level is 20 or greater, the server ordinarily closes the <xref:Microsoft.Data.SqlClient.SqlConnection>. However, the user can reopen the connection and continue.
  6973. An application that creates an instance of the <xref:Microsoft.Data.SqlClient.SqlConnection> object can require all direct and indirect callers to have sufficient permission to the code by setting declarative or imperative security demands. <xref:Microsoft.Data.SqlClient.SqlConnection> makes security demands using the <xref:Microsoft.Data.SqlClient.SqlClientPermission> object. Users can verify that their code has sufficient permissions by using the <xref:Microsoft.Data.SqlClient.SqlClientPermissionAttribute> object. Users and administrators can also use the [Caspol.exe (Code Access Security Policy Tool)](~/docs/framework/tools/caspol-exe-code-access-security-policy-tool.md) to modify security policy at the machine, user, and enterprise levels. For more information, see [Security in .NET](~/docs/standard/security/index.md). For an example demonstrating how to use security demands, see [Code Access Security and ADO.NET](~/docs/framework/data/adonet/code-access-security.md).
  6974. For more information about handling warning and informational messages from the server, see [Connection Events](~/docs/framework/data/adonet/connection-events.md). For more information about SQL Server engine errors and error messages, see [Database Engine Events and Errors](/sql/relational-databases/errors-events/database-engine-events-and-errors).
  6975. > [!CAUTION]
  6976. > You can force TCP instead of shared memory. You can do that by prefixing tcp: to the server name in the connection string or you can use localhost.
  6977. ## Examples
  6978. The following example creates a <xref:Microsoft.Data.SqlClient.SqlCommand> and a <xref:Microsoft.Data.SqlClient.SqlConnection>. The <xref:Microsoft.Data.SqlClient.SqlConnection> is opened and set as the <xref:Microsoft.Data.SqlClient.SqlCommand.Connection%2A> for the <xref:Microsoft.Data.SqlClient.SqlCommand>. The example then calls <xref:Microsoft.Data.SqlClient.SqlCommand.ExecuteNonQuery%2A>. To accomplish this, the <xref:Microsoft.Data.SqlClient.SqlCommand.ExecuteNonQuery%2A> is passed a connection string and a query string that is a Transact-SQL INSERT statement. The connection is closed automatically when the code exits the using block.
  6979. [!code-csharp[SqlCommand_ExecuteNonQuery Example#1](~/../sqlclient/doc/samples/SqlCommand_ExecuteNonQuery.cs#1)]
  6980. ]]></format>
  6981. </remarks>
  6982. </member>
  6983. <member name="F:Microsoft.Data.SqlClient.SqlConnection._CustomColumnEncryptionKeyStoreProviders">
  6984. <summary>
  6985. Custom provider list should be provided by the user. We shallow copy the user supplied dictionary into a ReadOnlyDictionary.
  6986. Custom provider list can only supplied once per application.
  6987. </summary>
  6988. </member>
  6989. <member name="F:Microsoft.Data.SqlClient.SqlConnection._ColumnEncryptionTrustedMasterKeyPaths">
  6990. <summary>
  6991. Dictionary object holding trusted key paths for various SQL Servers.
  6992. Key to the dictionary is a SQL Server Name
  6993. IList contains a list of trusted key paths.
  6994. </summary>
  6995. </member>
  6996. <member name="P:Microsoft.Data.SqlClient.SqlConnection.ColumnEncryptionKeyCacheTtl">
  6997. <summary>Gets or sets the time-to-live for column encryption key entries in the column encryption key cache for the <see href="https://docs.microsoft.com/sql/relational-databases/security/encryption/always-encrypted-database-engine">Always Encrypted</see> feature. The default value is 2 hours. 0 means no caching at all.</summary><value>The time interval.</value><remarks>To be added.</remarks>
  6998. </member>
  6999. <member name="P:Microsoft.Data.SqlClient.SqlConnection.ColumnEncryptionQueryMetadataCacheEnabled">
  7000. <summary>Gets or sets a value that indicates whether query metadata caching is enabled (true) or not (false) for parameterized queries running against <see href="https://docs.microsoft.com/sql/relational-databases/security/encryption/always-encrypted-database-engine">Always Encrypted</see> enabled databases. The default value is true.</summary><value>Returns true if query metadata caching is enabled; otherwise false. true is the default.</value><remarks>
  7001. <format type="text/markdown"><![CDATA[
  7002. ## Remarks
  7003. For parameterized queries, SqlClient makes a roundtrip to SQL Server for parameter metadata, to see which parameter it needs to encrypt and how (which keys and algorithms should be used). If the application calls the same query multiple times, an extra roundtrip is made to the server each time, which degrades application performance.
  7004. With **ColumnEncryptionQueryMetadataCacheEnabled** set to true, if the same query is called multiple times, the roundtrip to the server will be made only once. The cache has a non-configurable Max size parameter that is set to 2000 queries.
  7005. ]]></format>
  7006. </remarks>
  7007. </member>
  7008. <member name="P:Microsoft.Data.SqlClient.SqlConnection.ColumnEncryptionTrustedMasterKeyPaths">
  7009. <summary>Allows you to set a list of trusted key paths for a database server. If while processing an application query the driver receives a key path that is not on the list, the query will fail. This property provides additional protection against security attacks that involve a compromised SQL Server providing fake key paths, which may lead to leaking key store credentials.</summary><value>The list of trusted master key paths for the column encryption.</value><remarks>To be added.</remarks>
  7010. </member>
  7011. <member name="M:Microsoft.Data.SqlClient.SqlConnection.#ctor(System.String)">
  7012. <param name="connectionString">The connection used to open the SQL Server database.</param><summary>Initializes a new instance of the <see cref="T:Microsoft.Data.SqlClient.SqlConnection" /> class when given a string that contains the connection string.</summary><remarks>
  7013. <format type="text/markdown"><![CDATA[
  7014. ## Remarks
  7015. When a new instance of <xref:Microsoft.Data.SqlClient.SqlConnection> is created, the read/write properties are set to the following initial values unless they are specifically set using their associated keywords in the <xref:Microsoft.Data.SqlClient.SqlConnection.ConnectionString%2A> property.
  7016. |Properties|Initial value|
  7017. |----------------|-------------------|
  7018. |<xref:Microsoft.Data.SqlClient.SqlConnection.ConnectionString%2A>|`connectionString`|
  7019. |<xref:Microsoft.Data.SqlClient.SqlConnection.ConnectionTimeout%2A>|15|
  7020. |<xref:Microsoft.Data.SqlClient.SqlConnection.Database%2A>|empty string ("")|
  7021. |<xref:Microsoft.Data.SqlClient.SqlConnection.DataSource%2A>|empty string ("")|
  7022. You can change the value for these properties only by using the <xref:Microsoft.Data.SqlClient.SqlConnection.ConnectionString%2A> property. The <xref:Microsoft.Data.SqlClient.SqlConnection> class provides functionality for creating and managing the contents of connection strings.
  7023. ## Examples
  7024. The following example creates and opens a <xref:Microsoft.Data.SqlClient.SqlConnection>.
  7025. [!code-csharp[SqlConnection_SqlConnection1 Example#1](~/../sqlclient/doc/samples/SqlConnection_SqlConnection1.cs#1)]
  7026. ]]></format>
  7027. </remarks>
  7028. </member>
  7029. <member name="M:Microsoft.Data.SqlClient.SqlConnection.#ctor(System.String,Microsoft.Data.SqlClient.SqlCredential)">
  7030. <param name="connectionString">A connection string that does not use any of the following connection string keywords: <see langword="Integrated Security = true" />, <see langword="UserId" />, or <see langword="Password" />; or that does not use <see langword="ContextConnection = true" />.</param><param name="credential">A <see cref="T:Microsoft.Data.SqlClient.SqlCredential" /> object. If <paramref name="credential" /> is null, <see cref="M:Microsoft.Data.SqlClient.SqlConnection.#ctor(System.String,Microsoft.Data.SqlClient.SqlCredential)" /> is functionally equivalent to <see cref="M:Microsoft.Data.SqlClient.SqlConnection.#ctor(System.String)" />.</param><summary>Initializes a new instance of the <see cref="T:Microsoft.Data.SqlClient.SqlConnection" /> class given a connection string, that does not use <see langword="Integrated Security = true" /> and a <see cref="T:Microsoft.Data.SqlClient.SqlCredential" /> object that contains the user ID and password.</summary><remarks>To be added.</remarks>
  7031. </member>
  7032. <member name="M:Microsoft.Data.SqlClient.SqlConnection.TryGetColumnEncryptionKeyStoreProvider(System.String,Microsoft.Data.SqlClient.SqlColumnEncryptionKeyStoreProvider@)">
  7033. <summary>
  7034. This function walks through both system and custom column encryption key store providers and returns an object if found.
  7035. </summary>
  7036. <param name="providerName">Provider Name to be searched in System Provider diction and Custom provider dictionary.</param>
  7037. <param name="columnKeyStoreProvider">If the provider is found, returns the corresponding SqlColumnEncryptionKeyStoreProvider instance.</param>
  7038. <returns>true if the provider is found, else returns false</returns>
  7039. </member>
  7040. <member name="M:Microsoft.Data.SqlClient.SqlConnection.GetColumnEncryptionSystemKeyStoreProviders">
  7041. <summary>
  7042. This function returns a list of system provider dictionary currently supported by this driver.
  7043. </summary>
  7044. <returns>Combined list of provider names</returns>
  7045. </member>
  7046. <member name="M:Microsoft.Data.SqlClient.SqlConnection.GetColumnEncryptionCustomKeyStoreProviders">
  7047. <summary>
  7048. This function returns a list of custom provider dictionary currently registered.
  7049. </summary>
  7050. <returns>Combined list of provider names</returns>
  7051. </member>
  7052. <member name="P:Microsoft.Data.SqlClient.SqlConnection.IsColumnEncryptionSettingEnabled">
  7053. <summary>
  7054. Is this connection using column encryption ?
  7055. </summary>
  7056. </member>
  7057. <member name="M:Microsoft.Data.SqlClient.SqlConnection.RegisterColumnEncryptionKeyStoreProviders(System.Collections.Generic.IDictionary{System.String,Microsoft.Data.SqlClient.SqlColumnEncryptionKeyStoreProvider})">
  7058. <param name="customProviders">Custom column encryption key provider dictionary</param><summary>Registers the column encryption key store providers. This function should only be called once in an app. This does shallow copying of the dictionary so that the app cannot alter the custom provider list once it has been set.</summary><remarks>
  7059. <format type="text/markdown"><![CDATA[
  7060. ## Examples
  7061. ```csharp
  7062. Dictionary<string, SqlColumnEncryptionKeyStoreProvider> customKeyStoreProviders = new Dictionary<string, SqlColumnEncryptionKeyStoreProvider>();
  7063. MySqlClientHSMProvider myProvider = new MySqlClientHSMProvider();
  7064. customKeyStoreProviders.Add(@"HSM Provider", myProvider);
  7065. SqlConnection.RegisterColumnEncryptionKeyStoreProviders(customKeyStoreProviders);
  7066. ```
  7067. ]]></format>
  7068. </remarks>
  7069. </member>
  7070. <member name="P:Microsoft.Data.SqlClient.SqlConnection.EnclaveAttestationUrl">
  7071. <summary>
  7072. Get enclave attestation url to be used with enclave based Always Encrypted
  7073. </summary>
  7074. </member>
  7075. <member name="P:Microsoft.Data.SqlClient.SqlConnection.AttestationProtocol">
  7076. <summary>
  7077. Get attestation protocol
  7078. </summary>
  7079. </member>
  7080. <member name="P:Microsoft.Data.SqlClient.SqlConnection.StatisticsEnabled">
  7081. <summary>When set to <see langword="true" />, enables statistics gathering for the current connection.</summary><value>Returns <see langword="true" /> if statistics gathering is enabled; otherwise <see langword="false" />. <see langword="false" /> is the default.</value><remarks>
  7082. <format type="text/markdown"><![CDATA[
  7083. ## Remarks
  7084. Enabling statistics gathering has a minor, but measurable effect on performance and therefore should be enabled only when it is required.
  7085. ]]></format>
  7086. </remarks>
  7087. </member>
  7088. <member name="P:Microsoft.Data.SqlClient.SqlConnection.ConnectionString">
  7089. <summary>Gets or sets the string used to open a SQL Server database.</summary><value>The connection string that includes the source database name, and other parameters needed to establish the initial connection. The default value is an empty string.</value><remarks>
  7090. <format type="text/markdown"><![CDATA[
  7091. ## Remarks
  7092. The <xref:Microsoft.Data.SqlClient.SqlConnection.ConnectionString%2A> is similar to an OLE DB connection string, but is not identical. Unlike OLE DB or ADO, the connection string that is returned is the same as the user-set <xref:Microsoft.Data.SqlClient.SqlConnection.ConnectionString%2A>, minus security information if the Persist Security Info value is set to `false` (default). The .NET Framework Data Provider for SQL Server does not persist or return the password in a connection string unless you set Persist Security Info to `true`.
  7093. You can use the <xref:Microsoft.Data.SqlClient.SqlConnection.ConnectionString%2A> property to connect to a database. The following example illustrates a typical connection string.
  7094. ```
  7095. "Persist Security Info=False;Integrated Security=true;Initial Catalog=Northwind;server=(local)"
  7096. ```
  7097. Use the new <xref:Microsoft.Data.SqlClient.SqlConnectionStringBuilder> to construct valid connection strings at run time. For more information, see [Connection String Builders](~/docs/framework/data/adonet/connection-string-builders.md).
  7098. The <xref:Microsoft.Data.SqlClient.SqlConnection.ConnectionString%2A> property can be set only when the connection is closed. Many of the connection string values have corresponding read-only properties. When the connection string is set, these properties are updated, except when an error is detected. In this case, none of the properties are updated. <xref:Microsoft.Data.SqlClient.SqlConnection> properties return only those settings that are contained in the <xref:Microsoft.Data.SqlClient.SqlConnection.ConnectionString%2A>.
  7099. To connect to a local computer, specify "(local)" for the server. If a server name is not specified, a connection will be attempted to the default instance on the local computer.
  7100. Resetting the <xref:Microsoft.Data.SqlClient.SqlConnection.ConnectionString%2A> on a closed connection resets all connection string values (and related properties) including the password. For example, if you set a connection string that includes "Database= AdventureWorks", and then reset the connection string to "Data Source=myserver;Integrated Security=true", the <xref:Microsoft.Data.SqlClient.SqlConnection.Database%2A> property is no longer set to "AdventureWorks".
  7101. The connection string is parsed immediately after being set. If errors in syntax are found when parsing, a runtime exception, such as <xref:System.ArgumentException>, is generated. Other errors can be found only when an attempt is made to open the connection.
  7102. The basic format of a connection string includes a series of keyword/value pairs separated by semicolons. The equal sign (=) connects each keyword and its value. To include values that contain a semicolon, single-quote character, or double-quote character, the value must be enclosed in double quotation marks. If the value contains both a semicolon and a double-quote character, the value can be enclosed in single quotation marks. The single quotation mark is also useful if the value starts with a double-quote character. Conversely, the double quotation mark can be used if the value starts with a single quotation mark. If the value contains both single-quote and double-quote characters, the quotation mark character used to enclose the value must be doubled every time it occurs within the value.
  7103. To include preceding or trailing spaces in the string value, the value must be enclosed in either single quotation marks or double quotation marks. Any leading or trailing spaces around integer, Boolean, or enumerated values are ignored, even if enclosed in quotation marks. However, spaces within a string literal keyword or value are preserved. Single or double quotation marks may be used within a connection string without using delimiters (for example, Data Source= my'Server or Data Source= my"Server), unless a quotation mark character is the first or last character in the value.
  7104. Keywords are not case sensitive.
  7105. The following table lists the valid names for keyword values within the <xref:Microsoft.Data.SqlClient.SqlConnection.ConnectionString%2A>.
  7106. |Keyword|Default|Description|
  7107. |-------------|-------------|-----------------|
  7108. |Addr|N/A|Synonym of **Data Source**.|
  7109. |Address|N/A|Synonym of **Data Source**.|
  7110. |App|N/A|Synonym of **Application Name**.|
  7111. |Application Name|N/A|The name of the application, or '.NET SQLClient Data Provider' if no application name is provided.<br /><br /> An application name can be 128 characters or less.|
  7112. |ApplicationIntent|ReadWrite|Declares the application workload type when connecting to a server. Possible values are `ReadOnly` and `ReadWrite`. For example:<br /><br /> `ApplicationIntent=ReadOnly`<br /><br /> For more information about SqlClient support for Always On Availability Groups, see [SqlClient Support for High Availability, Disaster Recovery](~/docs/framework/data/adonet/sql/sqlclient-support-for-high-availability-disaster-recovery.md).|
  7113. |Asynchronous Processing<br /><br /> -or-<br /><br /> Async|'false'|When `true`, enables asynchronous operation support. Recognized values are `true`, `false`, `yes`, and `no`.<br /><br /> This property is ignored beginning in .NET Framework 4.5. For more information about SqlClient support for asynchronous programming, see [Asynchronous Programming](~/docs/framework/data/adonet/asynchronous-programming.md).|
  7114. |AttachDBFilename<br /><br /> -or-<br /><br /> Extended Properties<br /><br /> -or-<br /><br /> Initial File Name|N/A|The name of the primary database file, including the full path name of an attachable database. AttachDBFilename is only supported for primary data files with an .mdf extension.<br /><br /> If the value of the AttachDBFileName key is specified in the connection string, the database is attached and becomes the default database for the connection.<br /><br /> If this key is not specified and if the database was previously attached, the database will not be reattached. The previously attached database will be used as the default database for the connection.<br /><br /> If this key is specified together with the AttachDBFileName key, the value of this key will be used as the alias. However, if the name is already used in another attached database, the connection will fail.<br /><br /> The path may be absolute or relative by using the DataDirectory substitution string. If DataDirectory is used, the database file must exist within a subdirectory of the directory pointed to by the substitution string. **Note:** Remote server, HTTP, and UNC path names are not supported. <br /><br /> The database name must be specified with the keyword 'database' (or one of its aliases) as in the following:<br /><br /> <code>"AttachDbFileName=&#124;DataDirectory&#124;\data\YourDB.mdf;integrated security=true;database=YourDatabase"</code><br /><br /> An error will be generated if a log file exists in the same directory as the data file and the 'database' keyword is used when attaching the primary data file. In this case, remove the log file. Once the database is attached, a new log file will be automatically generated based on the physical path.|
  7115. |Authentication|N/A|The authentication method used for [Connecting to SQL Database By Using Azure Active Directory Authentication](https://azure.microsoft.com/documentation/articles/sql-database-aad-authentication/#7-connect-to-your-database-by-using-azure-active-directory-identities).<br /><br /> Valid values are:<br /><br /> `Active Directory Integrated`, `Active Directory Interactive`, `Active Directory Password`, `Sql Password`. Currently `Active Directory Integrated` and `Active Directory Interactive` modes of authentication are only supported for .NET Framework. |
  7116. |Column Encryption Setting|N/A|Enables or disables [Always Encrypted](/sql/relational-databases/security/encryption/always-encrypted-database-engine?view=sql-server-2017) functionality for the connection.|
  7117. |Connect Timeout<br /><br /> -or-<br /><br /> Connection Timeout<br /><br /> -or-<br /><br /> Timeout|15|The length of time (in seconds) to wait for a connection to the server before terminating the attempt and generating an error.<br /><br /> Valid values are greater than or equal to 0 and less than or equal to 2147483647.<br /><br /> When opening a connection to a Azure SQL Database, set the connection timeout to 30 seconds.|
  7118. |Connection Lifetime<br /><br /> -or-<br /><br /> Load Balance Timeout|0|When a connection is returned to the pool, its creation time is compared with the current time, and the connection is destroyed if that time span (in seconds) exceeds the value specified by `Connection Lifetime`. This is useful in clustered configurations to force load balancing between a running server and a server just brought online.<br /><br /> A value of zero (0) causes pooled connections to have the maximum connection timeout.|
  7119. |ConnectRetryCount|1|Controls the number of reconnection attempts after the client identifies an idle connection failure. Valid values are 0 to 255. The default is 1. 0 means do not attempt to reconnect (disable connection resiliency).<br /><br /> For additional information about idle connection resiliency, see [Technical Article - Idle Connection Resiliency](https://go.microsoft.com/fwlink/?LinkId=393996).|
  7120. |ConnectRetryInterval|10|Specifies the time between each connection retry attempt (ConnectRetryCount). Valid values are 1 to 60 seconds (default=10), applied after the first reconnection attempt. When a broken connection is detected, the client immediately attempts to reconnect; this is the first reconnection attempt and only occurs if ConnectRetryCount is greater than 0. If the first reconnection attempt fails and ConnectRetryCount is greater than 1, the client waits ConnectRetryInterval to try the second and subsequent reconnection attempts.<br /><br /> For additional information about idle connection resiliency, see [Technical Article - Idle Connection Resiliency](https://go.microsoft.com/fwlink/?LinkId=393996).|
  7121. |Context Connection|'false'|`true` if an in-process connection to SQL Server should be made.|
  7122. |Current Language<br /><br /> -or-<br /><br /> Language|N/A|Sets the language used for database server warning or error messages.<br /><br /> The language name can be 128 characters or less.|
  7123. |Data Source<br /><br /> -or-<br /><br /> Server<br /><br /> -or-<br /><br /> Address<br /><br /> -or-<br /><br /> Addr<br /><br /> -or-<br /><br /> Network Address|N/A|The name or network address of the instance of SQL Server to which to connect. The port number can be specified after the server name:<br /><br /> `server=tcp:servername, portnumber`<br /><br /> When specifying a local instance, always use (local). To force a protocol, add one of the following prefixes:<br /><br /> `np:(local), tcp:(local), lpc:(local)`<br /><br /> Beginning in .NET Framework 4.5, you can also connect to a LocalDB database as follows:<br /><br /> `server=(localdb)\\myInstance`<br /><br /> For more information about LocalDB, see [SqlClient Support for LocalDB](~/docs/framework/data/adonet/sql/sqlclient-support-for-localdb.md).<br /><br /> **Data Source** must use the TCP format or the Named Pipes format.<br /><br /> TCP format is as follows:<br /><br /> - tcp:\<host name>\\<instance name\><br />- tcp:\<host name>,\<TCP/IP port number><br /><br /> The TCP format must start with the prefix "tcp:" and is followed by the database instance, as specified by a host name and an instance name. This format is not applicable when connecting to Azure SQL Database. TCP is automatically selected for connections to Azure SQL Database when no protocol is specified.<br /><br /> The host name MUST be specified in one of the following ways:<br /><br /> - NetBIOSName<br />- IPv4Address<br />- IPv6Address<br /><br /> The instance name is used to resolve to a particular TCP/IP port number on which a database instance is hosted. Alternatively, specifying a TCP/IP port number directly is also allowed. If both instance name and port number are not present, the default database instance is used.<br /><br /> The Named Pipes format is as follows:<br /><br /> - np:\\\\<host name\>\pipe\\<pipe name\><br /><br /> The Named Pipes format MUST start with the prefix "np:" and is followed by a named pipe name.<br /><br /> The host name MUST be specified in one of the following ways:<br /><br /> - NetBIOSName<br />- IPv4Address<br />- IPv6Address<br /><br /> The pipe name is used to identify the database instance to which the .NET Framework application will be connected.<br /><br /> If the value of the **Network** key is specified, the prefixes "tcp:" and "np:" should not be specified. **Note:** You can force the use of TCP instead of shared memory, either by prefixing **tcp:** to the server name in the connection string, or by using **localhost**.|
  7124. |Encrypt|'false'|When `true`, SQL Server uses SSL encryption for all data sent between the client and server if the server has a certificate installed. Recognized values are `true`, `false`, `yes`, and `no`. For more information, see [Connection String Syntax](~/docs/framework/data/adonet/connection-string-syntax.md).<br /><br /> Beginning in .NET Framework 4.5, when `TrustServerCertificate` is false and `Encrypt` is true, the server name (or IP address) in a SQL Server SSL certificate must exactly match the server name (or IP address) specified in the connection string. Otherwise, the connection attempt will fail. For information about support for certificates whose subject starts with a wildcard character (*), see [Accepted wildcards used by server certificates for server authentication](https://support.microsoft.com/kb/258858).|
  7125. |Enlist|'true'|`true` indicates that the SQL Server connection pooler automatically enlists the connection in the creation thread's current transaction context.|
  7126. |Failover Partner|N/A|The name of the failover partner server where database mirroring is configured.<br /><br /> If the value of this key is "", then **Initial Catalog** must be present, and its value must not be "".<br /><br /> The server name can be 128 characters or less.<br /><br /> If you specify a failover partner but the failover partner server is not configured for database mirroring and the primary server (specified with the Server keyword) is not available, then the connection will fail.<br /><br /> If you specify a failover partner and the primary server is not configured for database mirroring, the connection to the primary server (specified with the Server keyword) will succeed if the primary server is available.|
  7127. |Initial Catalog<br /><br /> -or-<br /><br /> Database|N/A|The name of the database.<br /><br /> The database name can be 128 characters or less.|
  7128. |Integrated Security<br /><br /> -or-<br /><br /> Trusted_Connection|'false'|When `false`, User ID and Password are specified in the connection. When `true`, the current Windows account credentials are used for authentication.<br /><br /> Recognized values are `true`, `false`, `yes`, `no`, and `sspi` (strongly recommended), which is equivalent to `true`.<br /><br /> If User ID and Password are specified and Integrated Security is set to true, the User ID and Password will be ignored and Integrated Security will be used.<br /><br /> <xref:Microsoft.Data.SqlClient.SqlCredential> is a more secure way to specify credentials for a connection that uses SQL Server Authentication (`Integrated Security=false`).|
  7129. |Max Pool Size|100|The maximum number of connections that are allowed in the pool.<br /><br /> Valid values are greater than or equal to 1. Values that are less than **Min Pool Size** generate an error.|
  7130. |Min Pool Size|0|The minimum number of connections that are allowed in the pool.<br /><br /> Valid values are greater than or equal to 0. Zero (0) in this field means no minimum connections are initially opened.<br /><br /> Values that are greater than **Max Pool Size** generate an error.|
  7131. |MultipleActiveResultSets|'false'|When `true`, an application can maintain multiple active result sets (MARS). When `false`, an application must process or cancel all result sets from one batch before it can execute any other batch on that connection.<br /><br /> Recognized values are `true` and `false`.<br /><br /> For more information, see [Multiple Active Result Sets (MARS)](~/docs/framework/data/adonet/sql/multiple-active-result-sets-mars.md).|
  7132. |`MultiSubnetFailover`|FALSE|Always specify `multiSubnetFailover=True` when connecting to the availability group listener of a SQL Server 2012 (or later) availability group or a SQL Server 2012 (or later) Failover Cluster Instance. `multiSubnetFailover=True` configures SqlClient to provide faster detection of and connection to the (currently) active server. Possible values are `Yes` and `No`, `True` and `False` or `1` and `0`. For example:<br /><br /> `MultiSubnetFailover=True`<br /><br /> The default is `False`. For more information about SqlClient's support for Always On AGs, see [SqlClient Support for High Availability, Disaster Recovery](~/docs/framework/data/adonet/sql/sqlclient-support-for-high-availability-disaster-recovery.md).|
  7133. |Network Library<br /><br /> -or-<br /><br /> Network<br /><br /> -or-<br /><br /> Net|N/A|The network library used to establish a connection to an instance of SQL Server. Supported values include:<br /><br /> dbnmpntw (Named Pipes)<br /><br /> dbmsrpcn (Multiprotocol, Windows RPC)<br /><br /> dbmsadsn (Apple Talk)<br /><br /> dbmsgnet (VIA)<br /><br /> dbmslpcn (Shared Memory)<br /><br /> dbmsspxn (IPX/SPX)<br /><br /> dbmssocn (TCP/IP)<br /><br /> Dbmsvinn (Banyan Vines)<br /><br /> The corresponding network DLL must be installed on the system to which you connect. If you do not specify a network and you use a local server (for example, "." or "(local)"), shared memory is used. In this example, the network library is Win32 Winsock TCP/IP (dbmssocn), and 1433 is the port being used.<br /><br /> `Network Library=dbmssocn;Data Source=000.000.000.000,1433;`|
  7134. |Packet Size|8000|Size in bytes of the network packets used to communicate with an instance of SQL Server.<br /><br /> The packet size can be greater than or equal to 512 and less than or equal to 32768.|
  7135. |Password<br /><br /> -or-<br /><br /> PWD|N/A|The password for the SQL Server account logging on. Not recommended. To maintain a high level of security, we strongly recommend that you use the `Integrated Security` or `Trusted_Connection` keyword instead. <xref:Microsoft.Data.SqlClient.SqlCredential> is a more secure way to specify credentials for a connection that uses SQL Server Authentication.<br /><br /> The password must be 128 characters or less.|
  7136. |Persist Security Info<br /><br /> -or-<br /><br /> PersistSecurityInfo|'false'|When set to `false` or `no` (strongly recommended), security-sensitive information, such as the password, is not returned as part of the connection if the connection is open or has ever been in an open state. Resetting the connection string resets all connection string values including the password. Recognized values are `true`, `false`, `yes`, and `no`.|
  7137. |PoolBlockingPeriod|Auto|Sets the blocking period behavior for a connection pool. See <xref:Microsoft.Data.SqlClient.SqlConnectionStringBuilder.PoolBlockingPeriod> property for details.|
  7138. |Pooling|'true'|When the value of this key is set to true, any newly created connection will be added to the pool when closed by the application. In a next attempt to open the same connection, that connection will be drawn from the pool.<br /><br /> Connections are considered the same if they have the same connection string. Different connections have different connection strings.<br /><br /> The value of this key can be "true", "false", "yes", or "no".|
  7139. |Replication|'false'|`true` if replication is supported using the connection.|
  7140. |Transaction Binding|Implicit Unbind|Controls connection association with an enlisted `System.Transactions` transaction.<br /><br /> Possible values are:<br /><br /> `Transaction Binding=Implicit Unbind;`<br /><br /> `Transaction Binding=Explicit Unbind;`<br /><br /> Implicit Unbind causes the connection to detach from the transaction when it ends. After detaching, additional requests on the connection are performed in autocommit mode. The `System.Transactions.Transaction.Current` property is not checked when executing requests while the transaction is active. After the transaction has ended, additional requests are performed in autocommit mode.<br /><br /> If the system ends the transaction (in the scope of a using block) before the last command completes, it will throw <xref:System.InvalidOperationException>.<br /><br /> Explicit Unbind causes the connection to remain attached to the transaction until the connection is closed or an explicit `SqlConnection.TransactionEnlist(null)` is called. Beginning in .NET Framework 4.0, changes to Implicit Unbind make Explicit Unbind obsolete. An `InvalidOperationException` is thrown if `Transaction.Current` is not the enlisted transaction or if the enlisted transaction is not active.|
  7141. |TransparentNetworkIPResolution|See description.|When the value of this key is set to `true`, the application is required to retrieve all IP addresses for a particular DNS entry and attempt to connect with the first one in the list. If the connection is not established within 0.5 seconds, the application will try to connect to all others in parallel. When the first answers, the application will establish the connection with the respondent IP address.<br /><br /> If the `MultiSubnetFailover` key is set to `true`, `TransparentNetworkIPResolution` is ignored.<br /><br /> If the `Failover Partner` key is set, `TransparentNetworkIPResolution` is ignored.<br /><br /> The value of this key must be `true`, `false`, `yes`, or `no`.<br /><br /> A value of `yes` is treated the same as a value of `true`.<br /><br /> A value of `no` is treated the same as a value of `false`.<br /><br /> The default values are as follows:<br /><br /> <ul><li>`false` when:<br /><br /> <ul><li>Connecting to Azure SQL Database where the data source ends with:<br /><br /> <ul><li>.database.chinacloudapi.cn</li><li>.database.usgovcloudapi.net</li><li>.database.cloudapi.de</li><li>.database.windows.net</li></ul></li><li>`Authentication` is 'Active Directory Password' or 'Active Directory Integrated'</li></ul></li><li>`true` in all other cases.</li></ul>|
  7142. |TrustServerCertificate|'false'|When set to `true`, SSL is used to encrypt the channel when bypassing walking the certificate chain to validate trust. If TrustServerCertificate is set to `true` and Encrypt is set to `false`, the channel is not encrypted. Recognized values are `true`, `false`, `yes`, and `no`. For more information, see [Connection String Syntax](~/docs/framework/data/adonet/connection-string-syntax.md).|
  7143. |Type System Version|N/A|A string value that indicates the type system the application expects. The functionality available to a client application is dependent on the version of SQL Server and the compatibility level of the database. Explicitly setting the type system version that the client application was written for avoids potential problems that could cause an application to break if a different version of SQL Server is used. **Note:** The type system version cannot be set for common language runtime (CLR) code executing in-process in SQL Server. For more information, see [SQL Server Common Language Runtime Integration](~/docs/framework/data/adonet/sql/sql-server-common-language-runtime-integration.md). <br /><br /> Possible values are:<br /><br /> `Type System Version=SQL Server 2012;`<br /><br /> `Type System Version=SQL Server 2008;`<br /><br /> `Type System Version=SQL Server 2005;`<br /><br /> `Type System Version=Latest;`<br /><br /> `Type System Version=SQL Server 2012;` specifies that the application will require version 11.0.0.0 of Microsoft.SqlServer.Types.dll. The other `Type System Version` settings will require version 10.0.0.0 of Microsoft.SqlServer.Types.dll.<br /><br /> `Latest` is obsolete and should not be used. `Latest` is equivalent to `Type System Version=SQL Server 2008;`.|
  7144. |User ID<br /><br /> -or-<br /><br /> UID<br /><br /> -or-|N/A|The SQL Server login account. Not recommended. To maintain a high level of security, we strongly recommend that you use the `Integrated Security` or `Trusted_Connection` keywords instead. <xref:Microsoft.Data.SqlClient.SqlCredential> is a more secure way to specify credentials for a connection that uses SQL Server Authentication.<br /><br /> The user ID must be 128 characters or less.|
  7145. |User Instance|'false'|A value that indicates whether to redirect the connection from the default SQL Server Express instance to a runtime-initiated instance running under the account of the caller.|
  7146. |Workstation ID<br /><br /> -or-<br /><br /> WSID|The local computer name|The name of the workstation connecting to SQL Server.<br /><br /> The ID must be 128 characters or less.|
  7147. The following list contains the valid names for connection pooling values within the <xref:Microsoft.Data.SqlClient.SqlConnection.ConnectionString%2A>. For more information, see [SQL Server Connection Pooling (ADO.NET)](~/docs/framework/data/adonet/sql-server-connection-pooling.md).
  7148. - Connection Lifetime (or Load Balance Timeout)
  7149. - Enlist
  7150. - Max Pool Size
  7151. - Min Pool Size
  7152. - Pooling
  7153. When you are setting keyword or connection pooling values that require a Boolean value, you can use 'yes' instead of 'true', and 'no' instead of 'false'. Integer values are represented as strings.
  7154. > [!NOTE]
  7155. > The .NET Framework Data Provider for SQL Server uses its own protocol to communicate with SQL Server. Therefore, it does not support the use of an ODBC data source name (DSN) when connecting to SQL Server because it does not add an ODBC layer.
  7156. > [!NOTE]
  7157. > Universal data link (UDL) files are not supported for the .NET Framework Data Provider for SQL Server.
  7158. > [!CAUTION]
  7159. > In this release, the application should use caution when constructing a connection string based on user input (for example when retrieving user ID and password information from a dialog box, and appending it to the connection string). The application should make sure that a user cannot embed additional connection string parameters in these values (for example, entering a password as "validpassword;database=somedb" in an attempt to attach to a different database). If you need to construct connection strings based on user input, use the new <xref:Microsoft.Data.SqlClient.SqlConnectionStringBuilder>, which validates the connection string and helps to eliminate this problem. See [Connection String Builders](~/docs/framework/data/adonet/connection-string-builders.md) for more information.
  7160. ## Examples
  7161. The following example creates a <xref:Microsoft.Data.SqlClient.SqlConnection> and sets the <xref:Microsoft.Data.SqlClient.SqlConnection.ConnectionString%2A> property before opening the connection.
  7162. [!code-csharp[SqlConnection_ConnectionString Example#1](~/../sqlclient/doc/samples/SqlConnection_ConnectionString.cs#1)]
  7163. ]]></format>
  7164. </remarks><exception cref="T:System.ArgumentException">An invalid connection string argument has been supplied, or a required connection string argument has not been supplied.</exception>
  7165. </member>
  7166. <member name="P:Microsoft.Data.SqlClient.SqlConnection.ConnectionTimeout">
  7167. <summary>Gets the time to wait while trying to establish a connection before terminating the attempt and generating an error.</summary><value>The time (in seconds) to wait for a connection to open. The default value is 15 seconds.</value><remarks>
  7168. <format type="text/markdown"><![CDATA[
  7169. ## Remarks
  7170. You can set the amount of time a connection waits to time out by using the `Connect Timeout` or `Connection Timeout` keywords in the connection string. A value of 0 indicates no limit, and should be avoided in a <xref:Microsoft.Data.SqlClient.SqlConnection.ConnectionString%2A> because an attempt to connect waits indefinitely.
  7171. ## Examples
  7172. The following example creates a <xref:Microsoft.Data.SqlClient.SqlConnection> and sets the `Connection Timeout` to 30 seconds in the connection string. The code opens the connection and displays the <xref:Microsoft.Data.SqlClient.SqlConnection.ConnectionTimeout%2A> property in the console window.
  7173. [!code-csharp[SqlConnection_ConnectionTimeout Example#1](~/../sqlclient/doc/samples/SqlConnection_ConnectionTimeout.cs#1)]
  7174. ]]></format>
  7175. </remarks><exception cref="T:System.ArgumentException">The value set is less than 0.</exception>
  7176. </member>
  7177. <member name="P:Microsoft.Data.SqlClient.SqlConnection.AccessToken">
  7178. <summary>Gets or sets the access token for the connection.</summary><value>The access token for the connection.</value><remarks>To be added.</remarks>
  7179. </member>
  7180. <member name="P:Microsoft.Data.SqlClient.SqlConnection.Database">
  7181. <summary>Gets the name of the current database or the database to be used after a connection is opened.</summary><value>The name of the current database or the name of the database to be used after a connection is opened. The default value is an empty string.</value><remarks>
  7182. <format type="text/markdown"><![CDATA[
  7183. ## Remarks
  7184. The <xref:Microsoft.Data.SqlClient.SqlConnection.Database%2A> property updates dynamically. If you change the current database using a Transact-SQL statement or the <xref:Microsoft.Data.SqlClient.SqlConnection.ChangeDatabase%2A> method, an informational message is sent and the property is updated automatically.
  7185. ## Examples
  7186. The following example creates a <xref:Microsoft.Data.SqlClient.SqlConnection> and displays some of its read-only properties.
  7187. [!code-csharp[SqlConnection_Database Example#1](~/../sqlclient/doc/samples/SqlConnection_Database.cs#1)]
  7188. ]]></format>
  7189. </remarks>
  7190. </member>
  7191. <member name="P:Microsoft.Data.SqlClient.SqlConnection.DataSource">
  7192. <summary>Gets the name of the instance of SQL Server to which to connect.</summary><value>The name of the instance of SQL Server to which to connect. The default value is an empty string.</value><remarks>
  7193. <format type="text/markdown"><![CDATA[
  7194. ## Remarks
  7195. > [!NOTE]
  7196. > The <xref:Microsoft.Data.SqlClient.SqlConnection.DataSource%2A> property returns `null` if the connection string for the <xref:Microsoft.Data.SqlClient.SqlConnection> is "context connection=true".
  7197. ## Examples
  7198. The following example creates a <xref:Microsoft.Data.SqlClient.SqlConnection> and displays some of its read-only properties.
  7199. [!code-csharp[SqlConnection_DataSource Example#1](~/../sqlclient/doc/samples/SqlConnection_DataSource.cs#1)]
  7200. ]]></format>
  7201. </remarks>
  7202. </member>
  7203. <member name="P:Microsoft.Data.SqlClient.SqlConnection.PacketSize">
  7204. <summary>Gets the size (in bytes) of network packets used to communicate with an instance of SQL Server.</summary><value>The size (in bytes) of network packets. The default value is 8000.</value><remarks>
  7205. <format type="text/markdown"><![CDATA[
  7206. ## Remarks
  7207. If an application performs bulk copy operations, or sends or receives lots of text or image data, a packet size larger than the default may improve efficiency because it causes fewer network read and write operations. If an application sends and receives small amounts of information, you can set the packet size to 512 bytes (using the Packet Size value in the <xref:Microsoft.Data.SqlClient.SqlConnection.ConnectionString%2A>), which is sufficient for most data transfer operations. For most applications, the default packet size is best.
  7208. <xref:Microsoft.Data.SqlClient.SqlConnection.PacketSize%2A> may be a value in the range of 512 and 32767 bytes. An exception is generated if the value is outside this range.
  7209. Setting the default value to a number greater than 8000 will cause the packets to use the MultiPage allocator on the instance of SQL Server instead of the much more efficient SinglePage allocator, reducing the overall scalability of the SQL Server. For more information on how SQL Server uses memory, see [Memory Management Architecture Guide](/sql/relational-databases/memory-management-architecture-guide).
  7210. ## Examples
  7211. The following example creates a <xref:Microsoft.Data.SqlClient.SqlConnection>, including setting the `Packet Size` to 512 in the connection string. It displays the <xref:Microsoft.Data.SqlClient.SqlConnection.PacketSize%2A> and <xref:Microsoft.Data.SqlClient.SqlConnection.ServerVersion%2A> properties in the console window.
  7212. [!code-csharp[SqlConnection_PacketSize Example#1](~/../sqlclient/doc/samples/SqlConnection_PacketSize.cs#1)]
  7213. ]]></format>
  7214. </remarks>
  7215. </member>
  7216. <member name="P:Microsoft.Data.SqlClient.SqlConnection.ClientConnectionId">
  7217. <summary>The connection ID of the most recent connection attempt, regardless of whether the attempt succeeded or failed.</summary><value>The connection ID of the most recent connection attempt.</value><remarks>
  7218. <format type="text/markdown"><![CDATA[
  7219. ## Remarks
  7220. <xref:Microsoft.Data.SqlClient.SqlConnection.ClientConnectionId%2A> works regardless of which version of the server you connect to, but extended events logs and entry on connectivity ring buffer errors will not be present in SQL Server 2008 R2 and earlier.
  7221. You can locate the connection ID in the extended events log to see if the failure was on the server if the extended event for logging connection ID is enabled. You can also locate the connection ID in the connection ring buffer ([Connectivity troubleshooting in SQL Server 2008 with the Connectivity Ring Buffer](https://go.microsoft.com/fwlink/?LinkId=207752)) for certain connection errors. If the connection ID is not in the connection ring buffer, you can assume a network error.
  7222. ]]></format>
  7223. </remarks>
  7224. </member>
  7225. <member name="P:Microsoft.Data.SqlClient.SqlConnection.ServerVersion">
  7226. <summary>Gets a string that contains the version of the instance of SQL Server to which the client is connected.</summary><value>The version of the instance of SQL Server.</value><remarks>
  7227. <format type="text/markdown"><![CDATA[
  7228. ## Remarks
  7229. The version is of the form *##.##.####*, where the first two digits are the major version, the next two digits are the minor version, and the last four digits are the release version. The string is of the form *major.minor.build*, where major and minor are exactly two digits and build is exactly four digits.
  7230. <xref:Microsoft.Data.SqlClient.SqlConnection.ServerVersion%2A> was called while the returned Task was not completed and the connection was not opened after a call to <xref:Microsoft.Data.SqlClient.SqlConnection.OpenAsync%2A>.
  7231. ## Examples
  7232. The following example creates a <xref:Microsoft.Data.SqlClient.SqlConnection> and displays the <xref:Microsoft.Data.SqlClient.SqlConnection.ServerVersion%2A> property.
  7233. [!code-csharp[SqlConnection_ServerVersion Example#1](~/../sqlclient/doc/samples/SqlConnection_ServerVersion.cs#1)]
  7234. ]]></format>
  7235. </remarks><exception cref="T:System.InvalidOperationException">The connection is closed.
  7236. <see cref="P:Microsoft.Data.SqlClient.SqlConnection.ServerVersion" /> was called while the returned Task was not completed and the connection was not opened after a call to <see cref="M:Microsoft.Data.SqlClient.SqlConnection.OpenAsync(System.Threading.CancellationToken)" />.</exception>
  7237. </member>
  7238. <member name="P:Microsoft.Data.SqlClient.SqlConnection.State">
  7239. <summary>Indicates the state of the <see cref="T:Microsoft.Data.SqlClient.SqlConnection" /> during the most recent network operation performed on the connection.</summary><value>An <see cref="T:System.Data.ConnectionState" /> enumeration.</value><remarks>
  7240. <format type="text/markdown"><![CDATA[
  7241. ## Remarks
  7242. Returns an <xref:System.Data.ConnectionState> enumeration indicating the state of the <xref:Microsoft.Data.SqlClient.SqlConnection>. Closing and reopening the connection will refresh the value of <xref:Microsoft.Data.SqlClient.SqlConnection.State%2A>.
  7243. ]]></format>
  7244. </remarks>
  7245. </member>
  7246. <member name="P:Microsoft.Data.SqlClient.SqlConnection.WorkstationId">
  7247. <summary>Gets a string that identifies the database client.</summary><value>A string that identifies the database client. If not specified, the name of the client computer. If neither is specified, the value is an empty string.</value><remarks>
  7248. <format type="text/markdown"><![CDATA[
  7249. ## Remarks
  7250. The string typically contains the network name of the client. The <xref:Microsoft.Data.SqlClient.SqlConnection.WorkstationId%2A> property corresponds to the `Workstation ID` connection string property.
  7251. ## Examples
  7252. The following example creates a <xref:Microsoft.Data.SqlClient.SqlConnection> and displays the <xref:Microsoft.Data.SqlClient.SqlConnection.WorkstationId%2A> property.
  7253. [!code-csharp[SqlConnection_WorkstationId Example#1](~/../sqlclient/doc/samples/SqlConnection_WorkstationId.cs#1)]
  7254. ]]></format>
  7255. </remarks>
  7256. </member>
  7257. <member name="P:Microsoft.Data.SqlClient.SqlConnection.Credential">
  7258. <summary>Gets or sets the <see cref="T:Microsoft.Data.SqlClient.SqlCredential" /> object for this connection.</summary><value>The <see cref="T:Microsoft.Data.SqlClient.SqlCredential" /> object for this connection.</value><remarks>
  7259. <format type="text/markdown"><![CDATA[
  7260. ## Remarks
  7261. `Persist Security Info = true` is required to get the value of the <xref:Microsoft.Data.SqlClient.SqlCredential> object with <xref:Microsoft.Data.SqlClient.SqlConnection.Credential%2A>.
  7262. The default value of <xref:Microsoft.Data.SqlClient.SqlConnection.Credential%2A> is null.
  7263. An <xref:System.InvalidOperationException> exception will be raised:
  7264. - If <xref:Microsoft.Data.SqlClient.SqlConnection.Credential%2A> is set on an open connection.
  7265. - If <xref:Microsoft.Data.SqlClient.SqlConnection.Credential%2A> is set when `Context Connection=true`.
  7266. - If <xref:Microsoft.Data.SqlClient.SqlConnection.Credential%2A> is set when `Integrated Security = true`.
  7267. - If <xref:Microsoft.Data.SqlClient.SqlConnection.Credential%2A> is set when the connection string uses `Password`.
  7268. - If <xref:Microsoft.Data.SqlClient.SqlConnection.Credential%2A> is set when the connection string uses `UserID`.
  7269. ]]></format>
  7270. </remarks>
  7271. </member>
  7272. <member name="P:Microsoft.Data.SqlClient.SqlConnection.DbProviderFactory">
  7273. <summary>To be added.</summary><value>To be added.</value><remarks>To be added.</remarks>
  7274. </member>
  7275. <member name="E:Microsoft.Data.SqlClient.SqlConnection.InfoMessage">
  7276. <summary>Occurs when SQL Server returns a warning or informational message.</summary><remarks>
  7277. <format type="text/markdown"><![CDATA[
  7278. ## Remarks
  7279. Clients that want to process warnings or informational messages sent by the server should create an <xref:Microsoft.Data.SqlClient.SqlInfoMessageEventHandler> delegate to listen to this event.
  7280. The <xref:Microsoft.Data.SqlClient.SqlConnection.InfoMessage> event occurs when a message with a severity of 10 or less is returned by SQL Server. Messages that have a severity between 11 and 20 raise an error and messages that have a severity over 20 causes the connection to close. For more information on SQL Server error levels, see [Database Engine Error Severities](/sql/relational-databases/errors-events/database-engine-error-severities).
  7281. For more information and an example, see [Connection Events](~/docs/framework/data/adonet/connection-events.md).
  7282. ]]></format>
  7283. </remarks>
  7284. </member>
  7285. <member name="P:Microsoft.Data.SqlClient.SqlConnection.FireInfoMessageEventOnUserErrors">
  7286. <summary>Gets or sets the <see cref="P:Microsoft.Data.SqlClient.SqlConnection.FireInfoMessageEventOnUserErrors" /> property.</summary><value>
  7287. <see langword="true" /> if the <see cref="P:Microsoft.Data.SqlClient.SqlConnection.FireInfoMessageEventOnUserErrors" /> property has been set; otherwise <see langword="false" />.</value><remarks>
  7288. <format type="text/markdown"><![CDATA[
  7289. ## Remarks
  7290. When you set <xref:Microsoft.Data.SqlClient.SqlConnection.FireInfoMessageEventOnUserErrors%2A> to `true`, errors that were previously treated as exceptions are now handled as <xref:Microsoft.Data.SqlClient.SqlConnection.InfoMessage> events. All events fire immediately and are handled by the event handler. If is <xref:Microsoft.Data.SqlClient.SqlConnection.FireInfoMessageEventOnUserErrors%2A> is set to `false`, then <xref:Microsoft.Data.SqlClient.SqlConnection.InfoMessage> events are handled at the end of the procedure.
  7291. > [!NOTE]
  7292. > An error with a severity level of 17 or above that causes the server to stop processing the command needs to be handled as an exception. In this case, an exception is thrown regardless of how the error is handled in the <xref:Microsoft.Data.SqlClient.SqlConnection.InfoMessage> event.
  7293. For more information on working with events, see [Connection Events](~/docs/framework/data/adonet/connection-events.md). For more information on errors generated by the SQL Server engine, see [Database Engine Errors](/sql/relational-databases/errors-events/database-engine-events-and-errors).
  7294. ]]></format>
  7295. </remarks>
  7296. </member>
  7297. <member name="M:Microsoft.Data.SqlClient.SqlConnection.OnStateChange(System.Data.StateChangeEventArgs)">
  7298. <param name="stateChange">To be added.</param><summary>To be added.</summary><remarks>To be added.</remarks>
  7299. </member>
  7300. <member name="M:Microsoft.Data.SqlClient.SqlConnection.BeginTransaction">
  7301. <summary>Starts a database transaction.</summary><returns>An object representing the new transaction.</returns><remarks>
  7302. <format type="text/markdown"><![CDATA[
  7303. ## Remarks
  7304. This command maps to the SQL Server implementation of BEGIN TRANSACTION.
  7305. You must explicitly commit or roll back the transaction using the <xref:Microsoft.Data.SqlClient.SqlTransaction.Commit%2A> or <xref:Microsoft.Data.SqlClient.SqlTransaction.Rollback%2A> method. To make sure that the .NET Framework Data Provider for SQL Server transaction management model performs correctly, avoid using other transaction management models, such as the one provided by SQL Server.
  7306. > [!NOTE]
  7307. > If you do not specify an isolation level, the default isolation level is used. To specify an isolation level with the <xref:Microsoft.Data.SqlClient.SqlConnection.BeginTransaction%2A> method, use the overload that takes the `iso` parameter (<xref:Microsoft.Data.SqlClient.SqlConnection.BeginTransaction%2A>). The isolation level set for a transaction persists after the transaction is completed and until the connection is closed or disposed. Setting the isolation level to **Snapshot** in a database where the snapshot isolation level is not enabled does not throw an exception. The transaction will complete using the default isolation level.
  7308. > [!CAUTION]
  7309. > If a transaction is started and a level 16 or higher error occurs on the server, the transaction will not be rolled back until the <xref:Microsoft.Data.SqlClient.SqlDataReader.Read%2A> method is invoked. No exception is thrown on **ExecuteReader**.
  7310. > [!CAUTION]
  7311. > When your query returns a large amount of data and calls `BeginTransaction`, a <xref:Microsoft.Data.SqlClient.SqlException> is thrown because SQL Server does not allow parallel transactions when using MARS. To avoid this problem, always associate a transaction with the command, the connection, or both before any readers are open.
  7312. For more information on SQL Server transactions, see [Transactions (Transact-SQL)](/sql/t-sql/language-elements/transactions-transact-sql).
  7313. ## Examples
  7314. The following example creates a <xref:Microsoft.Data.SqlClient.SqlConnection> and a <xref:Microsoft.Data.SqlClient.SqlTransaction>. It also demonstrates how to use the <xref:Microsoft.Data.SqlClient.SqlConnection.BeginTransaction%2A>, a <xref:Microsoft.Data.SqlClient.SqlTransaction.Commit%2A>, and <xref:Microsoft.Data.SqlClient.SqlTransaction.Rollback%2A> methods.
  7315. [!code-csharp[SqlConnection_BeginTransaction Example#1](~/../sqlclient/doc/samples/SqlConnection_BeginTransaction.cs#1)]
  7316. ]]></format>
  7317. </remarks><exception cref="T:Microsoft.Data.SqlClient.SqlException">Parallel transactions are not allowed when using Multiple Active Result Sets (MARS).</exception><exception cref="T:System.InvalidOperationException">Parallel transactions are not supported.</exception>
  7318. </member>
  7319. <member name="M:Microsoft.Data.SqlClient.SqlConnection.BeginTransaction(System.Data.IsolationLevel)">
  7320. <param name="iso">The isolation level under which the transaction should run.</param><summary>Starts a database transaction with the specified isolation level.</summary><returns>An object representing the new transaction.</returns><remarks>
  7321. <format type="text/markdown"><![CDATA[
  7322. ## Remarks
  7323. This command maps to the SQL Server implementation of BEGIN TRANSACTION.
  7324. You must explicitly commit or roll back the transaction using the <xref:Microsoft.Data.SqlClient.SqlTransaction.Commit%2A> or <xref:Microsoft.Data.SqlClient.SqlTransaction.Rollback%2A> method. To make sure that the .NET Framework Data Provider for SQL Server transaction management model performs correctly, avoid using other transaction management models, such as the one provided by SQL Server.
  7325. > [!NOTE]
  7326. > After a transaction is committed or rolled back, the isolation level of the transaction persists for all subsequent commands that are in autocommit mode (the SQL Server default). This can produce unexpected results, such as an isolation level of REPEATABLE READ persisting and locking other users out of a row. To reset the isolation level to the default (READ COMMITTED), execute the Transact-SQL SET TRANSACTION ISOLATION LEVEL READ COMMITTED statement, or call <xref:Microsoft.Data.SqlClient.SqlConnection.BeginTransaction%2A?displayProperty=nameWithType> followed immediately by <xref:Microsoft.Data.SqlClient.SqlTransaction.Commit%2A?displayProperty=nameWithType>. For more information on SQL Server isolation levels, see [Transaction Isolation Levels](/sql/t-sql/language-elements/transaction-isolation-levels).
  7327. For more information on SQL Server transactions, see [Transactions (Transact-SQL)](/sql/t-sql/language-elements/transactions-transact-sql).
  7328. > [!CAUTION]
  7329. > When your query returns a large amount of data and calls `BeginTransaction`, a <xref:Microsoft.Data.SqlClient.SqlException> is thrown because SQL Server does not allow parallel transactions when using MARS. To avoid this problem, always associate a transaction with the command, the connection, or both before any readers are open.
  7330. ## Examples
  7331. The following example creates a <xref:Microsoft.Data.SqlClient.SqlConnection> and a <xref:Microsoft.Data.SqlClient.SqlTransaction>. It also demonstrates how to use the <xref:Microsoft.Data.SqlClient.SqlConnection.BeginTransaction%2A>, a <xref:Microsoft.Data.SqlClient.SqlTransaction.Commit%2A>, and <xref:Microsoft.Data.SqlClient.SqlTransaction.Rollback%2A> methods.
  7332. [!code-csharp[SqlConnection_BeginTransaction1 Example#1](~/../sqlclient/doc/samples/SqlConnection_BeginTransaction1.cs#1)]
  7333. ]]></format>
  7334. </remarks><exception cref="T:Microsoft.Data.SqlClient.SqlException">Parallel transactions are not allowed when using Multiple Active Result Sets (MARS).</exception><exception cref="T:System.InvalidOperationException">Parallel transactions are not supported.</exception>
  7335. </member>
  7336. <member name="M:Microsoft.Data.SqlClient.SqlConnection.BeginTransaction(System.String)">
  7337. <param name="transactionName">The name of the transaction.</param><summary>Starts a database transaction with the specified transaction name.</summary><returns>An object representing the new transaction.</returns><remarks>
  7338. <format type="text/markdown"><![CDATA[
  7339. ## Remarks
  7340. This command maps to the SQL Server implementation of BEGIN TRANSACTION.
  7341. The length of the `transactionName` parameter must not exceed 32 characters; otherwise an exception will be thrown.
  7342. The value in the `transactionName` parameter can be used in later calls to <xref:Microsoft.Data.SqlClient.SqlTransaction.Rollback%2A> and in the `savePoint` parameter of the <xref:Microsoft.Data.SqlClient.SqlTransaction.Save%2A> method.
  7343. You must explicitly commit or roll back the transaction using the <xref:Microsoft.Data.SqlClient.SqlTransaction.Commit%2A> or <xref:Microsoft.Data.SqlClient.SqlTransaction.Rollback%2A> method. To make sure that the .NET Data Provider for SQL Server transaction management model performs correctly, avoid using other transaction management models, such as the one provided by SQL Server.
  7344. For more information on SQL Server transactions, see [Transactions (Transact-SQL)](/sql/t-sql/language-elements/transactions-transact-sql).
  7345. > [!CAUTION]
  7346. > When your query returns a large amount of data and calls `BeginTransaction`, a <xref:Microsoft.Data.SqlClient.SqlException> is thrown because SQL Server does not allow parallel transactions when using MARS. To avoid this problem, always associate a transaction with the command, the connection, or both before any readers are open.
  7347. ## Examples
  7348. The following example creates a <xref:Microsoft.Data.SqlClient.SqlConnection> and a <xref:Microsoft.Data.SqlClient.SqlTransaction>. It also demonstrates how to use the <xref:Microsoft.Data.SqlClient.SqlConnection.BeginTransaction%2A>, a <xref:Microsoft.Data.SqlClient.SqlTransaction.Commit%2A>, and <xref:Microsoft.Data.SqlClient.SqlTransaction.Rollback%2A> methods.
  7349. [!code-csharp[SqlConnection_BeginTransaction2 Example#1](~/../sqlclient/doc/samples/SqlConnection_BeginTransaction2.cs#1)]
  7350. ]]></format>
  7351. </remarks><exception cref="T:Microsoft.Data.SqlClient.SqlException">Parallel transactions are not allowed when using Multiple Active Result Sets (MARS).</exception><exception cref="T:System.InvalidOperationException">Parallel transactions are not supported.</exception>
  7352. </member>
  7353. <member name="M:Microsoft.Data.SqlClient.SqlConnection.BeginDbTransaction(System.Data.IsolationLevel)">
  7354. <param name="isolationLevel">To be added.</param><summary>To be added.</summary><returns>To be added.</returns><remarks>To be added.</remarks>
  7355. </member>
  7356. <member name="M:Microsoft.Data.SqlClient.SqlConnection.BeginTransaction(System.Data.IsolationLevel,System.String)">
  7357. <param name="iso">The isolation level under which the transaction should run.</param><param name="transactionName">The name of the transaction.</param><summary>Starts a database transaction with the specified isolation level and transaction name.</summary><returns>An object representing the new transaction.</returns><remarks>
  7358. <format type="text/markdown"><![CDATA[
  7359. ## Remarks
  7360. This command maps to the SQL Server implementation of BEGIN TRANSACTION.
  7361. The value in the `transactionName` parameter can be used in later calls to <xref:Microsoft.Data.SqlClient.SqlTransaction.Rollback%2A> and in the `savePoint` parameter of the <xref:Microsoft.Data.SqlClient.SqlTransaction.Save%2A> method.
  7362. You must explicitly commit or roll back the transaction using the <xref:Microsoft.Data.SqlClient.SqlTransaction.Commit%2A> or <xref:Microsoft.Data.SqlClient.SqlTransaction.Rollback%2A> method. To make sure that the SQL Server transaction management model performs correctly, avoid using other transaction management models, such as the one provided by SQL Server.
  7363. > [!NOTE]
  7364. > After a transaction is committed or rolled back, the isolation level of the transaction persists for all subsequent commands that are in autocommit mode (the SQL Server default). This can produce unexpected results, such as an isolation level of REPEATABLE READ persisting and locking other users out of a row. To reset the isolation level to the default (READ COMMITTED), execute the Transact-SQL SET TRANSACTION ISOLATION LEVEL READ COMMITTED statement, or call <xref:Microsoft.Data.SqlClient.SqlConnection.BeginTransaction%2A?displayProperty=nameWithType> followed immediately by <xref:Microsoft.Data.SqlClient.SqlTransaction.Commit%2A?displayProperty=nameWithType>. For more information on SQL Server isolation levels, see [Transaction Isolation Levels](/sql/t-sql/language-elements/transaction-isolation-levels).
  7365. For more information on SQL Server transactions, see [Transactions (Transact-SQL)](/sql/t-sql/language-elements/transactions-transact-sql).
  7366. > [!CAUTION]
  7367. > When your query returns a large amount of data and calls `BeginTransaction`, a <xref:Microsoft.Data.SqlClient.SqlException> is thrown because SQL Server does not allow parallel transactions when using MARS. To avoid this problem, always associate a transaction with the command, the connection, or both before any readers are open.
  7368. ## Examples
  7369. The following example creates a <xref:Microsoft.Data.SqlClient.SqlConnection> and a <xref:Microsoft.Data.SqlClient.SqlTransaction>. It also demonstrates how to use the <xref:Microsoft.Data.SqlClient.SqlConnection.BeginTransaction%2A>, a <xref:Microsoft.Data.SqlClient.SqlTransaction.Commit%2A>, and <xref:Microsoft.Data.SqlClient.SqlTransaction.Rollback%2A> methods.
  7370. [!code-csharp[SqlConnection_BeginTransaction3 Example#1](~/../sqlclient/doc/samples/SqlConnection_BeginTransaction3.cs#1)]
  7371. ]]></format>
  7372. </remarks><exception cref="T:Microsoft.Data.SqlClient.SqlException">Parallel transactions are not allowed when using Multiple Active Result Sets (MARS).</exception><exception cref="T:System.InvalidOperationException">Parallel transactions are not supported.</exception>
  7373. </member>
  7374. <member name="M:Microsoft.Data.SqlClient.SqlConnection.ChangeDatabase(System.String)">
  7375. <param name="database">The name of the database to use instead of the current database.</param><summary>Changes the current database for an open <see cref="T:Microsoft.Data.SqlClient.SqlConnection" />.</summary><remarks>
  7376. <format type="text/markdown"><![CDATA[
  7377. ## Remarks
  7378. The value supplied in the `database` parameter must be a valid database name. The `database` parameter cannot contain a null value, an empty string, or a string with only blank characters.
  7379. ## Examples
  7380. The following example creates a <xref:Microsoft.Data.SqlClient.SqlConnection> and displays some of its read-only properties.
  7381. [!code-csharp[SqlConnection_Database Example#1](~/../sqlclient/doc/samples/SqlConnection_Database.cs#1)]
  7382. ]]></format>
  7383. </remarks><exception cref="T:System.ArgumentException">The database name is not valid.</exception><exception cref="T:System.InvalidOperationException">The connection is not open.</exception><exception cref="T:Microsoft.Data.SqlClient.SqlException">Cannot change the database.</exception>
  7384. </member>
  7385. <member name="M:Microsoft.Data.SqlClient.SqlConnection.ClearAllPools">
  7386. <summary>Empties the connection pool.</summary><remarks>
  7387. <format type="text/markdown"><![CDATA[
  7388. ## Remarks
  7389. <xref:Microsoft.Data.SqlClient.SqlConnection.ClearAllPools%2A> resets (or empties) the connection pool. If there are connections in use at the time of the call, they are marked appropriately and will be discarded (instead of being returned to the pool) when <xref:Microsoft.Data.SqlClient.SqlConnection.Close%2A> is called on them.
  7390. ]]></format>
  7391. </remarks>
  7392. </member>
  7393. <member name="M:Microsoft.Data.SqlClient.SqlConnection.ClearPool(Microsoft.Data.SqlClient.SqlConnection)">
  7394. <param name="connection">The <see cref="T:Microsoft.Data.SqlClient.SqlConnection" /> to be cleared from the pool.</param><summary>Empties the connection pool associated with the specified connection.</summary><remarks>
  7395. <format type="text/markdown"><![CDATA[
  7396. ## Remarks
  7397. <xref:Microsoft.Data.SqlClient.SqlConnection.ClearPool%2A> clears the connection pool that is associated with the `connection`. If additional connections associated with `connection` are in use at the time of the call, they are marked appropriately and are discarded (instead of being returned to the pool) when <xref:Microsoft.Data.SqlClient.SqlConnection.Close%2A> is called on them.
  7398. ]]></format>
  7399. </remarks>
  7400. </member>
  7401. <member name="M:Microsoft.Data.SqlClient.SqlConnection.Close">
  7402. <summary>Closes the connection to the database. This is the preferred method of closing any open connection.</summary><remarks>
  7403. <format type="text/markdown"><![CDATA[
  7404. ## Remarks
  7405. The <xref:Microsoft.Data.SqlClient.SqlConnection.Close%2A> method rolls back any pending transactions. It then releases the connection to the connection pool, or closes the connection if connection pooling is disabled.
  7406. > [!NOTE]
  7407. > Pending transactions started using Transact-SQL or <xref:Microsoft.Data.SqlClient.SqlConnection.BeginTransaction%2A> are automatically rolled back when the connection is reset if connection pooling is enabled. If connection pooling is off, the transaction is rolled back after `SqlConnection.Close` is called. Transactions started through <xref:System.Transactions> are controlled through the `System.Transactions` infrastructure, and are not affected by `SqlConnection.Close`.
  7408. An application can call <xref:Microsoft.Data.SqlClient.SqlConnection.Close%2A> more than one time. No exception is generated.
  7409. If the <xref:Microsoft.Data.SqlClient.SqlConnection> goes out of scope, it won't be closed. Therefore, you must explicitly close the connection by calling `Close` or `Dispose`. `Close` and `Dispose` are functionally equivalent. If the connection pooling value `Pooling` is set to `true` or `yes`, the underlying connection is returned back to the connection pool. On the other hand, if `Pooling` is set to `false` or `no`, the underlying connection to the server is closed.
  7410. > [!NOTE]
  7411. > Login and logout events will not be raised on the server when a connection is fetched from or returned to the connection pool, because the connection is not actually closed when it is returned to the connection pool. For more information, see [SQL Server Connection Pooling (ADO.NET)](~/docs/framework/data/adonet/sql-server-connection-pooling.md).
  7412. > [!CAUTION]
  7413. > Do not call `Close` or `Dispose` on a Connection, a DataReader, or any other managed object in the `Finalize` method of your class. In a finalizer, you should only release unmanaged resources that your class owns directly. If your class does not own any unmanaged resources, do not include a `Finalize` method in your class definition. For more information, see [Garbage Collection](~/docs/standard/garbage-collection/index.md).
  7414. ## Examples
  7415. The following example creates a <xref:Microsoft.Data.SqlClient.SqlConnection>, opens it, displays some of its properties. The connection is automatically closed at the end of the `using` block.
  7416. [!code-csharp[SqlConnection_Open Example#1](~/../sqlclient/doc/samples/SqlConnection_Open.cs#1)]
  7417. ]]></format>
  7418. </remarks><exception cref="T:Microsoft.Data.SqlClient.SqlException">The connection-level error that occurred while opening the connection.</exception>
  7419. </member>
  7420. <member name="M:Microsoft.Data.SqlClient.SqlConnection.CreateCommand">
  7421. <summary>Creates and returns a <see cref="T:Microsoft.Data.SqlClient.SqlCommand" /> object associated with the <see cref="T:Microsoft.Data.SqlClient.SqlConnection" />.</summary><returns>A <see cref="T:Microsoft.Data.SqlClient.SqlCommand" /> object.</returns><remarks>
  7422. <format type="text/markdown"><![CDATA[
  7423. ## Examples
  7424. [!code-csharp[SqlConnection_CreateCommand#1](~/../sqlclient/doc/samples/SqlConnection_CreateCommand.cs#1)]
  7425. ]]></format>
  7426. </remarks>
  7427. </member>
  7428. <member name="M:Microsoft.Data.SqlClient.SqlConnection.Open">
  7429. <summary>Opens a database connection with the property settings specified by the <see cref="P:Microsoft.Data.SqlClient.SqlConnection.ConnectionString" />.</summary><remarks>
  7430. <format type="text/markdown"><![CDATA[
  7431. ## Remarks
  7432. The <xref:Microsoft.Data.SqlClient.SqlConnection> draws an open connection from the connection pool if one is available. Otherwise, it establishes a new connection to an instance of SQL Server.
  7433. > [!NOTE]
  7434. > If the <xref:Microsoft.Data.SqlClient.SqlConnection> goes out of scope, it is not closed. Therefore, you must explicitly close the connection by calling <xref:Microsoft.Data.SqlClient.SqlConnection.Close%2A>.
  7435. > [!NOTE]
  7436. > If you specify a port number other than 1433 when you are trying to connect to an instance of SQL Server and using a protocol other than TCP/IP, the <xref:Microsoft.Data.SqlClient.SqlConnection.Open%2A> method fails. To specify a port number other than 1433, include "server=machinename,port number" in the connection string, and use the TCP/IP protocol.
  7437. > [!NOTE]
  7438. > The .NET Framework Data Provider for SQL Server requires the Security permission with "Allows calls to unmanaged assemblies" enabled (<xref:System.Security.Permissions.SecurityPermission> with <xref:System.Security.Permissions.SecurityPermissionFlag> set to `UnmanagedCode`) to open a <xref:Microsoft.Data.SqlClient.SqlConnection> with SQL Debugging enabled.
  7439. ## Examples
  7440. The following example creates a <xref:Microsoft.Data.SqlClient.SqlConnection>, opens it, and displays some of its properties. The connection is automatically closed at the end of the `using` block.
  7441. [!code-csharp[SqlConnection_Open Example#1](~/../sqlclient/doc/samples/SqlConnection_Open.cs#1)]
  7442. ]]></format>
  7443. </remarks><exception cref="T:System.InvalidOperationException">Cannot open a connection without specifying a data source or server.
  7444. or
  7445. The connection is already open.</exception><exception cref="T:Microsoft.Data.SqlClient.SqlException">A connection-level error occurred while opening the connection. If the <see cref="P:Microsoft.Data.SqlClient.SqlException.Number" /> property contains the value 18487 or 18488, this indicates that the specified password has expired or must be reset. See the <see cref="M:Microsoft.Data.SqlClient.SqlConnection.ChangePassword(System.String,System.String)" /> method for more information.
  7446. The <see langword="&lt;system.data.localdb&gt;" /> tag in the app.config file has invalid or unknown elements.</exception><exception cref="T:System.Configuration.ConfigurationErrorsException">There are two entries with the same name in the <see langword="&lt;localdbinstances&gt;" /> section.</exception>
  7447. </member>
  7448. <member name="M:Microsoft.Data.SqlClient.SqlConnection.OpenAsync(System.Threading.CancellationToken)">
  7449. <param name="cancellationToken">The cancellation instruction.</param><summary>An asynchronous version of <see cref="M:Microsoft.Data.SqlClient.SqlConnection.Open" />, which opens a database connection with the property settings specified by the <see cref="P:Microsoft.Data.SqlClient.SqlConnection.ConnectionString" />. The cancellation token can be used to request that the operation be abandoned before the connection timeout elapses. Exceptions will be propagated via the returned Task. If the connection timeout time elapses without successfully connecting, the returned Task will be marked as faulted with an Exception. The implementation returns a Task without blocking the calling thread for both pooled and non-pooled connections.</summary><returns>A task representing the asynchronous operation.</returns><remarks>
  7450. <format type="text/markdown"><![CDATA[
  7451. ## Remarks
  7452. After calling <xref:Microsoft.Data.SqlClient.SqlConnection.OpenAsync%2A>, <xref:Microsoft.Data.SqlClient.SqlConnection.State%2A> must return <xref:System.Data.ConnectionState.Connecting> until the returned <xref:System.Threading.Tasks.Task> is completed. Then, if the connection was successful, <xref:Microsoft.Data.SqlClient.SqlConnection.State%2A> must return <xref:System.Data.ConnectionState.Open>. If the connection fails, <xref:Microsoft.Data.SqlClient.SqlConnection.State%2A> must return <xref:System.Data.ConnectionState.Closed>.
  7453. A call to <xref:Microsoft.Data.SqlClient.SqlConnection.Close%2A> will attempt to cancel or close the corresponding <xref:Microsoft.Data.SqlClient.SqlConnection.OpenAsync%2A> call.
  7454. For more information about asynchronous programming in the .NET Framework Data Provider for SQL Server, see [Asynchronous Programming](~/docs/framework/data/adonet/asynchronous-programming.md).
  7455. ]]></format>
  7456. </remarks><exception cref="T:System.InvalidOperationException">Calling <see cref="M:Microsoft.Data.SqlClient.SqlConnection.OpenAsync(System.Threading.CancellationToken)" /> more than once for the same instance before task completion.
  7457. <see langword="Context Connection=true" /> is specified in the connection string.
  7458. A connection was not available from the connection pool before the connection time out elapsed.</exception><exception cref="T:Microsoft.Data.SqlClient.SqlException">Any error returned by SQL Server that occurred while opening the connection.</exception>
  7459. </member>
  7460. <member name="M:Microsoft.Data.SqlClient.SqlConnection.GetSchema">
  7461. <summary>Returns schema information for the data source of this <see cref="T:Microsoft.Data.SqlClient.SqlConnection" />. For more information about scheme, see [SQL Server Schema Collections](~/docs/framework/data/adonet/sql-server-schema-collections.md).</summary><returns>A <see cref="T:System.Data.DataTable" /> that contains schema information.</returns><remarks>To be added.</remarks>
  7462. </member>
  7463. <member name="M:Microsoft.Data.SqlClient.SqlConnection.GetSchema(System.String)">
  7464. <param name="collectionName">Specifies the name of the schema to return.</param><summary>Returns schema information for the data source of this <see cref="T:Microsoft.Data.SqlClient.SqlConnection" /> using the specified string for the schema name.</summary><returns>A <see cref="T:System.Data.DataTable" /> that contains schema information.</returns><remarks>
  7465. <format type="text/markdown"><![CDATA[
  7466. ## Remarks
  7467. You may need the schema information of the database, tables or columns. This sample:
  7468. - Uses GetSchema to get schema information.
  7469. - Use schema restrictions to get the specified information.
  7470. - Gets schema information of the database, tables, and some columns.
  7471. Before you run the sample, you need to create the sample database, using the following Transact-SQL:
  7472. ```
  7473. USE [master]
  7474. GO
  7475. CREATE DATABASE [MySchool]
  7476. GO
  7477. USE [MySchool]
  7478. GO
  7479. SET ANSI_NULLS ON
  7480. GO
  7481. SET QUOTED_IDENTIFIER ON
  7482. GO
  7483. CREATE TABLE [dbo].[Course]([CourseID] [nvarchar](10) NOT NULL,
  7484. [Year] [smallint] NOT NULL,
  7485. [Title] [nvarchar](100) NOT NULL,
  7486. [Credits] [int] NOT NULL,
  7487. [DepartmentID] [int] NOT NULL,
  7488. CONSTRAINT [PK_Course] PRIMARY KEY CLUSTERED
  7489. (
  7490. [CourseID] ASC,
  7491. [Year] ASC
  7492. )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]) ON [PRIMARY]
  7493. GO
  7494. SET ANSI_NULLS ON
  7495. GO
  7496. SET QUOTED_IDENTIFIER ON
  7497. GO
  7498. CREATE TABLE [dbo].[Department]([DepartmentID] [int] IDENTITY(1,1) NOT NULL,
  7499. [Name] [nvarchar](50) NOT NULL,
  7500. [Budget] [money] NOT NULL,
  7501. [StartDate] [datetime] NOT NULL,
  7502. [Administrator] [int] NULL,
  7503. CONSTRAINT [PK_Department] PRIMARY KEY CLUSTERED
  7504. (
  7505. [DepartmentID] ASC
  7506. )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]) ON [PRIMARY]
  7507. GO
  7508. INSERT [dbo].[Course] ([CourseID], [Year], [Title], [Credits], [DepartmentID]) VALUES (N'C1045', 2012, N'Calculus', 4, 7)
  7509. INSERT [dbo].[Course] ([CourseID], [Year], [Title], [Credits], [DepartmentID]) VALUES (N'C1061', 2012, N'Physics', 4, 1)
  7510. INSERT [dbo].[Course] ([CourseID], [Year], [Title], [Credits], [DepartmentID]) VALUES (N'C2021', 2012, N'Composition', 3, 2)
  7511. INSERT [dbo].[Course] ([CourseID], [Year], [Title], [Credits], [DepartmentID]) VALUES (N'C2042', 2012, N'Literature', 4, 2)
  7512. SET IDENTITY_INSERT [dbo].[Department] ON
  7513. INSERT [dbo].[Department] ([DepartmentID], [Name], [Budget], [StartDate], [Administrator]) VALUES (1, N'Engineering', 350000.0000, CAST(0x0000999C00000000 AS DateTime), 2)
  7514. INSERT [dbo].[Department] ([DepartmentID], [Name], [Budget], [StartDate], [Administrator]) VALUES (2, N'English', 120000.0000, CAST(0x0000999C00000000 AS DateTime), 6)
  7515. INSERT [dbo].[Department] ([DepartmentID], [Name], [Budget], [StartDate], [Administrator]) VALUES (4, N'Economics', 200000.0000, CAST(0x0000999C00000000 AS DateTime), 4)
  7516. INSERT [dbo].[Department] ([DepartmentID], [Name], [Budget], [StartDate], [Administrator]) VALUES (7, N'Mathematics', 250024.0000, CAST(0x0000999C00000000 AS DateTime), 3)
  7517. SET IDENTITY_INSERT [dbo].[Department] OFF
  7518. ALTER TABLE [dbo].[Course] WITH CHECK ADD CONSTRAINT [FK_Course_Department] FOREIGN KEY([DepartmentID])
  7519. REFERENCES [dbo].[Department] ([DepartmentID])
  7520. GO
  7521. ALTER TABLE [dbo].[Course] CHECK CONSTRAINT [FK_Course_Department]
  7522. GO
  7523. ```
  7524. [How to Get Schema Information from Database](https://code.msdn.microsoft.com/How-to-Get-Schema-b66d62e2) has C# and Visual Basic versions of this code sample in a Visual Studio project.
  7525. [!code-csharp[SqlConnection.GetSchema#1](~/../sqlclient/doc/samples/SqlConnection_GetSchema.cs#1)]
  7526. ]]></format>
  7527. </remarks><exception cref="T:System.ArgumentException">
  7528. <paramref name="collectionName" /> is specified as null.</exception>
  7529. </member>
  7530. <member name="M:Microsoft.Data.SqlClient.SqlConnection.GetSchema(System.String,System.String[])">
  7531. <param name="collectionName">Specifies the name of the schema to return.</param><param name="restrictionValues">A set of restriction values for the requested schema.</param><summary>Returns schema information for the data source of this <see cref="T:Microsoft.Data.SqlClient.SqlConnection" /> using the specified string for the schema name and the specified string array for the restriction values.</summary><returns>A <see cref="T:System.Data.DataTable" /> that contains schema information.</returns><remarks>
  7532. <format type="text/markdown"><![CDATA[
  7533. ## Remarks
  7534. The `restrictionValues` parameter can supply *n* depth of values, which are specified by the restrictions collection for a specific collection. In order to set values on a given restriction, and not set the values of other restrictions, you need to set the preceding restrictions to `null` and then put the appropriate value in for the restriction that you would like to specify a value for.
  7535. An example of this is the "Tables" collection. If the "Tables" collection has three restrictions--database, owner, and table name--and you want to get back only the tables associated with the owner "Carl", you need to pass in the following values: null, "Carl". If a restriction value is not passed in, the default values are used for that restriction. This is the same mapping as passing in `null`, which is different from passing in an empty string for the parameter value. In that case, the empty string ("") is considered to be the value for the specified parameter.
  7536. For a code sample demonstrating <xref:Microsoft.Data.SqlClient.SqlConnection.GetSchema%2A>, see <xref:Microsoft.Data.SqlClient.SqlConnection.GetSchema%2A>.
  7537. ]]></format>
  7538. </remarks><exception cref="T:System.ArgumentException">
  7539. <paramref name="collectionName" /> is specified as null.</exception><altmember cref="M:Microsoft.Data.SqlClient.SqlConnection.GetSchema" />
  7540. </member>
  7541. <member name="M:Microsoft.Data.SqlClient.SqlConnection.ChangePassword(System.String,System.String)">
  7542. <param name="connectionString">The connection string that contains enough information to connect to the server that you want. The connection string must contain the user ID and the current password.</param><param name="newPassword">The new password to set. This password must comply with any password security policy set on the server, including minimum length, requirements for specific characters, and so on.</param><summary>Changes the SQL Server password for the user indicated in the connection string to the supplied new password.</summary><remarks>
  7543. <format type="text/markdown"><![CDATA[
  7544. ## Remarks
  7545. When you are using SQL Server on Windows Server, developers can take advantage of functionality that lets the client application supply both the current and a new password in order to change the existing password. Applications can implement functionality such as prompting the user for a new password during initial login if the old one has expired, and this operation can be completed without administrator intervention.
  7546. The <xref:Microsoft.Data.SqlClient.SqlConnection.ChangePassword%2A> method changes the SQL Server password for the user indicated in the supplied `connectionString` parameter to the value supplied in the `newPassword` parameter. If the connection string includes the option for integrated security (that is, "Integrated Security=True" or the equivalent), an exception is thrown.
  7547. To determine that the password has expired, calling the <xref:Microsoft.Data.SqlClient.SqlConnection.Open%2A> method raises a <xref:Microsoft.Data.SqlClient.SqlException>. In order to indicate that the password that is contained within the connection string must be reset, the <xref:Microsoft.Data.SqlClient.SqlException.Number%2A> property for the exception contains the status value 18487 or 18488. The first value (18487) indicates that the password has expired and the second (18488) indicates that the password must be reset before logging in.
  7548. This method opens its own connection to the server, requests the password change, and closes the connection as soon as it has completed. This connection is not retrieved from, nor returned to, the SQL Server connection pool.
  7549. ## Examples
  7550. The following is a simple example of changing a password:
  7551. ```csharp
  7552. class Program {
  7553. static void Main(string[] args) {
  7554. Microsoft.Data.SqlClient.SqlConnection.ChangePassword(
  7555. "Data Source=a_server;Initial Catalog=a_database;UID=user;PWD=old_password",
  7556. "new_password");
  7557. }
  7558. }
  7559. ```
  7560. ```vb
  7561. Module Module1
  7562. Sub Main()
  7563. Microsoft.Data.SqlClient.SqlConnection.ChangePassword(
  7564. "Data Source=a_server;Initial Catalog=a_database;UID=user;PWD=old_password",
  7565. "new_password")
  7566. End Sub
  7567. End Module
  7568. ```
  7569. The following console application demonstrates the issues involved in changing a user's password because the current password has expired.
  7570. [!code-csharp[SqlConnection_ConnectionString1#1](~/../sqlclient/doc/samples/SqlConnection_ConnectionString1.cs#1)]
  7571. ]]></format>
  7572. </remarks><exception cref="T:System.ArgumentException">The connection string includes the option to use integrated security.
  7573. Or
  7574. The <paramref name="newPassword" /> exceeds 128 characters.</exception><exception cref="T:System.ArgumentNullException">Either the <paramref name="connectionString" /> or the <paramref name="newPassword" /> parameter is null.</exception>
  7575. </member>
  7576. <member name="M:Microsoft.Data.SqlClient.SqlConnection.ChangePassword(System.String,Microsoft.Data.SqlClient.SqlCredential,System.Security.SecureString)">
  7577. <param name="connectionString">The connection string that contains enough information to connect to a server. The connection string should not use any of the following connection string keywords: <see langword="Integrated Security = true" />, <see langword="UserId" />, or <see langword="Password" />; or <see langword="ContextConnection = true" />.</param><param name="credential">A <see cref="T:Microsoft.Data.SqlClient.SqlCredential" /> object.</param><param name="newSecurePassword">The new password. <paramref name="newSecurePassword" /> must be read only. The password must also comply with any password security policy set on the server (for example, minimum length and requirements for specific characters).</param><summary>Changes the SQL Server password for the user indicated in the <see cref="T:Microsoft.Data.SqlClient.SqlCredential" /> object.</summary><remarks>To be added.</remarks><exception cref="T:System.ArgumentException">
  7578. The connection string contains any combination of <see langword="UserId" />, <see langword="Password" />, or <see langword="Integrated Security=true" />.
  7579. -or-
  7580. The connection string contains <see langword="Context Connection=true" />.
  7581. -or-
  7582. <paramref name="newSecurePassword" /> is greater than 128 characters.
  7583. -or-
  7584. <paramref name="newSecurePassword" /> is not read only.
  7585. -or-
  7586. <paramref name="newSecurePassword" /> is an empty string.</exception><exception cref="T:System.ArgumentNullException">One of the parameters (<paramref name="connectionString" />, <paramref name="credential" />, or <paramref name="newSecurePassword" />) is null.</exception>
  7587. </member>
  7588. <member name="M:Microsoft.Data.SqlClient.SqlConnection.ResetStatistics">
  7589. <summary>If statistics gathering is enabled, all values are reset to zero.</summary><remarks>
  7590. <format type="text/markdown"><![CDATA[
  7591. ## Remarks
  7592. If statistics gathering is not enabled and this method is called, no error is thrown.
  7593. ]]></format>
  7594. </remarks>
  7595. </member>
  7596. <member name="M:Microsoft.Data.SqlClient.SqlConnection.RetrieveStatistics">
  7597. <summary>Returns a name value pair collection of statistics at the point in time the method is called.</summary><returns>Returns a reference of type <see cref="T:System.Collections.IDictionary" /> of <see cref="T:System.Collections.DictionaryEntry" /> items.</returns><remarks>
  7598. <format type="text/markdown"><![CDATA[
  7599. ## Remarks
  7600. When this method is called, the values retrieved are those at the current point in time. If you continue using the connection, the values are incorrect. You need to re-execute the method to obtain the most current values.
  7601. ]]></format>
  7602. </remarks>
  7603. </member>
  7604. <member name="M:Microsoft.Data.SqlClient.SqlConnection.System#ICloneable#Clone">
  7605. <summary>Creates a new object that is a copy of the current instance.</summary><returns>A new object that is a copy of this instance.</returns><remarks>
  7606. <format type="text/markdown"><![CDATA[
  7607. ## Remarks
  7608. This member is an explicit interface member implementation. It can be used only when the <xref:Microsoft.Data.SqlClient.SqlConnection> instance is cast to an <xref:System.ICloneable> interface.
  7609. This member is only supported by the .NET Compact Framework.
  7610. ]]></format>
  7611. </remarks>
  7612. </member>
  7613. <member name="M:Microsoft.Data.SqlClient.SqlConnection.#ctor">
  7614. <summary>Initializes a new instance of the <see cref="T:Microsoft.Data.SqlClient.SqlConnection" /> class.</summary><remarks>
  7615. <format type="text/markdown"><![CDATA[
  7616. ## Remarks
  7617. When a new instance of <xref:Microsoft.Data.SqlClient.SqlConnection> is created, the read/write properties are set to the following initial values unless they are specifically set using their associated keywords in the <xref:Microsoft.Data.SqlClient.SqlConnection.ConnectionString%2A> property.
  7618. |Properties|Initial value|
  7619. |----------------|-------------------|
  7620. |<xref:Microsoft.Data.SqlClient.SqlConnection.ConnectionString%2A>|empty string ("")|
  7621. |<xref:Microsoft.Data.SqlClient.SqlConnection.ConnectionTimeout%2A>|15|
  7622. |<xref:Microsoft.Data.SqlClient.SqlConnection.Database%2A>|empty string ("")|
  7623. |<xref:Microsoft.Data.SqlClient.SqlConnection.DataSource%2A>|empty string ("")|
  7624. You can change the value for these properties only by using the <xref:Microsoft.Data.SqlClient.SqlConnection.ConnectionString%2A> property. The <xref:Microsoft.Data.SqlClient.SqlConnectionStringBuilder> class provides functionality for creating and managing the contents of connection strings.
  7625. ## Examples
  7626. The following example creates and opens a <xref:Microsoft.Data.SqlClient.SqlConnection>.
  7627. [!code-csharp[SqlConnection_SqlConnection Example#1](~/../sqlclient/doc/samples/SqlConnection_SqlConnection.cs#1)]
  7628. ]]></format>
  7629. </remarks>
  7630. </member>
  7631. <member name="M:Microsoft.Data.SqlClient.SqlConnection.CreateDbCommand">
  7632. <summary>To be added.</summary><returns>To be added.</returns><remarks>To be added.</remarks>
  7633. </member>
  7634. <member name="M:Microsoft.Data.SqlClient.SqlConnection.Dispose(System.Boolean)">
  7635. <param name="disposing">To be added.</param><summary>To be added.</summary><remarks>To be added.</remarks>
  7636. </member>
  7637. <member name="M:Microsoft.Data.SqlClient.SqlConnection.EnlistTransaction(System.Transactions.Transaction)">
  7638. <param name="transaction">A reference to an existing <see cref="T:System.Transactions.Transaction" /> in which to enlist.</param><summary>Enlists in the specified transaction as a distributed transaction.</summary><remarks>
  7639. <format type="text/markdown"><![CDATA[
  7640. ## Remarks
  7641. You can use the <xref:Microsoft.Data.SqlClient.SqlConnection.EnlistTransaction%2A> method to enlist in a distributed transaction. Because it enlists a connection in a <xref:System.Transactions.Transaction> instance, **EnlistTransaction** takes advantage of functionality available in the <xref:System.Transactions> namespace for managing distributed transactions, making it preferable to **EnlistDistributedTransaction**, which uses a **System.EnterpriseServices.ITransaction** object. It also has slightly different semantics: once a connection is explicitly enlisted on a transaction, it cannot be unenlisted or enlisted in another transaction until the first transaction finishes. For more information about distributed transactions, see [Distributed Transactions](~/docs/framework/data/adonet/distributed-transactions.md).
  7642. ]]></format>
  7643. </remarks>
  7644. </member>
  7645. <member name="T:Microsoft.Data.SqlClient.SqlDataAdapter">
  7646. <summary>Represents a set of data commands and a database connection that are used to fill the <see cref="T:System.Data.DataSet" /> and update a SQL Server database. This class cannot be inherited.</summary><remarks>
  7647. <format type="text/markdown"><![CDATA[
  7648. ## Remarks
  7649. The <xref:Microsoft.Data.SqlClient.SqlDataAdapter>, serves as a bridge between a <xref:System.Data.DataSet> and SQL Server for retrieving and saving data. The <xref:Microsoft.Data.SqlClient.SqlDataAdapter> provides this bridge by mapping <xref:System.Data.Common.DbDataAdapter.Fill%2A>, which changes the data in the <xref:System.Data.DataSet> to match the data in the data source, and <xref:System.Data.Common.DbDataAdapter.Update%2A>, which changes the data in the data source to match the data in the <xref:System.Data.DataSet>, using the appropriate Transact-SQL statements against the data source. The update is performed on a by-row basis. For every inserted, modified, and deleted row, the <xref:System.Data.Common.DbDataAdapter.Update%2A> method determines the type of change that has been performed on it (`Insert`, `Update`, or `Delete`). Depending on the type of change, the `Insert`, `Update`, or `Delete` command template executes to propagate the modified row to the data source. When the <xref:Microsoft.Data.SqlClient.SqlDataAdapter> fills a <xref:System.Data.DataSet>, it creates the necessary tables and columns for the returned data if they do not already exist. However, primary key information is not included in the implicitly created schema unless the <xref:System.Data.Common.DataAdapter.MissingSchemaAction%2A> property is set to <xref:System.Data.MissingSchemaAction.AddWithKey>. You may also have the <xref:Microsoft.Data.SqlClient.SqlDataAdapter> create the schema of the <xref:System.Data.DataSet>, including primary key information, before filling it with data using `FillSchema`. For more information, see [Adding Existing Constraints to a DataSet](~/docs/framework/data/adonet/adding-existing-constraints-to-a-dataset.md).
  7650. <xref:Microsoft.Data.SqlClient.SqlDataAdapter> is used in conjunction with <xref:Microsoft.Data.SqlClient.SqlConnection> and <xref:Microsoft.Data.SqlClient.SqlCommand> to increase performance when connecting to a SQL Server database.
  7651. > [!NOTE]
  7652. > If you are using SQL Server stored procedures to edit or delete data using a `DataAdapter`, make sure that you do not use SET NOCOUNT ON in the stored procedure definition. This causes the rows affected count returned to be zero, which the `DataAdapter` interprets as a concurrency conflict. In this event, a <xref:System.Data.DBConcurrencyException> will be thrown.
  7653. The <xref:Microsoft.Data.SqlClient.SqlDataAdapter> also includes the <xref:Microsoft.Data.SqlClient.SqlDataAdapter.SelectCommand%2A>, <xref:Microsoft.Data.SqlClient.SqlDataAdapter.InsertCommand%2A>, <xref:Microsoft.Data.SqlClient.SqlDataAdapter.DeleteCommand%2A>, <xref:Microsoft.Data.SqlClient.SqlDataAdapter.UpdateCommand%2A>, and <xref:System.Data.Common.DataAdapter.TableMappings%2A> properties to facilitate the loading and updating of data.
  7654. When an instance of <xref:Microsoft.Data.SqlClient.SqlDataAdapter> is created, the read/write properties are set to initial values. For a list of these values, see the <xref:Microsoft.Data.SqlClient.SqlDataAdapter> constructor.
  7655. The <xref:Microsoft.Data.SqlClient.SqlDataAdapter.InsertCommand%2A>, <xref:Microsoft.Data.SqlClient.SqlDataAdapter.DeleteCommand%2A>, and <xref:Microsoft.Data.SqlClient.SqlDataAdapter.UpdateCommand%2A> are generic templates that are automatically filled with individual values from every modified row through the parameters mechanism.
  7656. For every column that you propagate to the data source on <xref:System.Data.Common.DbDataAdapter.Update%2A>, a parameter should be added to the `InsertCommand`, `UpdateCommand`, or `DeleteCommand`. The <xref:System.Data.Common.DbParameter.SourceColumn%2A> property of the <xref:System.Data.Common.DbParameter> object should be set to the name of the column. This setting indicates that the value of the parameter is not set manually, but is taken from the particular column in the currently processed row.
  7657. > [!NOTE]
  7658. > An <xref:System.InvalidOperationException> will occur if the <xref:System.Data.Common.DbDataAdapter.Fill%2A> method is called and the table contains a user-defined type that is not available on the client computer. For more information, see [CLR User-Defined Types](/sql/relational-databases/clr-integration-database-objects-user-defined-types/clr-user-defined-types).
  7659. ## Examples
  7660. The following example uses the <xref:Microsoft.Data.SqlClient.SqlCommand>, <xref:Microsoft.Data.SqlClient.SqlDataAdapter>, and <xref:Microsoft.Data.SqlClient.SqlConnection> to select records from a database and populate a <xref:System.Data.DataSet> with the selected rows. The filled <xref:System.Data.DataSet> is then returned. To accomplish this, the method is passed an initialized <xref:System.Data.DataSet>, a connection string, and a query string that is a Transact-SQL SELECT statement.
  7661. [!code-csharp[SqlDataAdapter_SelectCommand Example#1](~/../sqlclient/doc/samples/SqlDataAdapter_SelectCommand.cs#1)]
  7662. ]]></format>
  7663. </remarks>
  7664. </member>
  7665. <member name="M:Microsoft.Data.SqlClient.SqlDataAdapter.#ctor">
  7666. <summary>Initializes a new instance of the <see cref="T:Microsoft.Data.SqlClient.SqlDataAdapter" /> class.</summary><remarks>
  7667. <format type="text/markdown"><![CDATA[
  7668. ## Remarks
  7669. When an instance of <xref:Microsoft.Data.SqlClient.SqlDataAdapter> is created, the following read/write properties are set to the following initial values.
  7670. |Properties|Initial value|
  7671. |----------------|-------------------|
  7672. |<xref:System.Data.Common.DataAdapter.MissingMappingAction%2A>|`MissingMappingAction.Passthrough`|
  7673. |<xref:System.Data.Common.DataAdapter.MissingSchemaAction%2A>|`MissingSchemaAction.Add`|
  7674. You can change the value of any of these properties through a separate call to the property.
  7675. ## Examples
  7676. The following example creates a <xref:Microsoft.Data.SqlClient.SqlDataAdapter> and sets some of its properties.
  7677. [!code-csharp[SqlDataAdapter.SqlDataAdapter Example#1](~/../sqlclient/doc/samples/SqlDataAdapter_SqlDataAdapter.cs#1)]
  7678. ]]></format>
  7679. </remarks>
  7680. </member>
  7681. <member name="M:Microsoft.Data.SqlClient.SqlDataAdapter.#ctor(Microsoft.Data.SqlClient.SqlCommand)">
  7682. <param name="selectCommand">A <see cref="T:Microsoft.Data.SqlClient.SqlCommand" /> that is a Transact-SQL SELECT statement or stored procedure and is set as the <see cref="P:Microsoft.Data.SqlClient.SqlDataAdapter.SelectCommand" /> property of the <see cref="T:Microsoft.Data.SqlClient.SqlDataAdapter" />.</param><summary>Initializes a new instance of the <see cref="T:Microsoft.Data.SqlClient.SqlDataAdapter" /> class with the specified <see cref="T:Microsoft.Data.SqlClient.SqlCommand" /> as the <see cref="P:Microsoft.Data.SqlClient.SqlDataAdapter.SelectCommand" /> property.</summary><remarks>
  7683. <format type="text/markdown"><![CDATA[
  7684. ## Remarks
  7685. This implementation of the <xref:Microsoft.Data.SqlClient.SqlDataAdapter> constructor sets the <xref:Microsoft.Data.SqlClient.SqlDataAdapter.SelectCommand%2A> property to the value specified in the `selectCommand` parameter.
  7686. When an instance of <xref:Microsoft.Data.SqlClient.SqlDataAdapter> is created, the following read/write properties are set to the following initial values.
  7687. |Properties|Initial value|
  7688. |----------------|-------------------|
  7689. |<xref:System.Data.Common.DataAdapter.MissingMappingAction%2A>|`MissingMappingAction.Passthrough`|
  7690. |<xref:System.Data.Common.DataAdapter.MissingSchemaAction%2A>|`MissingSchemaAction.Add`|
  7691. You can change the value of any of these properties through a separate call to the property.
  7692. When <xref:Microsoft.Data.SqlClient.SqlDataAdapter.SelectCommand%2A> (or any of the other command properties) is assigned to a previously created <xref:Microsoft.Data.SqlClient.SqlCommand>, the <xref:Microsoft.Data.SqlClient.SqlCommand> is not cloned. The <xref:Microsoft.Data.SqlClient.SqlDataAdapter.SelectCommand%2A> maintains a reference to the previously created <xref:Microsoft.Data.SqlClient.SqlCommand> object.
  7693. ## Examples
  7694. The following example creates a <xref:Microsoft.Data.SqlClient.SqlDataAdapter> and sets some of its properties.
  7695. [!code-csharp[SqlDataAdapter_SqlDataAdapter1 Example#1](~/../sqlclient/doc/samples/SqlDataAdapter_SqlDataAdapter1.cs#1)]
  7696. ]]></format>
  7697. </remarks>
  7698. </member>
  7699. <member name="M:Microsoft.Data.SqlClient.SqlDataAdapter.#ctor(System.String,System.String)">
  7700. <param name="selectCommandText">A <see cref="T:System.String" /> that is a Transact-SQL SELECT statement or stored procedure to be used by the <see cref="P:Microsoft.Data.SqlClient.SqlDataAdapter.SelectCommand" /> property of the <see cref="T:Microsoft.Data.SqlClient.SqlDataAdapter" />.</param><param name="selectConnectionString">The connection string. If your connection string does not use <see langword="Integrated Security = true" />, you can use <see cref="M:Microsoft.Data.SqlClient.SqlDataAdapter.#ctor(System.String,Microsoft.Data.SqlClient.SqlConnection)" /> and <see cref="T:Microsoft.Data.SqlClient.SqlCredential" /> to pass the user ID and password more securely than by specifying the user ID and password as text in the connection string.</param><summary>Initializes a new instance of the <see cref="T:Microsoft.Data.SqlClient.SqlDataAdapter" /> class with a <see cref="P:Microsoft.Data.SqlClient.SqlDataAdapter.SelectCommand" /> and a connection string.</summary><remarks>
  7701. <format type="text/markdown"><![CDATA[
  7702. ## Remarks
  7703. This overload of the <xref:Microsoft.Data.SqlClient.SqlDataAdapter> constructor uses the `selectCommandText` parameter to set the <xref:Microsoft.Data.SqlClient.SqlDataAdapter.SelectCommand%2A> property. The <xref:Microsoft.Data.SqlClient.SqlDataAdapter> will create and maintain the connection created with the `selectConnectionString` parameter.
  7704. When an instance of <xref:Microsoft.Data.SqlClient.SqlDataAdapter> is created, the following read/write properties are set to the following initial values.
  7705. |Properties|Initial value|
  7706. |----------------|-------------------|
  7707. |<xref:System.Data.Common.DataAdapter.MissingMappingAction%2A>|`MissingMappingAction.Passthrough`|
  7708. |<xref:System.Data.Common.DataAdapter.MissingSchemaAction%2A>|`MissingSchemaAction.Add`|
  7709. You can change the value of any of these properties through a separate call to the property.
  7710. ## Examples
  7711. The following example creates a <xref:Microsoft.Data.SqlClient.SqlDataAdapter> and sets some of its properties.
  7712. [!code-csharp[SqlDataAdapter_SqlDataAdapter2 Example#1](~/../sqlclient/doc/samples/SqlDataAdapter_SqlDataAdapter2.cs#1)]
  7713. ]]></format>
  7714. </remarks>
  7715. </member>
  7716. <member name="M:Microsoft.Data.SqlClient.SqlDataAdapter.#ctor(System.String,Microsoft.Data.SqlClient.SqlConnection)">
  7717. <param name="selectCommandText">A <see cref="T:System.String" /> that is a Transact-SQL SELECT statement or stored procedure to be used by the <see cref="P:Microsoft.Data.SqlClient.SqlDataAdapter.SelectCommand" /> property of the <see cref="T:Microsoft.Data.SqlClient.SqlDataAdapter" />.</param><param name="selectConnection">A <see cref="T:Microsoft.Data.SqlClient.SqlConnection" /> that represents the connection. If your connection string does not use <see langword="Integrated Security = true" />, you can use <see cref="T:Microsoft.Data.SqlClient.SqlCredential" /> to pass the user ID and password more securely than by specifying the user ID and password as text in the connection string.</param><summary>Initializes a new instance of the <see cref="T:Microsoft.Data.SqlClient.SqlDataAdapter" /> class with a <see cref="P:Microsoft.Data.SqlClient.SqlDataAdapter.SelectCommand" /> and a <see cref="T:Microsoft.Data.SqlClient.SqlConnection" /> object.</summary><remarks>
  7718. <format type="text/markdown"><![CDATA[
  7719. ## Remarks
  7720. This implementation of the <xref:Microsoft.Data.SqlClient.SqlDataAdapter> opens and closes a <xref:Microsoft.Data.SqlClient.SqlConnection> if it is not already open. This can be useful in an application that must call the <xref:System.Data.Common.DbDataAdapter.Fill%2A> method for two or more <xref:Microsoft.Data.SqlClient.SqlDataAdapter> objects. If the <xref:Microsoft.Data.SqlClient.SqlConnection> is already open, you must explicitly call **Close** or **Dispose** to close it.
  7721. When an instance of <xref:Microsoft.Data.SqlClient.SqlDataAdapter> is created, the following read/write properties are set to the following initial values.
  7722. |Properties|Initial value|
  7723. |----------------|-------------------|
  7724. |<xref:System.Data.Common.DataAdapter.MissingMappingAction%2A>|`MissingMappingAction.Passthrough`|
  7725. |<xref:System.Data.Common.DataAdapter.MissingSchemaAction%2A>|`MissingSchemaAction.Add`|
  7726. You can change the value of either of these properties through a separate call to the property.
  7727. ## Examples
  7728. The following example creates a <xref:Microsoft.Data.SqlClient.SqlDataAdapter> and sets some of its properties.
  7729. [!code-csharp[SqlDataAdapter_SqlDataAdapter3 Example#1](~/../sqlclient/doc/samples/SqlDataAdapter_SqlDataAdapter3.cs#1)]
  7730. ]]></format>
  7731. </remarks>
  7732. </member>
  7733. <member name="P:Microsoft.Data.SqlClient.SqlDataAdapter.DeleteCommand">
  7734. <summary>Gets or sets a Transact-SQL statement or stored procedure to delete records from the data set.</summary><value>A <see cref="T:Microsoft.Data.SqlClient.SqlCommand" /> used during <see cref="M:System.Data.Common.DbDataAdapter.Update(System.Data.DataSet)" /> to delete records in the database that correspond to deleted rows in the <see cref="T:System.Data.DataSet" />.</value><remarks>
  7735. <format type="text/markdown"><![CDATA[
  7736. ## Remarks
  7737. During <xref:System.Data.Common.DbDataAdapter.Update%2A>, if this property is not set and primary key information is present in the <xref:System.Data.DataSet>, the <xref:Microsoft.Data.SqlClient.SqlDataAdapter.DeleteCommand%2A> can be generated automatically if you set the <xref:Microsoft.Data.SqlClient.SqlDataAdapter.SelectCommand%2A> property and use the <xref:Microsoft.Data.SqlClient.SqlCommandBuilder>. Then, any additional commands that you do not set are generated by the <xref:Microsoft.Data.SqlClient.SqlCommandBuilder>. This generation logic requires key column information to be present in the <xref:System.Data.DataSet>. For more information, see [Generating Commands with CommandBuilders](~/docs/framework/data/adonet/generating-commands-with-commandbuilders.md).
  7738. When <xref:Microsoft.Data.SqlClient.SqlDataAdapter.DeleteCommand%2A> is assigned to a previously created <xref:Microsoft.Data.SqlClient.SqlCommand>, the <xref:Microsoft.Data.SqlClient.SqlCommand> is not cloned. The <xref:Microsoft.Data.SqlClient.SqlDataAdapter.DeleteCommand%2A> maintains a reference to the previously created <xref:Microsoft.Data.SqlClient.SqlCommand> object.
  7739. For every column that you propagate to the data source on <xref:System.Data.Common.DbDataAdapter.Update%2A>, a parameter should be added to the `InsertCommand`, `UpdateCommand`, or `DeleteCommand`. The `SourceColumn` property of the parameter should be set to the name of the column. This indicates that the value of the parameter is not set manually, but is taken from the particular column in the currently processed row.
  7740. ## Examples
  7741. The following example creates a <xref:Microsoft.Data.SqlClient.SqlDataAdapter> and sets the <xref:Microsoft.Data.SqlClient.SqlDataAdapter.SelectCommand%2A>, <xref:Microsoft.Data.SqlClient.SqlDataAdapter.InsertCommand%2A>, <xref:Microsoft.Data.SqlClient.SqlDataAdapter.UpdateCommand%2A>, and <xref:Microsoft.Data.SqlClient.SqlDataAdapter.DeleteCommand%2A> properties. It assumes you have already created a <xref:Microsoft.Data.SqlClient.SqlConnection> object.
  7742. [!code-csharp[SqlDataAdapter#1](~/../sqlclient/doc/samples/SqlDataAdapter.cs#1)]
  7743. ]]></format>
  7744. </remarks>
  7745. </member>
  7746. <member name="P:Microsoft.Data.SqlClient.SqlDataAdapter.System#Data#IDbDataAdapter#DeleteCommand">
  7747. <summary>For a description of this member, see <see cref="P:System.Data.IDbDataAdapter.DeleteCommand" />.</summary><value>An <see cref="T:System.Data.IDbCommand" /> that is used during <see cref="M:System.Data.Common.DbDataAdapter.Update(System.Data.DataSet)" /> to delete records in the data source for deleted rows in the data set.</value><remarks>
  7748. <format type="text/markdown"><![CDATA[
  7749. ## Remarks
  7750. This member is an explicit interface member implementation. It can be used only when the <xref:Microsoft.Data.SqlClient.SqlDataAdapter> instance is cast to an <xref:System.Data.IDbDataAdapter> interface.
  7751. ]]></format>
  7752. </remarks>
  7753. </member>
  7754. <member name="P:Microsoft.Data.SqlClient.SqlDataAdapter.InsertCommand">
  7755. <summary>Gets or sets a Transact-SQL statement or stored procedure to insert new records into the data source.</summary><value>A <see cref="T:Microsoft.Data.SqlClient.SqlCommand" /> used during <see cref="M:System.Data.Common.DbDataAdapter.Update(System.Data.DataSet)" /> to insert records into the database that correspond to new rows in the <see cref="T:System.Data.DataSet" />.</value><remarks>
  7756. <format type="text/markdown"><![CDATA[
  7757. ## Remarks
  7758. During <xref:System.Data.Common.DbDataAdapter.Update%2A>, if this property is not set and primary key information is present in the <xref:System.Data.DataSet>, the <xref:Microsoft.Data.SqlClient.SqlDataAdapter.InsertCommand%2A> can be generated automatically if you set the <xref:Microsoft.Data.SqlClient.SqlDataAdapter.SelectCommand%2A> property and use the <xref:Microsoft.Data.SqlClient.SqlCommandBuilder>. Then, any additional commands that you do not set are generated by the <xref:Microsoft.Data.SqlClient.SqlCommandBuilder>. This generation logic requires key column information to be present in the <xref:System.Data.DataSet>. For more information, see [Generating Commands with CommandBuilders](~/docs/framework/data/adonet/generating-commands-with-commandbuilders.md).
  7759. When <xref:Microsoft.Data.SqlClient.SqlDataAdapter.InsertCommand%2A> is assigned to a previously created <xref:Microsoft.Data.SqlClient.SqlCommand>, the <xref:Microsoft.Data.SqlClient.SqlCommand> is not cloned. The <xref:Microsoft.Data.SqlClient.SqlDataAdapter.InsertCommand%2A> maintains a reference to the previously created <xref:Microsoft.Data.SqlClient.SqlCommand> object.
  7760. If execution of this command returns rows, these rows can be added to the <xref:System.Data.DataSet> depending on how you set the **UpdatedRowSource** property of the <xref:Microsoft.Data.SqlClient.SqlCommand> object.
  7761. For every column that you propagate to the data source on <xref:System.Data.Common.DbDataAdapter.Update%2A>, a parameter should be added to `InsertCommand`, `UpdateCommand`, or `DeleteCommand`. The `SourceColumn` property of the parameter should be set to the name of the column. This indicates that the value of the parameter is not set manually, but is taken from the particular column in the currently processed row.
  7762. ## Examples
  7763. The following example creates a <xref:Microsoft.Data.SqlClient.SqlDataAdapter> and sets the <xref:Microsoft.Data.SqlClient.SqlDataAdapter.SelectCommand%2A>, <xref:Microsoft.Data.SqlClient.SqlDataAdapter.InsertCommand%2A>, <xref:Microsoft.Data.SqlClient.SqlDataAdapter.UpdateCommand%2A>, and <xref:Microsoft.Data.SqlClient.SqlDataAdapter.DeleteCommand%2A> properties. It assumes you have already created a <xref:Microsoft.Data.SqlClient.SqlConnection> object.
  7764. [!code-csharp[SqlDataAdapter#1](~/../sqlclient/doc/samples/SqlDataAdapter.cs#1)]
  7765. ]]></format>
  7766. </remarks>
  7767. </member>
  7768. <member name="P:Microsoft.Data.SqlClient.SqlDataAdapter.System#Data#IDbDataAdapter#InsertCommand">
  7769. <summary>For a description of this member, see <see cref="P:System.Data.IDbDataAdapter.InsertCommand" />.</summary><value>An <see cref="T:System.Data.IDbCommand" /> that is used during <see cref="M:System.Data.Common.DbDataAdapter.Update(System.Data.DataSet)" /> to insert records in the data source for new rows in the data set.</value><remarks>
  7770. <format type="text/markdown"><![CDATA[
  7771. ## Remarks
  7772. This member is an explicit interface member implementation. It can be used only when the <xref:Microsoft.Data.SqlClient.SqlDataAdapter> instance is cast to an <xref:System.Data.IDbDataAdapter> interface.
  7773. ]]></format>
  7774. </remarks>
  7775. </member>
  7776. <member name="P:Microsoft.Data.SqlClient.SqlDataAdapter.SelectCommand">
  7777. <summary>Gets or sets a Transact-SQL statement or stored procedure used to select records in the data source.</summary><value>A <see cref="T:Microsoft.Data.SqlClient.SqlCommand" /> used during <see cref="M:System.Data.Common.DbDataAdapter.Fill(System.Data.DataSet)" /> to select records from the database for placement in the <see cref="T:System.Data.DataSet" />.</value><remarks>
  7778. <format type="text/markdown"><![CDATA[
  7779. ## Remarks
  7780. When <xref:Microsoft.Data.SqlClient.SqlDataAdapter.SelectCommand%2A> is assigned to a previously created <xref:Microsoft.Data.SqlClient.SqlCommand>, the <xref:Microsoft.Data.SqlClient.SqlCommand> is not cloned. The <xref:Microsoft.Data.SqlClient.SqlDataAdapter.SelectCommand%2A> maintains a reference to the previously created <xref:Microsoft.Data.SqlClient.SqlCommand> object.
  7781. If the <xref:Microsoft.Data.SqlClient.SqlDataAdapter.SelectCommand%2A> does not return any rows, no tables are added to the <xref:System.Data.DataSet>, and no exception is raised.
  7782. ## Examples
  7783. The following example creates a <xref:Microsoft.Data.SqlClient.SqlDataAdapter> and sets the <xref:Microsoft.Data.SqlClient.SqlDataAdapter.SelectCommand%2A>, <xref:Microsoft.Data.SqlClient.SqlDataAdapter.InsertCommand%2A>, <xref:Microsoft.Data.SqlClient.SqlDataAdapter.UpdateCommand%2A>, and <xref:Microsoft.Data.SqlClient.SqlDataAdapter.DeleteCommand%2A> properties. It assumes you have already created a <xref:Microsoft.Data.SqlClient.SqlConnection> object.
  7784. [!code-csharp[SqlDataAdapter#1](~/../sqlclient/doc/samples/SqlDataAdapter.cs#1)]
  7785. ]]></format>
  7786. </remarks>
  7787. </member>
  7788. <member name="P:Microsoft.Data.SqlClient.SqlDataAdapter.System#Data#IDbDataAdapter#SelectCommand">
  7789. <summary>For a description of this member, see <see cref="P:System.Data.IDbDataAdapter.SelectCommand" />.</summary><value>An <see cref="T:System.Data.IDbCommand" /> that is used during <see cref="M:System.Data.Common.DbDataAdapter.Update(System.Data.DataSet)" /> to select records from data source for placement in the data set.</value><remarks>
  7790. <format type="text/markdown"><![CDATA[
  7791. ## Remarks
  7792. This member is an explicit interface member implementation. It can be used only when the <xref:Microsoft.Data.SqlClient.SqlDataAdapter> instance is cast to an <xref:System.Data.IDbDataAdapter> interface.
  7793. ]]></format>
  7794. </remarks>
  7795. </member>
  7796. <member name="P:Microsoft.Data.SqlClient.SqlDataAdapter.UpdateCommand">
  7797. <summary>Gets or sets a Transact-SQL statement or stored procedure used to update records in the data source.</summary><value>A <see cref="T:Microsoft.Data.SqlClient.SqlCommand" /> used during <see cref="M:System.Data.Common.DbDataAdapter.Update(System.Data.DataSet)" /> to update records in the database that correspond to modified rows in the <see cref="T:System.Data.DataSet" />.</value><remarks>
  7798. <format type="text/markdown"><![CDATA[
  7799. ## Remarks
  7800. During <xref:System.Data.Common.DbDataAdapter.Update%2A>, if this property is not set and primary key information is present in the <xref:System.Data.DataSet>, the <xref:Microsoft.Data.SqlClient.SqlDataAdapter.UpdateCommand%2A> can be generated automatically if you set the <xref:Microsoft.Data.SqlClient.SqlDataAdapter.SelectCommand%2A> property and use the <xref:Microsoft.Data.SqlClient.SqlCommandBuilder>. Then, any additional commands that you do not set are generated by the <xref:Microsoft.Data.SqlClient.SqlCommandBuilder>. This generation logic requires key column information to be present in the <xref:System.Data.DataSet>. For more information, see [Generating Commands with CommandBuilders](~/docs/framework/data/adonet/generating-commands-with-commandbuilders.md).
  7801. When <xref:Microsoft.Data.SqlClient.SqlDataAdapter.UpdateCommand%2A> is assigned to a previously created <xref:Microsoft.Data.SqlClient.SqlCommand>, the <xref:Microsoft.Data.SqlClient.SqlCommand> is not cloned. The <xref:Microsoft.Data.SqlClient.SqlDataAdapter.UpdateCommand%2A> maintains a reference to the previously created <xref:Microsoft.Data.SqlClient.SqlCommand> object.
  7802. > [!NOTE]
  7803. > If execution of this command returns rows, the updated rows may be merged with the <xref:System.Data.DataSet> depending on how you set the **UpdatedRowSource** property of the <xref:Microsoft.Data.SqlClient.SqlCommand> object.
  7804. For every column that you propagate to the data source on <xref:System.Data.Common.DbDataAdapter.Update%2A>, a parameter should be added to `InsertCommand`, `UpdateCommand`, or `DeleteCommand`.
  7805. The `SourceColumn` property of the parameter should be set to the name of the column. This indicates that the value of the parameter is not set manually, but taken from the particular column in the currently processed row.
  7806. ## Examples
  7807. The following example creates a <xref:Microsoft.Data.SqlClient.SqlDataAdapter> and sets the <xref:Microsoft.Data.SqlClient.SqlDataAdapter.SelectCommand%2A>, <xref:Microsoft.Data.SqlClient.SqlDataAdapter.InsertCommand%2A>, <xref:Microsoft.Data.SqlClient.SqlDataAdapter.UpdateCommand%2A> and <xref:Microsoft.Data.SqlClient.SqlDataAdapter.DeleteCommand%2A> properties. It assumes you have already created a <xref:Microsoft.Data.SqlClient.SqlConnection> object.
  7808. [!code-csharp[SqlDataAdapter#1](~/../sqlclient/doc/samples/SqlDataAdapter.cs#1)]
  7809. ]]></format>
  7810. </remarks>
  7811. </member>
  7812. <member name="P:Microsoft.Data.SqlClient.SqlDataAdapter.System#Data#IDbDataAdapter#UpdateCommand">
  7813. <summary>For a description of this member, see <see cref="P:System.Data.IDbDataAdapter.UpdateCommand" />.</summary><value>An <see cref="T:System.Data.IDbCommand" /> that is used during <see cref="M:System.Data.Common.DbDataAdapter.Update(System.Data.DataSet)" /> to update records in the data source for modified rows in the data set.</value><remarks>
  7814. <format type="text/markdown"><![CDATA[
  7815. ## Remarks
  7816. This member is an explicit interface member implementation. It can be used only when the <xref:Microsoft.Data.SqlClient.SqlDataAdapter> instance is cast to an <xref:System.Data.IDbDataAdapter> interface.
  7817. ]]></format>
  7818. </remarks>
  7819. </member>
  7820. <member name="P:Microsoft.Data.SqlClient.SqlDataAdapter.UpdateBatchSize">
  7821. <summary>Gets or sets the number of rows that are processed in each round-trip to the server.</summary><value>The number of rows to process per-batch.
  7822. <list type="table"><listheader><term> Value is
  7823. </term><description> Effect
  7824. </description></listheader><item><term> 0
  7825. </term><description> There is no limit on the batch size.
  7826. </description></item><item><term> 1
  7827. </term><description> Disables batch updating.
  7828. </description></item><item><term> &gt;1
  7829. </term><description> Changes are sent using batches of <see cref="P:Microsoft.Data.SqlClient.SqlDataAdapter.UpdateBatchSize" /> operations at a time.
  7830. </description></item></list>
  7831. When setting this to a value other than 1, all the commands associated with the <see cref="T:Microsoft.Data.SqlClient.SqlDataAdapter" /> have to have their **UpdatedRowSource** property set to <see langword="None" /> or <see langword="OutputParameters" />. An exception is thrown otherwise.</value><remarks>
  7832. <format type="text/markdown"><![CDATA[
  7833. ## Remarks
  7834. Gets or sets a value that enables or disables batch processing support, and specifies the number of commands that can be executed in a batch.
  7835. Use the <xref:Microsoft.Data.SqlClient.SqlDataAdapter.UpdateBatchSize%2A> property to update a data source with changes from a <xref:System.Data.DataSet>. This can increase application performance by reducing the number of round-trips to the server.
  7836. Executing an extremely large batch could decrease performance. Therefore, you should test for the optimum batch size setting before implementing your application.
  7837. An <xref:System.ArgumentOutOfRangeException> is thrown if the value is set to a number less than zero.
  7838. ]]></format>
  7839. </remarks>
  7840. </member>
  7841. <member name="M:Microsoft.Data.SqlClient.SqlDataAdapter.AddToBatch(System.Data.IDbCommand)">
  7842. <param name="command">To be added.</param><summary>To be added.</summary><returns>To be added.</returns><remarks>To be added.</remarks>
  7843. </member>
  7844. <member name="M:Microsoft.Data.SqlClient.SqlDataAdapter.ClearBatch">
  7845. <summary>To be added.</summary><remarks>To be added.</remarks>
  7846. </member>
  7847. <member name="M:Microsoft.Data.SqlClient.SqlDataAdapter.ExecuteBatch">
  7848. <summary>To be added.</summary><returns>To be added.</returns><remarks>To be added.</remarks>
  7849. </member>
  7850. <member name="M:Microsoft.Data.SqlClient.SqlDataAdapter.GetBatchedParameter(System.Int32,System.Int32)">
  7851. <param name="commandIdentifier">To be added.</param><param name="parameterIndex">To be added.</param><summary>To be added.</summary><returns>To be added.</returns><remarks>To be added.</remarks>
  7852. </member>
  7853. <member name="M:Microsoft.Data.SqlClient.SqlDataAdapter.GetBatchedRecordsAffected(System.Int32,System.Int32@,System.Exception@)">
  7854. <param name="commandIdentifier">To be added.</param><param name="recordsAffected">To be added.</param><param name="error">To be added.</param><summary>To be added.</summary><returns>To be added.</returns><remarks>To be added.</remarks>
  7855. </member>
  7856. <member name="M:Microsoft.Data.SqlClient.SqlDataAdapter.InitializeBatching">
  7857. <summary>To be added.</summary><remarks>To be added.</remarks>
  7858. </member>
  7859. <member name="M:Microsoft.Data.SqlClient.SqlDataAdapter.TerminateBatching">
  7860. <summary>To be added.</summary><remarks>To be added.</remarks>
  7861. </member>
  7862. <member name="M:Microsoft.Data.SqlClient.SqlDataAdapter.System#ICloneable#Clone">
  7863. <summary>For a description of this member, see <see cref="M:System.ICloneable.Clone" />.</summary><returns>A new object that is a copy of the current instance.</returns><remarks>
  7864. <format type="text/markdown"><![CDATA[
  7865. ## Remarks
  7866. This member is an explicit interface member implementation. It can be used only when the <xref:Microsoft.Data.SqlClient.SqlDataAdapter> instance is cast to an <xref:System.ICloneable> interface.
  7867. ]]></format>
  7868. </remarks>
  7869. </member>
  7870. <member name="M:Microsoft.Data.SqlClient.SqlDataAdapter.CreateRowUpdatedEvent(System.Data.DataRow,System.Data.IDbCommand,System.Data.StatementType,System.Data.Common.DataTableMapping)">
  7871. <param name="dataRow">To be added.</param><param name="command">To be added.</param><param name="statementType">To be added.</param><param name="tableMapping">To be added.</param><summary>To be added.</summary><returns>To be added.</returns><remarks>To be added.</remarks>
  7872. </member>
  7873. <member name="M:Microsoft.Data.SqlClient.SqlDataAdapter.CreateRowUpdatingEvent(System.Data.DataRow,System.Data.IDbCommand,System.Data.StatementType,System.Data.Common.DataTableMapping)">
  7874. <param name="dataRow">To be added.</param><param name="command">To be added.</param><param name="statementType">To be added.</param><param name="tableMapping">To be added.</param><summary>To be added.</summary><returns>To be added.</returns><remarks>To be added.</remarks>
  7875. </member>
  7876. <member name="E:Microsoft.Data.SqlClient.SqlDataAdapter.RowUpdated">
  7877. <summary>Occurs during <see cref="M:System.Data.Common.DbDataAdapter.Update(System.Data.DataSet)" /> after a command is executed against the data source. The attempt to update is made, so the event fires.</summary><remarks>
  7878. <format type="text/markdown"><![CDATA[
  7879. ## Remarks
  7880. When using <xref:System.Data.Common.DbDataAdapter.Update%2A>, there are two events that occur per data row updated. The order of execution is as follows:
  7881. 1. The values in the <xref:System.Data.DataRow> are moved to the parameter values.
  7882. 2. The <xref:System.Data.Common.DbDataAdapter.OnRowUpdating%2A> event is raised.
  7883. 3. The command executes.
  7884. 4. If the command is set to `FirstReturnedRecord`, the first returned result is placed in the <xref:System.Data.DataRow>.
  7885. 5. If there are output parameters, they are placed in the <xref:System.Data.DataRow>.
  7886. 6. The <xref:System.Data.Common.DbDataAdapter.OnRowUpdated%2A> event is raised.
  7887. 7. <xref:System.Data.DataRow.AcceptChanges%2A> is called.
  7888. ## Examples
  7889. The following example shows how to use both the <xref:Microsoft.Data.SqlClient.SqlDataAdapter.RowUpdating> and <xref:Microsoft.Data.SqlClient.SqlDataAdapter.RowUpdated> events.
  7890. The <xref:Microsoft.Data.SqlClient.SqlDataAdapter.RowUpdating> event returns this output:
  7891. event args: (command=Microsoft.Data.SqlClient.SqlCommand commandType=2 status=0)
  7892. The <xref:Microsoft.Data.SqlClient.SqlDataAdapter.RowUpdated> event returns this output:
  7893. event args: (command=Microsoft.Data.SqlClient.SqlCommand commandType=2 recordsAffected=1 row=System.Data.DataRow[37] status=0)
  7894. [!code-csharp[SqlDataAdapter_RowUpdated Example#1](~/../sqlclient/doc/samples/SqlDataAdapter_RowUpdated.cs#1)]
  7895. ]]></format>
  7896. </remarks>
  7897. </member>
  7898. <member name="E:Microsoft.Data.SqlClient.SqlDataAdapter.RowUpdating">
  7899. <summary>Occurs during <see cref="M:System.Data.Common.DbDataAdapter.Update(System.Data.DataSet)" /> before a command is executed against the data source. The attempt to update is made, so the event fires.</summary><remarks>
  7900. <format type="text/markdown"><![CDATA[
  7901. ## Remarks
  7902. When using <xref:System.Data.Common.DbDataAdapter.Update%2A>, there are two events that occur per data row updated. The order of execution is as follows:
  7903. 1. The values in the <xref:System.Data.DataRow> are moved to the parameter values.
  7904. 2. The <xref:System.Data.Common.DbDataAdapter.OnRowUpdating%2A> event is raised.
  7905. 3. The command executes.
  7906. 4. If the command is set to `FirstReturnedRecord`, the first returned result is placed in the <xref:System.Data.DataRow>.
  7907. 5. If there are output parameters, they are placed in the <xref:System.Data.DataRow>.
  7908. 6. The <xref:System.Data.Common.DbDataAdapter.OnRowUpdated%2A> event is raised.
  7909. 7. <xref:System.Data.DataRow.AcceptChanges%2A> is called.
  7910. ## Examples
  7911. The following example shows how to use both the <xref:Microsoft.Data.SqlClient.SqlDataAdapter.RowUpdating> and <xref:Microsoft.Data.SqlClient.SqlDataAdapter.RowUpdated> events.
  7912. The <xref:Microsoft.Data.SqlClient.SqlDataAdapter.RowUpdating> event returns this output:
  7913. event args: (command=Microsoft.Data.SqlClient.SqlCommand commandType=2 status=0)
  7914. The <xref:Microsoft.Data.SqlClient.SqlDataAdapter.RowUpdated> event returns this output:
  7915. event args: (command=Microsoft.Data.SqlClient.SqlCommand commandType=2 recordsAffected=1 row=System.Data.DataRow[37] status=0)
  7916. [!code-csharp[SqlDataAdapter_RowUpdated Example#1](~/../sqlclient/doc/samples/SqlDataAdapter_RowUpdated.cs#1)]
  7917. ]]></format>
  7918. </remarks>
  7919. </member>
  7920. <member name="M:Microsoft.Data.SqlClient.SqlDataAdapter.OnRowUpdated(System.Data.Common.RowUpdatedEventArgs)">
  7921. <param name="value">To be added.</param><summary>To be added.</summary><remarks>To be added.</remarks>
  7922. </member>
  7923. <member name="M:Microsoft.Data.SqlClient.SqlDataAdapter.OnRowUpdating(System.Data.Common.RowUpdatingEventArgs)">
  7924. <param name="value">To be added.</param><summary>To be added.</summary><remarks>To be added.</remarks>
  7925. </member>
  7926. <member name="T:Microsoft.Data.SqlClient.SqlDataReader">
  7927. <summary>Provides a way of reading a forward-only stream of rows from a SQL Server database. This class cannot be inherited.</summary><remarks>
  7928. <format type="text/markdown"><![CDATA[
  7929. ## Remarks
  7930. To create a <xref:Microsoft.Data.SqlClient.SqlDataReader>, you must call the <xref:Microsoft.Data.SqlClient.SqlCommand.ExecuteReader%2A> method of the <xref:Microsoft.Data.SqlClient.SqlCommand> object, instead of directly using a constructor.
  7931. While the <xref:Microsoft.Data.SqlClient.SqlDataReader> is being used, the associated <xref:Microsoft.Data.SqlClient.SqlConnection> is busy serving the <xref:Microsoft.Data.SqlClient.SqlDataReader>, and no other operations can be performed on the <xref:Microsoft.Data.SqlClient.SqlConnection> other than closing it. This is the case until the <xref:Microsoft.Data.SqlClient.SqlDataReader.Close%2A> method of the <xref:Microsoft.Data.SqlClient.SqlDataReader> is called. For example, you cannot retrieve output parameters until after you call <xref:Microsoft.Data.SqlClient.SqlDataReader.Close%2A>.
  7932. Changes made to a result set by another process or thread while data is being read may be visible to the user of the `SqlDataReader`. However, the precise behavior is timing dependent.
  7933. <xref:Microsoft.Data.SqlClient.SqlDataReader.IsClosed%2A> and <xref:Microsoft.Data.SqlClient.SqlDataReader.RecordsAffected%2A> are the only properties that you can call after the <xref:Microsoft.Data.SqlClient.SqlDataReader> is closed. Although the <xref:Microsoft.Data.SqlClient.SqlDataReader.RecordsAffected%2A> property may be accessed while the <xref:Microsoft.Data.SqlClient.SqlDataReader> exists, always call <xref:Microsoft.Data.SqlClient.SqlDataReader.Close%2A> before returning the value of <xref:Microsoft.Data.SqlClient.SqlDataReader.RecordsAffected%2A> to guarantee an accurate return value.
  7934. When using sequential access (<xref:System.Data.CommandBehavior.SequentialAccess?displayProperty=nameWithType>), an <xref:System.InvalidOperationException> will be raised if the <xref:Microsoft.Data.SqlClient.SqlDataReader> position is advanced and another read operation is attempted on the previous column.
  7935. > [!NOTE]
  7936. > For optimal performance, <xref:Microsoft.Data.SqlClient.SqlDataReader> avoids creating unnecessary objects or making unnecessary copies of data. Therefore, multiple calls to methods such as <xref:Microsoft.Data.SqlClient.SqlDataReader.GetValue%2A> return a reference to the same object. Use caution if you are modifying the underlying value of the objects returned by methods such as <xref:Microsoft.Data.SqlClient.SqlDataReader.GetValue%2A>.
  7937. ## Examples
  7938. The following example creates a <xref:Microsoft.Data.SqlClient.SqlConnection>, a <xref:Microsoft.Data.SqlClient.SqlCommand>, and a <xref:Microsoft.Data.SqlClient.SqlDataReader>. The example reads through the data, writing it out to the console window. The code then closes the <xref:Microsoft.Data.SqlClient.SqlDataReader>. The <xref:Microsoft.Data.SqlClient.SqlConnection> is closed automatically at the end of the `using` code block.
  7939. [!code-csharp[SqlDataReader_Read Example#1](~/../sqlclient/doc/samples/SqlDataReader_Read.cs#1)]
  7940. ]]></format>
  7941. </remarks>
  7942. </member>
  7943. <member name="P:Microsoft.Data.SqlClient.SqlDataReader.Connection">
  7944. <summary>Gets the <see cref="T:Microsoft.Data.SqlClient.SqlConnection" /> associated with the <see cref="T:Microsoft.Data.SqlClient.SqlDataReader" />.</summary><value>The <see cref="T:Microsoft.Data.SqlClient.SqlConnection" /> associated with the <see cref="T:Microsoft.Data.SqlClient.SqlDataReader" />.</value><remarks>To be added.</remarks>
  7945. </member>
  7946. <member name="P:Microsoft.Data.SqlClient.SqlDataReader.SensitivityClassification">
  7947. <summary>Gets the <see cref="T:Microsoft.Data.SqlClient.DataClassification.SensitivityClassification" /> information with the <see cref="T:Microsoft.Data.SqlClient.SqlDataReader" />.</summary><value>The <see cref="T:Microsoft.Data.SqlClient.DataClassification.SensitivityClassification" /> associated with the <see cref="T:Microsoft.Data.SqlClient.SqlDataReader" />.</value><remarks>To be added.</remarks>
  7948. </member>
  7949. <member name="P:Microsoft.Data.SqlClient.SqlDataReader.Depth">
  7950. <summary>Gets a value that indicates the depth of nesting for the current row.</summary><value>The depth of nesting for the current row.</value><remarks>
  7951. <format type="text/markdown"><![CDATA[
  7952. ## Remarks
  7953. The outermost table has a depth of zero. The .NET Framework Data Provider for SQL Server does not support nesting and always returns zero.
  7954. ]]></format>
  7955. </remarks>
  7956. </member>
  7957. <member name="P:Microsoft.Data.SqlClient.SqlDataReader.FieldCount">
  7958. <summary>Gets the number of columns in the current row.</summary><value>When not positioned in a valid recordset, 0; otherwise the number of columns in the current row. The default is -1.</value><remarks>
  7959. <format type="text/markdown"><![CDATA[
  7960. ## Remarks
  7961. Executing a query that, by its nature, does not return rows (such as a DELETE query), sets <xref:Microsoft.Data.SqlClient.SqlDataReader.FieldCount%2A> to 0. However. this should not be confused with a query that returns 0 rows (such as SELECT * FROM *table* WHERE 1 = 2) in which case <xref:Microsoft.Data.SqlClient.SqlDataReader.FieldCount%2A> returns the number of columns in the table, including hidden fields. Use <xref:Microsoft.Data.SqlClient.SqlDataReader.VisibleFieldCount%2A> to exclude hidden fields.
  7962. ]]></format>
  7963. </remarks><exception cref="T:System.NotSupportedException">There is no current connection to an instance of SQL Server.</exception>
  7964. </member>
  7965. <member name="P:Microsoft.Data.SqlClient.SqlDataReader.HasRows">
  7966. <summary>Gets a value that indicates whether the <see cref="T:Microsoft.Data.SqlClient.SqlDataReader" /> contains one or more rows.</summary><value>
  7967. <see langword="true" /> if the <see cref="T:Microsoft.Data.SqlClient.SqlDataReader" /> contains one or more rows; otherwise <see langword="false" />.</value><remarks>To be added.</remarks>
  7968. </member>
  7969. <member name="P:Microsoft.Data.SqlClient.SqlDataReader.IsClosed">
  7970. <summary>Retrieves a Boolean value that indicates whether the specified <see cref="T:Microsoft.Data.SqlClient.SqlDataReader" /> instance has been closed.</summary><value>
  7971. <see langword="true" /> if the specified <see cref="T:Microsoft.Data.SqlClient.SqlDataReader" /> instance is closed; otherwise <see langword="false" />.</value><remarks>
  7972. <format type="text/markdown"><![CDATA[
  7973. ## Remarks
  7974. It is not possible to read from a <xref:Microsoft.Data.SqlClient.SqlDataReader> instance that is closed.
  7975. ]]></format>
  7976. </remarks>
  7977. </member>
  7978. <member name="P:Microsoft.Data.SqlClient.SqlDataReader.RecordsAffected">
  7979. <summary>Gets the number of rows changed, inserted, or deleted by execution of the Transact-SQL statement.</summary><value>The number of rows changed, inserted, or deleted; 0 if no rows were affected or the statement failed; and -1 for SELECT statements.</value><remarks>
  7980. <format type="text/markdown"><![CDATA[
  7981. ## Remarks
  7982. The value of this property is cumulative. For example, if two records are inserted in batch mode, the value of `RecordsAffected` will be two.
  7983. <xref:Microsoft.Data.SqlClient.SqlDataReader.IsClosed%2A> and <xref:Microsoft.Data.SqlClient.SqlDataReader.RecordsAffected%2A> are the only properties that you can call after the <xref:Microsoft.Data.SqlClient.SqlDataReader> is closed.
  7984. ]]></format>
  7985. </remarks>
  7986. </member>
  7987. <member name="P:Microsoft.Data.SqlClient.SqlDataReader.VisibleFieldCount">
  7988. <summary>Gets the number of fields in the <see cref="T:Microsoft.Data.SqlClient.SqlDataReader" /> that are not hidden.</summary><value>The number of fields that are not hidden.</value><remarks>
  7989. <format type="text/markdown"><![CDATA[
  7990. ## Remarks
  7991. This value is used to determine how many fields in the <xref:Microsoft.Data.SqlClient.SqlDataReader> are visible. For example, a SELECT on a partial primary key returns the remaining parts of the key as hidden fields. The hidden fields are always appended behind the visible fields.
  7992. ]]></format>
  7993. </remarks>
  7994. </member>
  7995. <member name="P:Microsoft.Data.SqlClient.SqlDataReader.Item(System.Int32)">
  7996. <param name="i">The zero-based column ordinal.</param><summary>Gets the value of the specified column in its native format given the column ordinal.</summary><value>The value of the specified column in its native format.</value><remarks>To be added.</remarks><exception cref="T:System.IndexOutOfRangeException">The index passed was outside the range of 0 through <see cref="P:System.Data.IDataRecord.FieldCount" />.</exception>
  7997. </member>
  7998. <member name="P:Microsoft.Data.SqlClient.SqlDataReader.Item(System.String)">
  7999. <param name="name">The column name.</param><summary>Gets the value of the specified column in its native format given the column name.</summary><value>The value of the specified column in its native format.</value><remarks>
  8000. <format type="text/markdown"><![CDATA[
  8001. ## Remarks
  8002. A case-sensitive lookup is performed first. If it fails, a second case-insensitive search is made (a case-insensitive comparison is done using the database collation). Unexpected results can occur when comparisons are affected by culture-specific casing rules. For example, in Turkish, the following example yields the wrong results because the file system in Turkish does not use linguistic casing rules for the letter 'i' in "file".
  8003. This method is kana-width insensitive.
  8004. ]]></format>
  8005. </remarks><exception cref="T:System.IndexOutOfRangeException">No column with the specified name was found.</exception>
  8006. </member>
  8007. <member name="M:Microsoft.Data.SqlClient.SqlDataReader.Dispose(System.Boolean)">
  8008. <param name="disposing">To be added.</param><summary>To be added.</summary><remarks>To be added.</remarks>
  8009. </member>
  8010. <member name="M:Microsoft.Data.SqlClient.SqlDataReader.Close">
  8011. <summary>Closes the <see cref="T:Microsoft.Data.SqlClient.SqlDataReader" /> object.</summary><remarks>
  8012. <format type="text/markdown"><![CDATA[
  8013. ## Remarks
  8014. You must ensure the <xref:Microsoft.Data.SqlClient.SqlDataReader.Close%2A> method is called when you are through using the <xref:Microsoft.Data.SqlClient.SqlDataReader> before using the associated <xref:Microsoft.Data.SqlClient.SqlConnection> for any other purpose. The `Close` method may either be called directly or through the <xref:Microsoft.Data.SqlClient.SqlDataReader.Dispose%2A> method, disposing directly or in the context of [the using statement](~/_csharplang/spec/statements.md#the-using-statement) block.
  8015. The `Close` method populates the values for output parameters, return values and `RecordsAffected` on the <xref:Microsoft.Data.SqlClient.SqlDataReader> by consuming any pending results. This may be a long operation depending on the amount of data to be consumed. If output values, return values, and `RecordsAffected` are not important to your application, the time to close may be shortened by calling the <xref:Microsoft.Data.SqlClient.SqlCommand.Cancel%2A> method of the associated <xref:Microsoft.Data.SqlClient.SqlCommand> object before the `Close` method is called.
  8016. > [!CAUTION]
  8017. > Do not call `Close` or `Dispose` on a Connection, a DataReader, or any other managed object in the `Finalize` method of your class. In a finalizer, you should only release unmanaged resources that your class owns directly. If your class does not own any unmanaged resources, do not include a `Finalize` method in your class definition. For more information, see [Garbage Collection](~/docs/standard/garbage-collection/index.md).
  8018. ## Examples
  8019. The following example creates a <xref:Microsoft.Data.SqlClient.SqlConnection>, a <xref:Microsoft.Data.SqlClient.SqlCommand>, and a <xref:Microsoft.Data.SqlClient.SqlDataReader>. The example reads through the data, writing it out to the console window. The code then closes the <xref:Microsoft.Data.SqlClient.SqlDataReader>. The <xref:Microsoft.Data.SqlClient.SqlConnection> is closed automatically at the end of the `using` code block.
  8020. [!code-csharp[SqlDataReader_Close Example#1](~/../sqlclient/doc/samples/SqlDataReader_Close.cs#1)]
  8021. ]]></format>
  8022. </remarks>
  8023. </member>
  8024. <member name="M:Microsoft.Data.SqlClient.SqlDataReader.GetDataTypeName(System.Int32)">
  8025. <param name="i">The zero-based ordinal position of the column to find.</param><summary>Gets a string representing the data type of the specified column.</summary><returns>The string representing the data type of the specified column.</returns><remarks>
  8026. <format type="text/markdown"><![CDATA[
  8027. ## Remarks
  8028. Returns the name of the back-end data type.
  8029. `numeric` is a synonym in SQL Server for the `decimal` data type. `GetDataTypeName` will return "decimal" for a column defined as either decimal or numeric.
  8030. ]]></format>
  8031. </remarks>
  8032. </member>
  8033. <member name="M:Microsoft.Data.SqlClient.SqlDataReader.GetEnumerator">
  8034. <summary>Returns an <see cref="T:System.Collections.IEnumerator" /> that iterates through the <see cref="T:Microsoft.Data.SqlClient.SqlDataReader" />.</summary><returns>An <see cref="T:System.Collections.IEnumerator" /> for the <see cref="T:Microsoft.Data.SqlClient.SqlDataReader" />.</returns><remarks>
  8035. <format type="text/markdown"><![CDATA[
  8036. ## Remarks
  8037. Although you can use this method to retrieve an explicit enumerator, in languages that support a `foreach` construct, it is simpler to use the looping construct directly in order to iterate through the rows in the data reader.
  8038. ]]></format>
  8039. </remarks>
  8040. </member>
  8041. <member name="M:Microsoft.Data.SqlClient.SqlDataReader.GetFieldType(System.Int32)">
  8042. <param name="i">The zero-based column ordinal.</param><summary>Gets the <see cref="T:System.Type" /> that is the data type of the object.</summary><returns>The <see cref="T:System.Type" /> that is the data type of the object. If the type does not exist on the client, in the case of a User-Defined Type (UDT) returned from the database, **GetFieldType** returns null.</returns><remarks>To be added.</remarks>
  8043. </member>
  8044. <member name="M:Microsoft.Data.SqlClient.SqlDataReader.GetName(System.Int32)">
  8045. <param name="i">The zero-based column ordinal.</param><summary>Gets the name of the specified column.</summary><returns>The name of the specified column.</returns><remarks>To be added.</remarks>
  8046. </member>
  8047. <member name="M:Microsoft.Data.SqlClient.SqlDataReader.GetProviderSpecificFieldType(System.Int32)">
  8048. <param name="i">An <see cref="T:System.Int32" /> representing the column ordinal.</param><summary>Gets an <see langword="Object" /> that is a representation of the underlying provider-specific field type.</summary><returns>Gets an <see cref="T:System.Object" /> that is a representation of the underlying provider-specific field type.</returns><remarks>To be added.</remarks>
  8049. </member>
  8050. <member name="M:Microsoft.Data.SqlClient.SqlDataReader.GetOrdinal(System.String)">
  8051. <param name="name">The name of the column.</param><summary>Gets the column ordinal, given the name of the column.</summary><returns>The zero-based column ordinal.</returns><remarks>
  8052. <format type="text/markdown"><![CDATA[
  8053. ## Remarks
  8054. `GetOrdinal` performs a case-sensitive lookup first. If it fails, a second, case-insensitive search occurs (a case-insensitive comparison is done using the database collation). Unexpected results can occur when comparisons are affected by culture-specific casing rules. For example, in Turkish, the following example yields the wrong results because the file system in Turkish does not use linguistic casing rules for the letter 'i' in "file". The method throws an `IndexOutOfRange` exception if the zero-based column ordinal is not found.
  8055. `GetOrdinal` is kana-width insensitive.
  8056. Because ordinal-based lookups are more efficient than named lookups, it is inefficient to call `GetOrdinal` within a loop. Save time by calling `GetOrdinal` once and assigning the results to an integer variable for use within the loop.
  8057. ## Examples
  8058. The following example demonstrates how to use the <xref:Microsoft.Data.SqlClient.SqlDataReader.GetOrdinal%2A> method.
  8059. [!code-csharp[SqlDataReader_GetOrdinal#1](~/../sqlclient/doc/samples/SqlDataReader_GetOrdinal.cs#1)]
  8060. ]]></format>
  8061. </remarks><exception cref="T:System.IndexOutOfRangeException">The name specified is not a valid column name.</exception>
  8062. </member>
  8063. <member name="M:Microsoft.Data.SqlClient.SqlDataReader.GetProviderSpecificValue(System.Int32)">
  8064. <param name="i">An <see cref="T:System.Int32" /> representing the column ordinal.</param><summary>Gets an <see langword="Object" /> that is a representation of the underlying provider specific value.</summary><returns>An <see cref="T:System.Object" /> that is a representation of the underlying provider specific value.</returns><remarks>To be added.</remarks>
  8065. </member>
  8066. <member name="M:Microsoft.Data.SqlClient.SqlDataReader.GetProviderSpecificValues(System.Object[])">
  8067. <param name="values">An array of <see cref="T:System.Object" /> into which to copy the column values.</param><summary>Gets an array of objects that are a representation of the underlying provider specific values.</summary><returns>The array of objects that are a representation of the underlying provider specific values.</returns><remarks>To be added.</remarks>
  8068. </member>
  8069. <member name="M:Microsoft.Data.SqlClient.SqlDataReader.GetSchemaTable">
  8070. <summary>Returns a <see cref="T:System.Data.DataTable" /> that describes the column metadata of the <see cref="T:Microsoft.Data.SqlClient.SqlDataReader" />.</summary><returns>A <see cref="T:System.Data.DataTable" /> that describes the column metadata.</returns><remarks>
  8071. <format type="text/markdown"><![CDATA[
  8072. ## Remarks
  8073. For the <xref:Microsoft.Data.SqlClient.SqlDataReader.GetSchemaTable%2A> method returns metadata about each column in the following order:
  8074. |DataReader column|Description|
  8075. |-----------------------|-----------------|
  8076. |AllowDBNull|Set if the consumer can set the column to a null value or if the provider cannot determine whether the consumer can set the column to a null value. Otherwise, not set. A column may contain null values, even if it cannot be set to a null value.|
  8077. |BaseCatalogName|The name of the catalog in the data store that contains the column. NULL if the base catalog name cannot be determined. The default of this column is a null value.|
  8078. |BaseColumnName|The name of the column in the data store. This might be different than the column name returned in the ColumnName column if an alias was used. A null value if the base column name cannot be determined or if the rowset column is derived, but not identical to, a column in the data store. The default of this column is a null value.|
  8079. |BaseSchemaName|The name of the schema in the data store that contains the column. A null value if the base schema name cannot be determined. The default of this column is a null value.|
  8080. |BaseServerName|The name of the instance of Microsoft SQL Server used by the <xref:Microsoft.Data.SqlClient.SqlDataReader>.|
  8081. |BaseTableName|The name of the table or view in the data store that contains the column. A null value if the base table name cannot be determined. The default of this column is a null value.|
  8082. |ColumnName|The name of the column; this might not be unique. If this cannot be determined, a null value is returned. This name always reflects the most recent renaming of the column in the current view or command text.|
  8083. |ColumnOrdinal|The zero-based ordinal of the column. This column cannot contain a null value.|
  8084. |ColumnSize|The maximum possible length of a value in the column. For columns that use a fixed-length data type, this is the size of the data type. For `nvarchar(MAX)`, `varchar(MAX)`, and `varbinary(MAX)` columns stored in a SQL Server database, the maximum size is 2GB. If these columns are stored and accessed as files, the limit on maximum size is imposed by the file system. This value changes when using the `Type System Version` keyword in the connection string. For new types they are represented as downlevel types. The MAX data types return the normal 4k for `nvarchar` and 8000 for `varchar`. For more information, see the [Transact-SQL reference](/sql/t-sql/language-reference).|
  8085. |DataTypeName|Returns a string representing the data type of the specified column.|
  8086. |IsAliased|`true`: The column name is an alias.<br /><br /> `false`: The column name is not an alias.|
  8087. |IsAutoIncrement|`true`: The column assigns values to new rows in fixed increments.<br /><br /> `false`: The column does not assign values to new rows in fixed increments. The default of this column is `false`.|
  8088. |IsColumnSet|`true`: The column is a sparse column that is a member of a column set.|
  8089. |IsExpression|`true`: The column is an expression.<br /><br /> `false`: The column is not an expression.|
  8090. |IsHidden|`true`: The column is hidden.<br /><br /> `false`: The column is not hidden.|
  8091. |IsIdentity|`true`: The column is an identity column.<br /><br /> `false`: The column is not an identity column.|
  8092. |IsKey|`true`: The column is one of a set of columns in the rowset that, taken together, uniquely identify the row. The set of columns with `IsKey` set to `true` must uniquely identify a row in the rowset. There is no requirement that this set of columns is a minimal set of columns. This set of columns may be generated from a base table primary key, a unique constraint or a unique index.<br /><br /> `false`: The column is not required to uniquely identify the row.|
  8093. |IsLong|`true`: The column contains a Binary Long Object (BLOB) that contains very long data. The definition of very long data is provider-specific.<br /><br /> `false`: The column does not contain a Binary Long Object (BLOB) that contains very long data.|
  8094. |IsReadOnly|`true`: The column cannot be modified.<br /><br /> `false`: The column can be modified.|
  8095. |IsRowVersion|`true`: The column contains a persistent row identifier that cannot be written to, and has no meaningful value except to identity the row.<br /><br /> `false`: The column does not contain a persistent row identifier that cannot be written to, and has no meaningful value except to identity the row.|
  8096. |IsUnique|`true`: Column is of type `timestamp`.<br /><br /> `false`: Column is not of type `timestamp`.|
  8097. |NonVersionedProviderType|The type of the column irrespective of the current `Type System Version` specified in the connection string. The returned value is from the <xref:System.Data.SqlDbType> enumeration.|
  8098. |NumericPrecision|If `ProviderType` is a numeric data type, this is the maximum precision of the column. The precision depends on the definition of the column. If `ProviderType` is not a numeric data type, this is 255.|
  8099. |NumericScale|If `ProviderType` is DBTYPE_DECIMAL or DBTYPE_NUMERIC, the number of digits to the right of the decimal point. Otherwise, this is 255.|
  8100. |ProviderSpecificDataType|Returns the provider-specific data type of the column based on the `Type System Version` keyword in the connection string.|
  8101. |ProviderType|The indicator of the column's data type. If the data type of the column varies from row to row, this must be Object. This column cannot contain a null value.|
  8102. |UdtAssemblyQualifiedName|If the column is a user-defined type (UDT), this is the qualified name of the UDT's assembly as per <xref:System.Type.AssemblyQualifiedName%2A>. If the column is not a UDT, this is null.|
  8103. |XmlSchemaCollectionDatabase|The name of the database where the schema collection for this XML instance is located, if the row contains information about an XML column. This value is `null` (`Nothing` in Visual Basic) if the collection is defined within the current database. It is also null if there is no schema collection, in which case the `XmlSchemaCollectionName` and `XmlSchemaCollectionOwningSchema` columns are also null.|
  8104. |XmlSchemaCollectionName|The name of the schema collection for this XML instance, if the row contains information about an XML column. This value is `null` (`Nothing` in Visual Basic) if there is no associated schema collection. If the value is null, the `XmlSchemaCollectionDatabase` and `XmlSchemaCollectionOwningSchema` columns are also null.|
  8105. |XmlSchemaCollectionOwningSchema|The owning relational schema where the schema collection for this XML instance is located, if the row contains information about an XML column. This value is `null` (`Nothing` in Visual Basic) if the collection is defined within the current database. It is also null if there is no schema collection, in which case the `XmlSchemaCollectionDatabase` and `XmlSchemaCollectionName` columns are also null.|
  8106. > [!NOTE]
  8107. > To make sure that metadata columns return the correct information, you must call <xref:Microsoft.Data.SqlClient.SqlCommand.ExecuteReader%2A> with the `behavior` parameter set to `KeyInfo`. Otherwise, some of the columns in the schema table may return default, null, or incorrect data.
  8108. ]]></format>
  8109. </remarks><exception cref="T:System.InvalidOperationException">The <see cref="T:Microsoft.Data.SqlClient.SqlDataReader" /> is closed.</exception>
  8110. </member>
  8111. <member name="M:Microsoft.Data.SqlClient.SqlDataReader.GetBoolean(System.Int32)">
  8112. <param name="i">The zero-based column ordinal.</param><summary>Gets the value of the specified column as a Boolean.</summary><returns>The value of the column.</returns><remarks>
  8113. <format type="text/markdown"><![CDATA[
  8114. ## Remarks
  8115. No conversions are performed; therefore, the data retrieved must already be a Boolean, or an exception is generated.
  8116. Call <xref:Microsoft.Data.SqlClient.SqlDataReader.IsDBNull%2A> to check for null values before calling this method.
  8117. ]]></format>
  8118. </remarks><exception cref="T:System.InvalidCastException">The specified cast is not valid.</exception>
  8119. </member>
  8120. <member name="M:Microsoft.Data.SqlClient.SqlDataReader.GetXmlReader(System.Int32)">
  8121. <param name="i">The value of the specified column.</param><summary>Retrieves data of type XML as an <see cref="T:System.Xml.XmlReader" />.</summary><returns>The returned object.</returns><remarks>
  8122. <format type="text/markdown"><![CDATA[
  8123. ## Remarks
  8124. The <xref:System.Xml.XmlReader> object returned by <xref:Microsoft.Data.SqlClient.SqlDataReader.GetXmlReader%2A> does not support asynchronous operations. If you require asynchronous operations on an <xref:System.Xml.XmlReader>, cast the XML column to an NVARCHAR(MAX) on the server and use <xref:Microsoft.Data.SqlClient.SqlDataReader.GetTextReader%2A> with <xref:System.Xml.XmlReader.Create%2A>.
  8125. <xref:Microsoft.Data.SqlClient.SqlException> exceptions raised from <xref:System.Xml.XmlReader> are thrown as <xref:System.Xml.XmlException> exceptions; check the inner exception for the <xref:Microsoft.Data.SqlClient.SqlException>.
  8126. <xref:Microsoft.Data.SqlClient.SqlDataReader.GetChars%2A> will raise an <xref:System.InvalidOperationException> exception when used on an object returned by <xref:Microsoft.Data.SqlClient.SqlDataReader.GetXmlReader%2A> when <xref:System.Data.CommandBehavior.SequentialAccess> is in effect.
  8127. For more information, see [SqlClient Streaming Support](~/docs/framework/data/adonet/sqlclient-streaming-support.md).
  8128. ]]></format>
  8129. </remarks><exception cref="T:System.InvalidOperationException">The connection drops or is closed during the data retrieval.
  8130. The <see cref="T:Microsoft.Data.SqlClient.SqlDataReader" /> is closed during the data retrieval.
  8131. There is no data ready to be read (for example, the first <see cref="M:Microsoft.Data.SqlClient.SqlDataReader.Read" /> hasn't been called, or returned false).
  8132. Trying to read a previously read column in sequential mode.
  8133. There was an asynchronous operation in progress. This applies to all Get* methods when running in sequential mode, as they could be called while reading a stream.</exception><exception cref="T:System.IndexOutOfRangeException">Trying to read a column that does not exist.</exception><exception cref="T:System.InvalidCastException">The returned type was not xml.</exception>
  8134. </member>
  8135. <member name="M:Microsoft.Data.SqlClient.SqlDataReader.GetStream(System.Int32)">
  8136. <param name="i">The zero-based column ordinal.</param><summary>Retrieves binary, image, varbinary, UDT, and variant data types as a <see cref="T:System.IO.Stream" />.</summary><returns>A stream object.</returns><remarks>
  8137. <format type="text/markdown"><![CDATA[
  8138. ## Remarks
  8139. <xref:System.IO.Stream.ReadTimeout%2A> defaults to the value of <xref:Microsoft.Data.SqlClient.SqlCommand.CommandTimeout%2A>; but you can modify <xref:System.IO.Stream.ReadTimeout%2A> via <xref:Microsoft.Data.SqlClient.SqlDataReader.GetStream%2A>.
  8140. Null values will be returned as an empty (zero bytes) <xref:System.IO.Stream>.
  8141. <xref:Microsoft.Data.SqlClient.SqlDataReader.GetBytes%2A> will raise an <xref:System.InvalidOperationException> exception when used on an object returned by <xref:Microsoft.Data.SqlClient.SqlDataReader.GetStream%2A> when <xref:System.Data.CommandBehavior.SequentialAccess> is in effect.
  8142. <xref:Microsoft.Data.SqlClient.SqlException> exceptions raised from <xref:System.IO.Stream> are thrown as <xref:System.IO.IOException> exceptions; check the inner exception for the <xref:Microsoft.Data.SqlClient.SqlException>.
  8143. The following <xref:System.IO.Stream> members are not available for objects returned by <xref:Microsoft.Data.SqlClient.SqlDataReader.GetStream%2A>:
  8144. - BeginWrite
  8145. - EndWrite
  8146. - Length
  8147. - Position
  8148. - Seek
  8149. - SetLength
  8150. - Write
  8151. - WriteByte
  8152. - WriteTimeout
  8153. When the connection property `ContextConnection=true`, <xref:Microsoft.Data.SqlClient.SqlDataReader.GetStream%2A> only supports synchronous data retrieval for both sequential (<xref:System.Data.CommandBehavior.SequentialAccess>) and non-sequential (<xref:System.Data.CommandBehavior.Default>) access.
  8154. For more information, see [SqlClient Streaming Support](~/docs/framework/data/adonet/sqlclient-streaming-support.md).
  8155. ]]></format>
  8156. </remarks><exception cref="T:System.InvalidOperationException">The connection drops or is closed during the data retrieval.
  8157. The <see cref="T:Microsoft.Data.SqlClient.SqlDataReader" /> is closed during the data retrieval.
  8158. There is no data ready to be read (for example, the first <see cref="M:Microsoft.Data.SqlClient.SqlDataReader.Read" /> hasn't been called, or returned false).
  8159. Tried to read a previously-read column in sequential mode.
  8160. There was an asynchronous operation in progress. This applies to all Get* methods when running in sequential mode, as they could be called while reading a stream.</exception><exception cref="T:System.IndexOutOfRangeException">Trying to read a column that does not exist.</exception><exception cref="T:System.InvalidCastException">The returned type was not one of the types below:
  8161. - binary
  8162. - image
  8163. - varbinary
  8164. - udt</exception>
  8165. </member>
  8166. <member name="M:Microsoft.Data.SqlClient.SqlDataReader.GetByte(System.Int32)">
  8167. <param name="i">The zero-based column ordinal.</param><summary>Gets the value of the specified column as a byte.</summary><returns>The value of the specified column as a byte.</returns><remarks>
  8168. <format type="text/markdown"><![CDATA[
  8169. ## Remarks
  8170. No conversions are performed; therefore, the data retrieved must already be a byte.
  8171. Call <xref:Microsoft.Data.SqlClient.SqlDataReader.IsDBNull%2A> to check for null values before calling this method.
  8172. ]]></format>
  8173. </remarks><exception cref="T:System.InvalidCastException">The specified cast is not valid.</exception>
  8174. </member>
  8175. <member name="M:Microsoft.Data.SqlClient.SqlDataReader.GetBytes(System.Int32,System.Int64,System.Byte[],System.Int32,System.Int32)">
  8176. <param name="i">The zero-based column ordinal.</param><param name="dataIndex">The index within the field from which to begin the read operation.</param><param name="buffer">The buffer into which to read the stream of bytes.</param><param name="bufferIndex">The index within the <paramref name="buffer" /> where the write operation is to start.</param><param name="length">The maximum length to copy into the buffer.</param><summary>Reads a stream of bytes from the specified column offset into the buffer an array starting at the given buffer offset.</summary><returns>The actual number of bytes read.</returns><remarks>
  8177. <format type="text/markdown"><![CDATA[
  8178. ## Remarks
  8179. <xref:Microsoft.Data.SqlClient.SqlDataReader.GetBytes%2A> returns the number of available bytes in the field. Most of the time this is the exact length of the field. However, the number returned may be less than the true length of the field if `GetBytes` has already been used to obtain bytes from the field. This may be the case, for example, if the <xref:Microsoft.Data.SqlClient.SqlDataReader> is reading a large data structure into a buffer. For more information, see the `SequentialAccess` setting for <xref:System.Data.CommandBehavior>.
  8180. If you pass a buffer that is `null`, <xref:Microsoft.Data.SqlClient.SqlDataReader.GetBytes%2A> returns the length of the entire field in bytes, not the remaining size based on the buffer offset parameter.
  8181. No conversions are performed; therefore, the data retrieved must already be a byte array.
  8182. ]]></format>
  8183. </remarks>
  8184. </member>
  8185. <member name="M:Microsoft.Data.SqlClient.SqlDataReader.GetTextReader(System.Int32)">
  8186. <param name="i">The column to be retrieved.</param><summary>Retrieves Char, NChar, NText, NVarChar, text, varChar, and Variant data types as a <see cref="T:System.IO.TextReader" />.</summary><returns>The returned object.</returns><remarks>
  8187. <format type="text/markdown"><![CDATA[
  8188. ## Remarks
  8189. <xref:Microsoft.Data.SqlClient.SqlException> exceptions raised from <xref:System.IO.TextReader> are thrown as <xref:System.IO.IOException> exceptions; check the inner exception for the <xref:Microsoft.Data.SqlClient.SqlException>.
  8190. Null values will be returned as an empty (zero bytes) <xref:System.IO.TextReader>.
  8191. <xref:Microsoft.Data.SqlClient.SqlDataReader.GetChars%2A> will raise an <xref:System.InvalidOperationException> exception when used on an object returned by <xref:Microsoft.Data.SqlClient.SqlDataReader.GetTextReader%2A> when <xref:System.Data.CommandBehavior.SequentialAccess> is in effect.
  8192. When the connection property `ContextConnection=true`, <xref:Microsoft.Data.SqlClient.SqlDataReader.GetTextReader%2A> only supports synchronous data retrieval for both sequential (<xref:System.Data.CommandBehavior.SequentialAccess>) and non-sequential (<xref:System.Data.CommandBehavior.Default>) access.
  8193. For more information, see [SqlClient Streaming Support](~/docs/framework/data/adonet/sqlclient-streaming-support.md).
  8194. ]]></format>
  8195. </remarks><exception cref="T:System.InvalidOperationException">The connection drops or is closed during the data retrieval.
  8196. The <see cref="T:Microsoft.Data.SqlClient.SqlDataReader" /> is closed during the data retrieval.
  8197. There is no data ready to be read (for example, the first <see cref="M:Microsoft.Data.SqlClient.SqlDataReader.Read" /> hasn't been called, or returned false).
  8198. Tried to read a previously-read column in sequential mode.
  8199. There was an asynchronous operation in progress. This applies to all Get* methods when running in sequential mode, as they could be called while reading a stream.</exception><exception cref="T:System.IndexOutOfRangeException">Trying to read a column that does not exist.</exception><exception cref="T:System.InvalidCastException">The returned type was not one of the types below:
  8200. - char
  8201. - nchar
  8202. - ntext
  8203. - nvarchar
  8204. - text
  8205. - varchar</exception>
  8206. </member>
  8207. <member name="M:Microsoft.Data.SqlClient.SqlDataReader.GetChar(System.Int32)">
  8208. <param name="i">The zero-based column ordinal.</param><summary>Gets the value of the specified column as a single character.</summary><returns>The value of the specified column.</returns><remarks>
  8209. <format type="text/markdown"><![CDATA[
  8210. ## Remarks
  8211. Not supported for <xref:Microsoft.Data.SqlClient>.
  8212. ]]></format>
  8213. </remarks><exception cref="T:System.InvalidCastException">The specified cast is not valid.</exception>
  8214. </member>
  8215. <member name="M:Microsoft.Data.SqlClient.SqlDataReader.GetChars(System.Int32,System.Int64,System.Char[],System.Int32,System.Int32)">
  8216. <param name="i">The zero-based column ordinal.</param><param name="dataIndex">The index within the field from which to begin the read operation.</param><param name="buffer">The buffer into which to read the stream of bytes.</param><param name="bufferIndex">The index within the <paramref name="buffer" /> where the write operation is to start.</param><param name="length">The maximum length to copy into the buffer.</param><summary>Reads a stream of characters from the specified column offset into the buffer as an array starting at the given buffer offset.</summary><returns>The actual number of characters read.</returns><remarks>
  8217. <format type="text/markdown"><![CDATA[
  8218. ## Remarks
  8219. <xref:Microsoft.Data.SqlClient.SqlDataReader.GetChars%2A> returns the number of available characters in the field. Frequently this is the exact length of the field. However, the number returned may be less than the true length of the field if `GetChars` has already been used to obtain characters from the field. This may be the case, for example, if the <xref:Microsoft.Data.SqlClient.SqlDataReader> is reading a large data structure into a buffer. For more information, see the `SequentialAccess` setting for <xref:System.Data.CommandBehavior>.
  8220. The actual number of characters read can be less than the requested length, if the end of the field is reached. If you pass a buffer that is `null`, <xref:Microsoft.Data.SqlClient.SqlDataReader.GetChars%2A> returns the length of the entire field in characters, not the remaining size based on the buffer offset parameter.
  8221. No conversions are performed; therefore. the data retrieved must already be a character array.
  8222. > [!NOTE]
  8223. > The <xref:Microsoft.Data.SqlClient.SqlDataReader.GetChars%2A> method returns 0 when `dataIndex` is negative.
  8224. ]]></format>
  8225. </remarks>
  8226. </member>
  8227. <member name="M:Microsoft.Data.SqlClient.SqlDataReader.GetDateTime(System.Int32)">
  8228. <param name="i">The zero-based column ordinal.</param><summary>Gets the value of the specified column as a <see cref="T:System.DateTime" /> object.</summary><returns>The value of the specified column.</returns><remarks>
  8229. <format type="text/markdown"><![CDATA[
  8230. ## Remarks
  8231. No conversions are performed; therefore, the data retrieved must already be a <xref:System.DateTime> object.
  8232. Call <xref:Microsoft.Data.SqlClient.SqlDataReader.IsDBNull%2A> to check for null values before calling this method.
  8233. ]]></format>
  8234. </remarks><exception cref="T:System.InvalidCastException">The specified cast is not valid.</exception>
  8235. </member>
  8236. <member name="M:Microsoft.Data.SqlClient.SqlDataReader.GetDecimal(System.Int32)">
  8237. <param name="i">The zero-based column ordinal.</param><summary>Gets the value of the specified column as a <see cref="T:System.Decimal" /> object.</summary><returns>The value of the specified column.</returns><remarks>
  8238. <format type="text/markdown"><![CDATA[
  8239. ## Remarks
  8240. No conversions are performed; therefore, the data retrieved must already be a <xref:System.Decimal> object.
  8241. Call <xref:Microsoft.Data.SqlClient.SqlDataReader.IsDBNull%2A> to check for null values before calling this method.
  8242. ]]></format>
  8243. </remarks><exception cref="T:System.InvalidCastException">The specified cast is not valid.</exception>
  8244. </member>
  8245. <member name="M:Microsoft.Data.SqlClient.SqlDataReader.GetDouble(System.Int32)">
  8246. <param name="i">The zero-based column ordinal.</param><summary>Gets the value of the specified column as a double-precision floating point number.</summary><returns>The value of the specified column.</returns><remarks>
  8247. <format type="text/markdown"><![CDATA[
  8248. ## Remarks
  8249. No conversions are performed. Therefore, the data retrieved must already be a double-precision floating point number.
  8250. Call <xref:Microsoft.Data.SqlClient.SqlDataReader.IsDBNull%2A> to check for null values before calling this method.
  8251. ]]></format>
  8252. </remarks><exception cref="T:System.InvalidCastException">The specified cast is not valid.</exception>
  8253. </member>
  8254. <member name="M:Microsoft.Data.SqlClient.SqlDataReader.GetFloat(System.Int32)">
  8255. <param name="i">The zero-based column ordinal.</param><summary>Gets the value of the specified column as a single-precision floating point number.</summary><returns>The value of the specified column.</returns><remarks>
  8256. <format type="text/markdown"><![CDATA[
  8257. ## Remarks
  8258. No conversions are performed. Therefore, the data retrieved must already be a single-precision floating point number.
  8259. Call <xref:Microsoft.Data.SqlClient.SqlDataReader.IsDBNull%2A> to check for null values before calling this method.
  8260. ]]></format>
  8261. </remarks><exception cref="T:System.InvalidCastException">The specified cast is not valid.</exception>
  8262. </member>
  8263. <member name="M:Microsoft.Data.SqlClient.SqlDataReader.GetGuid(System.Int32)">
  8264. <param name="i">The zero-based column ordinal.</param><summary>Gets the value of the specified column as a globally unique identifier (GUID).</summary><returns>The value of the specified column.</returns><remarks>
  8265. <format type="text/markdown"><![CDATA[
  8266. ## Remarks
  8267. No conversions are performed; therefore, the data retrieved must already be a GUID.
  8268. Call <xref:Microsoft.Data.SqlClient.SqlDataReader.IsDBNull%2A> to check for null values before calling this method.
  8269. ]]></format>
  8270. </remarks><exception cref="T:System.InvalidCastException">The specified cast is not valid.</exception>
  8271. </member>
  8272. <member name="M:Microsoft.Data.SqlClient.SqlDataReader.GetInt16(System.Int32)">
  8273. <param name="i">The zero-based column ordinal.</param><summary>Gets the value of the specified column as a 16-bit signed integer.</summary><returns>The value of the specified column.</returns><remarks>
  8274. <format type="text/markdown"><![CDATA[
  8275. ## Remarks
  8276. No conversions are performed; therefore, the data retrieved must already be a 16-bit signed integer.
  8277. Call <xref:Microsoft.Data.SqlClient.SqlDataReader.IsDBNull%2A> to check for null values before calling this method.
  8278. ]]></format>
  8279. </remarks><exception cref="T:System.InvalidCastException">The specified cast is not valid.</exception>
  8280. </member>
  8281. <member name="M:Microsoft.Data.SqlClient.SqlDataReader.GetInt32(System.Int32)">
  8282. <param name="i">The zero-based column ordinal.</param><summary>Gets the value of the specified column as a 32-bit signed integer.</summary><returns>The value of the specified column.</returns><remarks>
  8283. <format type="text/markdown"><![CDATA[
  8284. ## Remarks
  8285. No conversions are performed; therefore, the data retrieved must already be a 32-bit signed integer.
  8286. Call <xref:Microsoft.Data.SqlClient.SqlDataReader.IsDBNull%2A> to check for null values before calling this method.
  8287. ]]></format>
  8288. </remarks><exception cref="T:System.InvalidCastException">The specified cast is not valid.</exception>
  8289. </member>
  8290. <member name="M:Microsoft.Data.SqlClient.SqlDataReader.GetInt64(System.Int32)">
  8291. <param name="i">The zero-based column ordinal.</param><summary>Gets the value of the specified column as a 64-bit signed integer.</summary><returns>The value of the specified column.</returns><remarks>
  8292. <format type="text/markdown"><![CDATA[
  8293. ## Remarks
  8294. No conversions are performed; therefore, the data retrieved must already be a 64-bit signed integer.
  8295. Call <xref:Microsoft.Data.SqlClient.SqlDataReader.IsDBNull%2A> to check for null values before calling this method.
  8296. ]]></format>
  8297. </remarks><exception cref="T:System.InvalidCastException">The specified cast is not valid.</exception>
  8298. </member>
  8299. <member name="M:Microsoft.Data.SqlClient.SqlDataReader.GetSqlBoolean(System.Int32)">
  8300. <param name="i">The zero-based column ordinal.</param><summary>Gets the value of the specified column as a <see cref="T:System.Data.SqlTypes.SqlBoolean" />.</summary><returns>The value of the column.</returns><remarks>
  8301. <format type="text/markdown"><![CDATA[
  8302. ## Remarks
  8303. No conversions are performed; therefore, the data retrieved must already be a Boolean or an exception is generated.
  8304. ]]></format>
  8305. </remarks>
  8306. </member>
  8307. <member name="M:Microsoft.Data.SqlClient.SqlDataReader.GetSqlBinary(System.Int32)">
  8308. <param name="i">The zero-based column ordinal.</param><summary>Gets the value of the specified column as a <see cref="T:System.Data.SqlTypes.SqlBinary" />.</summary><returns>The value of the column expressed as a <see cref="T:System.Data.SqlTypes.SqlBinary" />.</returns><remarks>
  8309. <format type="text/markdown"><![CDATA[
  8310. ## Remarks
  8311. No conversions are performed; therefore the data retrieved must already be a binary structure or an exception is generated.
  8312. ]]></format>
  8313. </remarks>
  8314. </member>
  8315. <member name="M:Microsoft.Data.SqlClient.SqlDataReader.GetSqlByte(System.Int32)">
  8316. <param name="i">The zero-based column ordinal.</param><summary>Gets the value of the specified column as a <see cref="T:System.Data.SqlTypes.SqlByte" />.</summary><returns>The value of the column expressed as a <see cref="T:System.Data.SqlTypes.SqlByte" />.</returns><remarks>
  8317. <format type="text/markdown"><![CDATA[
  8318. ## Remarks
  8319. No conversions are performed; therefore the data retrieved must already be a byte, or an exception is generated.
  8320. ]]></format>
  8321. </remarks>
  8322. </member>
  8323. <member name="M:Microsoft.Data.SqlClient.SqlDataReader.GetSqlBytes(System.Int32)">
  8324. <param name="i">The zero-based column ordinal.</param><summary>Gets the value of the specified column as <see cref="T:System.Data.SqlTypes.SqlBytes" />.</summary><returns>The value of the column expressed as a <see cref="T:System.Data.SqlTypes.SqlBytes" />.</returns><remarks>To be added.</remarks>
  8325. </member>
  8326. <member name="M:Microsoft.Data.SqlClient.SqlDataReader.GetSqlChars(System.Int32)">
  8327. <param name="i">The zero-based column ordinal.</param><summary>Gets the value of the specified column as <see cref="T:System.Data.SqlTypes.SqlChars" />.</summary><returns>The value of the column expressed as a <see cref="T:System.Data.SqlTypes.SqlChars" />.</returns><remarks>To be added.</remarks>
  8328. </member>
  8329. <member name="M:Microsoft.Data.SqlClient.SqlDataReader.GetSqlDateTime(System.Int32)">
  8330. <param name="i">The zero-based column ordinal.</param><summary>Gets the value of the specified column as a <see cref="T:System.Data.SqlTypes.SqlDateTime" />.</summary><returns>The value of the column expressed as a <see cref="T:System.Data.SqlTypes.SqlDateTime" />.</returns><remarks>
  8331. <format type="text/markdown"><![CDATA[
  8332. ## Remarks
  8333. No conversions are performed; therefore, the data retrieved must already be a date/time value, or an exception is generated.
  8334. ]]></format>
  8335. </remarks>
  8336. </member>
  8337. <member name="M:Microsoft.Data.SqlClient.SqlDataReader.GetSqlDecimal(System.Int32)">
  8338. <param name="i">The zero-based column ordinal.</param><summary>Gets the value of the specified column as a <see cref="T:System.Data.SqlTypes.SqlDecimal" />.</summary><returns>The value of the column expressed as a <see cref="T:System.Data.SqlTypes.SqlDecimal" />.</returns><remarks>
  8339. <format type="text/markdown"><![CDATA[
  8340. ## Remarks
  8341. No conversions are performed; therefore, the data retrieved must already be a decimal value, or an exception is generated.
  8342. ]]></format>
  8343. </remarks>
  8344. </member>
  8345. <member name="M:Microsoft.Data.SqlClient.SqlDataReader.GetSqlGuid(System.Int32)">
  8346. <param name="i">The zero-based column ordinal.</param><summary>Gets the value of the specified column as a <see cref="T:System.Data.SqlTypes.SqlGuid" />.</summary><returns>The value of the column expressed as a <see cref="T:System.Data.SqlTypes.SqlGuid" />.</returns><remarks>
  8347. <format type="text/markdown"><![CDATA[
  8348. ## Remarks
  8349. No conversions are performed; therefore, the data retrieved must already be a GUID, or an exception is generated.
  8350. ]]></format>
  8351. </remarks>
  8352. </member>
  8353. <member name="M:Microsoft.Data.SqlClient.SqlDataReader.GetSqlDouble(System.Int32)">
  8354. <param name="i">The zero-based column ordinal.</param><summary>Gets the value of the specified column as a <see cref="T:System.Data.SqlTypes.SqlDouble" />.</summary><returns>The value of the column expressed as a <see cref="T:System.Data.SqlTypes.SqlDouble" />.</returns><remarks>
  8355. <format type="text/markdown"><![CDATA[
  8356. ## Remarks
  8357. No conversions are performed; therefore, the data retrieved must already be a double-precision floating-point number, or an exception is generated.
  8358. ]]></format>
  8359. </remarks>
  8360. </member>
  8361. <member name="M:Microsoft.Data.SqlClient.SqlDataReader.GetSqlInt16(System.Int32)">
  8362. <param name="i">The zero-based column ordinal.</param><summary>Gets the value of the specified column as a <see cref="T:System.Data.SqlTypes.SqlInt16" />.</summary><returns>The value of the column expressed as a <see cref="T:System.Data.SqlTypes.SqlInt16" />.</returns><remarks>
  8363. <format type="text/markdown"><![CDATA[
  8364. ## Remarks
  8365. No conversions are performed; therefore, the data retrieved must already be a 16-bit signed integer, or an exception is generated.
  8366. ]]></format>
  8367. </remarks>
  8368. </member>
  8369. <member name="M:Microsoft.Data.SqlClient.SqlDataReader.GetSqlInt32(System.Int32)">
  8370. <param name="i">The zero-based column ordinal.</param><summary>Gets the value of the specified column as a <see cref="T:System.Data.SqlTypes.SqlInt32" />.</summary><returns>The value of the column expressed as a <see cref="T:System.Data.SqlTypes.SqlInt32" />.</returns><remarks>
  8371. <format type="text/markdown"><![CDATA[
  8372. ## Remarks
  8373. No conversions are performed; therefore the data retrieved must already be a 32-bit signed integer, or an exception is generated.
  8374. ]]></format>
  8375. </remarks>
  8376. </member>
  8377. <member name="M:Microsoft.Data.SqlClient.SqlDataReader.GetSqlInt64(System.Int32)">
  8378. <param name="i">The zero-based column ordinal.</param><summary>Gets the value of the specified column as a <see cref="T:System.Data.SqlTypes.SqlInt64" />.</summary><returns>The value of the column expressed as a <see cref="T:System.Data.SqlTypes.SqlInt64" />.</returns><remarks>
  8379. <format type="text/markdown"><![CDATA[
  8380. ## Remarks
  8381. No conversions are performed; therefore, the data retrieved must already be a 64-bit signed integer, or an exception is generated.
  8382. ]]></format>
  8383. </remarks>
  8384. </member>
  8385. <member name="M:Microsoft.Data.SqlClient.SqlDataReader.GetSqlMoney(System.Int32)">
  8386. <param name="i">The zero-based column ordinal.</param><summary>Gets the value of the specified column as a <see cref="T:System.Data.SqlTypes.SqlMoney" />.</summary><returns>The value of the column expressed as a <see cref="T:System.Data.SqlTypes.SqlMoney" />.</returns><remarks>
  8387. <format type="text/markdown"><![CDATA[
  8388. ## Remarks
  8389. No conversions are performed; therefore, the data retrieved must already be a decimal value, or an exception is generated.
  8390. ]]></format>
  8391. </remarks>
  8392. </member>
  8393. <member name="M:Microsoft.Data.SqlClient.SqlDataReader.GetSqlSingle(System.Int32)">
  8394. <param name="i">The zero-based column ordinal.</param><summary>Gets the value of the specified column as a <see cref="T:System.Data.SqlTypes.SqlSingle" />.</summary><returns>The value of the column expressed as a <see cref="T:System.Data.SqlTypes.SqlSingle" />.</returns><remarks>
  8395. <format type="text/markdown"><![CDATA[
  8396. ## Remarks
  8397. No conversions are performed; therefore, the data retrieved must already be a single precision floating point number, or an exception is generated.
  8398. ]]></format>
  8399. </remarks>
  8400. </member>
  8401. <member name="M:Microsoft.Data.SqlClient.SqlDataReader.GetSqlString(System.Int32)">
  8402. <param name="i">The zero-based column ordinal.</param><summary>Gets the value of the specified column as a <see cref="T:System.Data.SqlTypes.SqlString" />.</summary><returns>The value of the column expressed as a <see cref="T:System.Data.SqlTypes.SqlString" />.</returns><remarks>
  8403. <format type="text/markdown"><![CDATA[
  8404. ## Remarks
  8405. No conversions are performed; therefore, the data retrieved must already be a string, or an exception is generated.
  8406. ]]></format>
  8407. </remarks>
  8408. </member>
  8409. <member name="M:Microsoft.Data.SqlClient.SqlDataReader.GetSqlXml(System.Int32)">
  8410. <param name="i">The zero-based column ordinal.</param><summary>Gets the value of the specified column as an XML value.</summary><returns>A <see cref="T:System.Data.SqlTypes.SqlXml" /> value that contains the XML stored within the corresponding field.</returns><remarks>
  8411. <format type="text/markdown"><![CDATA[
  8412. ## Remarks
  8413. No conversions are performed; therefore, the data retrieved must already be an XML value.
  8414. Call <xref:Microsoft.Data.SqlClient.SqlDataReader.IsDBNull%2A> to check for null values before calling this method.
  8415. ]]></format>
  8416. </remarks><exception cref="T:System.ArgumentOutOfRangeException">The index passed was outside the range of 0 to <see cref="P:System.Data.DataTableReader.FieldCount" /> - 1</exception><exception cref="T:System.InvalidOperationException">An attempt was made to read or access columns in a closed <see cref="T:Microsoft.Data.SqlClient.SqlDataReader" />.</exception><exception cref="T:System.InvalidCastException">The retrieved data is not compatible with the <see cref="T:System.Data.SqlTypes.SqlXml" /> type.</exception>
  8417. </member>
  8418. <member name="M:Microsoft.Data.SqlClient.SqlDataReader.GetSqlValue(System.Int32)">
  8419. <param name="i">The zero-based column ordinal.</param><summary>Returns the data value in the specified column as a SQL Server type.</summary><returns>The value of the column expressed as a <see cref="T:System.Data.SqlDbType" />.</returns><remarks>
  8420. <format type="text/markdown"><![CDATA[
  8421. ## Remarks
  8422. <xref:Microsoft.Data.SqlClient.SqlDataReader.GetSqlValue%2A> returns data using the native SQL Server types. To retrieve data using the .NET Framework types, see <xref:Microsoft.Data.SqlClient.SqlDataReader.GetValue%2A>.
  8423. ]]></format>
  8424. </remarks>
  8425. </member>
  8426. <member name="M:Microsoft.Data.SqlClient.SqlDataReader.GetSqlValues(System.Object[])">
  8427. <param name="values">An array of <see cref="T:System.Object" /> into which to copy the values. The column values are expressed as SQL Server types.</param><summary>Fills an array of <see cref="T:System.Object" /> that contains the values for all the columns in the record, expressed as SQL Server types.</summary><returns>An integer indicating the number of columns copied.</returns><remarks>
  8428. <format type="text/markdown"><![CDATA[
  8429. ## Remarks
  8430. Returns the values for all the columns in the record in a single call, using the SQL type system instead of the CLR type system. The length of the <xref:System.Object> array does not need to match the number of columns in the record. You can pass an <xref:System.Object> array that contains fewer than the number of columns contained in the record. Only the amount of data the <xref:System.Object> array holds is copied to the array, starting at the column with ordinal 0. You can also pass an <xref:System.Object> array whose length is more than the number of columns contained in the resulting row. Any remaining columns are untouched.
  8431. ]]></format>
  8432. </remarks><exception cref="T:System.ArgumentNullException">
  8433. <paramref name="values" /> is null.</exception>
  8434. </member>
  8435. <member name="M:Microsoft.Data.SqlClient.SqlDataReader.GetString(System.Int32)">
  8436. <param name="i">The zero-based column ordinal.</param><summary>Gets the value of the specified column as a string.</summary><returns>The value of the specified column.</returns><remarks>
  8437. <format type="text/markdown"><![CDATA[
  8438. ## Remarks
  8439. No conversions are performed; therefore, the data retrieved must already be a string.
  8440. Call <xref:Microsoft.Data.SqlClient.SqlDataReader.IsDBNull%2A> to check for null values before calling this method.
  8441. ]]></format>
  8442. </remarks><exception cref="T:System.InvalidCastException">The specified cast is not valid.</exception>
  8443. </member>
  8444. <member name="M:Microsoft.Data.SqlClient.SqlDataReader.GetFieldValue``1(System.Int32)">
  8445. <typeparam name="T">The type of the value to be returned.</typeparam><param name="i">The column to be retrieved.</param><summary>Synchronously gets the value of the specified column as a type. <see cref="M:Microsoft.Data.SqlClient.SqlDataReader.GetFieldValueAsync``1(System.Int32,System.Threading.CancellationToken)" /> is the asynchronous version of this method.</summary><returns>The returned type object.</returns><remarks>
  8446. <format type="text/markdown"><![CDATA[
  8447. ## Remarks
  8448. `T` can be one of the following types:
  8449. |||||
  8450. |-|-|-|-|
  8451. |Boolean|Byte|Char|DateTime|
  8452. |DateTimeOffset|Decimal|Double|Float|
  8453. |Guid|Int16|Int32|Int64|
  8454. |SqlBoolean|SqlByte|SqlDateTime|SqlDecimal|
  8455. |SqlDouble|SqlGuid|SqlInt16|SqlInt32|
  8456. |SqlInt64|SqlMoney|SqlSingle|SqlString|
  8457. |String|UDT, which can be any CLR type marked with <xref:Microsoft.Data.SqlClient.Server.SqlUserDefinedTypeAttribute>.|||
  8458. For more information, see [SqlClient Streaming Support](~/docs/framework/data/adonet/sqlclient-streaming-support.md).
  8459. ]]></format>
  8460. </remarks><exception cref="T:System.InvalidOperationException">The connection drops or is closed during the data retrieval.
  8461. The <see cref="T:Microsoft.Data.SqlClient.SqlDataReader" /> is closed during the data retrieval.
  8462. There is no data ready to be read (for example, the first <see cref="M:Microsoft.Data.SqlClient.SqlDataReader.Read" /> hasn't been called, or returned false).
  8463. Tried to read a previously-read column in sequential mode.
  8464. There was an asynchronous operation in progress. This applies to all Get* methods when running in sequential mode, as they could be called while reading a stream.</exception><exception cref="T:System.IndexOutOfRangeException">Trying to read a column that does not exist.</exception><exception cref="T:System.Data.SqlTypes.SqlNullValueException">The value of the column was null (<see cref="M:Microsoft.Data.SqlClient.SqlDataReader.IsDBNull(System.Int32)" /> == <see langword="true" />), retrieving a non-SQL type.</exception><exception cref="T:System.InvalidCastException">
  8465. <typeparamref name="T" /> doesn't match the type returned by SQL Server or cannot be cast.</exception>
  8466. </member>
  8467. <member name="M:Microsoft.Data.SqlClient.SqlDataReader.GetValue(System.Int32)">
  8468. <param name="i">The zero-based column ordinal.</param><summary>Gets the value of the specified column in its native format.</summary><returns>This method returns <see cref="T:System.DBNull" /> for null database columns.</returns><remarks>
  8469. <format type="text/markdown"><![CDATA[
  8470. ## Remarks
  8471. <xref:Microsoft.Data.SqlClient.SqlDataReader.GetValue%2A> returns data using the .NET Framework types.
  8472. ]]></format>
  8473. </remarks>
  8474. </member>
  8475. <member name="M:Microsoft.Data.SqlClient.SqlDataReader.GetTimeSpan(System.Int32)">
  8476. <param name="i">The zero-based column ordinal.</param><summary>Retrieves the value of the specified column as a <see cref="T:System.TimeSpan" /> object.</summary><returns>The value of the specified column.</returns><remarks>
  8477. <format type="text/markdown"><![CDATA[
  8478. ## Remarks
  8479. No conversions are performed; therefore, the data retrieved must already be a <xref:System.TimeSpan> object.
  8480. Call <xref:Microsoft.Data.SqlClient.SqlDataReader.IsDBNull%2A> to check for null values before calling this method.
  8481. ]]></format>
  8482. </remarks><exception cref="T:System.InvalidCastException">The specified cast is not valid.</exception>
  8483. </member>
  8484. <member name="M:Microsoft.Data.SqlClient.SqlDataReader.GetDateTimeOffset(System.Int32)">
  8485. <param name="i">The zero-based column ordinal.</param><summary>Retrieves the value of the specified column as a <see cref="T:System.DateTimeOffset" /> object.</summary><returns>The value of the specified column.</returns><remarks>
  8486. <format type="text/markdown"><![CDATA[
  8487. ## Remarks
  8488. No conversions are performed; therefore, the data retrieved must already be a <xref:System.DateTimeOffset> object.
  8489. Call <xref:Microsoft.Data.SqlClient.SqlDataReader.IsDBNull%2A> to check for null values before calling this method.
  8490. ]]></format>
  8491. </remarks><exception cref="T:System.InvalidCastException">The specified cast is not valid.</exception>
  8492. </member>
  8493. <member name="M:Microsoft.Data.SqlClient.SqlDataReader.GetValues(System.Object[])">
  8494. <param name="values">An array of <see cref="T:System.Object" /> into which to copy the attribute columns.</param><summary>Populates an array of objects with the column values of the current row.</summary><returns>The number of instances of <see cref="T:System.Object" /> in the array.</returns><remarks>
  8495. <format type="text/markdown"><![CDATA[
  8496. ## Remarks
  8497. For most applications, this method provides an efficient means for retrieving all columns, instead of retrieving each column individually.
  8498. You can pass an <xref:System.Object> array that contains fewer than the number of columns contained in the resulting row. Only the amount of data the <xref:System.Object> array holds is copied to the array. You can also pass an <xref:System.Object> array whose length is more than the number of columns contained in the resulting row.
  8499. This method returns <xref:System.DBNull> for null database columns.
  8500. ## Examples
  8501. The following example demonstrates using a correctly sized array to read all values from the current row in the supplied <xref:Microsoft.Data.SqlClient.SqlDataReader>. In addition, the sample demonstrates using a fixed-sized array that could be either smaller or larger than the number of available columns.
  8502. [!code-csharp[DataTableReader_GetValues#2](~/../sqlclient/doc/samples/DataTableReader_GetValues.cs#2)]
  8503. ]]></format>
  8504. </remarks>
  8505. </member>
  8506. <member name="M:Microsoft.Data.SqlClient.SqlDataReader.IsDBNull(System.Int32)">
  8507. <param name="i">The zero-based column ordinal.</param><summary>Gets a value that indicates whether the column contains non-existent or missing values.</summary><returns>
  8508. <see langword="true" /> if the specified column value is equivalent to <see cref="T:System.DBNull" />; otherwise <see langword="false" />.</returns><remarks>
  8509. <format type="text/markdown"><![CDATA[
  8510. ## Remarks
  8511. Call this method to check for null column values before calling the typed get methods (for example, <xref:Microsoft.Data.SqlClient.SqlDataReader.GetByte%2A>, <xref:Microsoft.Data.SqlClient.SqlDataReader.GetChar%2A>, and so on) to avoid raising an error.
  8512. [!code-csharp[SqlDataReader_IsDBNull#1](~/../sqlclient/doc/samples/SqlDataReader_IsDBNull.cs#1)]
  8513. ]]></format>
  8514. </remarks>
  8515. </member>
  8516. <member name="M:Microsoft.Data.SqlClient.SqlDataReader.IsCommandBehavior(System.Data.CommandBehavior)">
  8517. <param name="condition">A <see cref="T:System.Data.CommandBehavior" /> enumeration.</param><summary>Determines whether the specified <see cref="T:System.Data.CommandBehavior" /> matches that of the <see cref="T:Microsoft.Data.SqlClient.SqlDataReader" /> .</summary><returns>
  8518. <see langword="true" /> if the specified <see cref="T:System.Data.CommandBehavior" /> is true, <see langword="false" /> otherwise.</returns><remarks>
  8519. <format type="text/markdown"><![CDATA[
  8520. ## Remarks
  8521. This member supports the .NET Framework infrastructure and is not intended to be used directly from your code.
  8522. ]]></format>
  8523. </remarks>
  8524. </member>
  8525. <member name="M:Microsoft.Data.SqlClient.SqlDataReader.NextResult">
  8526. <summary>Advances the data reader to the next result, when reading the results of batch Transact-SQL statements.</summary><returns>
  8527. <see langword="true" /> if there are more result sets; otherwise <see langword="false" />.</returns><remarks>
  8528. <format type="text/markdown"><![CDATA[
  8529. ## Remarks
  8530. Used to process multiple results, which can be generated by executing batch Transact-SQL statements.
  8531. By default, the data reader is positioned on the first result.
  8532. ]]></format>
  8533. </remarks>
  8534. </member>
  8535. <member name="M:Microsoft.Data.SqlClient.SqlDataReader.Read">
  8536. <summary>Advances the <see cref="T:Microsoft.Data.SqlClient.SqlDataReader" /> to the next record.</summary><returns>
  8537. <see langword="true" /> if there are more rows; otherwise <see langword="false" />.</returns><remarks>
  8538. <format type="text/markdown"><![CDATA[
  8539. ## Remarks
  8540. The default position of the <xref:Microsoft.Data.SqlClient.SqlDataReader> is before the first record. Therefore, you must call <xref:Microsoft.Data.SqlClient.SqlDataReader.Read%2A> to begin accessing any data.
  8541. Only one `SqlDataReader` per associated <xref:Microsoft.Data.SqlClient.SqlConnection> may be open at a time, and any attempt to open another will fail until the first one is closed. Similarly, while the `SqlDataReader` is being used, the associated `SqlConnection` is busy serving it until you call <xref:Microsoft.Data.SqlClient.SqlDataReader.Close%2A>.
  8542. ## Examples
  8543. The following example creates a <xref:Microsoft.Data.SqlClient.SqlConnection>, a <xref:Microsoft.Data.SqlClient.SqlCommand>, and a <xref:Microsoft.Data.SqlClient.SqlDataReader>. The example reads through the data, writing it out to the console window. The code then closes the <xref:Microsoft.Data.SqlClient.SqlDataReader>. The <xref:Microsoft.Data.SqlClient.SqlConnection> is closed automatically at the end of the `using` code block.
  8544. [!code-csharp[SqlDataReader_Read Example#1](~/../sqlclient/doc/samples/SqlDataReader_Read.cs#1)]
  8545. ]]></format>
  8546. </remarks><exception cref="T:Microsoft.Data.SqlClient.SqlException">SQL Server returned an error while executing the command text.</exception>
  8547. </member>
  8548. <member name="M:Microsoft.Data.SqlClient.SqlDataReader.NextResultAsync(System.Threading.CancellationToken)">
  8549. <param name="cancellationToken">The cancellation instruction.</param><summary>An asynchronous version of <see cref="M:Microsoft.Data.SqlClient.SqlDataReader.NextResult" />, which advances the data reader to the next result, when reading the results of batch Transact-SQL statements.
  8550. The cancellation token can be used to request that the operation be abandoned before the command timeout elapses. Exceptions will be reported via the returned Task object.</summary><returns>A task representing the asynchronous operation.</returns><remarks>
  8551. <format type="text/markdown"><![CDATA[
  8552. ## Remarks
  8553. For more information about asynchronous programming in the .NET Framework Data Provider for SQL Server, see [Asynchronous Programming](~/docs/framework/data/adonet/asynchronous-programming.md).
  8554. ]]></format>
  8555. </remarks><exception cref="T:System.InvalidOperationException">Calling <see cref="M:Microsoft.Data.SqlClient.SqlDataReader.NextResultAsync(System.Threading.CancellationToken)" /> more than once for the same instance before task completion.
  8556. <see langword="Context Connection=true" /> is specified in the connection string.</exception><exception cref="T:Microsoft.Data.SqlClient.SqlException">SQL Server returned an error while executing the command text.</exception>
  8557. </member>
  8558. <member name="M:Microsoft.Data.SqlClient.SqlDataReader.ReadAsync(System.Threading.CancellationToken)">
  8559. <param name="cancellationToken">The cancellation instruction.</param><summary>An asynchronous version of <see cref="M:Microsoft.Data.SqlClient.SqlDataReader.Read" />, which advances the <see cref="T:Microsoft.Data.SqlClient.SqlDataReader" /> to the next record.
  8560. The cancellation token can be used to request that the operation be abandoned before the command timeout elapses. Exceptions will be reported via the returned Task object.</summary><returns>A task representing the asynchronous operation.</returns><remarks>
  8561. <format type="text/markdown"><![CDATA[
  8562. ## Remarks
  8563. If the `behavior` parameter of <xref:Microsoft.Data.SqlClient.SqlCommand.ExecuteReaderAsync%2A> is set to `Default`, <xref:Microsoft.Data.SqlClient.SqlDataReader.ReadAsync%2A> reads the entire row before returning the Task.
  8564. For more information, including code samples, about asynchronous programming in the .NET Framework Data Provider for SQL Server, see [Asynchronous Programming](~/docs/framework/data/adonet/asynchronous-programming.md).
  8565. ]]></format>
  8566. </remarks><exception cref="T:System.InvalidOperationException">Calling <see cref="M:Microsoft.Data.SqlClient.SqlDataReader.ReadAsync(System.Threading.CancellationToken)" /> more than once for the same instance before task completion.
  8567. <see langword="Context Connection=true" /> is specified in the connection string.</exception><exception cref="T:Microsoft.Data.SqlClient.SqlException">SQL Server returned an error while executing the command text.</exception>
  8568. </member>
  8569. <member name="M:Microsoft.Data.SqlClient.SqlDataReader.IsDBNullAsync(System.Int32,System.Threading.CancellationToken)">
  8570. <param name="i">The zero-based column to be retrieved.</param><param name="cancellationToken">The cancellation instruction, which propagates a notification that operations should be canceled. This does not guarantee the cancellation. A setting of <see langword="CancellationToken.None" /> makes this method equivalent to <see cref="M:Microsoft.Data.SqlClient.SqlDataReader.IsDBNull(System.Int32)" />. The returned task must be marked as cancelled.</param><summary>An asynchronous version of <see cref="M:Microsoft.Data.SqlClient.SqlDataReader.IsDBNull(System.Int32)" />, which gets a value that indicates whether the column contains non-existent or missing values.
  8571. The cancellation token can be used to request that the operation be abandoned before the command timeout elapses. Exceptions will be reported via the returned Task object.</summary><returns>
  8572. <see langword="true" /> if the specified column value is equivalent to <see langword="DBNull" /> otherwise <see langword="false" />.</returns><remarks>
  8573. <format type="text/markdown"><![CDATA[
  8574. ## Remarks
  8575. For more information, see [SqlClient Streaming Support](~/docs/framework/data/adonet/sqlclient-streaming-support.md).
  8576. ]]></format>
  8577. </remarks><exception cref="T:System.InvalidOperationException">The connection drops or is closed during the data retrieval.
  8578. The <see cref="T:Microsoft.Data.SqlClient.SqlDataReader" /> is closed during the data retrieval.
  8579. There is no data ready to be read (for example, the first <see cref="M:Microsoft.Data.SqlClient.SqlDataReader.Read" /> hasn't been called, or returned false).
  8580. Trying to read a previously read column in sequential mode.
  8581. There was an asynchronous operation in progress. This applies to all Get* methods when running in sequential mode, as they could be called while reading a stream.
  8582. <see langword="Context Connection=true" /> is specified in the connection string.</exception><exception cref="T:System.IndexOutOfRangeException">Trying to read a column that does not exist.</exception>
  8583. </member>
  8584. <member name="M:Microsoft.Data.SqlClient.SqlDataReader.GetFieldValueAsync``1(System.Int32,System.Threading.CancellationToken)">
  8585. <typeparam name="T">The type of the value to be returned.</typeparam><param name="i">The column to be retrieved.</param><param name="cancellationToken">The cancellation instruction, which propagates a notification that operations should be canceled. This does not guarantee the cancellation. A setting of <see langword="CancellationToken.None" /> makes this method equivalent to <see cref="M:Microsoft.Data.SqlClient.SqlDataReader.IsDBNull(System.Int32)" />. The returned task must be marked as cancelled.</param><summary>Asynchronously gets the value of the specified column as a type. <see cref="M:Microsoft.Data.SqlClient.SqlDataReader.GetFieldValue``1(System.Int32)" /> is the synchronous version of this method.</summary><returns>The returned type object.</returns><remarks>
  8586. <format type="text/markdown"><![CDATA[
  8587. ## Remarks
  8588. `T` can be one of the following types:
  8589. |||||
  8590. |-|-|-|-|
  8591. |Boolean|Byte|Char|DateTime|
  8592. |DateTimeOffset|Decimal|Double|Float|
  8593. |Guid|Int16|Int32|Int64|
  8594. |SqlBoolean|SqlByte|SqlDateTime|SqlDecimal|
  8595. |SqlDouble|SqlGuid|SqlInt16|SqlInt32|
  8596. |SqlInt64|SqlMoney|SqlSingle|SqlString|
  8597. |String|UDT, which can be any CLR type marked with <xref:Microsoft.Data.SqlClient.Server.SqlUserDefinedTypeAttribute>.|||
  8598. For more information, see [SqlClient Streaming Support](~/docs/framework/data/adonet/sqlclient-streaming-support.md).
  8599. ]]></format>
  8600. </remarks><exception cref="T:System.InvalidOperationException">The connection drops or is closed during the data retrieval.
  8601. The <see cref="T:Microsoft.Data.SqlClient.SqlDataReader" /> is closed during the data retrieval.
  8602. There is no data ready to be read (for example, the first <see cref="M:Microsoft.Data.SqlClient.SqlDataReader.Read" /> hasn't been called, or returned false).
  8603. Tried to read a previously-read column in sequential mode.
  8604. There was an asynchronous operation in progress. This applies to all Get* methods when running in sequential mode, as they could be called while reading a stream.
  8605. <see langword="Context Connection=true" /> is specified in the connection string.</exception><exception cref="T:System.IndexOutOfRangeException">Trying to read a column that does not exist.</exception><exception cref="T:System.Data.SqlTypes.SqlNullValueException">The value of the column was null (<see cref="M:Microsoft.Data.SqlClient.SqlDataReader.IsDBNull(System.Int32)" /> == <see langword="true" />), retrieving a non-SQL type.</exception><exception cref="T:System.InvalidCastException">
  8606. <typeparamref name="T" /> doesn't match the type returned by SQL Server or cannot be cast.</exception>
  8607. </member>
  8608. <member name="M:Microsoft.Data.SqlClient.SqlDataReader.GetColumnSchema">
  8609. <summary>Gets the read-only column schema collection.</summary><returns>The read-only column schema collection).</returns><remarks>
  8610. <format type="text/markdown"><![CDATA[
  8611. ## Remarks
  8612. This method is an implementation of <xref:System.Data.Common.IDbColumnSchemaGenerator.GetColumnSchema?displayProperty=nameWithType> method, which enables the use of the <xref:System.Data.Common.IDbColumnSchemaGenerator> interface to populate the <xref:System.Data.Common.DbColumn> schema metadata without using a <xref:System.Data.DataTable>.
  8613. ]]>
  8614. </format>
  8615. </remarks>
  8616. </member>
  8617. <member name="T:Microsoft.Data.SqlClient.SqlDependency">
  8618. <summary>The <see cref="T:Microsoft.Data.SqlClient.SqlDependency" /> object represents a query notification dependency between an application and an instance of SQL Server. An application can create a <see cref="T:Microsoft.Data.SqlClient.SqlDependency" /> object and register to receive notifications via the <see cref="T:Microsoft.Data.SqlClient.OnChangeEventHandler" /> event handler.</summary><remarks>
  8619. <format type="text/markdown"><![CDATA[
  8620. ## Remarks
  8621. <xref:Microsoft.Data.SqlClient.SqlDependency> is ideal for caching scenarios, where your ASP.NET application or middle-tier service needs to keep certain information cached in memory. <xref:Microsoft.Data.SqlClient.SqlDependency> allows you to receive notifications when the original data in the database changes so that the cache can be refreshed.
  8622. To set up a dependency, you need to associate a <xref:Microsoft.Data.SqlClient.SqlDependency> object to one or more <xref:Microsoft.Data.SqlClient.SqlCommand> objects. To receive notifications, you need to subscribe to the <xref:Microsoft.Data.SqlClient.SqlDependency.OnChange> event. For more information about the requirements for creating queries for notifications, see [Working with Query Notifications](/sql/relational-databases/native-client/features/working-with-query-notifications).
  8623. > [!NOTE]
  8624. > <xref:Microsoft.Data.SqlClient.SqlDependency> was designed to be used in ASP.NET or middle-tier services where there is a relatively small number of servers having dependencies active against the database. It was not designed for use in client applications, where hundreds or thousands of client computers would have <xref:Microsoft.Data.SqlClient.SqlDependency> objects set up for a single database server. If you are developing an application where you need reliable sub-second notifications when data changes, review the sections [Planning an Efficient Query Notifications Strategy](https://docs.microsoft.com/previous-versions/sql/sql-server-2008-r2/ms187528(v=sql.105)#planning-an-efficient-query-notifications-strategy) and [Alternatives to Query Notifications](https://docs.microsoft.com/previous-versions/sql/sql-server-2008-r2/ms187528(v=sql.105)#alternatives-to-query-notifications) in the [Planning for Notifications](https://docs.microsoft.com/previous-versions/sql/sql-server-2008-r2/ms187528(v%3dsql.105)) article.
  8625. For more information, see [Query Notifications in SQL Server](~/docs/framework/data/adonet/sql/query-notifications-in-sql-server.md) and [Building Notification Solutions](https://docs.microsoft.com/previous-versions/sql/sql-server-2005/ms171065(v%3dsql.90)).
  8626. > [!NOTE]
  8627. > The <xref:Microsoft.Data.SqlClient.SqlDependency.OnChange> event may be generated on a different thread from the thread that initiated command execution.
  8628. Query notifications are supported only for SELECT statements that meet a list of specific requirements.
  8629. ]]></format>
  8630. </remarks>
  8631. </member>
  8632. <member name="M:Microsoft.Data.SqlClient.SqlDependency.#ctor">
  8633. <summary>Creates a new instance of the <see cref="T:Microsoft.Data.SqlClient.SqlDependency" /> class with the default settings.</summary><remarks>
  8634. <format type="text/markdown"><![CDATA[
  8635. ## Remarks
  8636. The constructor initializes the <xref:Microsoft.Data.SqlClient.SqlDependency> object using the default Service Broker service name and time-out. At some point after construction, you must use the <xref:Microsoft.Data.SqlClient.SqlDependency.AddCommandDependency%2A> method to associate one or more commands to this <xref:Microsoft.Data.SqlClient.SqlDependency> object.
  8637. Query notifications are supported only for SELECT statements that meet a list of specific requirements. For more information, see [SQL Server Service Broker](/sql/database-engine/configure-windows/sql-server-service-broker) and [Working with Query Notifications](/sql/connect/oledb/features/working-with-query-notifications).
  8638. ]]></format>
  8639. </remarks>
  8640. </member>
  8641. <member name="M:Microsoft.Data.SqlClient.SqlDependency.#ctor(Microsoft.Data.SqlClient.SqlCommand)">
  8642. <param name="command">The <see cref="T:Microsoft.Data.SqlClient.SqlCommand" /> object to associate with this <see cref="T:Microsoft.Data.SqlClient.SqlDependency" /> object. The constructor will set up a <see cref="T:Microsoft.Data.Sql.SqlNotificationRequest" /> object and bind it to the command.</param><summary>Creates a new instance of the <see cref="T:Microsoft.Data.SqlClient.SqlDependency" /> class and associates it with the <see cref="T:Microsoft.Data.SqlClient.SqlCommand" /> parameter.</summary><remarks>
  8643. <format type="text/markdown"><![CDATA[
  8644. ## Remarks
  8645. Internally, this constructor creates an instance of the <xref:Microsoft.Data.Sql.SqlNotificationRequest> class, and binds it to a <xref:Microsoft.Data.SqlClient.SqlCommand> object.
  8646. Query notifications are supported only for SELECT statements that meet a list of specific requirements. For more information, see [SQL Server Service Broker](/sql/database-engine/configure-windows/sql-server-service-broker) and [Working with Query Notifications](/sql/connect/oledb/features/working-with-query-notifications).
  8647. ]]></format>
  8648. </remarks><exception cref="T:System.ArgumentNullException">The <paramref name="command" /> parameter is NULL.</exception><exception cref="T:System.InvalidOperationException">The <see cref="T:Microsoft.Data.SqlClient.SqlCommand" /> object already has a <see cref="T:Microsoft.Data.Sql.SqlNotificationRequest" /> object assigned to its <see cref="P:Microsoft.Data.SqlClient.SqlCommand.Notification" /> property, and that <see cref="T:Microsoft.Data.Sql.SqlNotificationRequest" /> is not associated with this dependency.</exception>
  8649. </member>
  8650. <member name="M:Microsoft.Data.SqlClient.SqlDependency.#ctor(Microsoft.Data.SqlClient.SqlCommand,System.String,System.Int32)">
  8651. <param name="command">The <see cref="T:Microsoft.Data.SqlClient.SqlCommand" /> object to associate with this <see cref="T:Microsoft.Data.SqlClient.SqlDependency" /> object. The constructor sets up a <see cref="T:Microsoft.Data.Sql.SqlNotificationRequest" /> object and bind it to the command.</param><param name="options">The notification request options to be used by this dependency. <see langword="null" /> to use the default service.</param><param name="timeout">The time-out for this notification in seconds. The default is 0, indicating that the server's time-out should be used.</param><summary>Creates a new instance of the <see cref="T:Microsoft.Data.SqlClient.SqlDependency" /> class, associates it with the <see cref="T:Microsoft.Data.SqlClient.SqlCommand" /> parameter, and specifies notification options and a time-out value.</summary><remarks>
  8652. <format type="text/markdown"><![CDATA[
  8653. ## Remarks
  8654. Query notifications are supported only for SELECT statements that meet a list of specific requirements. For more information, see [SQL Server Service Broker](/sql/database-engine/configure-windows/sql-server-service-broker) and [Working with Query Notifications](/sql/connect/oledb/features/working-with-query-notifications).
  8655. ]]></format>
  8656. </remarks><exception cref="T:System.ArgumentNullException">The <paramref name="command" /> parameter is NULL.</exception><exception cref="T:System.ArgumentOutOfRangeException">The time-out value is less than zero.</exception><exception cref="T:System.InvalidOperationException">The <see cref="T:Microsoft.Data.SqlClient.SqlCommand" /> object already has a <see cref="T:Microsoft.Data.Sql.SqlNotificationRequest" /> object assigned to its <see cref="P:Microsoft.Data.SqlClient.SqlCommand.Notification" /> property and that <see cref="T:Microsoft.Data.Sql.SqlNotificationRequest" /> is not associated with this dependency.
  8657. An attempt was made to create a **SqlDependency** instance from within SQLCLR.</exception>
  8658. </member>
  8659. <member name="P:Microsoft.Data.SqlClient.SqlDependency.HasChanges">
  8660. <summary>Gets a value that indicates whether one of the result sets associated with the dependency has changed.</summary><value>A Boolean value indicating whether one of the result sets has changed.</value><remarks>
  8661. <format type="text/markdown"><![CDATA[
  8662. ## Remarks
  8663. If you are not using the <xref:Microsoft.Data.SqlClient.SqlDependency.OnChange> event, you can check the <xref:Microsoft.Data.SqlClient.SqlDependency.HasChanges%2A> property to determine if the query results have changed.
  8664. The <xref:Microsoft.Data.SqlClient.SqlDependency.HasChanges%2A> property does not necessarily imply a change in the data. Other circumstances, such as time-out expired and failure to set the notification request, also generate a change event.
  8665. ]]></format>
  8666. </remarks>
  8667. </member>
  8668. <member name="P:Microsoft.Data.SqlClient.SqlDependency.Id">
  8669. <summary>Gets a value that uniquely identifies this instance of the <see cref="T:Microsoft.Data.SqlClient.SqlDependency" /> class.</summary><value>A string representation of a GUID that is generated for each instance of the <see cref="T:Microsoft.Data.SqlClient.SqlDependency" /> class.</value><remarks>
  8670. <format type="text/markdown"><![CDATA[
  8671. ## Remarks
  8672. The <xref:Microsoft.Data.SqlClient.SqlDependency.Id%2A> property is used to uniquely identify a given <xref:Microsoft.Data.SqlClient.SqlDependency> instance.
  8673. ]]></format>
  8674. </remarks>
  8675. </member>
  8676. <member name="E:Microsoft.Data.SqlClient.SqlDependency.OnChange">
  8677. <summary>Occurs when a notification is received for any of the commands associated with this <see cref="T:Microsoft.Data.SqlClient.SqlDependency" /> object.</summary><remarks>
  8678. <format type="text/markdown"><![CDATA[
  8679. ## Remarks
  8680. <xref:Microsoft.Data.SqlClient.SqlDependency.OnChange> occurs when the results for the associated command change. If you are not using <xref:Microsoft.Data.SqlClient.SqlDependency.OnChange>, you can check the <xref:Microsoft.Data.SqlClient.SqlDependency.HasChanges%2A> property to determine whether the query results have changed.
  8681. The <xref:Microsoft.Data.SqlClient.SqlDependency.OnChange> event does not necessarily imply a change in the data. Other circumstances, such as time-out expired and failure to set the notification request, also generate <xref:Microsoft.Data.SqlClient.SqlDependency.OnChange>.
  8682. ]]></format>
  8683. </remarks>
  8684. </member>
  8685. <member name="M:Microsoft.Data.SqlClient.SqlDependency.AddCommandDependency(Microsoft.Data.SqlClient.SqlCommand)">
  8686. <param name="command">A <see cref="T:Microsoft.Data.SqlClient.SqlCommand" /> object containing a statement that is valid for notifications.</param><summary>Associates a <see cref="T:Microsoft.Data.SqlClient.SqlCommand" /> object with this <see cref="T:Microsoft.Data.SqlClient.SqlDependency" /> instance.</summary><remarks>
  8687. <format type="text/markdown"><![CDATA[
  8688. ## Remarks
  8689. Query notifications are supported only for SELECT statements that meet a list of specific requirements. For more information, see [SQL Server Service Broker](/sql/database-engine/configure-windows/sql-server-service-broker) and [Working with Query Notifications](/sql/connect/oledb/features/working-with-query-notifications).
  8690. ]]></format>
  8691. </remarks><exception cref="T:System.ArgumentNullException">The <paramref name="command" /> parameter is null.</exception><exception cref="T:System.InvalidOperationException">The <see cref="T:Microsoft.Data.SqlClient.SqlCommand" /> object already has a <see cref="T:Microsoft.Data.Sql.SqlNotificationRequest" /> object assigned to its <see cref="P:Microsoft.Data.SqlClient.SqlCommand.Notification" /> property, and that <see cref="T:Microsoft.Data.Sql.SqlNotificationRequest" /> is not associated with this dependency.</exception>
  8692. </member>
  8693. <member name="M:Microsoft.Data.SqlClient.SqlDependency.Start(System.String)">
  8694. <param name="connectionString">The connection string for the instance of SQL Server from which to obtain change notifications.</param><summary>Starts the listener for receiving dependency change notifications from the instance of SQL Server specified by the connection string.</summary><returns>
  8695. <see langword="true" /> if the listener initialized successfully; <see langword="false" /> if a compatible listener already exists.</returns><remarks>
  8696. <format type="text/markdown"><![CDATA[
  8697. ## Remarks
  8698. This method starts the listener for the <xref:System.AppDomain> for receiving dependency notifications from the instance of SQL Server specified by the `connectionString` parameter. This method may be called more than once with different connection strings for multiple servers.
  8699. For additional remarks, see <xref:Microsoft.Data.SqlClient.SqlDependency.Start%2A>.
  8700. ]]></format>
  8701. </remarks><exception cref="T:System.ArgumentNullException">The <paramref name="connectionString" /> parameter is NULL.</exception><exception cref="T:System.InvalidOperationException">The <paramref name="connectionString" /> parameter is the same as a previous call to this method, but the parameters are different.
  8702. The method was called from within the CLR.</exception><exception cref="T:System.Security.SecurityException">The caller does not have the required <see cref="T:Microsoft.Data.SqlClient.SqlClientPermission" /> code access security (CAS) permission.</exception><exception cref="T:Microsoft.Data.SqlClient.SqlException">A subsequent call to the method has been made with an equivalent <paramref name="connectionString" /> parameter with a different user, or a user that does not default to the same schema.
  8703. Also, any underlying **SqlClient** exceptions.</exception><altmember cref="P:Microsoft.Data.SqlClient.SqlConnection.ConnectionString" />
  8704. </member>
  8705. <member name="M:Microsoft.Data.SqlClient.SqlDependency.Start(System.String,System.String)">
  8706. <param name="connectionString">The connection string for the instance of SQL Server from which to obtain change notifications.</param><param name="queue">An existing SQL Server Service Broker queue to be used. If <see langword="null" />, the default queue is used.</param><summary>Starts the listener for receiving dependency change notifications from the instance of SQL Server specified by the connection string using the specified SQL Server Service Broker queue.</summary><returns>
  8707. <see langword="true" /> if the listener initialized successfully; <see langword="false" /> if a compatible listener already exists.</returns><remarks>
  8708. <format type="text/markdown"><![CDATA[
  8709. ## Remarks
  8710. This method starts the listener for the <xref:System.AppDomain> for receiving dependency notifications from the instance of SQL Server specified by the `connectionString` parameter. This method may be called more than once with different connection strings for multiple servers.
  8711. If no queue name is specified, <xref:Microsoft.Data.SqlClient.SqlDependency> creates a temporary queue and service in the server that is used for the entire process, even if the process involves more than one <xref:System.AppDomain>. The queue and service are automatically removed upon application shutdown.
  8712. For additional remarks, see <xref:Microsoft.Data.SqlClient.SqlDependency.Start%2A>.
  8713. ]]></format>
  8714. </remarks><exception cref="T:System.ArgumentNullException">The <paramref name="connectionString" /> parameter is NULL.</exception><exception cref="T:System.InvalidOperationException">The <paramref name="connectionString" /> parameter is the same as a previous call to this method, but the parameters are different.
  8715. The method was called from within the CLR.</exception><exception cref="T:System.Security.SecurityException">The caller does not have the required <see cref="T:Microsoft.Data.SqlClient.SqlClientPermission" /> code access security (CAS) permission.</exception><exception cref="T:Microsoft.Data.SqlClient.SqlException">A subsequent call to the method has been made with an equivalent <paramref name="connectionString" /> parameter but a different user, or a user that does not default to the same schema.
  8716. Also, any underlying **SqlClient** exceptions.</exception><altmember cref="P:Microsoft.Data.SqlClient.SqlConnection.ConnectionString" />
  8717. </member>
  8718. <member name="M:Microsoft.Data.SqlClient.SqlDependency.Stop(System.String)">
  8719. <param name="connectionString">Connection string for the instance of SQL Server that was used in a previous <see cref="M:Microsoft.Data.SqlClient.SqlDependency.Start(System.String)" /> call.</param><summary>Stops a listener for a connection specified in a previous <see cref="o:Microsoft.Data.SqlClient.SqlDependency.Start" /> call.</summary><returns>
  8720. <see langword="true" /> if the listener was completely stopped; <see langword="false" /> if the <see cref="T:System.AppDomain" /> was unbound from the listener, but there are is at least one other <see cref="T:System.AppDomain" /> using the same listener.</returns><remarks>
  8721. <format type="text/markdown"><![CDATA[
  8722. ## Remarks
  8723. The <xref:Microsoft.Data.SqlClient.SqlDependency.Stop%2A> method must be called for each <xref:Microsoft.Data.SqlClient.SqlDependency.Start%2A> call. A given listener only shuts down fully when it receives the same number of <xref:Microsoft.Data.SqlClient.SqlDependency.Stop%2A> requests as <xref:Microsoft.Data.SqlClient.SqlDependency.Start%2A> requests.
  8724. ]]></format>
  8725. </remarks><exception cref="T:System.ArgumentNullException">The <paramref name="connectionString" /> parameter is NULL.</exception><exception cref="T:System.InvalidOperationException">The method was called from within SQLCLR.</exception><exception cref="T:System.Security.SecurityException">The caller does not have the required <see cref="T:Microsoft.Data.SqlClient.SqlClientPermission" /> code access security (CAS) permission.</exception><exception cref="T:Microsoft.Data.SqlClient.SqlException">An underlying **SqlClient** exception occurred.</exception>
  8726. </member>
  8727. <member name="M:Microsoft.Data.SqlClient.SqlDependency.Stop(System.String,System.String)">
  8728. <param name="connectionString">Connection string for the instance of SQL Server that was used in a previous <see cref="M:Microsoft.Data.SqlClient.SqlDependency.Start(System.String,System.String)" /> call.</param><param name="queue">The SQL Server Service Broker queue that was used in a previous <see cref="M:Microsoft.Data.SqlClient.SqlDependency.Start(System.String,System.String)" /> call.</param><summary>Stops a listener for a connection specified in a previous <see cref="o:Microsoft.Data.SqlClient.SqlDependency.Start" /> call.</summary><returns>
  8729. <see langword="true" /> if the listener was completely stopped; <see langword="false" /> if the <see cref="T:System.AppDomain" /> was unbound from the listener, but there is at least one other <see cref="T:System.AppDomain" /> using the same listener.</returns><remarks>
  8730. <format type="text/markdown"><![CDATA[
  8731. ## Remarks
  8732. The <xref:Microsoft.Data.SqlClient.SqlDependency.Stop%2A> method must be called for each <xref:Microsoft.Data.SqlClient.SqlDependency.Start%2A> call. A given listener only shuts down fully when it receives the same number of <xref:Microsoft.Data.SqlClient.SqlDependency.Stop%2A> requests as <xref:Microsoft.Data.SqlClient.SqlDependency.Start%2A> requests.
  8733. ]]></format>
  8734. </remarks><exception cref="T:System.ArgumentNullException">The <paramref name="connectionString" /> parameter is NULL.</exception><exception cref="T:System.InvalidOperationException">The method was called from within SQLCLR.</exception><exception cref="T:System.Security.SecurityException">The caller does not have the required <see cref="T:Microsoft.Data.SqlClient.SqlClientPermission" /> code access security (CAS) permission.</exception><exception cref="T:Microsoft.Data.SqlClient.SqlException">And underlying **SqlClient** exception occurred.</exception>
  8735. </member>
  8736. <member name="M:Microsoft.Data.SqlClient.MetaType.AssertIsUserDefinedTypeInstance(System.Object,System.String)">
  8737. <summary>
  8738. Assert that the supplied object is an instance of a SQL User-Defined Type (UDT).
  8739. </summary>
  8740. <param name="sqlValue">Object instance to be tested.</param>
  8741. <param name="failedAssertMessage"></param>
  8742. <remarks>
  8743. This method is only compiled with debug builds, and it a helper method for the GetComValueFromSqlVariant method defined in this class.
  8744. The presence of the SqlUserDefinedTypeAttribute on the object's type
  8745. is used to determine if the object is a UDT instance (if present it is a UDT, else it is not).
  8746. </remarks>
  8747. <exception cref="T:System.NullReferenceException">
  8748. If sqlValue is null. Callers must ensure the object is non-null.
  8749. </exception>
  8750. </member>
  8751. <member name="T:Microsoft.Data.SqlClient.SqlError">
  8752. <summary>Collects information relevant to a warning or error returned by SQL Server.</summary><remarks>
  8753. <format type="text/markdown"><![CDATA[
  8754. ## Remarks
  8755. This class is created by the .NET Framework Data Provider for SQL Server when an error occurs. An instance of <xref:Microsoft.Data.SqlClient.SqlError> is created and managed by the <xref:Microsoft.Data.SqlClient.SqlErrorCollection>, which in turn is created by the <xref:Microsoft.Data.SqlClient.SqlException> class.
  8756. Messages with a severity level of 10 or less are informational and indicate problems caused by mistakes in information that a user has entered. Severity levels from 11 through 16 are generated by the user, and can be corrected by the user. Severity levels from 17 through 25 indicate software or hardware errors. When a level 17, 18, or 19 error occurs, you can continue working, although you might not be able to execute a particular statement.
  8757. The <xref:Microsoft.Data.SqlClient.SqlConnection> remains open when the severity level is 19 or less. When the severity level is 20 or greater, the server usually closes the <xref:Microsoft.Data.SqlClient.SqlConnection>. However, the user can reopen the connection and continue. In both cases, a <xref:Microsoft.Data.SqlClient.SqlException> is generated by the method executing the command.
  8758. For more information on errors generated by SQL Server, see [Cause and Resolution of Database Engine Errors](https://msdn.microsoft.com/library/ms365262.aspx). For more information about severity levels, see [Database Engine Error Severities](https://msdn.microsoft.com/library/ms164086.aspx).
  8759. ## Examples
  8760. The following example displays each <xref:Microsoft.Data.SqlClient.SqlError> within the <xref:Microsoft.Data.SqlClient.SqlErrorCollection> collection.
  8761. [!code-csharp[SqlError_ToString Example#1](~/../sqlclient/doc/samples/SqlError_ToString.cs#1)]
  8762. ]]></format>
  8763. </remarks><altmember cref="T:Microsoft.Data.SqlClient.SqlErrorCollection" /><altmember cref="T:Microsoft.Data.SqlClient.SqlException" />
  8764. </member>
  8765. <member name="M:Microsoft.Data.SqlClient.SqlError.ToString">
  8766. <summary>Gets the complete text of the error message.</summary><returns>The complete text of the error.</returns><remarks>
  8767. <format type="text/markdown"><![CDATA[
  8768. ## Remarks
  8769. The string is in the form "SqlError:", followed by the <xref:Microsoft.Data.SqlClient.SqlError.Message%2A>, and the stack trace. For example:
  8770. SqlError:UserId or Password not valid. \<stack trace>
  8771. ## Examples
  8772. The following example displays each <xref:Microsoft.Data.SqlClient.SqlError> within the <xref:Microsoft.Data.SqlClient.SqlErrorCollection> collection.
  8773. [!code-csharp[SqlError_ToString Example#1](~/../sqlclient/doc/samples/SqlError_ToString.cs#1)]
  8774. ]]></format>
  8775. </remarks>
  8776. </member>
  8777. <member name="P:Microsoft.Data.SqlClient.SqlError.Source">
  8778. <summary>Gets the name of the provider that generated the error.</summary><value>The name of the provider that generated the error.</value><remarks>
  8779. <format type="text/markdown"><![CDATA[
  8780. ## Examples
  8781. The following example displays each <xref:Microsoft.Data.SqlClient.SqlError> within the <xref:Microsoft.Data.SqlClient.SqlErrorCollection> collection.
  8782. [!code-csharp[SqlError.State Example#1](~/../sqlclient/doc/samples/SqlError_State.cs#1)]
  8783. ]]></format>
  8784. </remarks>
  8785. </member>
  8786. <member name="P:Microsoft.Data.SqlClient.SqlError.Number">
  8787. <summary>Gets a number that identifies the type of error.</summary><value>The number that identifies the type of error.</value><remarks>
  8788. <format type="text/markdown"><![CDATA[
  8789. ## Remarks
  8790. The following table describes the possible values for this property:
  8791. |Source of Error|SqlError.Number|SqlError.State|SqlException has inner Win32Exception (beginning with.NET Framework 4.5)|
  8792. |---------------------|---------------------|--------------------|--------------------------------------------------------------------------------|
  8793. |Error from server|Server error code<br /><br /> This number corresponds to an entry in the `master.dbo.sysmessages` table.|Typically greater than 0|No|
  8794. |Connection timeout|-2|0|Yes (Number = 258)|
  8795. |Communication error (non-LocalDB)|Win32 error code|0|Yes (Number = Win32 error code)|
  8796. |Communication error (LocalDB)|Win32 error code|0|No|
  8797. |Encryption capability mismatch|20|0|No|
  8798. |Failed to start LocalDB|Win32 error code|0|No|
  8799. |Read-only routing failure|0|0|No|
  8800. |Server had severe error processing query|0|0|No|
  8801. |Processed cancellation while parsing results|0|0|No|
  8802. |Failed to create user instance|0|0|No|
  8803. For more information on errors generated by SQL Server, see [Database Engine Events and Errors](/sql/relational-databases/errors-events/database-engine-events-and-errors).
  8804. ## Examples
  8805. The following example displays each <xref:Microsoft.Data.SqlClient.SqlError> within the <xref:Microsoft.Data.SqlClient.SqlErrorCollection> collection.
  8806. [!code-csharp[SqlError.State Example#1](~/../sqlclient/doc/samples/SqlError_State.cs#1)]
  8807. ]]></format>
  8808. </remarks>
  8809. </member>
  8810. <member name="P:Microsoft.Data.SqlClient.SqlError.State">
  8811. <summary>Some error messages can be raised at multiple points in the code for the Database Engine. For example, an 1105 error can be raised for several different conditions. Each specific condition that raises an error assigns a unique state code.</summary><value>The state code.</value><remarks>
  8812. <format type="text/markdown"><![CDATA[
  8813. ## Remarks
  8814. State is only set for errors that are received from the server.
  8815. For more information on errors generated by SQL Server, see [Understanding Database Engine Errors](https://msdn.microsoft.com/library/ms165761.aspx).
  8816. ## Examples
  8817. The following example displays each <xref:Microsoft.Data.SqlClient.SqlError> within the <xref:Microsoft.Data.SqlClient.SqlErrorCollection> collection.
  8818. [!code-csharp[SqlError.State Example#1](~/../sqlclient/doc/samples/SqlError_State.cs#1)]
  8819. ]]></format>
  8820. </remarks>
  8821. </member>
  8822. <member name="P:Microsoft.Data.SqlClient.SqlError.Class">
  8823. <summary>Gets the severity level of the error returned from SQL Server.</summary><value>A value from 1 to 25 that indicates the severity level of the error. The default is 0.</value><remarks>
  8824. <format type="text/markdown"><![CDATA[
  8825. ## Remarks
  8826. Messages with a severity level of 10 or less are informational and indicate problems caused by mistakes in information that a user has entered. Severity levels from 11 through 16 are generated by the user, and can be corrected by the user. Severity levels from 17 through 25 indicate software or hardware errors. When a level 17, 18, or 19 error occurs, you can continue working, although you might not be able to execute a particular statement.
  8827. The <xref:Microsoft.Data.SqlClient.SqlConnection> remains open when the severity level is 19 or less. When the severity level is 20 or greater, the server usually closes the <xref:Microsoft.Data.SqlClient.SqlConnection>. However, the user can reopen the connection and continue. In both cases, a <xref:Microsoft.Data.SqlClient.SqlException> is generated by the method executing the command.
  8828. For more information on errors generated by SQL Server, see [Database Engine Events and Errors](/sql/relational-databases/errors-events/database-engine-events-and-errors).
  8829. ## Examples
  8830. The following example displays each <xref:Microsoft.Data.SqlClient.SqlError> within the <xref:Microsoft.Data.SqlClient.SqlErrorCollection> collection.
  8831. [!code-csharp[SqlError_State Example#1](~/../sqlclient/doc/samples/SqlError_State.cs#1)]
  8832. ]]></format>
  8833. </remarks>
  8834. </member>
  8835. <member name="P:Microsoft.Data.SqlClient.SqlError.Server">
  8836. <summary>Gets the name of the instance of SQL Server that generated the error.</summary><value>The name of the instance of SQL Server.</value><remarks>
  8837. <format type="text/markdown"><![CDATA[
  8838. ## Examples
  8839. The following example displays each <xref:Microsoft.Data.SqlClient.SqlError> within the <xref:Microsoft.Data.SqlClient.SqlErrorCollection> collection.
  8840. [!code-csharp[SqlError.State Example#1](~/../sqlclient/doc/samples/SqlError_State.cs#1)]
  8841. ]]></format>
  8842. </remarks>
  8843. </member>
  8844. <member name="P:Microsoft.Data.SqlClient.SqlError.Message">
  8845. <summary>Gets the text describing the error.</summary><value>The text describing the error. For more information on errors generated by SQL Server, see <see href="/sql/relational-databases/errors-events/database-engine-events-and-errors">Database Engine Events and Errors</see>.</value><remarks>
  8846. <format type="text/markdown"><![CDATA[
  8847. ## Examples
  8848. The following example displays each <xref:Microsoft.Data.SqlClient.SqlError> within the <xref:Microsoft.Data.SqlClient.SqlErrorCollection> collection.
  8849. [!code-csharp[SqlError.State Example#1](~/../sqlclient/doc/samples/SqlError_State.cs#1)]
  8850. ]]></format>
  8851. </remarks>
  8852. </member>
  8853. <member name="P:Microsoft.Data.SqlClient.SqlError.Procedure">
  8854. <summary>Gets the name of the stored procedure or remote procedure call (RPC) that generated the error.</summary><value>The name of the stored procedure or RPC. For more information on errors generated by SQL Server, see <see href="/sql/relational-databases/errors-events/database-engine-events-and-errors">Database Engine Events and Errors</see>.</value><remarks>
  8855. <format type="text/markdown"><![CDATA[
  8856. ## Examples
  8857. The following example displays each <xref:Microsoft.Data.SqlClient.SqlError> within the <xref:Microsoft.Data.SqlClient.SqlErrorCollection> collection.
  8858. [!code-csharp[SqlError.State Example#1](~/../sqlclient/doc/samples/SqlError_State.cs#1)]
  8859. ]]></format>
  8860. </remarks>
  8861. </member>
  8862. <member name="P:Microsoft.Data.SqlClient.SqlError.LineNumber">
  8863. <summary>Gets the line number within the Transact-SQL command batch or stored procedure that contains the error.</summary><value>The line number within the Transact-SQL command batch or stored procedure that contains the error.</value><remarks>
  8864. <format type="text/markdown"><![CDATA[
  8865. ## Remarks
  8866. Line numbering starts at 1. If the value is 0, the line number is not applicable.
  8867. For more information on errors generated by SQL Server, see [Database Engine Events and Errors](/sql/relational-databases/errors-events/database-engine-events-and-errors).
  8868. ## Examples
  8869. The following example displays each <xref:Microsoft.Data.SqlClient.SqlError> within the <xref:Microsoft.Data.SqlClient.SqlErrorCollection> collection.
  8870. [!code-csharp[SqlError.State Example#1](~/../sqlclient/doc/samples/SqlError_State.cs#1)]
  8871. ]]></format>
  8872. </remarks>
  8873. </member>
  8874. <member name="T:Microsoft.Data.SqlClient.SqlErrorCollection">
  8875. <summary>Collects all errors generated by the .NET Framework Data Provider for SQL Server. This class cannot be inherited.</summary><remarks>
  8876. <format type="text/markdown"><![CDATA[
  8877. ## Remarks
  8878. This class is created by <xref:Microsoft.Data.SqlClient.SqlException> to collect instances of the <xref:Microsoft.Data.SqlClient.SqlError> class. <xref:Microsoft.Data.SqlClient.SqlErrorCollection> always contains at least one instance of the <xref:Microsoft.Data.SqlClient.SqlError> class.
  8879. ## Examples
  8880. The following example displays each <xref:Microsoft.Data.SqlClient.SqlError> within the <xref:Microsoft.Data.SqlClient.SqlErrorCollection> collection.
  8881. [!code-csharp[SqlError_ToString Example#1](~/../sqlclient/doc/samples/SqlError_ToString.cs#1)]
  8882. ]]></format>
  8883. </remarks><altmember cref="T:Microsoft.Data.SqlClient.SqlError" /><altmember cref="T:Microsoft.Data.SqlClient.SqlException" />
  8884. </member>
  8885. <member name="M:Microsoft.Data.SqlClient.SqlErrorCollection.CopyTo(System.Array,System.Int32)">
  8886. <param name="array">The <see cref="T:System.Array" /> to copy elements into.</param><param name="index">The index from which to start copying into the <paramref name="array" /> parameter.</param><summary>Copies the elements of the <see cref="T:Microsoft.Data.SqlClient.SqlErrorCollection" /> collection into an <see cref="T:System.Array" />, starting at the specified index.</summary><remarks>To be added.</remarks><exception cref="T:System.ArgumentException">The sum of <paramref name="index" /> and the number of elements in the <see cref="T:Microsoft.Data.SqlClient.SqlErrorCollection" /> collection is greater than the <see cref="P:System.Array.Length" /> of the <see cref="T:System.Array" />.</exception><exception cref="T:System.ArgumentNullException">The <paramref name="array" /> is <see langword="null" />.</exception><exception cref="T:System.ArgumentOutOfRangeException">The <paramref name="index" /> is not valid for <paramref name="array" />.</exception>
  8887. </member>
  8888. <member name="M:Microsoft.Data.SqlClient.SqlErrorCollection.CopyTo(Microsoft.Data.SqlClient.SqlError[],System.Int32)">
  8889. <param name="array">The <see cref="T:Microsoft.Data.SqlClient.SqlErrorCollection" /> to copy the elements into.</param><param name="index">The index from which to start copying into the <paramref name="array" /> parameter.</param><summary>Copies the elements of the <see cref="T:Microsoft.Data.SqlClient.SqlErrorCollection" /> collection into a <see cref="T:Microsoft.Data.SqlClient.SqlErrorCollection" />, starting at the specified index.</summary><remarks>To be added.</remarks><exception cref="T:System.ArgumentException">The sum of <paramref name="index" /> and the number of elements in the <see cref="T:Microsoft.Data.SqlClient.SqlErrorCollection" /> collection is greater than the length of the <see cref="T:Microsoft.Data.SqlClient.SqlErrorCollection" />.</exception><exception cref="T:System.ArgumentNullException">The <paramref name="array" /> is <see langword="null" />.</exception><exception cref="T:System.ArgumentOutOfRangeException">The <paramref name="index" /> is not valid for <paramref name="array" />.</exception>
  8890. </member>
  8891. <member name="P:Microsoft.Data.SqlClient.SqlErrorCollection.Count">
  8892. <summary>Gets the number of errors in the collection.</summary><value>The total number of errors in the collection.</value><remarks>
  8893. <format type="text/markdown"><![CDATA[
  8894. ## Examples
  8895. The following example displays each <xref:Microsoft.Data.SqlClient.SqlError> within the <xref:Microsoft.Data.SqlClient.SqlErrorCollection> collection.
  8896. [!code-csharp[SqlError_ToString Example#1](~/../sqlclient/doc/samples/SqlError_ToString.cs#1)]
  8897. ]]></format>
  8898. </remarks>
  8899. </member>
  8900. <member name="P:Microsoft.Data.SqlClient.SqlErrorCollection.System#Collections#ICollection#SyncRoot">
  8901. <summary>For a description of this member, see <see cref="P:System.Collections.ICollection.SyncRoot" />.</summary><value>An object that can be used to synchronize access to the <see cref="T:System.Collections.ICollection" />.</value><remarks>
  8902. <format type="text/markdown"><![CDATA[
  8903. ## Remarks
  8904. This member is an explicit interface member implementation. It can be used only when the <xref:Microsoft.Data.SqlClient.SqlErrorCollection> instance is cast to an <xref:System.Collections.ICollection> interface.
  8905. ]]></format>
  8906. </remarks>
  8907. </member>
  8908. <member name="P:Microsoft.Data.SqlClient.SqlErrorCollection.System#Collections#ICollection#IsSynchronized">
  8909. <summary>For a description of this member, see <see cref="P:System.Collections.ICollection.IsSynchronized" />.</summary><value>
  8910. <see langword="true" /> if access to the <see cref="T:System.Collections.ICollection" /> is synchronized (thread safe); otherwise, <see langword="false" />.</value><remarks>
  8911. <format type="text/markdown"><![CDATA[
  8912. ## Remarks
  8913. This member is an explicit interface member implementation. It can be used only when the <xref:Microsoft.Data.SqlClient.SqlErrorCollection> instance is cast to an <xref:System.Collections.ICollection> interface.
  8914. ]]></format>
  8915. </remarks>
  8916. </member>
  8917. <member name="P:Microsoft.Data.SqlClient.SqlErrorCollection.Item(System.Int32)">
  8918. <param name="index">The zero-based index of the error to retrieve.</param><summary>Gets the error at the specified index.</summary><value>A <see cref="T:Microsoft.Data.SqlClient.SqlError" /> that contains the error at the specified index.</value><remarks>
  8919. <format type="text/markdown"><![CDATA[
  8920. ## Examples
  8921. The following example displays each <xref:Microsoft.Data.SqlClient.SqlError> within the <xref:Microsoft.Data.SqlClient.SqlErrorCollection> collection.
  8922. [!code-csharp[SqlError_ToString Example#1](~/../sqlclient/doc/samples/SqlError_ToString.cs#1)]
  8923. ]]></format>
  8924. </remarks><exception cref="T:System.IndexOutOfRangeException">Index parameter is outside array bounds.</exception><altmember cref="P:Microsoft.Data.SqlClient.SqlErrorCollection.Count" />
  8925. </member>
  8926. <member name="M:Microsoft.Data.SqlClient.SqlErrorCollection.GetEnumerator">
  8927. <summary>Returns an enumerator that iterates through the <see cref="T:Microsoft.Data.SqlClient.SqlErrorCollection" />.</summary><returns>An <see cref="T:System.Collections.IEnumerator" /> for the <see cref="T:Microsoft.Data.SqlClient.SqlErrorCollection" />.</returns><remarks>
  8928. <format type="text/markdown"><![CDATA[
  8929. ## Remarks
  8930. Enumerators can be used to read the data in a collection, but they cannot be used to modify the underlying collection.
  8931. ]]></format>
  8932. </remarks>
  8933. </member>
  8934. <member name="T:Microsoft.Data.SqlClient.SqlException">
  8935. <summary>The exception that is thrown when SQL Server returns a warning or error. This class cannot be inherited.</summary><remarks>
  8936. <format type="text/markdown"><![CDATA[
  8937. ## Remarks
  8938. This class is created whenever the .NET Framework Data Provider for SQL Server encounters an error generated from the server. (Client side errors are thrown as standard common language runtime exceptions.) <xref:Microsoft.Data.SqlClient.SqlException> always contains at least one instance of <xref:Microsoft.Data.SqlClient.SqlError>.
  8939. Messages that have a severity level of 10 or less are informational and indicate problems caused by mistakes in information that a user has entered. Severity levels from 11 through 16 are generated by the user, and can be corrected by the user. Severity levels from 17 through 25 indicate software or hardware errors. When a level 17, 18, or 19 error occurs, you can continue working, although you might not be able to execute a particular statement.
  8940. The <xref:Microsoft.Data.SqlClient.SqlConnection> remains open when the severity level is 19 or less. When the severity level is 20 or greater, the server ordinarily closes the <xref:Microsoft.Data.SqlClient.SqlConnection>. However, the user can reopen the connection and continue. In both cases, a <xref:Microsoft.Data.SqlClient.SqlException> is generated by the method executing the command.
  8941. For information about the warning and informational messages sent by SQL Server, see [Database Engine Events and Errors](/sql/relational-databases/errors-events/database-engine-events-and-errors). The <xref:Microsoft.Data.SqlClient.SqlException> class maps to SQL Server severity.
  8942. The following is general information on handling exceptions. Your code should catch exceptions to prevent the application from crashing and to allow displaying a relevant error message to the user. You can use database transactions to ensure that the data is consistent regardless of what happens in the client application (including a crash). Features like System.Transaction.TransactionScope or the BeginTransaction method (in System.Data.OleDb.OleDbConnection, System.Data.ODBC.ODBCConnection, and Microsoft.Data.SqlClient.SqlConnection) ensure consistent data regardless of exceptions raised by a provider. Transactions can fail, so catch failures and retry the transaction.
  8943. Note that beginning with .NET Framework 4.5, <xref:Microsoft.Data.SqlClient.SqlException> can return an inner <xref:System.ComponentModel.Win32Exception>.
  8944. The exception class of a .NET Framework data provider reports provider-specific errors. For example System.Data.Odbc has OdbcException, System.Data.OleDb has OleDbException, and Microsoft.Data.SqlClient has SqlException. For the best level of error detail, catch these exceptions and use the members of these exception classes to get details of the error.
  8945. In addition to the provider-specific errors, .NET Framework data provider types can raise .NET Framework exceptions such as System.OutOfMemoryException and System.Threading.ThreadAbortException. Recovery from these exceptions may not be possible.
  8946. Bad input can cause a .NET Framework data provider type to raise an exception such as System.ArgumentException or System.IndexOutOfRangeException. Calling a method at the wrong time can raise System.InvalidOperationException.
  8947. So, in general, write an exception handler that catches any provider specific exceptions as well as exceptions from the common language runtime. These can be layered as follows:
  8948. ```csharp
  8949. try {
  8950. // code here
  8951. }
  8952. catch (SqlException odbcEx) {
  8953. // Handle more specific SqlException exception here.
  8954. }
  8955. catch (Exception ex) {
  8956. // Handle generic ones here.
  8957. }
  8958. ```
  8959. Or:
  8960. ```csharp
  8961. try {
  8962. // code here
  8963. }
  8964. catch (Exception ex) {
  8965. if (ex is SqlException) {
  8966. // Handle more specific SqlException exception here.
  8967. }
  8968. else {
  8969. // Handle generic ones here.
  8970. }
  8971. }
  8972. ```
  8973. It is also possible for a .NET Framework data provider method call to fail on a thread pool thread with no user code on the stack. In this case, and when using asynchronous method calls, you must register the <xref:System.AppDomain.UnhandledException> event to handle those exceptions and avoid application crash.
  8974. ## Examples
  8975. The following example generates a <xref:Microsoft.Data.SqlClient.SqlException> and then displays the exception.
  8976. [!code-csharp[SqlException_Errors1 Example#1](~/../sqlclient/doc/samples/SqlException_Errors1.cs#1)]
  8977. ]]></format>
  8978. </remarks><altmember cref="T:Microsoft.Data.SqlClient.SqlError" /><altmember cref="T:Microsoft.Data.SqlClient.SqlErrorCollection" />
  8979. </member>
  8980. <member name="M:Microsoft.Data.SqlClient.SqlException.GetObjectData(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext)">
  8981. <param name="si">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param><param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param><summary>Sets the <see cref="T:System.Runtime.Serialization.SerializationInfo" /> with information about the exception.</summary><remarks>
  8982. <format type="text/markdown"><![CDATA[
  8983. ## Remarks
  8984. `GetObjectData` sets a `SerializationInfo` with all the exception object data targeted for serialization. During deserialization, the exception is reconstituted from the `SerializationInfo` transmitted over the stream.
  8985. ]]></format>
  8986. </remarks><exception cref="T:System.ArgumentNullException">The <paramref name="si" /> parameter is a null reference (<see langword="Nothing" /> in Visual Basic).</exception>
  8987. </member>
  8988. <member name="P:Microsoft.Data.SqlClient.SqlException.Errors">
  8989. <summary>Gets a collection of one or more <see cref="T:Microsoft.Data.SqlClient.SqlError" /> objects that give detailed information about exceptions generated by the .NET Framework Data Provider for SQL Server.</summary><value>The collected instances of the <see cref="T:Microsoft.Data.SqlClient.SqlError" /> class.</value><remarks>
  8990. <format type="text/markdown"><![CDATA[
  8991. ## Remarks
  8992. The <xref:Microsoft.Data.SqlClient.SqlErrorCollection> class always contains at least one instance of the <xref:Microsoft.Data.SqlClient.SqlError> class.
  8993. This is a wrapper for <xref:Microsoft.Data.SqlClient.SqlErrorCollection>. For more information on SQL Server engine errors, see [Database Engine Events and Errors](/sql/relational-databases/errors-events/database-engine-events-and-errors).
  8994. ## Examples
  8995. The following example displays each <xref:Microsoft.Data.SqlClient.SqlError> within the <xref:Microsoft.Data.SqlClient.SqlErrorCollection> collection.
  8996. [!code-csharp[SqlError_ToString Example#1](~/../sqlclient/doc/samples/SqlError_ToString.cs#1)]
  8997. ]]></format>
  8998. </remarks><altmember cref="T:Microsoft.Data.SqlClient.SqlErrorCollection" /><altmember cref="T:Microsoft.Data.SqlClient.SqlError" />
  8999. </member>
  9000. <member name="P:Microsoft.Data.SqlClient.SqlException.ClientConnectionId">
  9001. <summary>Represents the client connection ID. For more information, see <see href="https://docs.microsoft.com/dotnet/framework/data/adonet/data-tracing">Data Tracing in ADO.NET</see>.</summary><value>The client connection ID.</value><remarks>
  9002. <format type="text/markdown"><![CDATA[
  9003. ## Remarks
  9004. For a code sample, see <xref:Microsoft.Data.SqlClient.SqlException.ToString%2A>.
  9005. ]]></format>
  9006. </remarks>
  9007. </member>
  9008. <member name="P:Microsoft.Data.SqlClient.SqlException.Class">
  9009. <summary>Gets the severity level of the error returned from the .NET Framework Data Provider for SQL Server.</summary><value>A value from 1 to 25 that indicates the severity level of the error.</value><remarks>
  9010. <format type="text/markdown"><![CDATA[
  9011. ## Remarks
  9012. Messages that have a severity level of 10 or less are informational and indicate problems caused by mistakes in information that a user has entered. Severity levels from 11 through 16 are generated by the user, and can be corrected by the user. Severity levels from 17 through 25 indicate software or hardware errors. When a level 17, 18, or 19 error occurs, you can continue working, although you might not be able to execute a particular statement.
  9013. The <xref:Microsoft.Data.SqlClient.SqlConnection> remains open when the severity level is 19 or less. When the severity level is 20 or greater, the server ordinarily closes the <xref:Microsoft.Data.SqlClient.SqlConnection>. However, the user can reopen the connection and continue. In both cases, a <xref:Microsoft.Data.SqlClient.SqlException> is generated by the method executing the command.
  9014. For information about the warning and informational messages sent by SQL Server, see the Troubleshooting section of the SQL Server documentation.
  9015. This is a wrapper for the <xref:Microsoft.Data.SqlClient.SqlError.Class%2A> property of the first <xref:Microsoft.Data.SqlClient.SqlError> in the <xref:Microsoft.Data.SqlClient.SqlException.Errors%2A> property.
  9016. ## Examples
  9017. The following example displays each <xref:Microsoft.Data.SqlClient.SqlError> within the <xref:Microsoft.Data.SqlClient.SqlErrorCollection> collection.
  9018. [!code-csharp[SqlException_Errors2 Example#1](~/../sqlclient/doc/samples/SqlException_Errors2.cs#1)]
  9019. ]]></format>
  9020. </remarks><altmember cref="P:Microsoft.Data.SqlClient.SqlException.Number" /><altmember cref="P:Microsoft.Data.SqlClient.SqlException.Source" /><altmember cref="P:Microsoft.Data.SqlClient.SqlException.State" /><altmember cref="P:Microsoft.Data.SqlClient.SqlException.Server" /><altmember cref="P:Microsoft.Data.SqlClient.SqlException.Procedure" /><altmember cref="P:Microsoft.Data.SqlClient.SqlException.LineNumber" />
  9021. </member>
  9022. <member name="P:Microsoft.Data.SqlClient.SqlException.LineNumber">
  9023. <summary>Gets the line number within the Transact-SQL command batch or stored procedure that generated the error.</summary><value>The line number within the Transact-SQL command batch or stored procedure that generated the error.</value><remarks>
  9024. <format type="text/markdown"><![CDATA[
  9025. ## Remarks
  9026. The line numbering starts at 1; if 0 is returned, the line number is not applicable.
  9027. This is a wrapper for the <xref:Microsoft.Data.SqlClient.SqlError.LineNumber%2A> property of the first <xref:Microsoft.Data.SqlClient.SqlError> in the <xref:Microsoft.Data.SqlClient.SqlException.Errors%2A> property.
  9028. ## Examples
  9029. The following example displays each <xref:Microsoft.Data.SqlClient.SqlError> within the <xref:Microsoft.Data.SqlClient.SqlErrorCollection> collection.
  9030. [!code-csharp[SqlException_Errors2 Example#1](~/../sqlclient/doc/samples/SqlException_Errors2.cs#1)]
  9031. ]]></format>
  9032. </remarks><altmember cref="P:Microsoft.Data.SqlClient.SqlException.Number" /><altmember cref="P:Microsoft.Data.SqlClient.SqlException.Source" /><altmember cref="P:Microsoft.Data.SqlClient.SqlException.State" /><altmember cref="P:Microsoft.Data.SqlClient.SqlException.Class" /><altmember cref="P:Microsoft.Data.SqlClient.SqlException.Server" /><altmember cref="P:Microsoft.Data.SqlClient.SqlException.Procedure" />
  9033. </member>
  9034. <member name="P:Microsoft.Data.SqlClient.SqlException.Number">
  9035. <summary>Gets a number that identifies the type of error.</summary><value>The number that identifies the type of error.</value><remarks>
  9036. <format type="text/markdown"><![CDATA[
  9037. ## Remarks
  9038. This is a wrapper for the <xref:Microsoft.Data.SqlClient.SqlError.Number%2A> property of the first <xref:Microsoft.Data.SqlClient.SqlError> in the <xref:Microsoft.Data.SqlClient.SqlException.Errors%2A> property. For more information on SQL Server engine errors, see [Database Engine Events and Errors](/sql/relational-databases/errors-events/database-engine-events-and-errors).
  9039. ## Examples
  9040. The following example displays each <xref:Microsoft.Data.SqlClient.SqlError> within the <xref:Microsoft.Data.SqlClient.SqlErrorCollection> collection.
  9041. [!code-csharp[SqlException_Errors2 Example#1](~/../sqlclient/doc/samples/SqlException_Errors2.cs#1)]
  9042. ]]></format>
  9043. </remarks><altmember cref="P:Microsoft.Data.SqlClient.SqlException.State" /><altmember cref="P:Microsoft.Data.SqlClient.SqlException.Class" /><altmember cref="P:Microsoft.Data.SqlClient.SqlException.Source" /><altmember cref="P:Microsoft.Data.SqlClient.SqlException.Server" /><altmember cref="P:Microsoft.Data.SqlClient.SqlException.Procedure" /><altmember cref="P:Microsoft.Data.SqlClient.SqlException.LineNumber" />
  9044. </member>
  9045. <member name="P:Microsoft.Data.SqlClient.SqlException.Procedure">
  9046. <summary>Gets the name of the stored procedure or remote procedure call (RPC) that generated the error.</summary><value>The name of the stored procedure or RPC.</value><remarks>
  9047. <format type="text/markdown"><![CDATA[
  9048. ## Remarks
  9049. This is a wrapper for the <xref:Microsoft.Data.SqlClient.SqlError.Procedure%2A> property of the first <xref:Microsoft.Data.SqlClient.SqlError> in the <xref:Microsoft.Data.SqlClient.SqlException.Errors%2A> property.
  9050. ## Examples
  9051. The following example displays each <xref:Microsoft.Data.SqlClient.SqlError> within the <xref:Microsoft.Data.SqlClient.SqlErrorCollection> collection.
  9052. [!code-csharp[SqlException_Errors2 Example#1](~/../sqlclient/doc/samples/SqlException_Errors2.cs#1)]
  9053. ]]></format>
  9054. </remarks><altmember cref="P:Microsoft.Data.SqlClient.SqlException.Number" /><altmember cref="P:Microsoft.Data.SqlClient.SqlException.State" /><altmember cref="P:Microsoft.Data.SqlClient.SqlException.Class" /><altmember cref="P:Microsoft.Data.SqlClient.SqlException.Server" /><altmember cref="P:Microsoft.Data.SqlClient.SqlException.Source" /><altmember cref="P:Microsoft.Data.SqlClient.SqlException.LineNumber" />
  9055. </member>
  9056. <member name="P:Microsoft.Data.SqlClient.SqlException.Server">
  9057. <summary>Gets the name of the computer that is running an instance of SQL Server that generated the error.</summary><value>The name of the computer running an instance of SQL Server.</value><remarks>
  9058. <format type="text/markdown"><![CDATA[
  9059. ## Remarks
  9060. This is a wrapper for the <xref:Microsoft.Data.SqlClient.SqlError.Server%2A> property of the first <xref:Microsoft.Data.SqlClient.SqlError> in the <xref:Microsoft.Data.SqlClient.SqlException.Errors%2A> property.
  9061. ## Examples
  9062. The following example displays each <xref:Microsoft.Data.SqlClient.SqlError> within the <xref:Microsoft.Data.SqlClient.SqlErrorCollection> collection.
  9063. [!code-csharp[SqlException_Errors2 Example#1](~/../sqlclient/doc/samples/SqlException_Errors2.cs#1)]
  9064. ]]></format>
  9065. </remarks><altmember cref="P:Microsoft.Data.SqlClient.SqlException.Number" /><altmember cref="P:Microsoft.Data.SqlClient.SqlException.State" /><altmember cref="P:Microsoft.Data.SqlClient.SqlException.Source" /><altmember cref="P:Microsoft.Data.SqlClient.SqlException.Class" /><altmember cref="P:Microsoft.Data.SqlClient.SqlException.Procedure" /><altmember cref="P:Microsoft.Data.SqlClient.SqlException.LineNumber" />
  9066. </member>
  9067. <member name="P:Microsoft.Data.SqlClient.SqlException.State">
  9068. <summary>Gets a numeric error code from SQL Server that represents an error, warning or "no data found" message. For more information about how to decode these values, see <see href="/sql/relational-databases/errors-events/database-engine-events-and-errors">Database Engine Events and Errors</see>.</summary><value>The number representing the error code.</value><remarks>
  9069. <format type="text/markdown"><![CDATA[
  9070. ## Remarks
  9071. This is a wrapper for the <xref:Microsoft.Data.SqlClient.SqlError.State%2A> property of the first <xref:Microsoft.Data.SqlClient.SqlError> in the <xref:Microsoft.Data.SqlClient.SqlException.Errors%2A> property.
  9072. ## Examples
  9073. The following example displays each <xref:Microsoft.Data.SqlClient.SqlError> within the <xref:Microsoft.Data.SqlClient.SqlErrorCollection> collection.
  9074. [!code-csharp[SqlException_Errors2 Example#1](~/../sqlclient/doc/samples/SqlException_Errors2.cs#1)]
  9075. ]]></format>
  9076. </remarks><altmember cref="P:Microsoft.Data.SqlClient.SqlException.Number" /><altmember cref="P:Microsoft.Data.SqlClient.SqlException.Class" /><altmember cref="P:Microsoft.Data.SqlClient.SqlException.Source" /><altmember cref="P:Microsoft.Data.SqlClient.SqlException.Server" /><altmember cref="P:Microsoft.Data.SqlClient.SqlException.Procedure" /><altmember cref="P:Microsoft.Data.SqlClient.SqlException.LineNumber" />
  9077. </member>
  9078. <member name="P:Microsoft.Data.SqlClient.SqlException.Source">
  9079. <summary>Gets the name of the provider that generated the error.</summary><value>The name of the provider that generated the error.</value><remarks>
  9080. <format type="text/markdown"><![CDATA[
  9081. ## Remarks
  9082. This is a wrapper for the <xref:Microsoft.Data.SqlClient.SqlError.Source%2A> property of the first <xref:Microsoft.Data.SqlClient.SqlError> in the <xref:Microsoft.Data.SqlClient.SqlException.Errors%2A> property.
  9083. ## Examples
  9084. The following example displays each <xref:Microsoft.Data.SqlClient.SqlError> within the <xref:Microsoft.Data.SqlClient.SqlErrorCollection> collection.
  9085. [!code-csharp[SqlException_Errors2 Example#1](~/../sqlclient/doc/samples/SqlException_Errors2.cs#1)]
  9086. ]]></format>
  9087. </remarks><altmember cref="P:Microsoft.Data.SqlClient.SqlException.Number" /><altmember cref="P:Microsoft.Data.SqlClient.SqlException.State" /><altmember cref="P:Microsoft.Data.SqlClient.SqlException.Class" /><altmember cref="P:Microsoft.Data.SqlClient.SqlException.Server" /><altmember cref="P:Microsoft.Data.SqlClient.SqlException.Procedure" /><altmember cref="P:Microsoft.Data.SqlClient.SqlException.LineNumber" />
  9088. </member>
  9089. <member name="M:Microsoft.Data.SqlClient.SqlException.ToString">
  9090. <summary>Returns a string that represents the current <see cref="T:Microsoft.Data.SqlClient.SqlException" /> object, and includes the client connection ID (for more information, see <see cref="P:Microsoft.Data.SqlClient.SqlException.ClientConnectionId" />).</summary><returns>A string that represents the current <see cref="T:Microsoft.Data.SqlClient.SqlException" /> object.<see cref="T:System.String" />.</returns><remarks>
  9091. <format type="text/markdown"><![CDATA[
  9092. ## Examples
  9093. The following C# example shows how a connection attempt to a valid server but non-existent database causes a <xref:Microsoft.Data.SqlClient.SqlException>, which includes the client connection ID:
  9094. ```csharp
  9095. using Microsoft.Data.SqlClient;
  9096. using System;
  9097. public class A {
  9098. public static void Main() {
  9099. SqlConnection connection = new SqlConnection();
  9100. connection.ConnectionString = "Data Source=a_valid_server;Initial Catalog=Northwinda;Integrated Security=true";
  9101. try {
  9102. connection.Open();
  9103. }
  9104. catch (SqlException p) {
  9105. Console.WriteLine("{0}", p.ClientConnectionId);
  9106. Console.WriteLine("{0}", p.ToString());
  9107. }
  9108. connection.Close();
  9109. }
  9110. }
  9111. ```
  9112. The following Visual Basic sample is functionally equivalent to the previous (C#) sample:
  9113. ```vb
  9114. Imports Microsoft.Data.SqlClient
  9115. Imports System
  9116. Module Module1
  9117. Sub Main()
  9118. Dim connection As New SqlConnection()
  9119. connection.ConnectionString = "Data Source=a_valid_server;Initial Catalog=Northwinda;Integrated Security=true"
  9120. Try
  9121. connection.Open()
  9122. Catch p As SqlException
  9123. Console.WriteLine("{0}", p.ClientConnectionId)
  9124. Console.WriteLine("{0}", p.ToString())
  9125. End Try
  9126. connection.Close()
  9127. End Sub
  9128. End Module
  9129. ```
  9130. ]]></format>
  9131. </remarks>
  9132. </member>
  9133. <member name="T:Microsoft.Data.SqlClient.SqlInfoMessageEventArgs">
  9134. <summary>Provides data for the <see cref="E:Microsoft.Data.SqlClient.SqlConnection.InfoMessage" /> event.</summary><remarks>
  9135. <format type="text/markdown"><![CDATA[
  9136. ## Remarks
  9137. The <xref:Microsoft.Data.SqlClient.SqlConnection.InfoMessage> event contains a <xref:Microsoft.Data.SqlClient.SqlErrorCollection> collection which contains the warnings sent from the server.
  9138. An <xref:Microsoft.Data.SqlClient.SqlConnection.InfoMessage> event is generated when a SQL Server message with a severity level of 10 or less occurs.
  9139. ]]></format>
  9140. </remarks>
  9141. </member>
  9142. <member name="P:Microsoft.Data.SqlClient.SqlInfoMessageEventArgs.Errors">
  9143. <summary>Gets the collection of warnings sent from the server.</summary><value>The collection of warnings sent from the server.</value><remarks>To be added.</remarks>
  9144. </member>
  9145. <member name="P:Microsoft.Data.SqlClient.SqlInfoMessageEventArgs.Message">
  9146. <summary>Gets the full text of the error sent from the database.</summary><value>The full text of the error.</value><remarks>
  9147. <format type="text/markdown"><![CDATA[
  9148. ## Remarks
  9149. This is a wrapper for the <xref:Microsoft.Data.SqlClient.SqlError.Message%2A> property of the first <xref:Microsoft.Data.SqlClient.SqlError> in the <xref:Microsoft.Data.SqlClient.SqlInfoMessageEventArgs.Errors%2A> collection.
  9150. ]]></format>
  9151. </remarks>
  9152. </member>
  9153. <member name="P:Microsoft.Data.SqlClient.SqlInfoMessageEventArgs.Source">
  9154. <summary>Gets the name of the object that generated the error.</summary><value>The name of the object that generated the error.</value><remarks>
  9155. <format type="text/markdown"><![CDATA[
  9156. ## Remarks
  9157. This is a wrapper for the <xref:Microsoft.Data.SqlClient.SqlError.Source%2A> property of the first <xref:Microsoft.Data.SqlClient.SqlError> in the <xref:Microsoft.Data.SqlClient.SqlInfoMessageEventArgs.Errors%2A> collection.
  9158. ]]></format>
  9159. </remarks>
  9160. </member>
  9161. <member name="M:Microsoft.Data.SqlClient.SqlInfoMessageEventArgs.ToString">
  9162. <summary>Retrieves a string representation of the <see cref="E:Microsoft.Data.SqlClient.SqlConnection.InfoMessage" /> event.</summary><returns>A string representing the <see cref="E:Microsoft.Data.SqlClient.SqlConnection.InfoMessage" /> event.</returns><remarks>To be added.</remarks>
  9163. </member>
  9164. <member name="T:Microsoft.Data.SqlClient.SqlInfoMessageEventHandler">
  9165. <param name="sender">The source of the event.</param><param name="e">A <see cref="T:Microsoft.Data.SqlClient.SqlInfoMessageEventArgs" /> object that contains the event data.</param><summary>Represents the method that will handle the <see cref="E:Microsoft.Data.SqlClient.SqlConnection.InfoMessage" /> event of a <see cref="T:Microsoft.Data.SqlClient.SqlConnection" />.</summary><remarks>
  9166. <format type="text/markdown"><![CDATA[
  9167. ## Remarks
  9168. When you create a <xref:Microsoft.Data.SqlClient.SqlInfoMessageEventArgs> delegate, you identify the method that will handle the event. To associate the event with your event handler, add an instance of the delegate to the event. The event handler is called whenever the event occurs, unless you remove the delegate. For more information about event handler delegates, see [Handling and Raising Events](~/docs/standard/events/index.md).
  9169. ]]></format>
  9170. </remarks>
  9171. </member>
  9172. <member name="M:Microsoft.Data.SqlClient.SqlInternalConnectionTds.CheckEnlistedTransactionBinding">
  9173. <summary>
  9174. Validate the enlisted transaction state, taking into consideration the ambient transaction and transaction unbinding mode.
  9175. If there is no enlisted transaction, this method is a nop.
  9176. </summary>
  9177. <remarks>
  9178. <para>
  9179. This method must be called while holding a lock on the SqlInternalConnection instance,
  9180. to ensure we don't accidentally execute after the transaction has completed on a different thread,
  9181. causing us to unwittingly execute in auto-commit mode.
  9182. </para>
  9183. <para>
  9184. When using Explicit transaction unbinding,
  9185. verify that the enlisted transaction is active and equal to the current ambient transaction.
  9186. </para>
  9187. <para>
  9188. When using Implicit transaction unbinding,
  9189. verify that the enlisted transaction is active.
  9190. If it is not active, and the transaction object has been disposed, unbind from the transaction.
  9191. If it is not active and not disposed, throw an exception.
  9192. </para>
  9193. </remarks>
  9194. </member>
  9195. <member name="M:Microsoft.Data.SqlClient.SqlInternalConnectionTds.OnFedAuthInfo(Microsoft.Data.SqlClient.SqlFedAuthInfo)">
  9196. <summary>
  9197. Generates (if appropriate) and sends a Federated Authentication Access token to the server, using the Federated Authentication Info.
  9198. </summary>
  9199. <param name="fedAuthInfo">Federated Authentication Info.</param>
  9200. </member>
  9201. <member name="M:Microsoft.Data.SqlClient.SqlInternalConnectionTds.TryGetFedAuthTokenLocked(Microsoft.Data.SqlClient.SqlFedAuthInfo,Microsoft.Data.ProviderBase.DbConnectionPoolAuthenticationContext,Microsoft.Data.SqlClient.SqlFedAuthToken@)">
  9202. <summary>
  9203. Tries to acquire a lock on the authentication context. If successful in acquiring the lock, gets a new token and assigns it in the out parameter. Else returns false.
  9204. </summary>
  9205. <param name="fedAuthInfo">Federated Authentication Info</param>
  9206. <param name="dbConnectionPoolAuthenticationContext">Authentication Context cached in the connection pool.</param>
  9207. <param name="fedAuthToken">Out parameter, carrying the token if we acquired a lock and got the token.</param>
  9208. <returns></returns>
  9209. </member>
  9210. <member name="M:Microsoft.Data.SqlClient.SqlInternalConnectionTds.GetFedAuthToken(Microsoft.Data.SqlClient.SqlFedAuthInfo)">
  9211. <summary>
  9212. Get the Federated Authentication Token.
  9213. </summary>
  9214. <param name="fedAuthInfo">Information obtained from server as Federated Authentication Info.</param>
  9215. <returns>SqlFedAuthToken</returns>
  9216. </member>
  9217. <member name="T:Microsoft.Data.SqlClient.SqlNotificationEventArgs">
  9218. <summary>Represents the set of arguments passed to the notification event handler.</summary><remarks>To be added.</remarks>
  9219. </member>
  9220. <member name="M:Microsoft.Data.SqlClient.SqlNotificationEventArgs.#ctor(Microsoft.Data.SqlClient.SqlNotificationType,Microsoft.Data.SqlClient.SqlNotificationInfo,Microsoft.Data.SqlClient.SqlNotificationSource)">
  9221. <param name="type">
  9222. <see cref="T:Microsoft.Data.SqlClient.SqlNotificationType" /> value that indicates whether this notification is generated because of an actual change, or by the subscription.</param><param name="info">
  9223. <see cref="T:Microsoft.Data.SqlClient.SqlNotificationInfo" /> value that indicates the reason for the notification event. This may occur because the data in the store actually changed, or the notification became invalid (for example, it timed out).</param><param name="source">
  9224. <see cref="T:Microsoft.Data.SqlClient.SqlNotificationSource" /> value that indicates the source that generated the notification.</param><summary>Creates a new instance of the <see cref="T:Microsoft.Data.SqlClient.SqlNotificationEventArgs" /> object.</summary><remarks>To be added.</remarks>
  9225. </member>
  9226. <member name="P:Microsoft.Data.SqlClient.SqlNotificationEventArgs.Type">
  9227. <summary>Gets a value that indicates whether this notification is generated because of an actual change, or by the subscription.</summary><value>A value indicating whether the notification was generated by a change or a subscription.</value><remarks>To be added.</remarks>
  9228. </member>
  9229. <member name="P:Microsoft.Data.SqlClient.SqlNotificationEventArgs.Info">
  9230. <summary>Gets a value that indicates the reason for the notification event, such as a row in the database being modified or a table being truncated.</summary><value>The notification event reason.</value><remarks>
  9231. <format type="text/markdown"><![CDATA[
  9232. ## Remarks
  9233. This event may occur because the data in the store actually changed, or the notification is no longer valid (for example, it timed out).
  9234. ]]></format>
  9235. </remarks>
  9236. </member>
  9237. <member name="P:Microsoft.Data.SqlClient.SqlNotificationEventArgs.Source">
  9238. <summary>Gets a value that indicates the source that generated the notification, such as a change to the query data or the database's state.</summary><value>The source of the notification.</value><remarks>To be added.</remarks>
  9239. </member>
  9240. <member name="T:Microsoft.Data.SqlClient.SqlNotificationInfo">
  9241. <summary>This enumeration provides additional information about the different notifications that can be received by the dependency event handler.</summary><remarks>
  9242. <format type="text/markdown"><![CDATA[
  9243. ## Remarks
  9244. The <xref:Microsoft.Data.SqlClient.SqlNotificationInfo> enumeration is referenced by an instance of the <xref:Microsoft.Data.SqlClient.SqlNotificationEventArgs> class.
  9245. ]]></format>
  9246. </remarks>
  9247. </member>
  9248. <member name="F:Microsoft.Data.SqlClient.SqlNotificationInfo.Truncate">
  9249. <summary>One or more tables were truncated.</summary>
  9250. </member>
  9251. <member name="F:Microsoft.Data.SqlClient.SqlNotificationInfo.Insert">
  9252. <summary>Data was changed by an INSERT statement.</summary>
  9253. </member>
  9254. <member name="F:Microsoft.Data.SqlClient.SqlNotificationInfo.Update">
  9255. <summary>Data was changed by an UPDATE statement.</summary>
  9256. </member>
  9257. <member name="F:Microsoft.Data.SqlClient.SqlNotificationInfo.Delete">
  9258. <summary>Data was changed by a DELETE statement.</summary>
  9259. </member>
  9260. <member name="F:Microsoft.Data.SqlClient.SqlNotificationInfo.Drop">
  9261. <summary>An underlying object related to the query was dropped.</summary>
  9262. </member>
  9263. <member name="F:Microsoft.Data.SqlClient.SqlNotificationInfo.Alter">
  9264. <summary>An underlying server object related to the query was modified.</summary>
  9265. </member>
  9266. <member name="F:Microsoft.Data.SqlClient.SqlNotificationInfo.Restart">
  9267. <summary>The server was restarted (notifications are sent during restart.).</summary>
  9268. </member>
  9269. <member name="F:Microsoft.Data.SqlClient.SqlNotificationInfo.Error">
  9270. <summary>An internal server error occurred.</summary>
  9271. </member>
  9272. <member name="F:Microsoft.Data.SqlClient.SqlNotificationInfo.Query">
  9273. <summary>A SELECT statement that cannot be notified or was provided.</summary>
  9274. </member>
  9275. <member name="F:Microsoft.Data.SqlClient.SqlNotificationInfo.Invalid">
  9276. <summary>A statement was provided that cannot be notified (for example, an UPDATE statement).</summary>
  9277. </member>
  9278. <member name="F:Microsoft.Data.SqlClient.SqlNotificationInfo.Options">
  9279. <summary>The SET options were not set appropriately at subscription time.</summary>
  9280. </member>
  9281. <member name="F:Microsoft.Data.SqlClient.SqlNotificationInfo.Isolation">
  9282. <summary>The statement was executed under an isolation mode that was not valid (for example, Snapshot).</summary>
  9283. </member>
  9284. <member name="F:Microsoft.Data.SqlClient.SqlNotificationInfo.Expired">
  9285. <summary>The <see langword="SqlDependency" /> object has expired.</summary>
  9286. </member>
  9287. <member name="F:Microsoft.Data.SqlClient.SqlNotificationInfo.Resource">
  9288. <summary>Fires as a result of server resource pressure.</summary>
  9289. </member>
  9290. <member name="F:Microsoft.Data.SqlClient.SqlNotificationInfo.PreviousFire">
  9291. <summary>A previous statement has caused query notifications to fire under the current transaction.</summary>
  9292. </member>
  9293. <member name="F:Microsoft.Data.SqlClient.SqlNotificationInfo.TemplateLimit">
  9294. <summary>The subscribing query causes the number of templates on one of the target tables to exceed the maximum allowable limit.</summary>
  9295. </member>
  9296. <member name="F:Microsoft.Data.SqlClient.SqlNotificationInfo.Merge">
  9297. <summary>Used to distinguish the server-side cause for a query notification firing.</summary>
  9298. </member>
  9299. <member name="F:Microsoft.Data.SqlClient.SqlNotificationInfo.Unknown">
  9300. <summary>Used when the info option sent by the server was not recognized by the client.</summary>
  9301. </member>
  9302. <member name="F:Microsoft.Data.SqlClient.SqlNotificationInfo.AlreadyChanged">
  9303. <summary>The <see langword="SqlDependency" /> object already fired, and new commands cannot be added to it.</summary>
  9304. </member>
  9305. <member name="T:Microsoft.Data.SqlClient.SqlNotificationSource">
  9306. <summary>Indicates the source of the notification received by the dependency event handler.</summary><remarks>
  9307. <format type="text/markdown"><![CDATA[
  9308. ## Remarks
  9309. The `SqlNotificationSource` enumeration is referenced by an instance of the <xref:Microsoft.Data.SqlClient.SqlNotificationEventArgs> class.
  9310. Query notifications are supported only for SELECT statements that meet a list of specific requirements. For more information, see [SQL Server Service Broker](/sql/database-engine/configure-windows/sql-server-service-broker) and [Working with Query Notifications](/sql/connect/oledb/features/working-with-query-notifications).
  9311. ]]></format>
  9312. </remarks>
  9313. </member>
  9314. <member name="F:Microsoft.Data.SqlClient.SqlNotificationSource.Data">
  9315. <summary>Data has changed; for example, an insert, update, delete, or truncate operation occurred.</summary>
  9316. </member>
  9317. <member name="F:Microsoft.Data.SqlClient.SqlNotificationSource.Timeout">
  9318. <summary>The subscription time-out expired.</summary>
  9319. </member>
  9320. <member name="F:Microsoft.Data.SqlClient.SqlNotificationSource.Object">
  9321. <summary>A database object changed; for example, an underlying object related to the query was dropped or modified.</summary>
  9322. </member>
  9323. <member name="F:Microsoft.Data.SqlClient.SqlNotificationSource.Database">
  9324. <summary>The database state changed; for example, the database related to the query was dropped or detached.</summary>
  9325. </member>
  9326. <member name="F:Microsoft.Data.SqlClient.SqlNotificationSource.System">
  9327. <summary>A system-related event occurred. For example, there was an internal error, the server was restarted, or resource pressure caused the invalidation.</summary>
  9328. </member>
  9329. <member name="F:Microsoft.Data.SqlClient.SqlNotificationSource.Statement">
  9330. <summary>The Transact-SQL statement is not valid for notifications; for example, a SELECT statement that could not be notified or a non-SELECT statement was executed.</summary>
  9331. </member>
  9332. <member name="F:Microsoft.Data.SqlClient.SqlNotificationSource.Environment">
  9333. <summary>The run-time environment was not compatible with notifications; for example, the isolation level was set to snapshot, or one or more SET options are not compatible.</summary>
  9334. </member>
  9335. <member name="F:Microsoft.Data.SqlClient.SqlNotificationSource.Execution">
  9336. <summary>A run-time error occurred during execution.</summary>
  9337. </member>
  9338. <member name="F:Microsoft.Data.SqlClient.SqlNotificationSource.Owner">
  9339. <summary>Internal only; not intended to be used in your code.</summary>
  9340. </member>
  9341. <member name="F:Microsoft.Data.SqlClient.SqlNotificationSource.Unknown">
  9342. <summary>Used when the source option sent by the server was not recognized by the client.</summary>
  9343. </member>
  9344. <member name="F:Microsoft.Data.SqlClient.SqlNotificationSource.Client">
  9345. <summary>A client-initiated notification occurred, such as a client-side time-out or as a result of attempting to add a command to a dependency that has already fired.</summary>
  9346. </member>
  9347. <member name="T:Microsoft.Data.SqlClient.SqlNotificationType">
  9348. <summary>Describes the different notification types that can be received by an <see cref="T:Microsoft.Data.SqlClient.OnChangeEventHandler" /> event handler through the <see cref="T:Microsoft.Data.SqlClient.SqlNotificationEventArgs" /> parameter.</summary><remarks>
  9349. <format type="text/markdown"><![CDATA[
  9350. ## Remarks
  9351. The <xref:Microsoft.Data.SqlClient.SqlNotificationType> enumeration is referenced by an instance of the <xref:Microsoft.Data.SqlClient.SqlNotificationEventArgs> class. This information is provided when a notification event is fired with the <xref:Microsoft.Data.SqlClient.SqlDependency> class.
  9352. ]]></format>
  9353. </remarks>
  9354. </member>
  9355. <member name="F:Microsoft.Data.SqlClient.SqlNotificationType.Change">
  9356. <summary>Data on the server being monitored changed. Use the <see cref="T:Microsoft.Data.SqlClient.SqlNotificationInfo" /> item to determine the details of the change.</summary>
  9357. </member>
  9358. <member name="F:Microsoft.Data.SqlClient.SqlNotificationType.Subscribe">
  9359. <summary>There was a failure to create a notification subscription. Use the <see cref="T:Microsoft.Data.SqlClient.SqlNotificationEventArgs" /> object's <see cref="T:Microsoft.Data.SqlClient.SqlNotificationInfo" /> item to determine the cause of the failure.</summary>
  9360. </member>
  9361. <member name="F:Microsoft.Data.SqlClient.SqlNotificationType.Unknown">
  9362. <summary>Used when the type option sent by the server was not recognized by the client.</summary>
  9363. </member>
  9364. <member name="T:Microsoft.Data.SqlClient.OnChangeEventHandler">
  9365. <OnChangeEventHandler>
  9366. <param name="sender">The source of the event.</param>
  9367. <param name="e">A <see cref="T:Microsoft.Data.SqlClient.SqlNotificationEventArgs" /> object that contains the event data.</param>
  9368. <summary>Handles the <see cref="E:Microsoft.Data.SqlClient.SqlDependency.OnChange" /> event that is fired when a notification is received for any of the commands associated with a <see cref="T:Microsoft.Data.SqlClient.SqlDependency" /> object.</summary>
  9369. <remarks>
  9370. <format type="text/markdown"><![CDATA[
  9371. ## Remarks
  9372. The <xref:Microsoft.Data.SqlClient.SqlDependency.OnChange> event does not necessarily imply a change in the data. Other circumstances, such as time-out expired and failure to set the notification request, also generate <xref:Microsoft.Data.SqlClient.SqlDependency.OnChange>.
  9373. ]]></format>
  9374. </remarks>
  9375. </OnChangeEventHandler>
  9376. </member>
  9377. <member name="T:Microsoft.Data.SqlClient.SqlParameter">
  9378. <summary>Represents a parameter to a <see cref="T:Microsoft.Data.SqlClient.SqlCommand" /> and optionally its mapping to <see cref="T:System.Data.DataSet" /> columns. This class cannot be inherited. For more information on parameters, see [Configuring Parameters and Parameter Data Types](~/docs/framework/data/adonet/configuring-parameters-and-parameter-data-types.md).</summary><remarks>
  9379. <format type="text/markdown"><![CDATA[
  9380. ## Remarks
  9381. Parameter names are not case sensitive.
  9382. > [!NOTE]
  9383. > Nameless, also called ordinal, parameters are not supported by the .NET Framework Data Provider for SQL Server.
  9384. For more information, along with additional sample code demonstrating how to use parameters, see [Commands and Parameters](~/docs/framework/data/adonet/commands-and-parameters.md).
  9385. ## Examples
  9386. The following example creates multiple instances of <xref:Microsoft.Data.SqlClient.SqlParameter> through the <xref:Microsoft.Data.SqlClient.SqlParameterCollection> collection within the <xref:Microsoft.Data.SqlClient.SqlDataAdapter>. These parameters are used to select data from the data source and put the data in the <xref:System.Data.DataSet>. This example assumes that a <xref:System.Data.DataSet> and a <xref:Microsoft.Data.SqlClient.SqlDataAdapter> have already been created by using the appropriate schema, commands, and connection. For more information and additional examples on using parameters, see [Retrieving and Modifying Data in ADO.NET](~/docs/framework/data/adonet/retrieving-and-modifying-data.md) and [Configuring Parameters and Parameter Data Types](~/docs/framework/data/adonet/configuring-parameters-and-parameter-data-types.md).
  9387. [!code-csharp[SqlParameterCollection_Add6](~/../sqlclient/doc/samples/SqlParameterCollection_Add6.cs#1)]
  9388. ]]></format>
  9389. </remarks><altmember cref="T:Microsoft.Data.SqlClient.SqlParameterCollection" /><altmember cref="T:Microsoft.Data.SqlClient.SqlCommand" />
  9390. </member>
  9391. <member name="P:Microsoft.Data.SqlClient.SqlParameter.CipherMetadata">
  9392. <summary>
  9393. Get or set the encryption related metadata of this SqlParameter.
  9394. Should be set to a non-null value only once.
  9395. </summary>
  9396. </member>
  9397. <member name="P:Microsoft.Data.SqlClient.SqlParameter.HasReceivedMetadata">
  9398. <summary>
  9399. Indicates if the parameter encryption metadata received by sp_describe_parameter_encryption.
  9400. For unencrypted parameters, the encryption metadata should still be sent (and will indicate
  9401. that no encryption is needed).
  9402. </summary>
  9403. </member>
  9404. <member name="P:Microsoft.Data.SqlClient.SqlParameter.NormalizationRuleVersion">
  9405. <summary>
  9406. Returns the normalization rule version number as a byte
  9407. </summary>
  9408. </member>
  9409. <member name="M:Microsoft.Data.SqlClient.SqlParameter.#ctor">
  9410. <summary>Initializes a new instance of the <see cref="T:Microsoft.Data.SqlClient.SqlParameter" /> class.</summary><remarks>
  9411. <format type="text/markdown"><![CDATA[
  9412. ## Examples
  9413. The following example creates a <xref:Microsoft.Data.SqlClient.SqlParameter> and sets some of its properties.
  9414. [!code-csharp[SqlParameter_SqlParameter Example#1](~/../sqlclient/doc/samples/SqlParameter_SqlParameter.cs#1)]
  9415. ]]></format>
  9416. </remarks>
  9417. </member>
  9418. <member name="M:Microsoft.Data.SqlClient.SqlParameter.#ctor(System.String,System.Data.SqlDbType)">
  9419. <param name="parameterName">The name of the parameter to map.</param><param name="dbType">One of the <see cref="T:System.Data.SqlDbType" /> values.</param><summary>Initializes a new instance of the <see cref="T:Microsoft.Data.SqlClient.SqlParameter" /> class that uses the parameter name and the data type.</summary><remarks>
  9420. <format type="text/markdown"><![CDATA[
  9421. ## Remarks
  9422. The data type and, if appropriate, **Size** and <xref:Microsoft.Data.SqlClient.SqlParameter.Precision%2A> are inferred from the value of the `dbType` parameter.
  9423. ## Examples
  9424. The following example creates a <xref:Microsoft.Data.SqlClient.SqlParameter> and sets some of its properties.
  9425. [!code-csharp[SqlParameter_SqlParameter2 Example#1](~/../sqlclient/doc/samples/SqlParameter_SqlParameter2.cs#1)]
  9426. ]]></format>
  9427. </remarks><exception cref="T:System.ArgumentException">The value supplied in the <paramref name="dbType" /> parameter is an invalid back-end data type.</exception>
  9428. </member>
  9429. <member name="M:Microsoft.Data.SqlClient.SqlParameter.#ctor(System.String,System.Object)">
  9430. <param name="parameterName">The name of the parameter to map.</param><param name="value">An <see cref="T:System.Object" /> that is the value of the <see cref="T:Microsoft.Data.SqlClient.SqlParameter" />.</param><summary>Initializes a new instance of the <see cref="T:Microsoft.Data.SqlClient.SqlParameter" /> class that uses the parameter name and a value of the new <see cref="T:Microsoft.Data.SqlClient.SqlParameter" />.</summary><remarks>
  9431. <format type="text/markdown"><![CDATA[
  9432. ## Remarks
  9433. When you specify an <xref:System.Object> in the `value` parameter, the <xref:Microsoft.Data.SqlClient.SqlParameter.SqlDbType%2A> is inferred from the Microsoft .NET Framework type of the <xref:System.Object>.
  9434. Use caution when you use this overload of the <xref:Microsoft.Data.SqlClient.SqlParameter> constructor to specify integer parameter values. Because this overload takes a `value` of type <xref:System.Object>, you must convert the integral value to an <xref:System.Object> type when the value is zero, as the following C# example demonstrates.
  9435. ```csharp
  9436. Parameter = new SqlParameter("@pname", (object)0);
  9437. ```
  9438. If you do not perform this conversion, the compiler assumes that you are trying to call the <xref:Microsoft.Data.SqlClient.SqlParameter.%23ctor(System.String,System.Data.SqlDbType)> constructor overload.
  9439. ## Examples
  9440. The following example creates a <xref:Microsoft.Data.SqlClient.SqlParameter> and sets some of its properties.
  9441. [!code-csharp[SqlParameter_SqlParameter6 Example#1](~/../sqlclient/doc/samples/SqlParameter_SqlParameter6.cs#1)]
  9442. ]]></format>
  9443. </remarks>
  9444. </member>
  9445. <member name="M:Microsoft.Data.SqlClient.SqlParameter.#ctor(System.String,System.Data.SqlDbType,System.Int32)">
  9446. <param name="parameterName">The name of the parameter to map.</param><param name="dbType">One of the <see cref="T:System.Data.SqlDbType" /> values.</param><param name="size">The length of the parameter.</param><summary>Initializes a new instance of the <see cref="T:Microsoft.Data.SqlClient.SqlParameter" /> class that uses the parameter name, the <see cref="T:System.Data.SqlDbType" />, and the size.</summary><remarks>
  9447. <format type="text/markdown"><![CDATA[
  9448. ## Remarks
  9449. The **Size** is inferred from the value of the `dbType` parameter if it is not explicitly set in the `size` parameter.
  9450. ## Examples
  9451. The following example creates a <xref:Microsoft.Data.SqlClient.SqlParameter> and sets some of its properties.
  9452. [!code-csharp[SqlParameter_SqlParameter4 Example#1](~/../sqlclient/doc/samples/SqlParameter_SqlParameter4.cs#1)]
  9453. ]]></format>
  9454. </remarks><exception cref="T:System.ArgumentException">The value supplied in the <paramref name="dbType" /> parameter is an invalid back-end data type.</exception>
  9455. </member>
  9456. <member name="M:Microsoft.Data.SqlClient.SqlParameter.#ctor(System.String,System.Data.SqlDbType,System.Int32,System.String)">
  9457. <param name="parameterName">The name of the parameter to map.</param><param name="dbType">One of the <see cref="T:System.Data.SqlDbType" /> values.</param><param name="size">The length of the parameter.</param><param name="sourceColumn">The name of the source column (<see cref="P:Microsoft.Data.SqlClient.SqlParameter.SourceColumn" />) if this <see cref="T:Microsoft.Data.SqlClient.SqlParameter" /> is used in a call to <see cref="o:System.Data.Common.DbDataAdapter.Update" />.</param><summary>Initializes a new instance of the <see cref="T:Microsoft.Data.SqlClient.SqlParameter" /> class that uses the parameter name, the <see cref="T:System.Data.SqlDbType" />, the size, and the source column name.</summary><remarks>
  9458. <format type="text/markdown"><![CDATA[
  9459. ## Remarks
  9460. The **Size** is inferred from the value of the `dbType` parameter if it is not explicitly set in the `size` parameter.
  9461. ## Examples
  9462. The following example creates a <xref:Microsoft.Data.SqlClient.SqlParameter> and sets some of its properties.
  9463. [!code-csharp[SqlParameter_SqlParameter5 Example#1](~/../sqlclient/doc/samples/SqlParameter_SqlParameter5.cs#1)]
  9464. ]]></format>
  9465. </remarks><exception cref="T:System.ArgumentException">The value supplied in the <paramref name="dbType" /> parameter is an invalid back-end data type.</exception>
  9466. </member>
  9467. <member name="M:Microsoft.Data.SqlClient.SqlParameter.#ctor(System.String,System.Data.SqlDbType,System.Int32,System.Data.ParameterDirection,System.Boolean,System.Byte,System.Byte,System.String,System.Data.DataRowVersion,System.Object)">
  9468. <param name="parameterName">The name of the parameter to map.</param><param name="dbType">One of the <see cref="T:System.Data.SqlDbType" /> values.</param><param name="size">The length of the parameter.</param><param name="direction">One of the <see cref="T:System.Data.ParameterDirection" /> values.</param><param name="isNullable">
  9469. <see langword="true" /> if the value of the field can be null; otherwise, <see langword="false" />.</param><param name="precision">The total number of digits to the left and right of the decimal point to which <see cref="P:Microsoft.Data.SqlClient.SqlParameter.Value" /> is resolved.</param><param name="scale">The total number of decimal places to which <see cref="P:Microsoft.Data.SqlClient.SqlParameter.Value" /> is resolved.</param><param name="sourceColumn">The name of the source column (<see cref="P:Microsoft.Data.SqlClient.SqlParameter.SourceColumn" />) if this <see cref="T:Microsoft.Data.SqlClient.SqlParameter" /> is used in a call to <see cref="o:System.Data.Common.DbDataAdapter.Update" />.</param><param name="sourceVersion">One of the <see cref="T:System.Data.DataRowVersion" /> values.</param><param name="value">An <see cref="T:System.Object" /> that is the value of the <see cref="T:Microsoft.Data.SqlClient.SqlParameter" />.</param><summary>Initializes a new instance of the <see cref="T:Microsoft.Data.SqlClient.SqlParameter" /> class that uses the parameter name, the type of the parameter, the size of the parameter, a <see cref="T:System.Data.ParameterDirection" />, the precision of the parameter, the scale of the parameter, the source column, a <see cref="T:System.Data.DataRowVersion" /> to use, and the value of the parameter.</summary><remarks>
  9470. <format type="text/markdown"><![CDATA[
  9471. ## Remarks
  9472. The **Size** and <xref:Microsoft.Data.SqlClient.SqlParameter.Precision%2A> are inferred from the value of the `dbType` parameter if they are not explicitly set in the `size` and `precision` parameters.
  9473. ## Examples
  9474. The following example creates a <xref:Microsoft.Data.SqlClient.SqlParameter> and sets some of its properties.
  9475. [!code-csharp[SqlParameter_SqlParameter1 Example#1](~/../sqlclient/doc/samples/SqlParameter_SqlParameter1.cs#1)]
  9476. ]]></format>
  9477. </remarks><exception cref="T:System.ArgumentException">The value supplied in the <paramref name="dbType" /> parameter is an invalid back-end data type.</exception>
  9478. </member>
  9479. <member name="M:Microsoft.Data.SqlClient.SqlParameter.#ctor(System.String,System.Data.SqlDbType,System.Int32,System.Data.ParameterDirection,System.Byte,System.Byte,System.String,System.Data.DataRowVersion,System.Boolean,System.Object,System.String,System.String,System.String)">
  9480. <param name="parameterName">The name of the parameter to map.</param><param name="dbType">One of the <see cref="T:System.Data.SqlDbType" /> values.</param><param name="size">The length of the parameter.</param><param name="direction">One of the <see cref="T:System.Data.ParameterDirection" /> values.</param><param name="precision">The total number of digits to the left and right of the decimal point to which <see cref="P:Microsoft.Data.SqlClient.SqlParameter.Value" /> is resolved.</param><param name="scale">The total number of decimal places to which <see cref="P:Microsoft.Data.SqlClient.SqlParameter.Value" /> is resolved.</param><param name="sourceColumn">The name of the source column (<see cref="P:Microsoft.Data.SqlClient.SqlParameter.SourceColumn" />) if this <see cref="T:Microsoft.Data.SqlClient.SqlParameter" /> is used in a call to <see cref="o:System.Data.Common.DbDataAdapter.Update" />.</param><param name="sourceVersion">One of the <see cref="T:System.Data.DataRowVersion" /> values.</param><param name="sourceColumnNullMapping">
  9481. <see langword="true" /> if the source column is nullable; <see langword="false" /> if it is not.</param><param name="value">An <see cref="T:System.Object" /> that is the value of the <see cref="T:Microsoft.Data.SqlClient.SqlParameter" />.</param><param name="xmlSchemaCollectionDatabase">The name of the database where the schema collection for this XML instance is located.</param><param name="xmlSchemaCollectionOwningSchema">The owning relational schema where the schema collection for this XML instance is located.</param><param name="xmlSchemaCollectionName">The name of the schema collection for this parameter.</param><summary>Initializes a new instance of the <see cref="T:Microsoft.Data.SqlClient.SqlParameter" /> class that uses the parameter name, the type of the parameter, the length of the parameter the direction, the precision, the scale, the name of the source column, one of the <see cref="T:System.Data.DataRowVersion" /> values, a Boolean for source column mapping, the value of the <see langword="SqlParameter" />, the name of the database where the schema collection for this XML instance is located, the owning relational schema where the schema collection for this XML instance is located, and the name of the schema collection for this parameter.</summary><remarks>
  9482. <format type="text/markdown"><![CDATA[
  9483. ## Remarks
  9484. The <xref:Microsoft.Data.SqlClient.SqlParameter.Size%2A> and <xref:Microsoft.Data.SqlClient.SqlParameter.Precision%2A> are inferred from the value of the `dbType` parameter if they are not explicitly set in the `size` and `precision` parameters.
  9485. ]]></format>
  9486. </remarks>
  9487. </member>
  9488. <member name="P:Microsoft.Data.SqlClient.SqlParameter.CompareInfo">
  9489. <summary>Gets or sets the <see cref="T:System.Globalization.CompareInfo" /> object that defines how string comparisons should be performed for this parameter.</summary><value>A <see cref="T:System.Globalization.CompareInfo" /> object that defines string comparison for this parameter.</value><remarks>To be added.</remarks>
  9490. </member>
  9491. <member name="P:Microsoft.Data.SqlClient.SqlParameter.XmlSchemaCollectionDatabase">
  9492. <summary>Gets the name of the database where the schema collection for this XML instance is located.</summary><value>The name of the database where the schema collection for this XML instance is located.</value><remarks>
  9493. <format type="text/markdown"><![CDATA[
  9494. ## Remarks
  9495. This value is null (`Nothing` in Microsoft Visual Basic) if the collection is defined within the current database. It is also null if there is no schema collection, in which case <xref:Microsoft.Data.SqlClient.SqlParameter.XmlSchemaCollectionName%2A> and <xref:Microsoft.Data.SqlClient.SqlParameter.XmlSchemaCollectionOwningSchema%2A> are also null.
  9496. ]]></format>
  9497. </remarks>
  9498. </member>
  9499. <member name="P:Microsoft.Data.SqlClient.SqlParameter.XmlSchemaCollectionOwningSchema">
  9500. <summary>The owning relational schema where the schema collection for this XML instance is located.</summary><value>The owning relational schema for this XML instance.</value><remarks>
  9501. <format type="text/markdown"><![CDATA[
  9502. ## Remarks
  9503. This value is null (`Nothing` in Microsoft Visual Basic) if the collection is defined within the current database. It is also null if there is no schema collection, in which case <xref:Microsoft.Data.SqlClient.SqlParameter.XmlSchemaCollectionDatabase%2A> and <xref:Microsoft.Data.SqlClient.SqlParameter.XmlSchemaCollectionName%2A> are also null.
  9504. ]]></format>
  9505. </remarks>
  9506. </member>
  9507. <member name="P:Microsoft.Data.SqlClient.SqlParameter.XmlSchemaCollectionName">
  9508. <summary>Gets the name of the schema collection for this XML instance.</summary><value>The name of the schema collection for this XML instance.</value><remarks>
  9509. <format type="text/markdown"><![CDATA[
  9510. ## Remarks
  9511. This value is null (`Nothing` in Microsoft Visual Basic) if there is no associated schema collection. If the value is null, then <xref:Microsoft.Data.SqlClient.SqlParameter.XmlSchemaCollectionDatabase%2A> and <xref:Microsoft.Data.SqlClient.SqlParameter.XmlSchemaCollectionOwningSchema%2A> are also null.
  9512. ]]></format>
  9513. </remarks>
  9514. </member>
  9515. <member name="P:Microsoft.Data.SqlClient.SqlParameter.ForceColumnEncryption">
  9516. <summary>Enforces encryption of a parameter when using <see href="https://docs.microsoft.com/sql/relational-databases/security/encryption/always-encrypted-database-engine">Always Encrypted</see>. If SQL Server informs the driver that the parameter does not need to be encrypted, the query using the parameter will fail. This property provides additional protection against security attacks that involve a compromised SQL Server providing incorrect encryption metadata to the client, which may lead to data disclosure.</summary><value>
  9517. <see langword="true" /> if the parameter has a force column encryption; otherwise, <see langword="false" />.</value><remarks>To be added.</remarks>
  9518. </member>
  9519. <member name="P:Microsoft.Data.SqlClient.SqlParameter.DbType">
  9520. <summary>Gets or sets the <see cref="T:System.Data.SqlDbType" /> of the parameter.</summary><value>One of the <see cref="T:System.Data.SqlDbType" /> values. The default is <see langword="NVarChar" />.</value><remarks>
  9521. <format type="text/markdown"><![CDATA[
  9522. ## Remarks
  9523. The <xref:Microsoft.Data.SqlClient.SqlParameter.SqlDbType%2A> and <xref:Microsoft.Data.SqlClient.SqlParameter.DbType%2A> are linked. Therefore, setting the <xref:Microsoft.Data.SqlClient.SqlParameter.DbType%2A> changes the <xref:Microsoft.Data.SqlClient.SqlParameter.SqlDbType%2A> to a supporting <xref:System.Data.SqlDbType>.
  9524. For a list of the supported data types, see the appropriate <xref:System.Data.SqlDbType> member. For more information, see [DataAdapter Parameters](~/docs/framework/data/adonet/dataadapter-parameters.md).
  9525. ## Examples
  9526. The following example creates a <xref:Microsoft.Data.SqlClient.SqlParameter> and sets some of its properties.
  9527. [!code-csharp[SqlParameter_IsNullable Example#1](~/../sqlclient/doc/samples/SqlParameter_IsNullable.cs#1)]
  9528. ]]></format>
  9529. </remarks>
  9530. </member>
  9531. <member name="M:Microsoft.Data.SqlClient.SqlParameter.ResetDbType">
  9532. <summary>Resets the type associated with this <see cref="T:Microsoft.Data.SqlClient.SqlParameter" />.</summary><remarks>
  9533. <format type="text/markdown"><![CDATA[
  9534. ## Remarks
  9535. When executing a command that includes parameter values, code can either set the type of a parameter explicitly, or the parameter can infer its type from its value. Calling this method resets the parameter so that it can again infer its type from the value passed in the parameter. Calling this method affects both the <xref:Microsoft.Data.SqlClient.SqlParameter.DbType%2A> and <xref:Microsoft.Data.SqlClient.SqlParameter.SqlDbType%2A> properties of the <xref:Microsoft.Data.SqlClient.SqlParameter>.
  9536. ]]></format>
  9537. </remarks>
  9538. </member>
  9539. <member name="P:Microsoft.Data.SqlClient.SqlParameter.LocaleId">
  9540. <summary>Gets or sets the locale identifier that determines conventions and language for a particular region.</summary><value>The locale identifier associated with the parameter.</value><remarks>
  9541. <format type="text/markdown"><![CDATA[
  9542. ## Remarks
  9543. The locale identifies conventions and language for a particular geographical region. The codepage used to encode a specific string (the character set) is based on the locale used by that string or the environment that produced it. This property sets (for input parameters) or gets (for output parameters) the locale to be attached to a string when exchanging data with the server. This property is typically used together with the <xref:Microsoft.Data.SqlClient.SqlParameter.CompareInfo%2A> property.
  9544. ```csharp
  9545. static void CreateSqlParameterLocaleId(){
  9546. SqlParameter parameter = new SqlParameter("pName", SqlDbType.VarChar);
  9547. parameter.LocaleId = 1033; // English - United States
  9548. }
  9549. ```
  9550. ]]></format>
  9551. </remarks>
  9552. </member>
  9553. <member name="M:Microsoft.Data.SqlClient.SqlParameter.GetMetadataForTypeInfo">
  9554. <summary>
  9555. Get SMI Metadata to write out type_info stream.
  9556. </summary>
  9557. <returns></returns>
  9558. </member>
  9559. <member name="P:Microsoft.Data.SqlClient.SqlParameter.ParameterName">
  9560. <summary>Gets or sets the name of the <see cref="T:Microsoft.Data.SqlClient.SqlParameter" />.</summary><value>The name of the <see cref="T:Microsoft.Data.SqlClient.SqlParameter" />. The default is an empty string.</value><remarks>
  9561. <format type="text/markdown"><![CDATA[
  9562. ## Remarks
  9563. The <xref:Microsoft.Data.SqlClient.SqlParameter.ParameterName%2A> is specified in the form @paramname. You must set <xref:Microsoft.Data.SqlClient.SqlParameter.ParameterName%2A> before executing a <xref:Microsoft.Data.SqlClient.SqlCommand> that relies on parameters.
  9564. ## Examples
  9565. The following example creates a <xref:Microsoft.Data.SqlClient.SqlParameter> and sets some of its properties.
  9566. [!code-csharp[SqlParameter_ParameterName Example#1](~/../sqlclient/doc/samples/SqlParameter_ParameterName.cs#1)]
  9567. ]]></format>
  9568. </remarks>
  9569. </member>
  9570. <member name="P:Microsoft.Data.SqlClient.SqlParameter.Precision">
  9571. <summary>Gets or sets the maximum number of digits used to represent the <see cref="P:Microsoft.Data.SqlClient.SqlParameter.Value" /> property.</summary><value>The maximum number of digits used to represent the <see cref="P:Microsoft.Data.SqlClient.SqlParameter.Value" /> property. The default value is 0. This indicates that the data provider sets the precision for <see cref="P:Microsoft.Data.SqlClient.SqlParameter.Value" />.</value><remarks>
  9572. <format type="text/markdown"><![CDATA[
  9573. ## Remarks
  9574. The <xref:Microsoft.Data.SqlClient.SqlParameter.Precision%2A> property is used by parameters that have a <xref:System.Data.SqlDbType> of `Decimal`.
  9575. You do not need to specify values for the <xref:Microsoft.Data.SqlClient.SqlParameter.Precision%2A> and <xref:Microsoft.Data.SqlClient.SqlParameter.Scale%2A> properties for input parameters, as they can be inferred from the parameter value. `Precision` and `Scale` are required for output parameters and for scenarios where you need to specify complete metadata for a parameter without indicating a value, such as specifying a null value with a specific precision and scale.
  9576. > [!NOTE]
  9577. > Use of this property to coerce data passed to the database is not supported. To round, truncate, or otherwise coerce data before passing it to the database, use the <xref:System.Math> class that is part of the `System` namespace prior to assigning a value to the parameter's `Value` property.
  9578. > [!NOTE]
  9579. > Microsoft .NET Framework data providers that are included with the .NET Framework version 1.0 do not verify the <xref:Microsoft.Data.SqlClient.SqlParameter.Precision%2A> or <xref:Microsoft.Data.SqlClient.SqlParameter.Scale%2A> of <xref:System.Decimal> parameter values. This can cause truncated data being inserted at the data source. If you are using .NET Framework version 1.0, validate the <xref:Microsoft.Data.SqlClient.SqlParameter.Precision%2A> and <xref:Microsoft.Data.SqlClient.SqlParameter.Scale%2A> of <xref:System.Decimal> values before setting the parameter value. When you use .NET Framework version 1.1 or a later version, an exception is thrown if a <xref:System.Decimal> parameter value is set with an invalid <xref:Microsoft.Data.SqlClient.SqlParameter.Precision%2A>. <xref:Microsoft.Data.SqlClient.SqlParameter.Scale%2A> values that exceed the <xref:System.Decimal> parameter scale are still truncated.
  9580. ## Examples
  9581. The following example creates a <xref:Microsoft.Data.SqlClient.SqlParameter> and sets some of its properties.
  9582. [!code-csharp[SqlParameter_Precision Example#1](~/../sqlclient/doc/samples/SqlParameter_Precision.cs#1)]
  9583. ]]></format>
  9584. </remarks>
  9585. </member>
  9586. <member name="P:Microsoft.Data.SqlClient.SqlParameter.Scale">
  9587. <summary>Gets or sets the number of decimal places to which <see cref="P:Microsoft.Data.SqlClient.SqlParameter.Value" /> is resolved.</summary><value>The number of decimal places to which <see cref="P:Microsoft.Data.SqlClient.SqlParameter.Value" /> is resolved. The default is 0.</value><remarks>
  9588. <format type="text/markdown"><![CDATA[
  9589. ## Remarks
  9590. The <xref:Microsoft.Data.SqlClient.SqlParameter.Scale%2A> property is used by parameters that have a <xref:System.Data.SqlDbType> of `Decimal`.
  9591. > [!WARNING]
  9592. > Data may be truncated if the <xref:Microsoft.Data.SqlClient.SqlParameter.Scale%2A> property is not explicitly specified and the data on the server does not fit in scale 0 (the default).
  9593. You do not need to specify values for the <xref:Microsoft.Data.SqlClient.SqlParameter.Precision%2A> and <xref:Microsoft.Data.SqlClient.SqlParameter.Scale%2A> properties for input parameters, as they can be inferred from the parameter value. `Precision` and `Scale` are required for output parameters and for scenarios where you need to specify complete metadata for a parameter without indicating a value, such as specifying a null value with a specific precision and scale.
  9594. > [!NOTE]
  9595. > Use of this property to coerce data passed to the database is not supported. To round, truncate, or otherwise coerce data before passing it to the database, use the <xref:System.Math> class that is part of the `System` namespace prior to assigning a value to the parameter's `Value` property.
  9596. > [!NOTE]
  9597. > .NET Framework data providers that are included with the .NET Framework version 1.0 do not verify the <xref:Microsoft.Data.SqlClient.SqlParameter.Precision%2A> or <xref:Microsoft.Data.SqlClient.SqlParameter.Scale%2A> of <xref:System.Decimal> parameter values. This can cause truncated data to be inserted at the data source. If you are using .NET Framework version 1.0, validate the <xref:Microsoft.Data.SqlClient.SqlParameter.Precision%2A> and <xref:Microsoft.Data.SqlClient.SqlParameter> of <xref:System.Decimal> values before setting the parameter value. <xref:Microsoft.Data.SqlClient.SqlParameter.Scale%2A> values that exceed the <xref:System.Decimal> parameter scale are still truncated.
  9598. ## Examples
  9599. The following example creates a <xref:Microsoft.Data.SqlClient.SqlParameter> and sets some of its properties.
  9600. [!code-csharp[SqlParameter#4](~/../sqlclient/doc/samples/SqlParameter.cs#4)]
  9601. ]]></format>
  9602. </remarks>
  9603. </member>
  9604. <member name="P:Microsoft.Data.SqlClient.SqlParameter.SqlDbType">
  9605. <summary>Gets or sets the <see cref="T:System.Data.SqlDbType" /> of the parameter.</summary><value>One of the <see cref="T:System.Data.SqlDbType" /> values. The default is <see langword="NVarChar" />.</value><remarks>
  9606. <format type="text/markdown"><![CDATA[
  9607. ## Remarks
  9608. The <xref:Microsoft.Data.SqlClient.SqlParameter.SqlDbType%2A> and <xref:Microsoft.Data.SqlClient.SqlParameter.DbType%2A> are linked. Therefore, setting the <xref:Microsoft.Data.SqlClient.SqlParameter.DbType%2A> changes the <xref:Microsoft.Data.SqlClient.SqlParameter.SqlDbType%2A> to a supporting <xref:System.Data.SqlDbType>.
  9609. For a list of the supported data types, see the appropriate <xref:System.Data.SqlDbType> member. For more information, see [DataAdapter Parameters](~/docs/framework/data/adonet/dataadapter-parameters.md).
  9610. For information about streaming, see [SqlClient Streaming Support](~/docs/framework/data/adonet/sqlclient-streaming-support.md).
  9611. ]]></format>
  9612. </remarks>
  9613. </member>
  9614. <member name="M:Microsoft.Data.SqlClient.SqlParameter.ResetSqlDbType">
  9615. <summary>Resets the type associated with this <see cref="T:Microsoft.Data.SqlClient.SqlParameter" />.</summary><remarks>
  9616. <format type="text/markdown"><![CDATA[
  9617. ## Remarks
  9618. When executing a command that includes parameter values, code can either set the type of a parameter explicitly, or the parameter can infer its type from its value. Calling this method resets the parameter so that it can again infer its type from the value passed in the parameter. Calling this method affects both the <xref:Microsoft.Data.SqlClient.SqlParameter.DbType%2A> and <xref:Microsoft.Data.SqlClient.SqlParameter.SqlDbType%2A> properties of the <xref:Microsoft.Data.SqlClient.SqlParameter>.
  9619. ]]></format>
  9620. </remarks>
  9621. </member>
  9622. <member name="P:Microsoft.Data.SqlClient.SqlParameter.SqlValue">
  9623. <summary>Gets or sets the value of the parameter as an SQL type.</summary><value>An <see cref="T:System.Object" /> that is the value of the parameter, using SQL types. The default value is null.</value><remarks>
  9624. <format type="text/markdown"><![CDATA[
  9625. ## Remarks
  9626. For input parameters, the value is bound to the <xref:Microsoft.Data.SqlClient.SqlCommand> that is sent to the server. For output and return value parameters, the value is set on completion of the <xref:Microsoft.Data.SqlClient.SqlCommand> and after the <xref:Microsoft.Data.SqlClient.SqlDataReader> is closed.
  9627. This property can be set to null or <xref:System.DBNull.Value?displayProperty=nameWithType>. Use <xref:System.DBNull.Value?displayProperty=nameWithType> to send a NULL value as the value of the parameter. Use null or do not set <xref:Microsoft.Data.SqlClient.SqlParameter.SqlValue%2A?displayProperty=nameWithType> to use the default value for the parameter.
  9628. If the application specifies the database type, the bound value is converted to that type when the provider sends the data to the server. The provider tries to convert any type of value if it supports the <xref:System.IConvertible> interface. Conversion errors may result if the specified type is not compatible with the value.
  9629. Both the <xref:Microsoft.Data.SqlClient.SqlParameter.DbType%2A> and <xref:Microsoft.Data.SqlClient.SqlParameter.SqlDbType%2A> properties can be inferred by setting the <xref:Microsoft.Data.SqlClient.SqlParameter.Value%2A?displayProperty=nameWithType>.
  9630. The <xref:Microsoft.Data.SqlClient.SqlParameter.Value%2A?displayProperty=nameWithType> property is overwritten by `SqlDataAdapter.UpdateCommand`.
  9631. Use the <xref:Microsoft.Data.SqlClient.SqlParameter.Value%2A?displayProperty=nameWithType> property to return parameter values as common language runtime (CLR) types.
  9632. For information about streaming, see [SqlClient Streaming Support](~/docs/framework/data/adonet/sqlclient-streaming-support.md).
  9633. ]]></format>
  9634. </remarks>
  9635. </member>
  9636. <member name="P:Microsoft.Data.SqlClient.SqlParameter.UdtTypeName">
  9637. <summary>Gets or sets a <see langword="string" /> that represents a user-defined type as a parameter.</summary><value>A <see langword="string" /> that represents the fully qualified name of a user-defined type in the database.</value><remarks>
  9638. <format type="text/markdown"><![CDATA[
  9639. ## Remarks
  9640. For a sample demonstrating <xref:Microsoft.Data.SqlClient.SqlParameter.UdtTypeName%2A>, see [Retrieving UDT Data](https://msdn.microsoft.com/library/ms131080.aspx).
  9641. ]]></format>
  9642. </remarks>
  9643. </member>
  9644. <member name="P:Microsoft.Data.SqlClient.SqlParameter.TypeName">
  9645. <summary>Gets or sets the type name for a table-valued parameter.</summary><value>The type name of the specified table-valued parameter.</value><remarks>To be added.</remarks>
  9646. </member>
  9647. <member name="P:Microsoft.Data.SqlClient.SqlParameter.Value">
  9648. <summary>Gets or sets the value of the parameter.</summary><value>An <see cref="T:System.Object" /> that is the value of the parameter. The default value is null.</value><remarks>
  9649. <format type="text/markdown"><![CDATA[
  9650. ## Remarks
  9651. For input parameters, the value is bound to the <xref:Microsoft.Data.SqlClient.SqlCommand> that is sent to the server. For output and return value parameters, the value is set on completion of the <xref:Microsoft.Data.SqlClient.SqlCommand> and after the <xref:Microsoft.Data.SqlClient.SqlDataReader> is closed.
  9652. This property can be set to `null` or <xref:System.DBNull.Value?displayProperty=nameWithType>. Use <xref:System.DBNull.Value?displayProperty=nameWithType> to send a NULL value as the value of the parameter. Use `null` or do not set <xref:Microsoft.Data.SqlClient.SqlParameter.Value%2A> to use the default value for the parameter.
  9653. An exception is thrown if non-Unicode XML data is passed as a string.
  9654. If the application specifies the database type, the bound value is converted to that type when the provider sends the data to the server. The provider tries to convert any type of value if it supports the <xref:System.IConvertible> interface. Conversion errors may result if the specified type is not compatible with the value.
  9655. Both the <xref:Microsoft.Data.SqlClient.SqlParameter.DbType%2A> and <xref:Microsoft.Data.SqlClient.SqlParameter.SqlDbType%2A> properties can be inferred by setting the Value.
  9656. The <xref:Microsoft.Data.SqlClient.SqlParameter.Value%2A> property is overwritten by `SqlDataAdapter.UpdateCommand`.
  9657. For information about streaming, see [SqlClient Streaming Support](~/docs/framework/data/adonet/sqlclient-streaming-support.md).
  9658. ## Examples
  9659. The following example creates a <xref:Microsoft.Data.SqlClient.SqlParameter> and sets some of its properties.
  9660. [!code-csharp[SqlParameter#8](~/../sqlclient/doc/samples/SqlParameter.cs#8)]
  9661. ]]></format>
  9662. </remarks>
  9663. </member>
  9664. <member name="M:Microsoft.Data.SqlClient.SqlParameter.System#ICloneable#Clone">
  9665. <summary>For a description of this member, see <see cref="M:System.ICloneable.Clone" />.</summary><returns>A new <see cref="T:System.Object" /> that is a copy of this instance.</returns><remarks>
  9666. <format type="text/markdown"><![CDATA[
  9667. ## Remarks
  9668. This member is an explicit interface member implementation. It can be used only when the <xref:Microsoft.Data.SqlClient.SqlParameter> instance is cast to an <xref:System.ICloneable> interface.
  9669. ]]></format>
  9670. </remarks>
  9671. </member>
  9672. <member name="P:Microsoft.Data.SqlClient.SqlParameter.SourceVersion">
  9673. <summary>Gets or sets the <see cref="T:System.Data.DataRowVersion" /> to use when you load <see cref="P:Microsoft.Data.SqlClient.SqlParameter.Value" /></summary><value>One of the <see cref="T:System.Data.DataRowVersion" /> values. The default is <see langword="Current" />.</value><remarks>
  9674. <format type="text/markdown"><![CDATA[
  9675. ## Remarks
  9676. This property is used by the `SqlDataAdapter.UpdateCommand` during an update to determine whether the original or current value is used for a parameter value. This lets primary keys be updated. This property is set to the version of the <xref:System.Data.DataRow> used by the `DataRow.Item` property, or one of the `DataRow.GetChildRows` methods of the <xref:System.Data.DataRow> object.
  9677. ## Examples
  9678. The following example creates a <xref:Microsoft.Data.SqlClient.SqlParameter> and sets some of its properties.
  9679. [!code-csharp[SqlParameter#7](~/../sqlclient/doc/samples/SqlParameter.cs#7)]
  9680. ]]></format>
  9681. </remarks>
  9682. </member>
  9683. <member name="P:Microsoft.Data.SqlClient.SqlParameter.Direction">
  9684. <summary>Gets or sets a value that indicates whether the parameter is input-only, output-only, bidirectional, or a stored procedure return value parameter.</summary><value>One of the <see cref="T:System.Data.ParameterDirection" /> values. The default is <see langword="Input" />.</value><remarks>
  9685. <format type="text/markdown"><![CDATA[
  9686. ## Remarks
  9687. If the <xref:System.Data.ParameterDirection> is output, and execution of the associated <xref:Microsoft.Data.SqlClient.SqlCommand> does not return a value, the <xref:Microsoft.Data.SqlClient.SqlParameter> contains a null value.
  9688. `Output`, `InputOut`, and `ReturnValue` parameters returned by calling <xref:Microsoft.Data.SqlClient.SqlCommand.ExecuteReader%2A> cannot be accessed until you close the <xref:Microsoft.Data.SqlClient.SqlDataReader>.
  9689. ## Examples
  9690. The following example creates a <xref:Microsoft.Data.SqlClient.SqlParameter> and sets some of its properties.
  9691. [Commands and Parameters](~/docs/framework/data/adonet/commands-and-parameters.md)
  9692. [DataAdapter Parameters](~/docs/framework/data/adonet/dataadapter-parameters.md)
  9693. [SQL Server and ADO.NET](~/docs/framework/data/adonet/sql/index.md)
  9694. ]]></format>
  9695. </remarks><exception cref="T:System.ArgumentException">The property was not set to one of the valid <see cref="T:System.Data.ParameterDirection" /> values.</exception>
  9696. </member>
  9697. <member name="P:Microsoft.Data.SqlClient.SqlParameter.IsNullable">
  9698. <summary>Gets or sets a value that indicates whether the parameter accepts null values. <see cref="P:Microsoft.Data.SqlClient.SqlParameter.IsNullable" /> is not used to validate the parameter's value and will not prevent sending or receiving a null value when executing a command.</summary><value>
  9699. <see langword="true" /> if null values are accepted; otherwise, <see langword="false" />. The default is <see langword="false" />.</value><remarks>
  9700. <format type="text/markdown"><![CDATA[
  9701. ## Remarks
  9702. Null values are handled using the <xref:System.DBNull> class.
  9703. ## Examples
  9704. The following example creates a <xref:Microsoft.Data.SqlClient.SqlParameter> and sets some of its properties.
  9705. [!code-csharp[SqlParameter#2](~/../sqlclient/doc/samples/SqlParameter.cs#2)]
  9706. ]]></format>
  9707. </remarks>
  9708. </member>
  9709. <member name="P:Microsoft.Data.SqlClient.SqlParameter.Offset">
  9710. <summary>Gets or sets the offset to the <see cref="P:Microsoft.Data.SqlClient.SqlParameter.Value" /> property.</summary><value>The offset to the <see cref="P:Microsoft.Data.SqlClient.SqlParameter.Value" />. The default is 0.</value><remarks>
  9711. <format type="text/markdown"><![CDATA[
  9712. ## Remarks
  9713. The `Offset` property is used for client-side chunking of binary and string data. For example, in order to insert 10MB of text into a column on a server, a user might execute 10 parameterized inserts of 1MB chunks, shifting the value of `Offset` on each iteration by 1MB.
  9714. `Offset` specifies the number of bytes for binary types, and the number of characters for strings. The count for strings does not include the terminating character.
  9715. ## Examples
  9716. The following example creates a <xref:Microsoft.Data.SqlClient.SqlParameter> and sets some of its properties.
  9717. [!code-csharp[SqlParameter#3](~/../sqlclient/doc/samples/SqlParameter.cs#3)]
  9718. ]]></format>
  9719. </remarks>
  9720. </member>
  9721. <member name="P:Microsoft.Data.SqlClient.SqlParameter.Size">
  9722. <summary>Gets or sets the maximum size, in bytes, of the data within the column.</summary><value>The maximum size, in bytes, of the data within the column. The default value is inferred from the parameter value.</value><remarks>
  9723. <format type="text/markdown"><![CDATA[
  9724. ## Remarks
  9725. Return values are not affected by this property; return parameters from stored procedures are always fixed-size integers.
  9726. For output parameters with a variable length type (nvarchar, for example), the size of the parameter defines the size of the buffer holding the output parameter. The output parameter can be truncated to a size specified with <xref:Microsoft.Data.SqlClient.SqlParameter.Size%2A>. For character types, the size specified with <xref:Microsoft.Data.SqlClient.SqlParameter.Size%2A> is in characters.
  9727. The <xref:Microsoft.Data.SqlClient.SqlParameter.Size%2A> property is used for binary and string types. For parameters of type `SqlType.String`, `Size` means length in Unicode characters. For parameters of type `SqlType.Xml`, `Size` is ignored.
  9728. For nonstring data types and ANSI string data, the <xref:Microsoft.Data.SqlClient.SqlParameter.Size%2A> property refers to the number of bytes. For Unicode string data, <xref:Microsoft.Data.SqlClient.SqlParameter.Size%2A> refers to the number of characters. The count for strings does not include the terminating character.
  9729. For variable-length data types, <xref:Microsoft.Data.SqlClient.SqlParameter.Size%2A> describes the maximum amount of data to transmit to the server. For example, for a Unicode string value, <xref:Microsoft.Data.SqlClient.SqlParameter.Size%2A> could be used to limit the amount of data sent to the server to the first one hundred characters.
  9730. If not explicitly set, the size is inferred from the actual size of the specified parameter value.
  9731. If the fractional part of the parameter value is greater than the size, then the value will be truncated to match the size.
  9732. For fixed length data types, the value of <xref:Microsoft.Data.SqlClient.SqlParameter.Size%2A> is ignored. It can be retrieved for informational purposes, and returns the maximum amount of bytes the provider uses when transmitting the value of the parameter to the server.
  9733. For information about streaming, see [SqlClient Streaming Support](~/docs/framework/data/adonet/sqlclient-streaming-support.md).
  9734. ## Examples
  9735. The following example creates a <xref:Microsoft.Data.SqlClient.SqlParameter> and sets some of its properties.
  9736. [!code-csharp[SqlParameter#5](~/../sqlclient/doc/samples/SqlParameter.cs#5)]
  9737. ]]></format>
  9738. </remarks>
  9739. </member>
  9740. <member name="P:Microsoft.Data.SqlClient.SqlParameter.SourceColumn">
  9741. <summary>Gets or sets the name of the source column mapped to the <see cref="T:System.Data.DataSet" /> and used for loading or returning the <see cref="P:Microsoft.Data.SqlClient.SqlParameter.Value" /></summary><value>The name of the source column mapped to the <see cref="T:System.Data.DataSet" />. The default is an empty string.</value><remarks>
  9742. <format type="text/markdown"><![CDATA[
  9743. ## Remarks
  9744. When <xref:Microsoft.Data.SqlClient.SqlParameter.SourceColumn%2A> is set to anything other than an empty string, the value of the parameter is retrieved from the column with the <xref:Microsoft.Data.SqlClient.SqlParameter.SourceColumn%2A> name. If <xref:Microsoft.Data.SqlClient.SqlParameter.Direction%2A> is set to `Input`, the value is taken from the <xref:System.Data.DataSet>. If <xref:Microsoft.Data.SqlClient.SqlParameter.Direction%2A> is set to `Output`, the value is taken from the data source. A <xref:Microsoft.Data.SqlClient.SqlParameter.Direction%2A> of `InputOutput` is a combination of both.
  9745. For more information about how to use the <xref:Microsoft.Data.SqlClient.SqlParameter.SourceColumn%2A> property, see [DataAdapter Parameters](~/docs/framework/data/adonet/dataadapter-parameters.md) and [Updating Data Sources with DataAdapters](~/docs/framework/data/adonet/updating-data-sources-with-dataadapters.md).
  9746. ## Examples
  9747. The following example creates a <xref:Microsoft.Data.SqlClient.SqlParameter> and sets some of its properties.
  9748. [!code-csharp[SqlParameter#6](~/../sqlclient/doc/samples/SqlParameter.cs#6)]
  9749. ]]></format>
  9750. </remarks>
  9751. </member>
  9752. <member name="P:Microsoft.Data.SqlClient.SqlParameter.SourceColumnNullMapping">
  9753. <summary>Sets or gets a value which indicates whether the source column is nullable. This allows <see cref="T:Microsoft.Data.SqlClient.SqlCommandBuilder" /> to correctly generate Update statements for nullable columns.</summary><value>
  9754. <see langword="true" /> if the source column is nullable; <see langword="false" /> if it is not.</value><remarks>
  9755. <format type="text/markdown"><![CDATA[
  9756. ## Remarks
  9757. <xref:Microsoft.Data.SqlClient.SqlParameter.SourceColumnNullMapping%2A> is used by the <xref:Microsoft.Data.SqlClient.SqlCommandBuilder> to correctly generate update commands when dealing with nullable columns. Generally, use of <xref:Microsoft.Data.SqlClient.SqlParameter.SourceColumnNullMapping%2A> is limited to developers inheriting from <xref:Microsoft.Data.SqlClient.SqlCommandBuilder>.
  9758. <xref:System.Data.Common.DbCommandBuilder> uses this property to determine whether the source column is nullable, and sets this property to `true` if it is nullable, and `false` if it is not. When <xref:Microsoft.Data.SqlClient.SqlCommandBuilder> is generating its Update statement, it examines the <xref:Microsoft.Data.SqlClient.SqlParameter.SourceColumnNullMapping%2A> for each parameter. If the property is `true`, <xref:Microsoft.Data.SqlClient.SqlCommandBuilder> generates a WHERE clauses like the following (in this query expression, "FieldName" represents the name of the field):
  9759. ```
  9760. ((@IsNull_FieldName = 1 AND FieldName IS NULL) OR
  9761. (FieldName = @Original_FieldName))
  9762. ```
  9763. If <xref:Microsoft.Data.SqlClient.SqlParameter.SourceColumnNullMapping%2A> for the field is false, <xref:Microsoft.Data.SqlClient.SqlCommandBuilder> generates the following WHERE clause:
  9764. ```
  9765. FieldName = @OriginalFieldName
  9766. ```
  9767. In addition, @IsNull_FieldName contains 1 if the source field contains null, and 0 if it does not. This mechanism allows for a performance optimization in SQL Server, and provides for common code that works across multiple providers.
  9768. ]]></format>
  9769. </remarks>
  9770. </member>
  9771. <member name="M:Microsoft.Data.SqlClient.SqlParameter.ToString">
  9772. <summary>Gets a string that contains the <see cref="P:Microsoft.Data.SqlClient.SqlParameter.ParameterName" />.</summary><returns>A string that contains the <see cref="P:Microsoft.Data.SqlClient.SqlParameter.ParameterName" />.</returns><remarks>To be added.</remarks>
  9773. </member>
  9774. <member name="T:Microsoft.Data.SqlClient.SqlParameterCollection">
  9775. <summary>Represents a collection of parameters associated with a <see cref="T:Microsoft.Data.SqlClient.SqlCommand" /> and their respective mappings to columns in a <see cref="T:System.Data.DataSet" />. This class cannot be inherited.</summary><remarks>
  9776. <format type="text/markdown"><![CDATA[
  9777. ## Remarks
  9778. If the command contains an ad hoc SQL statement, as opposed to a stored-procedure name, the number of the parameters in the collection must be equal to the number of parameter placeholders within the command text, or SQL Server raises an error. With a stored procedure, all the parameters declared in the stored procedure without a default value must be provided. Parameters declared with a default value are optional. This lets you specify a value other than the default.
  9779. For more information with additional sample code demonstrating how to use parameters, see [Commands and Parameters](~/docs/framework/data/adonet/commands-and-parameters.md).
  9780. ## Examples
  9781. The following example creates multiple instances of <xref:Microsoft.Data.SqlClient.SqlParameter> through the <xref:Microsoft.Data.SqlClient.SqlParameterCollection> collection. The parameters are used to select data within the data source and populate the <xref:System.Data.DataSet>. This code assumes that a <xref:System.Data.DataSet> and a <xref:Microsoft.Data.SqlClient.SqlDataAdapter> have already been created with the appropriate schema, commands, and connection.
  9782. [!code-csharp[SqlParameterCollection_Add6 Example#1](~/../sqlclient/doc/samples/SqlParameterCollection_Add6.cs#1)]
  9783. ]]></format>
  9784. </remarks>
  9785. </member>
  9786. <member name="P:Microsoft.Data.SqlClient.SqlParameterCollection.IsFixedSize">
  9787. <summary>Gets a value that indicates whether the <see cref="T:Microsoft.Data.SqlClient.SqlParameterCollection" /> has a fixed size.</summary><value>
  9788. <see langword="true" /> if the <see cref="T:Microsoft.Data.SqlClient.SqlParameterCollection" /> has a fixed size; otherwise, <see langword="false" />.</value><remarks>To be added.</remarks>
  9789. </member>
  9790. <member name="P:Microsoft.Data.SqlClient.SqlParameterCollection.IsReadOnly">
  9791. <summary>Gets a value that indicates whether the <see cref="T:Microsoft.Data.SqlClient.SqlParameterCollection" /> is read-only.</summary><value>
  9792. <see langword="true" /> if the <see cref="T:Microsoft.Data.SqlClient.SqlParameterCollection" /> is read-only; otherwise, <see langword="false" />.</value><remarks>To be added.</remarks>
  9793. </member>
  9794. <member name="P:Microsoft.Data.SqlClient.SqlParameterCollection.Item(System.Int32)">
  9795. <param name="index">The zero-based index of the parameter to retrieve.</param><summary>Gets the <see cref="T:Microsoft.Data.SqlClient.SqlParameter" /> at the specified index.</summary><value>The <see cref="T:Microsoft.Data.SqlClient.SqlParameter" /> at the specified index.</value><remarks>
  9796. <format type="text/markdown"><![CDATA[
  9797. ## Examples
  9798. The following example demonstrates creating <xref:Microsoft.Data.SqlClient.SqlParameter> objects to supply an input parameter to a stored procedure that returns results in an output parameter. The code iterates through the items in the <xref:Microsoft.Data.SqlClient.SqlParameterCollection> and displays some parameter properties in the console window. This example assumes a valid connection string to the **AdventureWorks** sample database on an instance of SQL Server.
  9799. [!code-csharp[SqlParameterCollection_Count Example#1](~/../sqlclient/doc/samples/SqlParameterCollection_Count.cs#1)]
  9800. ]]></format>
  9801. </remarks><exception cref="T:System.IndexOutOfRangeException">The specified index does not exist.</exception>
  9802. </member>
  9803. <member name="P:Microsoft.Data.SqlClient.SqlParameterCollection.Item(System.String)">
  9804. <param name="parameterName">The name of the parameter to retrieve.</param><summary>Gets the <see cref="T:Microsoft.Data.SqlClient.SqlParameter" /> with the specified name.</summary><value>The <see cref="T:Microsoft.Data.SqlClient.SqlParameter" /> with the specified name.</value><remarks>
  9805. <format type="text/markdown"><![CDATA[
  9806. ## Remarks
  9807. The `parameterName` is used to look up the index value in the underlying <xref:Microsoft.Data.SqlClient.SqlParameterCollection>. If the `parameterName` is not valid, an <xref:System.IndexOutOfRangeException> will be thrown.
  9808. ]]></format>
  9809. </remarks><exception cref="T:System.IndexOutOfRangeException">The specified <paramref name="parameterName" /> is not valid.</exception>
  9810. </member>
  9811. <member name="M:Microsoft.Data.SqlClient.SqlParameterCollection.Add(Microsoft.Data.SqlClient.SqlParameter)">
  9812. <param name="value">The <see cref="T:Microsoft.Data.SqlClient.SqlParameter" /> to add to the collection.</param><summary>Adds the specified <see cref="T:Microsoft.Data.SqlClient.SqlParameter" /> object to the <see cref="T:Microsoft.Data.SqlClient.SqlParameterCollection" />.</summary><returns>A new <see cref="T:Microsoft.Data.SqlClient.SqlParameter" /> object.</returns><remarks>
  9813. <format type="text/markdown"><![CDATA[
  9814. ## Examples
  9815. [!code-csharp[SqlParameterCollection_Add Example#1](~/../sqlclient/doc/samples/SqlParameterCollection_Add.cs#1)]
  9816. ]]></format>
  9817. </remarks><exception cref="T:System.ArgumentException">The <see cref="T:Microsoft.Data.SqlClient.SqlParameter" /> specified in the <paramref name="value" /> parameter is already added to this or another <see cref="T:Microsoft.Data.SqlClient.SqlParameterCollection" />.</exception><exception cref="T:System.InvalidCastException">The parameter passed was not a <see cref="T:Microsoft.Data.SqlClient.SqlParameter" />.</exception><exception cref="T:System.ArgumentNullException">The <paramref name="value" /> parameter is null.</exception>
  9818. </member>
  9819. <member name="M:Microsoft.Data.SqlClient.SqlParameterCollection.AddWithValue(System.String,System.Object)">
  9820. <param name="parameterName">The name of the parameter.</param><param name="value">The value to be added. Use <see cref="F:System.DBNull.Value" /> instead of null, to indicate a null value.</param><summary>Adds a value to the end of the <see cref="T:Microsoft.Data.SqlClient.SqlParameterCollection" />.</summary><returns>A <see cref="T:Microsoft.Data.SqlClient.SqlParameter" /> object.</returns><remarks>
  9821. <format type="text/markdown"><![CDATA[
  9822. ## Remarks
  9823. <xref:Microsoft.Data.SqlClient.SqlParameterCollection.AddWithValue%2A> replaces the `SqlParameterCollection.Add` method that takes a <xref:System.String> and an <xref:System.Object>. The overload of `Add` that takes a string and an object was deprecated because of possible ambiguity with the `SqlParameterCollection.Add` overload that takes a <xref:System.String> and a <xref:System.Data.SqlDbType> enumeration value where passing an integer with the string could be interpreted as being either the parameter value or the corresponding <xref:System.Data.SqlDbType> value. Use <xref:Microsoft.Data.SqlClient.SqlParameterCollection.AddWithValue%2A> whenever you want to add a parameter by specifying its name and value.
  9824. For <xref:System.Data.SqlDbType>`Xml` enumeration values, you can use a string, an XML value, an <xref:System.Xml.XmlReader> derived type instance, or a <xref:System.Data.SqlTypes.SqlXml> object.
  9825. ## Examples
  9826. The following example demonstrates how to use the `AddWithValue` method.
  9827. [!code-csharp[SqlParameterCollection_AddWithValue#1](~/../sqlclient/doc/samples/SqlParameterCollection_AddWithValue.cs#1)]
  9828. ]]></format>
  9829. </remarks>
  9830. </member>
  9831. <member name="M:Microsoft.Data.SqlClient.SqlParameterCollection.Add(System.String,System.Data.SqlDbType)">
  9832. <param name="parameterName">The name of the parameter.</param><param name="sqlDbType">One of the <see cref="T:System.Data.SqlDbType" /> values.</param><summary>Adds a <see cref="T:Microsoft.Data.SqlClient.SqlParameter" /> to the <see cref="T:Microsoft.Data.SqlClient.SqlParameterCollection" /> given the parameter name and the data type.</summary><returns>A new <see cref="T:Microsoft.Data.SqlClient.SqlParameter" /> object.</returns><remarks>
  9833. <format type="text/markdown"><![CDATA[
  9834. ## Examples
  9835. [!code-csharp[SqlParameterCollection_Add3 Example#1](~/../sqlclient/doc/samples/SqlParameterCollection_Add3.cs#1)]
  9836. ]]></format>
  9837. </remarks>
  9838. </member>
  9839. <member name="M:Microsoft.Data.SqlClient.SqlParameterCollection.Add(System.String,System.Data.SqlDbType,System.Int32)">
  9840. <param name="parameterName">The name of the parameter.</param><param name="sqlDbType">The <see cref="T:System.Data.SqlDbType" /> of the <see cref="T:Microsoft.Data.SqlClient.SqlParameter" /> to add to the collection.</param><param name="size">The size as an <see cref="T:System.Int32" />.</param><summary>Adds a <see cref="T:Microsoft.Data.SqlClient.SqlParameter" /> to the <see cref="T:Microsoft.Data.SqlClient.SqlParameterCollection" />, given the specified parameter name, <see cref="T:System.Data.SqlDbType" /> and size.</summary><returns>A new <see cref="T:Microsoft.Data.SqlClient.SqlParameter" /> object.</returns><remarks>
  9841. <format type="text/markdown"><![CDATA[
  9842. ## Remarks
  9843. This overload is useful when you are adding a parameter of a variable-length data type such as `varchar` or `binary`.
  9844. ## Examples
  9845. [!code-csharp[SqlParameterCollection_Add1 Example#1](~/../sqlclient/doc/samples/SqlParameterCollection_Add1.cs#1)]
  9846. ]]></format>
  9847. </remarks>
  9848. </member>
  9849. <member name="M:Microsoft.Data.SqlClient.SqlParameterCollection.Add(System.String,System.Data.SqlDbType,System.Int32,System.String)">
  9850. <param name="parameterName">The name of the parameter.</param><param name="sqlDbType">One of the <see cref="T:System.Data.SqlDbType" /> values.</param><param name="size">The column length.</param><param name="sourceColumn">The name of the source column (<see cref="P:Microsoft.Data.SqlClient.SqlParameter.SourceColumn" />) if this <see cref="T:Microsoft.Data.SqlClient.SqlParameter" /> is used in a call to <see cref="o:System.Data.Common.DbDataAdapter.Update" />.</param><summary>Adds a <see cref="T:Microsoft.Data.SqlClient.SqlParameter" /> to the <see cref="T:Microsoft.Data.SqlClient.SqlParameterCollection" /> with the parameter name, the data type, and the column length.</summary><returns>A new <see cref="T:Microsoft.Data.SqlClient.SqlParameter" /> object.</returns><remarks>
  9851. <format type="text/markdown"><![CDATA[
  9852. ## Examples
  9853. [!code-csharp[SqlParameterCollection_Add5 Example#1](~/../sqlclient/doc/samples/SqlParameterCollection_Add5.cs#1)]
  9854. ]]></format>
  9855. </remarks>
  9856. </member>
  9857. <member name="M:Microsoft.Data.SqlClient.SqlParameterCollection.AddRange(Microsoft.Data.SqlClient.SqlParameter[])">
  9858. <param name="values">The <see cref="T:Microsoft.Data.SqlClient.SqlParameter" /> values to add.</param><summary>Adds an array of <see cref="T:Microsoft.Data.SqlClient.SqlParameter" /> values to the end of the <see cref="T:Microsoft.Data.SqlClient.SqlParameterCollection" />.</summary><remarks>To be added.</remarks>
  9859. </member>
  9860. <member name="M:Microsoft.Data.SqlClient.SqlParameterCollection.Contains(System.String)">
  9861. <param name="value">The <see cref="T:System.String" /> value.</param><summary>Determines whether the specified parameter name is in this <see cref="T:Microsoft.Data.SqlClient.SqlParameterCollection" />.</summary><returns>
  9862. <see langword="true" /> if the <see cref="T:Microsoft.Data.SqlClient.SqlParameterCollection" /> contains the value; otherwise, <see langword="false" />.</returns><remarks>To be added.</remarks>
  9863. </member>
  9864. <member name="M:Microsoft.Data.SqlClient.SqlParameterCollection.Contains(Microsoft.Data.SqlClient.SqlParameter)">
  9865. <param name="value">The <see cref="T:Microsoft.Data.SqlClient.SqlParameter" /> value.</param><summary>Determines whether the specified <see cref="T:Microsoft.Data.SqlClient.SqlParameter" /> is in this <see cref="T:Microsoft.Data.SqlClient.SqlParameterCollection" />.</summary><returns>
  9866. <see langword="true" /> if the <see cref="T:Microsoft.Data.SqlClient.SqlParameterCollection" /> contains the value; otherwise, <see langword="false" />.</returns><remarks>To be added.</remarks>
  9867. </member>
  9868. <member name="M:Microsoft.Data.SqlClient.SqlParameterCollection.CopyTo(Microsoft.Data.SqlClient.SqlParameter[],System.Int32)">
  9869. <param name="array">The <see cref="T:Microsoft.Data.SqlClient.SqlParameterCollection" /> that is the destination of the elements copied from the current <see cref="T:Microsoft.Data.SqlClient.SqlParameterCollection" />.</param><param name="index">A 32-bit integer that represents the index in the <see cref="T:Microsoft.Data.SqlClient.SqlParameterCollection" /> at which copying starts.</param><summary>Copies all the elements of the current <see cref="T:Microsoft.Data.SqlClient.SqlParameterCollection" /> to the specified <see cref="T:Microsoft.Data.SqlClient.SqlParameterCollection" /> starting at the specified destination index.</summary><remarks>To be added.</remarks>
  9870. </member>
  9871. <member name="M:Microsoft.Data.SqlClient.SqlParameterCollection.IndexOf(Microsoft.Data.SqlClient.SqlParameter)">
  9872. <param name="value">The <see cref="T:Microsoft.Data.SqlClient.SqlParameter" /> to find.</param><summary>Gets the location of the specified <see cref="T:Microsoft.Data.SqlClient.SqlParameter" /> within the collection.</summary><returns>The zero-based location of the specified <see cref="T:Microsoft.Data.SqlClient.SqlParameter" /> that is a <see cref="T:Microsoft.Data.SqlClient.SqlParameter" /> within the collection. Returns -1 when the object does not exist in the <see cref="T:Microsoft.Data.SqlClient.SqlParameterCollection" />.</returns><remarks>To be added.</remarks>
  9873. </member>
  9874. <member name="M:Microsoft.Data.SqlClient.SqlParameterCollection.Insert(System.Int32,Microsoft.Data.SqlClient.SqlParameter)">
  9875. <param name="index">The zero-based index at which value should be inserted.</param><param name="value">A <see cref="T:Microsoft.Data.SqlClient.SqlParameter" /> object to be inserted in the <see cref="T:Microsoft.Data.SqlClient.SqlParameterCollection" />.</param><summary>Inserts a <see cref="T:Microsoft.Data.SqlClient.SqlParameter" /> object into the <see cref="T:Microsoft.Data.SqlClient.SqlParameterCollection" /> at the specified index.</summary><remarks>To be added.</remarks>
  9876. </member>
  9877. <member name="M:Microsoft.Data.SqlClient.SqlParameterCollection.Remove(Microsoft.Data.SqlClient.SqlParameter)">
  9878. <param name="value">A <see cref="T:Microsoft.Data.SqlClient.SqlParameter" /> object to remove from the collection.</param><summary>Removes the specified <see cref="T:Microsoft.Data.SqlClient.SqlParameter" /> from the collection.</summary><remarks>
  9879. <format type="text/markdown"><![CDATA[
  9880. ## Examples
  9881. The following example searches for a <xref:Microsoft.Data.SqlClient.SqlParameter> object in a <xref:Microsoft.Data.SqlClient.SqlParameterCollection> collection. If the parameter exists, the example removes it. This example assumes that a <xref:Microsoft.Data.SqlClient.SqlParameterCollection> collection has already been created by a <xref:Microsoft.Data.SqlClient.SqlCommand>.
  9882. [!code-csharp[SqlParameterCollection_Remove Example#1](~/../sqlclient/doc/samples/SqlParameterCollection_Remove.cs#1)]
  9883. ]]></format>
  9884. </remarks><exception cref="T:System.InvalidCastException">The parameter is not a <see cref="T:Microsoft.Data.SqlClient.SqlParameter" />.</exception><exception cref="T:System.SystemException">The parameter does not exist in the collection.</exception>
  9885. </member>
  9886. <member name="P:Microsoft.Data.SqlClient.SqlParameterCollection.Count">
  9887. <summary>Returns an Integer that contains the number of elements in the <see cref="T:Microsoft.Data.SqlClient.SqlParameterCollection" />. Read-only.</summary><value>The number of elements in the <see cref="T:Microsoft.Data.SqlClient.SqlParameterCollection" /> as an Integer.</value><remarks>To be added.</remarks>
  9888. </member>
  9889. <member name="P:Microsoft.Data.SqlClient.SqlParameterCollection.SyncRoot">
  9890. <summary>Gets an object that can be used to synchronize access to the <see cref="T:Microsoft.Data.SqlClient.SqlParameterCollection" />.</summary><value>An object that can be used to synchronize access to the <see cref="T:Microsoft.Data.SqlClient.SqlParameterCollection" />.</value><remarks>To be added.</remarks>
  9891. </member>
  9892. <member name="M:Microsoft.Data.SqlClient.SqlParameterCollection.Add(System.Object)">
  9893. <param name="value">An <see cref="T:System.Object" />.</param><summary>Adds the specified <see cref="T:Microsoft.Data.SqlClient.SqlParameter" /> object to the <see cref="T:Microsoft.Data.SqlClient.SqlParameterCollection" />.</summary><returns>The index of the new <see cref="T:Microsoft.Data.SqlClient.SqlParameter" /> object.</returns><remarks>To be added.</remarks>
  9894. </member>
  9895. <member name="M:Microsoft.Data.SqlClient.SqlParameterCollection.AddRange(System.Array)">
  9896. <param name="values">The <see cref="T:System.Array" /> values to add.</param><summary>Adds an array of values to the end of the <see cref="T:Microsoft.Data.SqlClient.SqlParameterCollection" />.</summary><remarks>To be added.</remarks>
  9897. </member>
  9898. <member name="M:Microsoft.Data.SqlClient.SqlParameterCollection.Clear">
  9899. <summary>Removes all the <see cref="T:Microsoft.Data.SqlClient.SqlParameter" /> objects from the <see cref="T:Microsoft.Data.SqlClient.SqlParameterCollection" />.</summary><remarks>To be added.</remarks>
  9900. </member>
  9901. <member name="M:Microsoft.Data.SqlClient.SqlParameterCollection.Contains(System.Object)">
  9902. <param name="value">The <see cref="T:System.Object" /> value.</param><summary>Determines whether the specified <see cref="T:System.Object" /> is in this <see cref="T:Microsoft.Data.SqlClient.SqlParameterCollection" />.</summary><returns>
  9903. <see langword="true" /> if the <see cref="T:Microsoft.Data.SqlClient.SqlParameterCollection" /> contains the value; otherwise, <see langword="false" />.</returns><remarks>To be added.</remarks>
  9904. </member>
  9905. <member name="M:Microsoft.Data.SqlClient.SqlParameterCollection.CopyTo(System.Array,System.Int32)">
  9906. <param name="array">The one-dimensional <see cref="T:System.Array" /> that is the destination of the elements copied from the current <see cref="T:Microsoft.Data.SqlClient.SqlParameterCollection" />.</param><param name="index">A 32-bit integer that represents the index in the <see cref="T:System.Array" /> at which copying starts.</param><summary>Copies all the elements of the current <see cref="T:Microsoft.Data.SqlClient.SqlParameterCollection" /> to the specified one-dimensional <see cref="T:System.Array" /> starting at the specified destination <see cref="T:System.Array" /> index.</summary><remarks>To be added.</remarks>
  9907. </member>
  9908. <member name="M:Microsoft.Data.SqlClient.SqlParameterCollection.GetEnumerator">
  9909. <summary>Returns an enumerator that iterates through the <see cref="T:Microsoft.Data.SqlClient.SqlParameterCollection" />.</summary><returns>An <see cref="T:System.Collections.IEnumerator" /> for the <see cref="T:Microsoft.Data.SqlClient.SqlParameterCollection" />.</returns><remarks>To be added.</remarks>
  9910. </member>
  9911. <member name="M:Microsoft.Data.SqlClient.SqlParameterCollection.GetParameter(System.Int32)">
  9912. <param name="index">To be added.</param><summary>To be added.</summary><returns>To be added.</returns><remarks>To be added.</remarks>
  9913. </member>
  9914. <member name="M:Microsoft.Data.SqlClient.SqlParameterCollection.GetParameter(System.String)">
  9915. <param name="parameterName">To be added.</param><summary>To be added.</summary><returns>To be added.</returns><remarks>To be added.</remarks>
  9916. </member>
  9917. <member name="M:Microsoft.Data.SqlClient.SqlParameterCollection.IndexOf(System.String)">
  9918. <param name="parameterName">The case-sensitive name of the <see cref="T:Microsoft.Data.SqlClient.SqlParameter" /> to find.</param><summary>Gets the location of the specified <see cref="T:Microsoft.Data.SqlClient.SqlParameter" /> with the specified name.</summary><returns>The zero-based location of the specified <see cref="T:Microsoft.Data.SqlClient.SqlParameter" /> with the specified case-sensitive name. Returns -1 when the object does not exist in the <see cref="T:Microsoft.Data.SqlClient.SqlParameterCollection" />.</returns><remarks>To be added.</remarks>
  9919. </member>
  9920. <member name="M:Microsoft.Data.SqlClient.SqlParameterCollection.IndexOf(System.Object)">
  9921. <param name="value">The <see cref="T:System.Object" /> to find.</param><summary>Gets the location of the specified <see cref="T:System.Object" /> within the collection.</summary><returns>The zero-based location of the specified <see cref="T:System.Object" /> that is a <see cref="T:Microsoft.Data.SqlClient.SqlParameter" /> within the collection. Returns -1 when the object does not exist in the <see cref="T:Microsoft.Data.SqlClient.SqlParameterCollection" />.</returns><remarks>To be added.</remarks>
  9922. </member>
  9923. <member name="M:Microsoft.Data.SqlClient.SqlParameterCollection.Insert(System.Int32,System.Object)">
  9924. <param name="index">The zero-based index at which value should be inserted.</param><param name="value">An <see cref="T:System.Object" /> to be inserted in the <see cref="T:Microsoft.Data.SqlClient.SqlParameterCollection" />.</param><summary>Inserts an <see cref="T:System.Object" /> into the <see cref="T:Microsoft.Data.SqlClient.SqlParameterCollection" /> at the specified index.</summary><remarks>To be added.</remarks>
  9925. </member>
  9926. <member name="M:Microsoft.Data.SqlClient.SqlParameterCollection.Remove(System.Object)">
  9927. <param name="value">The object to remove from the collection.</param><summary>Removes the specified <see cref="T:Microsoft.Data.SqlClient.SqlParameter" /> from the collection.</summary><remarks>To be added.</remarks>
  9928. </member>
  9929. <member name="M:Microsoft.Data.SqlClient.SqlParameterCollection.RemoveAt(System.Int32)">
  9930. <param name="index">The zero-based index of the <see cref="T:Microsoft.Data.SqlClient.SqlParameter" /> object to remove.</param><summary>Removes the <see cref="T:Microsoft.Data.SqlClient.SqlParameter" /> from the <see cref="T:Microsoft.Data.SqlClient.SqlParameterCollection" /> at the specified index.</summary><remarks>To be added.</remarks>
  9931. </member>
  9932. <member name="M:Microsoft.Data.SqlClient.SqlParameterCollection.RemoveAt(System.String)">
  9933. <param name="parameterName">The name of the <see cref="T:Microsoft.Data.SqlClient.SqlParameter" /> to remove.</param><summary>Removes the <see cref="T:Microsoft.Data.SqlClient.SqlParameter" /> from the <see cref="T:Microsoft.Data.SqlClient.SqlParameterCollection" /> at the specified parameter name.</summary><remarks>To be added.</remarks>
  9934. </member>
  9935. <member name="M:Microsoft.Data.SqlClient.SqlParameterCollection.SetParameter(System.Int32,System.Data.Common.DbParameter)">
  9936. <param name="index">To be added.</param><param name="value">To be added.</param><summary>To be added.</summary><remarks>To be added.</remarks>
  9937. </member>
  9938. <member name="M:Microsoft.Data.SqlClient.SqlParameterCollection.SetParameter(System.String,System.Data.Common.DbParameter)">
  9939. <param name="parameterName">To be added.</param><param name="value">To be added.</param><summary>To be added.</summary><remarks>To be added.</remarks>
  9940. </member>
  9941. <member name="T:Microsoft.Data.SqlClient.SqlRowUpdatedEventArgs">
  9942. <summary>Provides data for the <see cref="E:Microsoft.Data.SqlClient.SqlDataAdapter.RowUpdated" /> event.</summary><remarks>
  9943. <format type="text/markdown"><![CDATA[
  9944. ## Remarks
  9945. The <xref:Microsoft.Data.SqlClient.SqlDataAdapter.RowUpdated> event is raised when an <xref:System.Data.Common.DbDataAdapter.Update%2A> to a row is completed.
  9946. When using <xref:System.Data.Common.DbDataAdapter.Update%2A>, there are two events that occur for each data row updated. The order of execution is as follows:
  9947. 1. The values in the <xref:System.Data.DataRow> are moved to the parameter values.
  9948. 2. The <xref:System.Data.Common.DbDataAdapter.OnRowUpdating%2A> event is raised.
  9949. 3. The command executes.
  9950. 4. If the command is set to `FirstReturnedRecord`, and the first returned result is placed in the <xref:System.Data.DataRow>.
  9951. 5. If there are output parameters, they are placed in the <xref:System.Data.DataRow>.
  9952. 6. The <xref:System.Data.Common.DbDataAdapter.OnRowUpdated%2A> event is raised.
  9953. 7. <xref:System.Data.DataRow.AcceptChanges%2A> is called.
  9954. ## Examples
  9955. The following example shows how to use both the <xref:Microsoft.Data.SqlClient.SqlDataAdapter.RowUpdating> and <xref:Microsoft.Data.SqlClient.SqlDataAdapter.RowUpdated> events.
  9956. The <xref:Microsoft.Data.SqlClient.SqlDataAdapter.RowUpdating> event returns this output:
  9957. Event Arguments: (command=Microsoft.Data.SqlClient.SqlCommand commandType=2 status=0)
  9958. The <xref:Microsoft.Data.SqlClient.SqlDataAdapter.RowUpdated> event returns this output:
  9959. Event Arguments: (command=Microsoft.Data.SqlClient.SqlCommand commandType=2 recordsAffected=1 row=System.Data.DataRow[37] status=0)
  9960. [!code-csharp[SqlDataAdapter_RowUpdated Example#1](~/../sqlclient/doc/samples/SqlDataAdapter_RowUpdated.cs#1)]
  9961. ]]></format>
  9962. </remarks>
  9963. </member>
  9964. <member name="M:Microsoft.Data.SqlClient.SqlRowUpdatedEventArgs.#ctor(System.Data.DataRow,System.Data.IDbCommand,System.Data.StatementType,System.Data.Common.DataTableMapping)">
  9965. <param name="row">The <see cref="T:System.Data.DataRow" /> sent through an <see cref="M:System.Data.Common.DbDataAdapter.Update(System.Data.DataSet)" />.</param><param name="command">The <see cref="T:System.Data.IDbCommand" /> executed when <see cref="M:System.Data.Common.DbDataAdapter.Update(System.Data.DataSet)" /> is called.</param><param name="statementType">One of the <see cref="T:System.Data.StatementType" /> values that specifies the type of query executed.</param><param name="tableMapping">The <see cref="T:System.Data.Common.DataTableMapping" /> sent through an <see cref="M:System.Data.Common.DbDataAdapter.Update(System.Data.DataSet)" />.</param><summary>Initializes a new instance of the <see cref="T:Microsoft.Data.SqlClient.SqlRowUpdatedEventArgs" /> class.</summary><remarks>To be added.</remarks>
  9966. </member>
  9967. <member name="P:Microsoft.Data.SqlClient.SqlRowUpdatedEventArgs.Command">
  9968. <summary>Gets or sets the <see cref="T:Microsoft.Data.SqlClient.SqlCommand" /> executed when <see cref="M:System.Data.Common.DbDataAdapter.Update(System.Data.DataSet)" /> is called.</summary><value>The <see cref="T:Microsoft.Data.SqlClient.SqlCommand" /> executed when <see cref="M:System.Data.Common.DbDataAdapter.Update(System.Data.DataSet)" /> is called.</value><remarks>To be added.</remarks>
  9969. </member>
  9970. <member name="T:Microsoft.Data.SqlClient.SqlRowUpdatedEventHandler">
  9971. <param name="sender">The source of the event.</param><param name="e">The <see cref="T:Microsoft.Data.SqlClient.SqlRowUpdatedEventArgs" /> that contains the event data.</param><summary>Represents the method that will handle the <see cref="E:Microsoft.Data.SqlClient.SqlDataAdapter.RowUpdated" /> event of a <see cref="T:Microsoft.Data.SqlClient.SqlDataAdapter" />.</summary><remarks>
  9972. <format type="text/markdown"><![CDATA[
  9973. ## Remarks
  9974. The handler is not required to perform any action, and your code should avoid generating exceptions or allowing exceptions to propagate to the calling method. Any exceptions that do reach the caller are ignored.
  9975. When you create a <xref:Microsoft.Data.SqlClient.SqlRowUpdatedEventArgs> delegate, you identify the method that will handle the event. To associate the event with your event handler, add an instance of the delegate to the event. The event handler is called whenever the event occurs, unless you remove the delegate. For more information about event handler delegates, see [Handling and Raising Events](~/docs/standard/events/index.md).
  9976. ]]></format>
  9977. </remarks>
  9978. </member>
  9979. <member name="T:Microsoft.Data.SqlClient.SqlRowUpdatingEventArgs">
  9980. <summary>Provides data for the <see cref="E:Microsoft.Data.SqlClient.SqlDataAdapter.RowUpdating" /> event.</summary><remarks>
  9981. <format type="text/markdown"><![CDATA[
  9982. ## Remarks
  9983. The <xref:Microsoft.Data.SqlClient.SqlDataAdapter.RowUpdating> event is raised before an <xref:System.Data.Common.DbDataAdapter.Update%2A> to a row.
  9984. When you are using <xref:System.Data.Common.DbDataAdapter.Update%2A>, there are two events that occur for each data row updated. The order of execution is as follows:
  9985. 1. The values in the <xref:System.Data.DataRow> are moved to the parameter values.
  9986. 2. The <xref:System.Data.Common.DbDataAdapter.OnRowUpdating%2A> event is raised.
  9987. 3. The command executes.
  9988. 4. If the command is set to `FirstReturnedRecord`, and the first returned result is placed in the <xref:System.Data.DataRow>.
  9989. 5. If there are output parameters, they are placed in the <xref:System.Data.DataRow>.
  9990. 6. The <xref:System.Data.Common.DbDataAdapter.OnRowUpdated%2A> event is raised.
  9991. 7. <xref:System.Data.DataRow.AcceptChanges%2A> is called.
  9992. ## Examples
  9993. The following example shows how to use both the <xref:Microsoft.Data.SqlClient.SqlDataAdapter.RowUpdating> and <xref:Microsoft.Data.SqlClient.SqlDataAdapter.RowUpdated> events.
  9994. The <xref:Microsoft.Data.SqlClient.SqlDataAdapter.RowUpdating> event returns this output:
  9995. event args: (command=Microsoft.Data.SqlClient.SQLCommand commandType=2 status=0)
  9996. The <xref:Microsoft.Data.SqlClient.SqlDataAdapter.RowUpdated> event returns this output:
  9997. event args: (command=Microsoft.Data.SqlClient.SQLCommand commandType=2 recordsAffected=1 row=System.Data.DataRow[37] status=0)
  9998. [!code-csharp[SqlRowUpdatingEventArgs Example#1](~/../sqlclient/doc/samples/SqlRowUpdatingEventArgs.cs#1)]
  9999. ]]></format>
  10000. </remarks>
  10001. </member>
  10002. <member name="M:Microsoft.Data.SqlClient.SqlRowUpdatingEventArgs.#ctor(System.Data.DataRow,System.Data.IDbCommand,System.Data.StatementType,System.Data.Common.DataTableMapping)">
  10003. <param name="row">The <see cref="T:System.Data.DataRow" /> to <see cref="M:System.Data.Common.DbDataAdapter.Update(System.Data.DataSet)" />.</param><param name="command">The <see cref="T:System.Data.IDbCommand" /> to execute during <see cref="M:System.Data.Common.DbDataAdapter.Update(System.Data.DataSet)" />.</param><param name="statementType">One of the <see cref="T:System.Data.StatementType" /> values that specifies the type of query executed.</param><param name="tableMapping">The <see cref="T:System.Data.Common.DataTableMapping" /> sent through an <see cref="M:System.Data.Common.DbDataAdapter.Update(System.Data.DataSet)" />.</param><summary>Initializes a new instance of the <see cref="T:Microsoft.Data.SqlClient.SqlRowUpdatingEventArgs" /> class.</summary><remarks>To be added.</remarks>
  10004. </member>
  10005. <member name="P:Microsoft.Data.SqlClient.SqlRowUpdatingEventArgs.Command">
  10006. <summary>Gets or sets the <see cref="T:Microsoft.Data.SqlClient.SqlCommand" /> to execute when performing the <see cref="M:System.Data.Common.DbDataAdapter.Update(System.Data.DataSet)" />.</summary><value>The <see cref="T:Microsoft.Data.SqlClient.SqlCommand" /> to execute when performing the <see cref="M:System.Data.Common.DbDataAdapter.Update(System.Data.DataSet)" />.</value><remarks>To be added.</remarks>
  10007. </member>
  10008. <member name="P:Microsoft.Data.SqlClient.SqlRowUpdatingEventArgs.BaseCommand">
  10009. <summary>To be added.</summary><value>To be added.</value><remarks>To be added.</remarks>
  10010. </member>
  10011. <member name="T:Microsoft.Data.SqlClient.SqlRowUpdatingEventHandler">
  10012. <param name="sender">The source of the event.</param><param name="e">The <see cref="T:Microsoft.Data.SqlClient.SqlRowUpdatingEventArgs" /> that contains the event data.</param><summary>Represents the method that will handle the <see cref="E:Microsoft.Data.SqlClient.SqlDataAdapter.RowUpdating" /> event of a <see cref="T:Microsoft.Data.SqlClient.SqlDataAdapter" />.</summary><remarks>
  10013. <format type="text/markdown"><![CDATA[
  10014. ## Remarks
  10015. The handler is not required to perform any action, and your code should avoid generating exceptions or allowing exceptions to propagate to the calling method. Any exceptions that do reach the caller are ignored.
  10016. The handler may use the <xref:Microsoft.Data.SqlClient.SqlRowUpdatingEventArgs> to influence the processing of the updates. For example, the handler may opt to skip the update of the current row or skip the update of all remaining rows. Note that the rows are updated in the order that they were received from the data source.
  10017. When you create a <xref:Microsoft.Data.SqlClient.SqlRowUpdatingEventArgs> delegate, you identify the method that will handle the event. To associate the event with your event handler, add an instance of the delegate to the event. The event handler is called whenever the event occurs, unless you remove the delegate. For more information about event handler delegates, see [Handling and Raising Events](~/docs/standard/events/index.md).
  10018. ]]></format>
  10019. </remarks>
  10020. </member>
  10021. <member name="M:Microsoft.Data.SqlClient.SqlSequentialStream.SetClosed">
  10022. <summary>
  10023. Forces the stream to act as if it was closed (i.e. CanRead=false and Read() throws)
  10024. This does not actually close the stream, read off the rest of the data or dispose this
  10025. </summary>
  10026. </member>
  10027. <member name="M:Microsoft.Data.SqlClient.SqlSequentialStream.ValidateReadParameters(System.Byte[],System.Int32,System.Int32)">
  10028. <summary>
  10029. Checks the parameters passed into a Read() method are valid
  10030. </summary>
  10031. <param name="buffer"></param>
  10032. <param name="offset"></param>
  10033. <param name="count"></param>
  10034. </member>
  10035. <member name="M:Microsoft.Data.SqlClient.SqlSequentialTextReader.SetClosed">
  10036. <summary>
  10037. Forces the TextReader to act as if it was closed
  10038. This does not actually close the stream, read off the rest of the data or dispose this
  10039. </summary>
  10040. </member>
  10041. <member name="M:Microsoft.Data.SqlClient.SqlSequentialTextReader.InternalRead(System.Char[],System.Int32,System.Int32)">
  10042. <summary>
  10043. Performs the actual reading and converting
  10044. NOTE: This assumes that buffer, index and count are all valid, we're not closed (!IsClosed) and that there is data left (IsDataLeft())
  10045. </summary>
  10046. <param name="buffer"></param>
  10047. <param name="index"></param>
  10048. <param name="count"></param>
  10049. <returns></returns>
  10050. </member>
  10051. <member name="M:Microsoft.Data.SqlClient.SqlSequentialTextReader.PrepareByteBuffer(System.Int32,System.Int32@)">
  10052. <summary>
  10053. Creates a byte array large enough to store all bytes for the characters in the current encoding, then fills it with any leftover bytes
  10054. </summary>
  10055. <param name="numberOfChars">Number of characters that are to be read</param>
  10056. <param name="byteBufferUsed">Number of bytes pre-filled by the leftover bytes</param>
  10057. <returns>A byte array of the correct size, pre-filled with leftover bytes</returns>
  10058. </member>
  10059. <member name="M:Microsoft.Data.SqlClient.SqlSequentialTextReader.DecodeBytesToChars(System.Byte[],System.Int32,System.Char[],System.Int32,System.Int32)">
  10060. <summary>
  10061. Decodes the given bytes into characters, and stores the leftover bytes for later use
  10062. </summary>
  10063. <param name="inBuffer">Buffer of bytes to decode</param>
  10064. <param name="inBufferCount">Number of bytes to decode from the inBuffer</param>
  10065. <param name="outBuffer">Buffer to write the characters to</param>
  10066. <param name="outBufferOffset">Offset to start writing to outBuffer at</param>
  10067. <param name="outBufferCount">Maximum number of characters to decode</param>
  10068. <returns>The actual number of characters decoded</returns>
  10069. </member>
  10070. <member name="P:Microsoft.Data.SqlClient.SqlSequentialTextReader.IsClosed">
  10071. <summary>
  10072. True if this TextReader is supposed to be closed
  10073. </summary>
  10074. </member>
  10075. <member name="P:Microsoft.Data.SqlClient.SqlSequentialTextReader.HasPeekedChar">
  10076. <summary>
  10077. True if there is a peeked character available
  10078. </summary>
  10079. </member>
  10080. <member name="M:Microsoft.Data.SqlClient.SqlSequentialTextReader.ValidateReadParameters(System.Char[],System.Int32,System.Int32)">
  10081. <summary>
  10082. Checks the parameters passed into a Read() method are valid
  10083. </summary>
  10084. <param name="buffer"></param>
  10085. <param name="index"></param>
  10086. <param name="count"></param>
  10087. </member>
  10088. <member name="T:Microsoft.Data.SqlClient.SqlTransaction">
  10089. <summary>Represents a Transact-SQL transaction to be made in a SQL Server database. This class cannot be inherited.</summary><remarks>
  10090. <format type="text/markdown"><![CDATA[
  10091. ## Remarks
  10092. The application creates a <xref:Microsoft.Data.SqlClient.SqlTransaction> object by calling <xref:Microsoft.Data.SqlClient.SqlConnection.BeginTransaction%2A> on the <xref:Microsoft.Data.SqlClient.SqlConnection> object. All subsequent operations associated with the transaction (for example, committing or aborting the transaction), are performed on the <xref:Microsoft.Data.SqlClient.SqlTransaction> object.
  10093. > [!NOTE]
  10094. > `Try`/`Catch` exception handling should always be used when committing or rolling back a <xref:Microsoft.Data.SqlClient.SqlTransaction>. Both <xref:Microsoft.Data.SqlClient.SqlTransaction.Commit%2A> and <xref:Microsoft.Data.SqlClient.SqlTransaction.Rollback%2A> generate an <xref:System.InvalidOperationException> if the connection is terminated or if the transaction has already been rolled back on the server.
  10095. For more information on SQL Server transactions, see [Explicit Transactions](https://msdn.microsoft.com/library/ms175127\(SQL.105\).aspx) and [Coding Efficient Transactions](https://msdn.microsoft.com/library/ms187484\(SQL.105\).aspx).
  10096. ## Examples
  10097. The following example creates a <xref:Microsoft.Data.SqlClient.SqlConnection> and a <xref:Microsoft.Data.SqlClient.SqlTransaction>. It also demonstrates how to use the <xref:Microsoft.Data.SqlClient.SqlConnection.BeginTransaction%2A>, <xref:Microsoft.Data.SqlClient.SqlTransaction.Commit%2A>, and <xref:Microsoft.Data.SqlClient.SqlTransaction.Rollback%2A> methods. The transaction is rolled back on any error, or if it is disposed without first being committed. `Try`/`Catch` error handling is used to handle any errors when attempting to commit or roll back the transaction.
  10098. [!code-csharp[SqlConnection_BeginTransaction Example#1](~/../sqlclient/doc/samples/SqlConnection_BeginTransaction.cs#1)]
  10099. ]]></format>
  10100. </remarks>
  10101. </member>
  10102. <member name="P:Microsoft.Data.SqlClient.SqlTransaction.Connection">
  10103. <summary>Gets the <see cref="T:Microsoft.Data.SqlClient.SqlConnection" /> object associated with the transaction, or <see langword="null" /> if the transaction is no longer valid.</summary><value>The <see cref="T:Microsoft.Data.SqlClient.SqlConnection" /> object associated with the transaction.</value><remarks>
  10104. <format type="text/markdown"><![CDATA[
  10105. ## Remarks
  10106. A single application may have multiple database connections, each with zero or more transactions. This property lets you determine the connection object associated with a particular transaction created by <xref:Microsoft.Data.SqlClient.SqlConnection.BeginTransaction%2A>.
  10107. ]]></format>
  10108. </remarks>
  10109. </member>
  10110. <member name="P:Microsoft.Data.SqlClient.SqlTransaction.DbConnection">
  10111. <summary>To be added.</summary><value>To be added.</value><remarks>To be added.</remarks>
  10112. </member>
  10113. <member name="P:Microsoft.Data.SqlClient.SqlTransaction.IsolationLevel">
  10114. <summary>Specifies the <see cref="T:System.Data.IsolationLevel" /> for this transaction.</summary><value>The <see cref="T:System.Data.IsolationLevel" /> for this transaction. The default is <see langword="ReadCommitted" />.</value><remarks>
  10115. <format type="text/markdown"><![CDATA[
  10116. ## Remarks
  10117. Parallel transactions are not supported. Therefore, the <xref:System.Data.IsolationLevel> applies to the whole transaction.
  10118. For more information on SQL Server isolation levels, see [Transaction Isolation Levels](/sql/t-sql/language-elements/transaction-isolation-levels).
  10119. ]]></format>
  10120. </remarks>
  10121. </member>
  10122. <member name="M:Microsoft.Data.SqlClient.SqlTransaction.Commit">
  10123. <summary>Commits the database transaction.</summary><remarks>
  10124. <format type="text/markdown"><![CDATA[
  10125. ## Remarks
  10126. The <xref:Microsoft.Data.SqlClient.SqlTransaction.Commit%2A> method is equivalent to the Transact-SQL COMMIT TRANSACTION statement. You cannot roll back a transaction once it has been committed, because all modifications have become a permanent part of the database. For more information, see [COMMIT TRANSACTION (Transact-SQL)](/sql/t-sql/language-elements/commit-transaction-transact-sql).
  10127. > [!NOTE]
  10128. > `Try`/`Catch` exception handling should always be used when committing or rolling back a <xref:Microsoft.Data.SqlClient.SqlTransaction>. Both `Commit` and <xref:Microsoft.Data.SqlClient.SqlTransaction.Rollback%2A> generates an <xref:System.InvalidOperationException> if the connection is terminated or if the transaction has already been rolled back on the server.
  10129. For more information on SQL Server transactions, see [Transactions (Transact-SQL)](/sql/t-sql/language-elements/transactions-transact-sql).
  10130. ## Examples
  10131. The following example creates a <xref:Microsoft.Data.SqlClient.SqlConnection> and a <xref:Microsoft.Data.SqlClient.SqlTransaction>. It also demonstrates how to use the <xref:Microsoft.Data.SqlClient.SqlTransaction.Commit%2A>, <xref:Microsoft.Data.SqlClient.SqlConnection.BeginTransaction%2A>, and <xref:Microsoft.Data.SqlClient.SqlTransaction.Rollback%2A> methods. The transaction is rolled back on any error. `Try`/`Catch` error handling is used to handle any errors when attempting to commit or roll back the transaction.
  10132. [!code-csharp[SqlConnection_BeginTransaction Example#1](~/../sqlclient/doc/samples/SqlConnection_BeginTransaction.cs#1)]
  10133. ]]></format>
  10134. </remarks><exception cref="T:System.Exception">An error occurred while trying to commit the transaction.</exception><exception cref="T:System.InvalidOperationException">The transaction has already been committed or rolled back.
  10135. -or-
  10136. The connection is broken.</exception>
  10137. </member>
  10138. <member name="M:Microsoft.Data.SqlClient.SqlTransaction.Dispose(System.Boolean)">
  10139. <param name="disposing"><see langword="true" /> to release managed and unmanaged resources; <see langword="false" /> to release only unmanaged resources.</param><summary>Releases the unmanaged resources used and optionally releases the managed resources.</summary><remarks>
  10140. <format type="text/markdown"><![CDATA[
  10141. ## Remarks
  10142. This method calls <xref:System.Data.Common.DbTransaction.Dispose%2A>.
  10143. ]]></format>
  10144. </remarks>
  10145. </member>
  10146. <member name="M:Microsoft.Data.SqlClient.SqlTransaction.Rollback">
  10147. <summary>Rolls back a transaction from a pending state.</summary><remarks>
  10148. <format type="text/markdown"><![CDATA[
  10149. ## Remarks
  10150. The <xref:Microsoft.Data.SqlClient.SqlTransaction.Rollback%2A> method is equivalent to the Transact-SQL ROLLBACK TRANSACTION statement. For more information, see [ROLLBACK TRANSACTION (Transact-SQL)
  10151. ](/sql/t-sql/language-elements/rollback-transaction-transact-sql).
  10152. The transaction can only be rolled back from a pending state (after <xref:Microsoft.Data.SqlClient.SqlConnection.BeginTransaction%2A> has been called, but before <xref:Microsoft.Data.SqlClient.SqlTransaction.Commit%2A> is called). The transaction is rolled back in the event it is disposed before `Commit` or `Rollback` is called.
  10153. > [!NOTE]
  10154. > `Try`/`Catch` exception handling should always be used when rolling back a transaction. A `Rollback` generates an <xref:System.InvalidOperationException> if the connection is terminated or if the transaction has already been rolled back on the server.
  10155. For more information on SQL Server transactions, see [Transactions (Transact-SQL)](/sql/t-sql/language-elements/transactions-transact-sql).
  10156. ## Examples
  10157. The following example creates a <xref:Microsoft.Data.SqlClient.SqlConnection> and a <xref:Microsoft.Data.SqlClient.SqlTransaction>. It also demonstrates how to use the <xref:Microsoft.Data.SqlClient.SqlConnection.BeginTransaction%2A>, <xref:Microsoft.Data.SqlClient.SqlTransaction.Commit%2A>, and <xref:Microsoft.Data.SqlClient.SqlTransaction.Rollback%2A> methods. The transaction is rolled back on any error. `Try`/`Catch` error handling is used to handle any errors when attempting to commit or roll back the transaction.
  10158. [!code-csharp[SqlConnection_BeginTransaction Example#1](~/../sqlclient/doc/samples/SqlConnection_BeginTransaction.cs#1)]
  10159. ]]></format>
  10160. </remarks><exception cref="T:System.Exception">An error occurred while trying to commit the transaction.</exception><exception cref="T:System.InvalidOperationException">The transaction has already been committed or rolled back.
  10161. -or-
  10162. The connection is broken.</exception>
  10163. </member>
  10164. <member name="M:Microsoft.Data.SqlClient.SqlTransaction.Rollback(System.String)">
  10165. <param name="transactionName">The name of the transaction to roll back, or the savepoint to which to roll back.</param><summary>Rolls back a transaction from a pending state, and specifies the transaction or savepoint name.</summary><remarks>
  10166. <format type="text/markdown"><![CDATA[
  10167. ## Remarks
  10168. The <xref:Microsoft.Data.SqlClient.SqlTransaction.Rollback%2A> method is equivalent to the Transact-SQL ROLLBACK TRANSACTION statement. For more information, see [Transactions (Transact-SQL)](/sql/t-sql/language-elements/transactions-transact-sql).
  10169. The transaction can only be rolled back from a pending state (after <xref:Microsoft.Data.SqlClient.SqlConnection.BeginTransaction%2A> has been called, but before <xref:Microsoft.Data.SqlClient.SqlTransaction.Commit%2A> is called). The transaction is rolled back if it is disposed before `Commit` or `Rollback` is called.
  10170. > [!NOTE]
  10171. > `Try`/`Catch` exception handling should always be used when rolling back a transaction. A `Rollback` generates an <xref:System.InvalidOperationException> if the connection is terminated or if the transaction has already been rolled back on the server.
  10172. For more information on SQL Server transactions, see [Transactions (Transact-SQL)](/sql/t-sql/language-elements/transactions-transact-sql).
  10173. ## Examples
  10174. The following example creates a <xref:Microsoft.Data.SqlClient.SqlConnection> and a <xref:Microsoft.Data.SqlClient.SqlTransaction>. It also demonstrates how to use the <xref:Microsoft.Data.SqlClient.SqlConnection.BeginTransaction%2A>, <xref:Microsoft.Data.SqlClient.SqlTransaction.Commit%2A>, and <xref:Microsoft.Data.SqlClient.SqlTransaction.Rollback%2A> methods. The transaction is rolled back on any error. `Try`/`Catch` error handling is used to handle any errors when attempting to commit or roll back the transaction.
  10175. [!code-csharp[SqlConnection_BeginTransaction2 Example#1](~/../sqlclient/doc/samples/SqlConnection_BeginTransaction2.cs#1)]
  10176. ]]></format>
  10177. </remarks><exception cref="T:System.ArgumentException">No transaction name was specified.</exception><exception cref="T:System.InvalidOperationException">The transaction has already been committed or rolled back.
  10178. -or-
  10179. The connection is broken.</exception>
  10180. </member>
  10181. <member name="M:Microsoft.Data.SqlClient.SqlTransaction.Save(System.String)">
  10182. <param name="savePointName">The name of the savepoint.</param><summary>Creates a savepoint in the transaction that can be used to roll back a part of the transaction, and specifies the savepoint name.</summary><remarks>
  10183. <format type="text/markdown"><![CDATA[
  10184. ## Remarks
  10185. <xref:Microsoft.Data.SqlClient.SqlTransaction.Save%2A> method is equivalent to the Transact-SQL SAVE TRANSACTION statement.
  10186. The value used in the `savePoint` parameter can be the same value used in the `transactionName` parameter of some implementations of the <xref:Microsoft.Data.SqlClient.SqlConnection.BeginTransaction%2A> method.
  10187. Savepoints offer a mechanism to roll back parts of transactions. You create a savepoint using the <xref:Microsoft.Data.SqlClient.SqlTransaction.Save%2A> method, and then later call the <xref:Microsoft.Data.SqlClient.SqlTransaction.Rollback%2A> method to roll back to the savepoint instead of rolling back to the start of the transaction.
  10188. ]]></format>
  10189. </remarks><exception cref="T:System.Exception">An error occurred while trying to commit the transaction.</exception><exception cref="T:System.InvalidOperationException">The transaction has already been committed or rolled back.
  10190. -or-
  10191. The connection is broken.</exception>
  10192. </member>
  10193. <member name="M:Microsoft.Data.SqlClient.SQL.MultiSubnetFailoverWithFailoverPartner(System.Boolean,Microsoft.Data.SqlClient.SqlInternalConnectionTds)">
  10194. <summary>
  10195. used to block two scenarios if MultiSubnetFailover is true:
  10196. * server-provided failover partner - raising SqlException in this case
  10197. * connection string with failover partner and MultiSubnetFailover=true - raising argument one in this case with the same message
  10198. </summary>
  10199. </member>
  10200. <member name="M:Microsoft.Data.SqlClient.SQL.GetSNIErrorMessage(System.Int32)">
  10201. <summary>
  10202. gets a message for SNI error (sniError must be valid, non-zero error code)
  10203. </summary>
  10204. </member>
  10205. <member name="T:Microsoft.Data.SqlClient.SqlServerEscapeHelper">
  10206. <summary>
  10207. This class holds helper methods to escape Microsoft SQL Server identifiers, such as table, schema, database or other names
  10208. </summary>
  10209. </member>
  10210. <member name="M:Microsoft.Data.SqlClient.SqlServerEscapeHelper.EscapeIdentifier(System.String)">
  10211. <summary>
  10212. Escapes the identifier with square brackets. The input has to be in unescaped form, like the parts received from MultipartIdentifier.ParseMultipartIdentifier.
  10213. </summary>
  10214. <param name="name">name of the identifier, in unescaped form</param>
  10215. <returns>escapes the name with [], also escapes the last close bracket with double-bracket</returns>
  10216. </member>
  10217. <member name="M:Microsoft.Data.SqlClient.SqlServerEscapeHelper.EscapeIdentifier(System.Text.StringBuilder,System.String)">
  10218. <summary>
  10219. Same as above EscapeIdentifier, except that output is written into StringBuilder
  10220. </summary>
  10221. </member>
  10222. <member name="M:Microsoft.Data.SqlClient.SqlServerEscapeHelper.EscapeStringAsLiteral(System.String)">
  10223. <summary>
  10224. Escape a string to be used inside TSQL literal, such as N'somename' or 'somename'
  10225. </summary>
  10226. </member>
  10227. <member name="M:Microsoft.Data.SqlClient.SqlServerEscapeHelper.MakeStringLiteral(System.String)">
  10228. <summary>
  10229. Escape a string as a TSQL literal, wrapping it around with single quotes.
  10230. Use this method to escape input strings to prevent SQL injection
  10231. and to get correct behavior for embedded quotes.
  10232. </summary>
  10233. <param name="input">unescaped string</param>
  10234. <returns>escaped and quoted literal string</returns>
  10235. </member>
  10236. <member name="T:Microsoft.Data.SqlClient.SysTxForGlobalTransactions">
  10237. <summary>
  10238. This class holds methods invoked on System.Transactions through reflection for Global Transactions
  10239. </summary>
  10240. </member>
  10241. <member name="P:Microsoft.Data.SqlClient.SysTxForGlobalTransactions.EnlistPromotableSinglePhase">
  10242. <summary>
  10243. Enlists the given IPromotableSinglePhaseNotification and Non-MSDTC Promoter type into a transaction
  10244. </summary>
  10245. <returns>The MethodInfo instance to be invoked. Null if the method doesn't exist</returns>
  10246. </member>
  10247. <member name="P:Microsoft.Data.SqlClient.SysTxForGlobalTransactions.SetDistributedTransactionIdentifier">
  10248. <summary>
  10249. Sets the given DistributedTransactionIdentifier for a Transaction instance.
  10250. Needs to be invoked when using a Non-MSDTC Promoter type
  10251. </summary>
  10252. <returns>The MethodInfo instance to be invoked. Null if the method doesn't exist</returns>
  10253. </member>
  10254. <member name="P:Microsoft.Data.SqlClient.SysTxForGlobalTransactions.GetPromotedToken">
  10255. <summary>
  10256. Gets the Promoted Token for a Transaction
  10257. </summary>
  10258. <returns>The MethodInfo instance to be invoked. Null if the method doesn't exist</returns>
  10259. </member>
  10260. <member name="T:Microsoft.Data.SqlClient.TdsEnums">
  10261. <devdoc> Class of variables for the Tds connection.
  10262. </devdoc>
  10263. </member>
  10264. <member name="T:Microsoft.Data.SqlClient.SqlConnectionAttestationProtocol">
  10265. <summary>
  10266. Specifies a value for Attestation Protocol.
  10267. </summary>
  10268. </member>
  10269. <member name="F:Microsoft.Data.SqlClient.SqlConnectionAttestationProtocol.NotSpecified">
  10270. <summary>If the attestation protocol is not specified. Use this as default value.</summary><value>0</value>
  10271. </member>
  10272. <member name="F:Microsoft.Data.SqlClient.SqlConnectionAttestationProtocol.AAS">
  10273. <summary>Attestation portocol for Azure Attestation Service</summary><value>1</value>
  10274. </member>
  10275. <member name="F:Microsoft.Data.SqlClient.SqlConnectionAttestationProtocol.HGS">
  10276. <summary>Attestation protocol for Host Guardian Service</summary><value>3</value>
  10277. </member>
  10278. <member name="T:Microsoft.Data.SqlClient.SqlConnectionColumnEncryptionSetting">
  10279. <summary>Note that these settings cannot be used to bypass encryption and gain access to plaintext data. For details, see <see href="https://docs.microsoft.com/sql/relational-databases/security/encryption/always-encrypted-database-engine">Always Encrypted (Database Engine)</see>.</summary><remarks>To be added.</remarks>
  10280. </member>
  10281. <member name="F:Microsoft.Data.SqlClient.SqlConnectionColumnEncryptionSetting.Disabled">
  10282. <summary>Specifies the connection does not use Always Encrypted. Should be used if no queries sent over the connection access encrypted columns.</summary>
  10283. </member>
  10284. <member name="F:Microsoft.Data.SqlClient.SqlConnectionColumnEncryptionSetting.Enabled">
  10285. <summary>Enables Always Encrypted functionality for the connection. Query parameters that correspond to encrypted columns will be transparently encrypted and query results from encrypted columns will be transparently decrypted.</summary>
  10286. </member>
  10287. <member name="T:Microsoft.Data.SqlClient.SqlCommandColumnEncryptionSetting">
  10288. <summary>Note that these settings cannot be used to bypass encryption and gain access to plaintext data. For details, see <see href="https://docs.microsoft.com/sql/relational-databases/security/encryption/always-encrypted-database-engine">Always Encrypted (Database Engine)</see>.
  10289. </summary><remarks>
  10290. <format type="text/markdown"><![CDATA[
  10291. ## Remarks
  10292. - If Always Encrypted is disabled for a query and the query has parameters that need to be encrypted (parameters that correspond to encrypted columns), the query will fail.
  10293. - If Always Encrypted is disabled for a query and the query returns results from encrypted columns, the query will return encrypted values. The encrypted values will have the varbinary datatype.
  10294. ]]></format>
  10295. </remarks>
  10296. </member>
  10297. <member name="F:Microsoft.Data.SqlClient.SqlCommandColumnEncryptionSetting.UseConnectionSetting">
  10298. <summary>Specifies that the command should default to the Always Encrypted setting in the connection string.</summary>
  10299. </member>
  10300. <member name="F:Microsoft.Data.SqlClient.SqlCommandColumnEncryptionSetting.Enabled">
  10301. <summary>Enables Always Encrypted for the query.</summary>
  10302. </member>
  10303. <member name="F:Microsoft.Data.SqlClient.SqlCommandColumnEncryptionSetting.ResultSetOnly">
  10304. <summary>Specifies that only the results of the command should be processed by the Always Encrypted routine in the driver. Use this value when the command has no parameters that require encryption.</summary>
  10305. </member>
  10306. <member name="F:Microsoft.Data.SqlClient.SqlCommandColumnEncryptionSetting.Disabled">
  10307. <summary>Specifies the connection does not use Always Encrypted. Should be used if no queries sent over the connection access encrypted columns.</summary>
  10308. </member>
  10309. <member name="T:Microsoft.Data.SqlClient.SqlAuthenticationMethod">
  10310. <summary>Describes the different SQL authentication methods that can be used by a client connecting to Azure SQL Database. For details, see <see href="https://docs.microsoft.com/azure/sql-database/sql-database-aad-authentication">Connecting to SQL Database By Using Azure Active Directory Authentication</see>.
  10311. </summary><remarks>To be added.</remarks>
  10312. </member>
  10313. <member name="F:Microsoft.Data.SqlClient.SqlAuthenticationMethod.NotSpecified">
  10314. <summary>The authentication method is not specified.</summary><value>0</value>
  10315. </member>
  10316. <member name="F:Microsoft.Data.SqlClient.SqlAuthenticationMethod.SqlPassword">
  10317. <summary>The authentication method is Sql Password.</summary><value>1</value>
  10318. </member>
  10319. <member name="F:Microsoft.Data.SqlClient.SqlAuthenticationMethod.ActiveDirectoryPassword">
  10320. <summary>The authentication method uses Active Directory Password. Use Active Directory Password to connect to a SQL Database using an Azure AD principal name and password.</summary><value>2</value>
  10321. </member>
  10322. <member name="F:Microsoft.Data.SqlClient.SqlAuthenticationMethod.ActiveDirectoryIntegrated">
  10323. <summary>The authentication method uses Active Directory Integrated. Use Active Directory Integrated to connect to a SQL Database using integrated Windows authentication. Available for .NET Framework applications only.</summary><value>3</value>
  10324. </member>
  10325. <member name="F:Microsoft.Data.SqlClient.SqlAuthenticationMethod.ActiveDirectoryInteractive">
  10326. <summary>The authentication method uses Active Directory Interactive. Available since the .NET Framework 4.7.2 and for .NET Framework applications only.</summary><value>4</value>
  10327. </member>
  10328. <member name="T:Microsoft.Data.SqlClient.FederatedAuthenticationFeatureExtensionData">
  10329. <summary>
  10330. Struct encapsulating the data to be sent to the server as part of Federated Authentication Feature Extension.
  10331. </summary>
  10332. </member>
  10333. <member name="F:Microsoft.Data.SqlClient.SqlEnvChange.newBinValue">
  10334. <summary>
  10335. contains binary data, before using this field check newBinRented to see if you can take the field array or whether you should allocate and copy
  10336. </summary>
  10337. </member>
  10338. <member name="F:Microsoft.Data.SqlClient.SqlEnvChange.oldBinValue">
  10339. <summary>
  10340. contains binary data, before using this field check newBinRented to see if you can take the field array or whether you should allocate and copy
  10341. </summary>
  10342. </member>
  10343. <member name="M:Microsoft.Data.SqlClient.SqlMetaDataPriv.IsAlgorithmInitialized">
  10344. <summary>
  10345. Is the algorithm handle for the cipher encryption initialized ?
  10346. </summary>
  10347. <returns></returns>
  10348. </member>
  10349. <member name="P:Microsoft.Data.SqlClient.SqlMetaDataPriv.NormalizationRuleVersion">
  10350. <summary>
  10351. Returns the normalization rule version byte.
  10352. </summary>
  10353. <returns></returns>
  10354. </member>
  10355. <member name="F:Microsoft.Data.SqlClient.TdsParserStateObject._inBuff">
  10356. <summary>
  10357. internal read buffer - initialize on login
  10358. </summary>
  10359. </member>
  10360. <member name="F:Microsoft.Data.SqlClient.TdsParserStateObject._inBytesUsed">
  10361. <summary>
  10362. number of bytes used in internal read buffer
  10363. </summary>
  10364. </member>
  10365. <member name="F:Microsoft.Data.SqlClient.TdsParserStateObject._inBytesRead">
  10366. <summary>
  10367. number of bytes read into internal read buffer
  10368. </summary>
  10369. </member>
  10370. <member name="F:Microsoft.Data.SqlClient.TdsParserStateObject._inBytesPacket">
  10371. <summary>
  10372. number of bytes left in packet
  10373. </summary>
  10374. </member>
  10375. <member name="F:Microsoft.Data.SqlClient.TdsParserStateObject._writePacketLockObject">
  10376. <summary>
  10377. Used to synchronize access to _writePacketCache and _pendingWritePackets
  10378. </summary>
  10379. </member>
  10380. <member name="M:Microsoft.Data.SqlClient.TdsParserStateObject.NullBitmap.IsGuaranteedNull(System.Int32)">
  10381. <summary>
  10382. If this method returns true, the value is guaranteed to be null. This is not true vice versa:
  10383. if the bitmap value is false (if this method returns false), the value can be either null or non-null - no guarantee in this case.
  10384. To determine whether it is null or not, read it from the TDS (per NBCROW design spec, for IMAGE/TEXT/NTEXT columns server might send
  10385. bitmap = 0, when the actual value is null).
  10386. </summary>
  10387. </member>
  10388. <member name="M:Microsoft.Data.SqlClient.TdsParserStateObject.IsConnectionAlive(System.Boolean)">
  10389. <summary>
  10390. Checks to see if the underlying connection is still alive (used by connection pool resiliency)
  10391. NOTE: This is not safe to do on a connection that is currently in use
  10392. NOTE: This will mark the connection as broken if it is found to be dead
  10393. </summary>
  10394. <param name="throwOnException">If true then an exception will be thrown if the connection is found to be dead, otherwise no exception will be thrown</param>
  10395. <returns>True if the connection is still alive, otherwise false</returns>
  10396. </member>
  10397. <member name="M:Microsoft.Data.SqlClient.TdsParserStateObject.ValidateSNIConnection">
  10398. <summary>
  10399. Checks to see if the underlying connection is still valid (used by idle connection resiliency - for active connections)
  10400. NOTE: This is not safe to do on a connection that is currently in use
  10401. NOTE: This will mark the connection as broken if it is found to be dead
  10402. </summary>
  10403. <returns>True if the connection is still alive, otherwise false</returns>
  10404. </member>
  10405. <member name="P:Microsoft.Data.SqlClient.TdsParserStateObject.HasErrorOrWarning">
  10406. <summary>
  10407. True if there is at least one error or warning (not counting the pre-attention errors\warnings)
  10408. </summary>
  10409. </member>
  10410. <member name="M:Microsoft.Data.SqlClient.TdsParserStateObject.AddError(Microsoft.Data.SqlClient.SqlError)">
  10411. <summary>
  10412. Adds an error to the error collection
  10413. </summary>
  10414. <param name="error"></param>
  10415. </member>
  10416. <member name="P:Microsoft.Data.SqlClient.TdsParserStateObject.ErrorCount">
  10417. <summary>
  10418. Gets the number of errors currently in the error collection
  10419. </summary>
  10420. </member>
  10421. <member name="M:Microsoft.Data.SqlClient.TdsParserStateObject.AddWarning(Microsoft.Data.SqlClient.SqlError)">
  10422. <summary>
  10423. Adds an warning to the warning collection
  10424. </summary>
  10425. <param name="error"></param>
  10426. </member>
  10427. <member name="P:Microsoft.Data.SqlClient.TdsParserStateObject.WarningCount">
  10428. <summary>
  10429. Gets the number of warnings currently in the warning collection
  10430. </summary>
  10431. </member>
  10432. <member name="M:Microsoft.Data.SqlClient.TdsParserStateObject.GetFullErrorAndWarningCollection(System.Boolean@)">
  10433. <summary>
  10434. Gets the full list of errors and warnings (including the pre-attention ones), then wipes all error and warning lists
  10435. </summary>
  10436. <param name="broken">If true, the connection should be broken</param>
  10437. <returns>An array containing all of the errors and warnings</returns>
  10438. </member>
  10439. <member name="M:Microsoft.Data.SqlClient.TdsParserStateObject.StoreErrorAndWarningForAttention">
  10440. <summary>
  10441. Stores away current errors and warnings so that an attention can be processed
  10442. </summary>
  10443. </member>
  10444. <member name="M:Microsoft.Data.SqlClient.TdsParserStateObject.RestoreErrorAndWarningAfterAttention">
  10445. <summary>
  10446. Restores errors and warnings that were stored in order to process an attention
  10447. </summary>
  10448. </member>
  10449. <member name="M:Microsoft.Data.SqlClient.TdsParserStateObject.CheckThrowSNIException">
  10450. <summary>
  10451. Checks if an error is stored in _error and, if so, throws an error
  10452. </summary>
  10453. </member>
  10454. <member name="M:Microsoft.Data.SqlClient.TdsParserStateObject.AssertStateIsClean">
  10455. <summary>
  10456. Debug Only: Ensures that the TdsParserStateObject has no lingering state and can safely be re-used
  10457. </summary>
  10458. </member>
  10459. <member name="T:Microsoft.Data.SqlClient.SNI.SNIError">
  10460. <summary>
  10461. SNI error
  10462. </summary>
  10463. </member>
  10464. <member name="T:Microsoft.Data.SqlClient.SNI.SNIHandle">
  10465. <summary>
  10466. SNI connection handle
  10467. </summary>
  10468. </member>
  10469. <member name="M:Microsoft.Data.SqlClient.SNI.SNIHandle.Dispose">
  10470. <summary>
  10471. Dispose class
  10472. </summary>
  10473. </member>
  10474. <member name="M:Microsoft.Data.SqlClient.SNI.SNIHandle.SetAsyncCallbacks(Microsoft.Data.SqlClient.SNI.SNIAsyncCallback,Microsoft.Data.SqlClient.SNI.SNIAsyncCallback)">
  10475. <summary>
  10476. Set async callbacks
  10477. </summary>
  10478. <param name="receiveCallback">Receive callback</param>
  10479. <param name="sendCallback">Send callback</param>
  10480. </member>
  10481. <member name="M:Microsoft.Data.SqlClient.SNI.SNIHandle.SetBufferSize(System.Int32)">
  10482. <summary>
  10483. Set buffer size
  10484. </summary>
  10485. <param name="bufferSize">Buffer size</param>
  10486. </member>
  10487. <member name="M:Microsoft.Data.SqlClient.SNI.SNIHandle.Send(Microsoft.Data.SqlClient.SNI.SNIPacket)">
  10488. <summary>
  10489. Send a packet synchronously
  10490. </summary>
  10491. <param name="packet">SNI packet</param>
  10492. <returns>SNI error code</returns>
  10493. </member>
  10494. <member name="M:Microsoft.Data.SqlClient.SNI.SNIHandle.SendAsync(Microsoft.Data.SqlClient.SNI.SNIPacket,System.Boolean,Microsoft.Data.SqlClient.SNI.SNIAsyncCallback)">
  10495. <summary>
  10496. Send a packet asynchronously
  10497. </summary>
  10498. <param name="packet">SNI packet</param>
  10499. <param name="disposePacketAfterSendAsync"></param>
  10500. <param name="callback">Completion callback</param>
  10501. <returns>SNI error code</returns>
  10502. </member>
  10503. <member name="M:Microsoft.Data.SqlClient.SNI.SNIHandle.Receive(Microsoft.Data.SqlClient.SNI.SNIPacket@,System.Int32)">
  10504. <summary>
  10505. Receive a packet synchronously
  10506. </summary>
  10507. <param name="packet">SNI packet</param>
  10508. <param name="timeoutInMilliseconds">Timeout in Milliseconds</param>
  10509. <returns>SNI error code</returns>
  10510. </member>
  10511. <member name="M:Microsoft.Data.SqlClient.SNI.SNIHandle.ReceiveAsync(Microsoft.Data.SqlClient.SNI.SNIPacket@)">
  10512. <summary>
  10513. Receive a packet asynchronously
  10514. </summary>
  10515. <param name="packet">SNI packet</param>
  10516. <returns>SNI error code</returns>
  10517. </member>
  10518. <member name="M:Microsoft.Data.SqlClient.SNI.SNIHandle.EnableSsl(System.UInt32)">
  10519. <summary>
  10520. Enable SSL
  10521. </summary>
  10522. </member>
  10523. <member name="M:Microsoft.Data.SqlClient.SNI.SNIHandle.DisableSsl">
  10524. <summary>
  10525. Disable SSL
  10526. </summary>
  10527. </member>
  10528. <member name="M:Microsoft.Data.SqlClient.SNI.SNIHandle.CheckConnection">
  10529. <summary>
  10530. Check connection status
  10531. </summary>
  10532. <returns>SNI error code</returns>
  10533. </member>
  10534. <member name="P:Microsoft.Data.SqlClient.SNI.SNIHandle.Status">
  10535. <summary>
  10536. Last handle status
  10537. </summary>
  10538. </member>
  10539. <member name="P:Microsoft.Data.SqlClient.SNI.SNIHandle.ConnectionId">
  10540. <summary>
  10541. Connection ID
  10542. </summary>
  10543. </member>
  10544. <member name="T:Microsoft.Data.SqlClient.SNI.SNILoadHandle">
  10545. <summary>
  10546. Global SNI settings and status
  10547. </summary>
  10548. </member>
  10549. <member name="P:Microsoft.Data.SqlClient.SNI.SNILoadHandle.LastError">
  10550. <summary>
  10551. Last SNI error
  10552. </summary>
  10553. </member>
  10554. <member name="P:Microsoft.Data.SqlClient.SNI.SNILoadHandle.Status">
  10555. <summary>
  10556. SNI library status
  10557. </summary>
  10558. </member>
  10559. <member name="P:Microsoft.Data.SqlClient.SNI.SNILoadHandle.Options">
  10560. <summary>
  10561. Encryption options setting
  10562. </summary>
  10563. </member>
  10564. <member name="T:Microsoft.Data.SqlClient.SNI.SNIMarsConnection">
  10565. <summary>
  10566. SNI MARS connection. Multiple MARS streams will be overlaid on this connection.
  10567. </summary>
  10568. </member>
  10569. <member name="P:Microsoft.Data.SqlClient.SNI.SNIMarsConnection.ConnectionId">
  10570. <summary>
  10571. Connection ID
  10572. </summary>
  10573. </member>
  10574. <member name="M:Microsoft.Data.SqlClient.SNI.SNIMarsConnection.#ctor(Microsoft.Data.SqlClient.SNI.SNIHandle)">
  10575. <summary>
  10576. Constructor
  10577. </summary>
  10578. <param name="lowerHandle">Lower handle</param>
  10579. </member>
  10580. <member name="M:Microsoft.Data.SqlClient.SNI.SNIMarsConnection.StartReceive">
  10581. <summary>
  10582. Start receiving
  10583. </summary>
  10584. <returns></returns>
  10585. </member>
  10586. <member name="M:Microsoft.Data.SqlClient.SNI.SNIMarsConnection.Send(Microsoft.Data.SqlClient.SNI.SNIPacket)">
  10587. <summary>
  10588. Send a packet synchronously
  10589. </summary>
  10590. <param name="packet">SNI packet</param>
  10591. <returns>SNI error code</returns>
  10592. </member>
  10593. <member name="M:Microsoft.Data.SqlClient.SNI.SNIMarsConnection.SendAsync(Microsoft.Data.SqlClient.SNI.SNIPacket,Microsoft.Data.SqlClient.SNI.SNIAsyncCallback)">
  10594. <summary>
  10595. Send a packet asynchronously
  10596. </summary>
  10597. <param name="packet">SNI packet</param>
  10598. <param name="callback">Completion callback</param>
  10599. <returns>SNI error code</returns>
  10600. </member>
  10601. <member name="M:Microsoft.Data.SqlClient.SNI.SNIMarsConnection.ReceiveAsync(Microsoft.Data.SqlClient.SNI.SNIPacket@)">
  10602. <summary>
  10603. Receive a packet asynchronously
  10604. </summary>
  10605. <param name="packet">SNI packet</param>
  10606. <returns>SNI error code</returns>
  10607. </member>
  10608. <member name="M:Microsoft.Data.SqlClient.SNI.SNIMarsConnection.CheckConnection">
  10609. <summary>
  10610. Check SNI handle connection
  10611. </summary>
  10612. <returns>SNI error status</returns>
  10613. </member>
  10614. <member name="M:Microsoft.Data.SqlClient.SNI.SNIMarsConnection.HandleReceiveError(Microsoft.Data.SqlClient.SNI.SNIPacket)">
  10615. <summary>
  10616. Process a receive error
  10617. </summary>
  10618. </member>
  10619. <member name="M:Microsoft.Data.SqlClient.SNI.SNIMarsConnection.HandleSendComplete(Microsoft.Data.SqlClient.SNI.SNIPacket,System.UInt32)">
  10620. <summary>
  10621. Process a send completion
  10622. </summary>
  10623. <param name="packet">SNI packet</param>
  10624. <param name="sniErrorCode">SNI error code</param>
  10625. </member>
  10626. <member name="M:Microsoft.Data.SqlClient.SNI.SNIMarsConnection.HandleReceiveComplete(Microsoft.Data.SqlClient.SNI.SNIPacket,System.UInt32)">
  10627. <summary>
  10628. Process a receive completion
  10629. </summary>
  10630. <param name="packet">SNI packet</param>
  10631. <param name="sniErrorCode">SNI error code</param>
  10632. </member>
  10633. <member name="M:Microsoft.Data.SqlClient.SNI.SNIMarsConnection.EnableSsl(System.UInt32)">
  10634. <summary>
  10635. Enable SSL
  10636. </summary>
  10637. </member>
  10638. <member name="M:Microsoft.Data.SqlClient.SNI.SNIMarsConnection.DisableSsl">
  10639. <summary>
  10640. Disable SSL
  10641. </summary>
  10642. </member>
  10643. <member name="T:Microsoft.Data.SqlClient.SNI.SNIMarsHandle">
  10644. <summary>
  10645. MARS handle
  10646. </summary>
  10647. </member>
  10648. <member name="P:Microsoft.Data.SqlClient.SNI.SNIMarsHandle.ConnectionId">
  10649. <summary>
  10650. Connection ID
  10651. </summary>
  10652. </member>
  10653. <member name="P:Microsoft.Data.SqlClient.SNI.SNIMarsHandle.Status">
  10654. <summary>
  10655. Handle status
  10656. </summary>
  10657. </member>
  10658. <member name="M:Microsoft.Data.SqlClient.SNI.SNIMarsHandle.Dispose">
  10659. <summary>
  10660. Dispose object
  10661. </summary>
  10662. </member>
  10663. <member name="M:Microsoft.Data.SqlClient.SNI.SNIMarsHandle.#ctor(Microsoft.Data.SqlClient.SNI.SNIMarsConnection,System.UInt16,System.Object,System.Boolean)">
  10664. <summary>
  10665. Constructor
  10666. </summary>
  10667. <param name="connection">MARS connection</param>
  10668. <param name="sessionId">MARS session ID</param>
  10669. <param name="callbackObject">Callback object</param>
  10670. <param name="async">true if connection is asynchronous</param>
  10671. </member>
  10672. <member name="M:Microsoft.Data.SqlClient.SNI.SNIMarsHandle.SendControlPacket(Microsoft.Data.SqlClient.SNI.SNISMUXFlags)">
  10673. <summary>
  10674. Send control packet
  10675. </summary>
  10676. <param name="flags">SMUX header flags</param>
  10677. </member>
  10678. <member name="M:Microsoft.Data.SqlClient.SNI.SNIMarsHandle.GetSMUXEncapsulatedPacket(Microsoft.Data.SqlClient.SNI.SNIPacket)">
  10679. <summary>
  10680. Generate a packet with SMUX header
  10681. </summary>
  10682. <param name="packet">SNI packet</param>
  10683. <returns>Encapsulated SNI packet</returns>
  10684. </member>
  10685. <member name="M:Microsoft.Data.SqlClient.SNI.SNIMarsHandle.Send(Microsoft.Data.SqlClient.SNI.SNIPacket)">
  10686. <summary>
  10687. Send a packet synchronously
  10688. </summary>
  10689. <param name="packet">SNI packet</param>
  10690. <returns>SNI error code</returns>
  10691. </member>
  10692. <member name="M:Microsoft.Data.SqlClient.SNI.SNIMarsHandle.InternalSendAsync(Microsoft.Data.SqlClient.SNI.SNIPacket,Microsoft.Data.SqlClient.SNI.SNIAsyncCallback)">
  10693. <summary>
  10694. Send packet asynchronously
  10695. </summary>
  10696. <param name="packet">SNI packet</param>
  10697. <param name="callback">Completion callback</param>
  10698. <returns>SNI error code</returns>
  10699. </member>
  10700. <member name="M:Microsoft.Data.SqlClient.SNI.SNIMarsHandle.SendPendingPackets">
  10701. <summary>
  10702. Send pending packets
  10703. </summary>
  10704. <returns>SNI error code</returns>
  10705. </member>
  10706. <member name="M:Microsoft.Data.SqlClient.SNI.SNIMarsHandle.SendAsync(Microsoft.Data.SqlClient.SNI.SNIPacket,System.Boolean,Microsoft.Data.SqlClient.SNI.SNIAsyncCallback)">
  10707. <summary>
  10708. Send a packet asynchronously
  10709. </summary>
  10710. <param name="packet">SNI packet</param>
  10711. <param name="disposePacketAfterSendAsync"></param>
  10712. <param name="callback">Completion callback</param>
  10713. <returns>SNI error code</returns>
  10714. </member>
  10715. <member name="M:Microsoft.Data.SqlClient.SNI.SNIMarsHandle.ReceiveAsync(Microsoft.Data.SqlClient.SNI.SNIPacket@)">
  10716. <summary>
  10717. Receive a packet asynchronously
  10718. </summary>
  10719. <param name="packet">SNI packet</param>
  10720. <returns>SNI error code</returns>
  10721. </member>
  10722. <member name="M:Microsoft.Data.SqlClient.SNI.SNIMarsHandle.HandleReceiveError(Microsoft.Data.SqlClient.SNI.SNIPacket)">
  10723. <summary>
  10724. Handle receive error
  10725. </summary>
  10726. </member>
  10727. <member name="M:Microsoft.Data.SqlClient.SNI.SNIMarsHandle.HandleSendComplete(Microsoft.Data.SqlClient.SNI.SNIPacket,System.UInt32)">
  10728. <summary>
  10729. Handle send completion
  10730. </summary>
  10731. <param name="packet">SNI packet</param>
  10732. <param name="sniErrorCode">SNI error code</param>
  10733. </member>
  10734. <member name="M:Microsoft.Data.SqlClient.SNI.SNIMarsHandle.HandleAck(System.UInt32)">
  10735. <summary>
  10736. Handle SMUX acknowledgement
  10737. </summary>
  10738. <param name="highwater">Send highwater mark</param>
  10739. </member>
  10740. <member name="M:Microsoft.Data.SqlClient.SNI.SNIMarsHandle.HandleReceiveComplete(Microsoft.Data.SqlClient.SNI.SNIPacket,Microsoft.Data.SqlClient.SNI.SNISMUXHeader)">
  10741. <summary>
  10742. Handle receive completion
  10743. </summary>
  10744. <param name="packet">SNI packet</param>
  10745. <param name="header">SMUX header</param>
  10746. </member>
  10747. <member name="M:Microsoft.Data.SqlClient.SNI.SNIMarsHandle.SendAckIfNecessary">
  10748. <summary>
  10749. Send ACK if we've hit highwater threshold
  10750. </summary>
  10751. </member>
  10752. <member name="M:Microsoft.Data.SqlClient.SNI.SNIMarsHandle.Receive(Microsoft.Data.SqlClient.SNI.SNIPacket@,System.Int32)">
  10753. <summary>
  10754. Receive a packet synchronously
  10755. </summary>
  10756. <param name="packet">SNI packet</param>
  10757. <param name="timeoutInMilliseconds">Timeout in Milliseconds</param>
  10758. <returns>SNI error code</returns>
  10759. </member>
  10760. <member name="M:Microsoft.Data.SqlClient.SNI.SNIMarsHandle.CheckConnection">
  10761. <summary>
  10762. Check SNI handle connection
  10763. </summary>
  10764. <returns>SNI error status</returns>
  10765. </member>
  10766. <member name="M:Microsoft.Data.SqlClient.SNI.SNIMarsHandle.SetAsyncCallbacks(Microsoft.Data.SqlClient.SNI.SNIAsyncCallback,Microsoft.Data.SqlClient.SNI.SNIAsyncCallback)">
  10767. <summary>
  10768. Set async callbacks
  10769. </summary>
  10770. <param name="receiveCallback">Receive callback</param>
  10771. <param name="sendCallback">Send callback</param>
  10772. </member>
  10773. <member name="M:Microsoft.Data.SqlClient.SNI.SNIMarsHandle.SetBufferSize(System.Int32)">
  10774. <summary>
  10775. Set buffer size
  10776. </summary>
  10777. <param name="bufferSize">Buffer size</param>
  10778. </member>
  10779. <member name="M:Microsoft.Data.SqlClient.SNI.SNIMarsHandle.EnableSsl(System.UInt32)">
  10780. <summary>
  10781. Enable SSL
  10782. </summary>
  10783. </member>
  10784. <member name="M:Microsoft.Data.SqlClient.SNI.SNIMarsHandle.DisableSsl">
  10785. <summary>
  10786. Disable SSL
  10787. </summary>
  10788. </member>
  10789. <member name="T:Microsoft.Data.SqlClient.SNI.SNIMarsQueuedPacket">
  10790. <summary>
  10791. Mars queued packet
  10792. </summary>
  10793. </member>
  10794. <member name="M:Microsoft.Data.SqlClient.SNI.SNIMarsQueuedPacket.#ctor(Microsoft.Data.SqlClient.SNI.SNIPacket,Microsoft.Data.SqlClient.SNI.SNIAsyncCallback)">
  10795. <summary>
  10796. Constructor
  10797. </summary>
  10798. <param name="packet">SNI packet</param>
  10799. <param name="callback">Completion callback</param>
  10800. </member>
  10801. <member name="P:Microsoft.Data.SqlClient.SNI.SNIMarsQueuedPacket.Packet">
  10802. <summary>
  10803. SNI packet
  10804. </summary>
  10805. </member>
  10806. <member name="P:Microsoft.Data.SqlClient.SNI.SNIMarsQueuedPacket.Callback">
  10807. <summary>
  10808. Completion callback
  10809. </summary>
  10810. </member>
  10811. <member name="T:Microsoft.Data.SqlClient.SNI.SNINpHandle">
  10812. <summary>
  10813. Named Pipe connection handle
  10814. </summary>
  10815. </member>
  10816. <member name="M:Microsoft.Data.SqlClient.SNI.SNINpHandle.ValidateServerCertificate(System.Object,System.Security.Cryptography.X509Certificates.X509Certificate,System.Security.Cryptography.X509Certificates.X509Chain,System.Net.Security.SslPolicyErrors)">
  10817. <summary>
  10818. Validate server certificate
  10819. </summary>
  10820. <param name="sender">Sender object</param>
  10821. <param name="cert">X.509 certificate</param>
  10822. <param name="chain">X.509 chain</param>
  10823. <param name="policyErrors">Policy errors</param>
  10824. <returns>true if valid</returns>
  10825. </member>
  10826. <member name="M:Microsoft.Data.SqlClient.SNI.SNINpHandle.SetBufferSize(System.Int32)">
  10827. <summary>
  10828. Set buffer size
  10829. </summary>
  10830. <param name="bufferSize">Buffer size</param>
  10831. </member>
  10832. <member name="T:Microsoft.Data.SqlClient.SNI.SNIPacket">
  10833. <summary>
  10834. SNI Packet
  10835. </summary>
  10836. </member>
  10837. <member name="P:Microsoft.Data.SqlClient.SNI.SNIPacket.Description">
  10838. <summary>
  10839. Packet description (used for debugging)
  10840. </summary>
  10841. </member>
  10842. <member name="M:Microsoft.Data.SqlClient.SNI.SNIPacket.Dispose">
  10843. <summary>
  10844. Dispose Packet data
  10845. </summary>
  10846. </member>
  10847. <member name="P:Microsoft.Data.SqlClient.SNI.SNIPacket.DataLeft">
  10848. <summary>
  10849. Length of data left to process
  10850. </summary>
  10851. </member>
  10852. <member name="P:Microsoft.Data.SqlClient.SNI.SNIPacket.Length">
  10853. <summary>
  10854. Length of data
  10855. </summary>
  10856. </member>
  10857. <member name="P:Microsoft.Data.SqlClient.SNI.SNIPacket.IsInvalid">
  10858. <summary>
  10859. Packet validity
  10860. </summary>
  10861. </member>
  10862. <member name="M:Microsoft.Data.SqlClient.SNI.SNIPacket.SetCompletionCallback(Microsoft.Data.SqlClient.SNI.SNIAsyncCallback)">
  10863. <summary>
  10864. Set async completion callback
  10865. </summary>
  10866. <param name="completionCallback">Completion callback</param>
  10867. </member>
  10868. <member name="M:Microsoft.Data.SqlClient.SNI.SNIPacket.InvokeCompletionCallback(System.UInt32)">
  10869. <summary>
  10870. Invoke the completion callback
  10871. </summary>
  10872. <param name="sniErrorCode">SNI error</param>
  10873. </member>
  10874. <member name="M:Microsoft.Data.SqlClient.SNI.SNIPacket.Allocate(System.Int32)">
  10875. <summary>
  10876. Allocate space for data
  10877. </summary>
  10878. <param name="capacity">Length of byte array to be allocated</param>
  10879. </member>
  10880. <member name="M:Microsoft.Data.SqlClient.SNI.SNIPacket.Clone">
  10881. <summary>
  10882. Clone packet
  10883. </summary>
  10884. <returns>Cloned packet</returns>
  10885. </member>
  10886. <member name="M:Microsoft.Data.SqlClient.SNI.SNIPacket.GetData(System.Byte[],System.Int32@)">
  10887. <summary>
  10888. Get packet data
  10889. </summary>
  10890. <param name="buffer">Buffer</param>
  10891. <param name="dataSize">Data in packet</param>
  10892. </member>
  10893. <member name="M:Microsoft.Data.SqlClient.SNI.SNIPacket.SetData(System.Byte[],System.Int32)">
  10894. <summary>
  10895. Set packet data
  10896. </summary>
  10897. <param name="data">Data</param>
  10898. <param name="length">Length</param>
  10899. </member>
  10900. <member name="M:Microsoft.Data.SqlClient.SNI.SNIPacket.TakeData(Microsoft.Data.SqlClient.SNI.SNIPacket,System.Int32)">
  10901. <summary>
  10902. Take data from another packet
  10903. </summary>
  10904. <param name="packet">Packet</param>
  10905. <param name="size">Data to take</param>
  10906. <returns>Amount of data taken</returns>
  10907. </member>
  10908. <member name="M:Microsoft.Data.SqlClient.SNI.SNIPacket.AppendData(System.Byte[],System.Int32)">
  10909. <summary>
  10910. Append data
  10911. </summary>
  10912. <param name="data">Data</param>
  10913. <param name="size">Size</param>
  10914. </member>
  10915. <member name="M:Microsoft.Data.SqlClient.SNI.SNIPacket.AppendPacket(Microsoft.Data.SqlClient.SNI.SNIPacket)">
  10916. <summary>
  10917. Append another packet
  10918. </summary>
  10919. <param name="packet">Packet</param>
  10920. </member>
  10921. <member name="M:Microsoft.Data.SqlClient.SNI.SNIPacket.TakeData(System.Byte[],System.Int32,System.Int32)">
  10922. <summary>
  10923. Take data from packet and advance offset
  10924. </summary>
  10925. <param name="buffer">Buffer</param>
  10926. <param name="dataOffset">Data offset</param>
  10927. <param name="size">Size</param>
  10928. <returns></returns>
  10929. </member>
  10930. <member name="M:Microsoft.Data.SqlClient.SNI.SNIPacket.Release">
  10931. <summary>
  10932. Release packet
  10933. </summary>
  10934. </member>
  10935. <member name="M:Microsoft.Data.SqlClient.SNI.SNIPacket.Reset">
  10936. <summary>
  10937. Reset packet
  10938. </summary>
  10939. </member>
  10940. <member name="M:Microsoft.Data.SqlClient.SNI.SNIPacket.ReadFromStream(System.IO.Stream)">
  10941. <summary>
  10942. Read data from a stream synchronously
  10943. </summary>
  10944. <param name="stream">Stream to read from</param>
  10945. </member>
  10946. <member name="M:Microsoft.Data.SqlClient.SNI.SNIPacket.ReadFromStreamAsync(System.IO.Stream,Microsoft.Data.SqlClient.SNI.SNIAsyncCallback)">
  10947. <summary>
  10948. Read data from a stream asynchronously
  10949. </summary>
  10950. <param name="stream">Stream to read from</param>
  10951. <param name="callback">Completion callback</param>
  10952. </member>
  10953. <member name="M:Microsoft.Data.SqlClient.SNI.SNIPacket.WriteToStream(System.IO.Stream)">
  10954. <summary>
  10955. Write data to a stream synchronously
  10956. </summary>
  10957. <param name="stream">Stream to write to</param>
  10958. </member>
  10959. <member name="M:Microsoft.Data.SqlClient.SNI.SNIPacket.WriteToStreamAsync(System.IO.Stream,Microsoft.Data.SqlClient.SNI.SNIAsyncCallback,Microsoft.Data.SqlClient.SNI.SNIProviders,System.Boolean)">
  10960. <summary>
  10961. Write data to a stream asynchronously
  10962. </summary>
  10963. <param name="stream">Stream to write to</param>
  10964. <param name="callback">SNI Asynchronous Callback</param>
  10965. <param name="provider">SNI provider identifier</param>
  10966. <param name="disposeAfterWriteAsync">Bool flag to decide whether or not to dispose after Write Async operation</param>
  10967. </member>
  10968. <member name="M:Microsoft.Data.SqlClient.SNI.SNIPacket.GetHashCode">
  10969. <summary>
  10970. Get hash code
  10971. </summary>
  10972. <returns>Hash code</returns>
  10973. </member>
  10974. <member name="M:Microsoft.Data.SqlClient.SNI.SNIPacket.Equals(System.Object)">
  10975. <summary>
  10976. Check packet equality
  10977. </summary>
  10978. <param name="obj"></param>
  10979. <returns>true if equal</returns>
  10980. </member>
  10981. <member name="M:Microsoft.Data.SqlClient.SNI.SNIPacket.Equals(Microsoft.Data.SqlClient.SNI.SNIPacket)">
  10982. <summary>
  10983. Check packet equality
  10984. </summary>
  10985. <param name="packet"></param>
  10986. <returns>true if equal</returns>
  10987. </member>
  10988. <member name="T:Microsoft.Data.SqlClient.SNI.SNIProxy">
  10989. <summary>
  10990. Managed SNI proxy implementation. Contains many SNI entry points used by SqlClient.
  10991. </summary>
  10992. </member>
  10993. <member name="M:Microsoft.Data.SqlClient.SNI.SNIProxy.Terminate">
  10994. <summary>
  10995. Terminate SNI
  10996. </summary>
  10997. </member>
  10998. <member name="M:Microsoft.Data.SqlClient.SNI.SNIProxy.EnableSsl(Microsoft.Data.SqlClient.SNI.SNIHandle,System.UInt32)">
  10999. <summary>
  11000. Enable SSL on a connection
  11001. </summary>
  11002. <param name="handle">Connection handle</param>
  11003. <param name="options"></param>
  11004. <returns>SNI error code</returns>
  11005. </member>
  11006. <member name="M:Microsoft.Data.SqlClient.SNI.SNIProxy.DisableSsl(Microsoft.Data.SqlClient.SNI.SNIHandle)">
  11007. <summary>
  11008. Disable SSL on a connection
  11009. </summary>
  11010. <param name="handle">Connection handle</param>
  11011. <returns>SNI error code</returns>
  11012. </member>
  11013. <member name="M:Microsoft.Data.SqlClient.SNI.SNIProxy.GenSspiClientContext(Microsoft.Data.SqlClient.SNI.SspiClientContextStatus,System.Byte[],System.Byte[]@,System.Byte[])">
  11014. <summary>
  11015. Generate SSPI context
  11016. </summary>
  11017. <param name="sspiClientContextStatus">SSPI client context status</param>
  11018. <param name="receivedBuff">Receive buffer</param>
  11019. <param name="sendBuff">Send buffer</param>
  11020. <param name="serverName">Service Principal Name buffer</param>
  11021. <returns>SNI error code</returns>
  11022. </member>
  11023. <member name="M:Microsoft.Data.SqlClient.SNI.SNIProxy.InitializeSspiPackage(System.UInt32@)">
  11024. <summary>
  11025. Initialize SSPI
  11026. </summary>
  11027. <param name="maxLength">Max length of SSPI packet</param>
  11028. <returns>SNI error code</returns>
  11029. </member>
  11030. <member name="M:Microsoft.Data.SqlClient.SNI.SNIProxy.SetConnectionBufferSize(Microsoft.Data.SqlClient.SNI.SNIHandle,System.UInt32)">
  11031. <summary>
  11032. Set connection buffer size
  11033. </summary>
  11034. <param name="handle">SNI handle</param>
  11035. <param name="bufferSize">Buffer size</param>
  11036. <returns>SNI error code</returns>
  11037. </member>
  11038. <member name="M:Microsoft.Data.SqlClient.SNI.SNIProxy.PacketGetData(Microsoft.Data.SqlClient.SNI.SNIPacket,System.Byte[],System.UInt32@)">
  11039. <summary>
  11040. Copies data in SNIPacket to given byte array parameter
  11041. </summary>
  11042. <param name="packet">SNIPacket object containing data packets</param>
  11043. <param name="inBuff">Destination byte array where data packets are copied to</param>
  11044. <param name="dataSize">Length of data packets</param>
  11045. <returns>SNI error status</returns>
  11046. </member>
  11047. <member name="M:Microsoft.Data.SqlClient.SNI.SNIProxy.ReadSyncOverAsync(Microsoft.Data.SqlClient.SNI.SNIHandle,Microsoft.Data.SqlClient.SNI.SNIPacket@,System.Int32)">
  11048. <summary>
  11049. Read synchronously
  11050. </summary>
  11051. <param name="handle">SNI handle</param>
  11052. <param name="packet">SNI packet</param>
  11053. <param name="timeout">Timeout</param>
  11054. <returns>SNI error status</returns>
  11055. </member>
  11056. <member name="M:Microsoft.Data.SqlClient.SNI.SNIProxy.GetConnectionId(Microsoft.Data.SqlClient.SNI.SNIHandle,System.Guid@)">
  11057. <summary>
  11058. Get SNI connection ID
  11059. </summary>
  11060. <param name="handle">SNI handle</param>
  11061. <param name="clientConnectionId">Client connection ID</param>
  11062. <returns>SNI error status</returns>
  11063. </member>
  11064. <member name="M:Microsoft.Data.SqlClient.SNI.SNIProxy.WritePacket(Microsoft.Data.SqlClient.SNI.SNIHandle,Microsoft.Data.SqlClient.SNI.SNIPacket,System.Boolean)">
  11065. <summary>
  11066. Send a packet
  11067. </summary>
  11068. <param name="handle">SNI handle</param>
  11069. <param name="packet">SNI packet</param>
  11070. <param name="sync">true if synchronous, false if asynchronous</param>
  11071. <returns>SNI error status</returns>
  11072. </member>
  11073. <member name="M:Microsoft.Data.SqlClient.SNI.SNIProxy.CreateConnectionHandle(System.Object,System.String,System.Boolean,System.Int64,System.Byte[]@,System.Byte[]@,System.Boolean,System.Boolean,System.Boolean,System.Boolean)">
  11074. <summary>
  11075. Create a SNI connection handle
  11076. </summary>
  11077. <param name="callbackObject">Asynchronous I/O callback object</param>
  11078. <param name="fullServerName">Full server name from connection string</param>
  11079. <param name="ignoreSniOpenTimeout">Ignore open timeout</param>
  11080. <param name="timerExpire">Timer expiration</param>
  11081. <param name="instanceName">Instance name</param>
  11082. <param name="spnBuffer">SPN</param>
  11083. <param name="flushCache">Flush packet cache</param>
  11084. <param name="async">Asynchronous connection</param>
  11085. <param name="parallel">Attempt parallel connects</param>
  11086. <param name="isIntegratedSecurity"></param>
  11087. <returns>SNI handle</returns>
  11088. </member>
  11089. <member name="M:Microsoft.Data.SqlClient.SNI.SNIProxy.CreateTcpHandle(Microsoft.Data.SqlClient.SNI.DataSource,System.Int64,System.Object,System.Boolean)">
  11090. <summary>
  11091. Creates an SNITCPHandle object
  11092. </summary>
  11093. <param name="details">Data source</param>
  11094. <param name="timerExpire">Timer expiration</param>
  11095. <param name="callbackObject">Asynchronous I/O callback object</param>
  11096. <param name="parallel">Should MultiSubnetFailover be used</param>
  11097. <returns>SNITCPHandle</returns>
  11098. </member>
  11099. <member name="M:Microsoft.Data.SqlClient.SNI.SNIProxy.CreateNpHandle(Microsoft.Data.SqlClient.SNI.DataSource,System.Int64,System.Object,System.Boolean)">
  11100. <summary>
  11101. Creates an SNINpHandle object
  11102. </summary>
  11103. <param name="details">Data source</param>
  11104. <param name="timerExpire">Timer expiration</param>
  11105. <param name="callbackObject">Asynchronous I/O callback object</param>
  11106. <param name="parallel">Should MultiSubnetFailover be used. Only returns an error for named pipes.</param>
  11107. <returns>SNINpHandle</returns>
  11108. </member>
  11109. <member name="M:Microsoft.Data.SqlClient.SNI.SNIProxy.ReadAsync(Microsoft.Data.SqlClient.SNI.SNIHandle,Microsoft.Data.SqlClient.SNI.SNIPacket@)">
  11110. <summary>
  11111. Read packet asynchronously
  11112. </summary>
  11113. <param name="handle">SNI handle</param>
  11114. <param name="packet">Packet</param>
  11115. <returns>SNI error status</returns>
  11116. </member>
  11117. <member name="M:Microsoft.Data.SqlClient.SNI.SNIProxy.PacketSetData(Microsoft.Data.SqlClient.SNI.SNIPacket,System.Byte[],System.Int32)">
  11118. <summary>
  11119. Set packet data
  11120. </summary>
  11121. <param name="packet">SNI packet</param>
  11122. <param name="data">Data</param>
  11123. <param name="length">Length</param>
  11124. </member>
  11125. <member name="M:Microsoft.Data.SqlClient.SNI.SNIProxy.PacketRelease(Microsoft.Data.SqlClient.SNI.SNIPacket)">
  11126. <summary>
  11127. Release packet
  11128. </summary>
  11129. <param name="packet">SNI packet</param>
  11130. </member>
  11131. <member name="M:Microsoft.Data.SqlClient.SNI.SNIProxy.CheckConnection(Microsoft.Data.SqlClient.SNI.SNIHandle)">
  11132. <summary>
  11133. Check SNI handle connection
  11134. </summary>
  11135. <param name="handle"></param>
  11136. <returns>SNI error status</returns>
  11137. </member>
  11138. <member name="M:Microsoft.Data.SqlClient.SNI.SNIProxy.GetLastError">
  11139. <summary>
  11140. Get last SNI error on this thread
  11141. </summary>
  11142. <returns></returns>
  11143. </member>
  11144. <member name="M:Microsoft.Data.SqlClient.SNI.SNIProxy.GetLocalDBDataSource(System.String,System.Boolean@)">
  11145. <summary>
  11146. Gets the Local db Named pipe data source if the input is a localDB server.
  11147. </summary>
  11148. <param name="fullServerName">The data source</param>
  11149. <param name="error">Set true when an error occurred while getting LocalDB up</param>
  11150. <returns></returns>
  11151. </member>
  11152. <member name="P:Microsoft.Data.SqlClient.SNI.DataSource.ServerName">
  11153. <summary>
  11154. Provides the HostName of the server to connect to for TCP protocol.
  11155. This information is also used for finding the SPN of SqlServer
  11156. </summary>
  11157. </member>
  11158. <member name="P:Microsoft.Data.SqlClient.SNI.DataSource.Port">
  11159. <summary>
  11160. Provides the port on which the TCP connection should be made if one was specified in Data Source
  11161. </summary>
  11162. </member>
  11163. <member name="P:Microsoft.Data.SqlClient.SNI.DataSource.InstanceName">
  11164. <summary>
  11165. Provides the inferred Instance Name from Server Data Source
  11166. </summary>
  11167. </member>
  11168. <member name="P:Microsoft.Data.SqlClient.SNI.DataSource.PipeName">
  11169. <summary>
  11170. Provides the pipe name in case of Named Pipes
  11171. </summary>
  11172. </member>
  11173. <member name="P:Microsoft.Data.SqlClient.SNI.DataSource.PipeHostName">
  11174. <summary>
  11175. Provides the HostName to connect to in case of Named pipes Data Source
  11176. </summary>
  11177. </member>
  11178. <member name="T:Microsoft.Data.SqlClient.SNI.SNITCPHandle">
  11179. <summary>
  11180. TCP connection handle
  11181. </summary>
  11182. </member>
  11183. <member name="M:Microsoft.Data.SqlClient.SNI.SNITCPHandle.Dispose">
  11184. <summary>
  11185. Dispose object
  11186. </summary>
  11187. </member>
  11188. <member name="P:Microsoft.Data.SqlClient.SNI.SNITCPHandle.ConnectionId">
  11189. <summary>
  11190. Connection ID
  11191. </summary>
  11192. </member>
  11193. <member name="P:Microsoft.Data.SqlClient.SNI.SNITCPHandle.Status">
  11194. <summary>
  11195. Connection status
  11196. </summary>
  11197. </member>
  11198. <member name="M:Microsoft.Data.SqlClient.SNI.SNITCPHandle.#ctor(System.String,System.Int32,System.Int64,System.Object,System.Boolean)">
  11199. <summary>
  11200. Constructor
  11201. </summary>
  11202. <param name="serverName">Server name</param>
  11203. <param name="port">TCP port number</param>
  11204. <param name="timerExpire">Connection timer expiration</param>
  11205. <param name="callbackObject">Callback object</param>
  11206. <param name="parallel">Parallel executions</param>
  11207. </member>
  11208. <member name="M:Microsoft.Data.SqlClient.SNI.SNITCPHandle.EnableSsl(System.UInt32)">
  11209. <summary>
  11210. Enable SSL
  11211. </summary>
  11212. </member>
  11213. <member name="M:Microsoft.Data.SqlClient.SNI.SNITCPHandle.DisableSsl">
  11214. <summary>
  11215. Disable SSL
  11216. </summary>
  11217. </member>
  11218. <member name="M:Microsoft.Data.SqlClient.SNI.SNITCPHandle.ValidateServerCertificate(System.Object,System.Security.Cryptography.X509Certificates.X509Certificate,System.Security.Cryptography.X509Certificates.X509Chain,System.Net.Security.SslPolicyErrors)">
  11219. <summary>
  11220. Validate server certificate callback
  11221. </summary>
  11222. <param name="sender">Sender object</param>
  11223. <param name="cert">X.509 certificate</param>
  11224. <param name="chain">X.509 chain</param>
  11225. <param name="policyErrors">Policy errors</param>
  11226. <returns>True if certificate is valid</returns>
  11227. </member>
  11228. <member name="M:Microsoft.Data.SqlClient.SNI.SNITCPHandle.SetBufferSize(System.Int32)">
  11229. <summary>
  11230. Set buffer size
  11231. </summary>
  11232. <param name="bufferSize">Buffer size</param>
  11233. </member>
  11234. <member name="M:Microsoft.Data.SqlClient.SNI.SNITCPHandle.Send(Microsoft.Data.SqlClient.SNI.SNIPacket)">
  11235. <summary>
  11236. Send a packet synchronously
  11237. </summary>
  11238. <param name="packet">SNI packet</param>
  11239. <returns>SNI error code</returns>
  11240. </member>
  11241. <member name="M:Microsoft.Data.SqlClient.SNI.SNITCPHandle.Receive(Microsoft.Data.SqlClient.SNI.SNIPacket@,System.Int32)">
  11242. <summary>
  11243. Receive a packet synchronously
  11244. </summary>
  11245. <param name="packet">SNI packet</param>
  11246. <param name="timeoutInMilliseconds">Timeout in Milliseconds</param>
  11247. <returns>SNI error code</returns>
  11248. </member>
  11249. <member name="M:Microsoft.Data.SqlClient.SNI.SNITCPHandle.SetAsyncCallbacks(Microsoft.Data.SqlClient.SNI.SNIAsyncCallback,Microsoft.Data.SqlClient.SNI.SNIAsyncCallback)">
  11250. <summary>
  11251. Set async callbacks
  11252. </summary>
  11253. <param name="receiveCallback">Receive callback</param>
  11254. <param name="sendCallback">Send callback</param>
  11255. </member>
  11256. <member name="M:Microsoft.Data.SqlClient.SNI.SNITCPHandle.SendAsync(Microsoft.Data.SqlClient.SNI.SNIPacket,System.Boolean,Microsoft.Data.SqlClient.SNI.SNIAsyncCallback)">
  11257. <summary>
  11258. Send a packet asynchronously
  11259. </summary>
  11260. <param name="packet">SNI packet</param>
  11261. <param name="disposePacketAfterSendAsync"></param>
  11262. <param name="callback">Completion callback</param>
  11263. <returns>SNI error code</returns>
  11264. </member>
  11265. <member name="M:Microsoft.Data.SqlClient.SNI.SNITCPHandle.ReceiveAsync(Microsoft.Data.SqlClient.SNI.SNIPacket@)">
  11266. <summary>
  11267. Receive a packet asynchronously
  11268. </summary>
  11269. <param name="packet">SNI packet</param>
  11270. <returns>SNI error code</returns>
  11271. </member>
  11272. <member name="M:Microsoft.Data.SqlClient.SNI.SNITCPHandle.CheckConnection">
  11273. <summary>
  11274. Check SNI handle connection
  11275. </summary>
  11276. <returns>SNI error status</returns>
  11277. </member>
  11278. <member name="T:Microsoft.Data.SqlClient.SNI.SslOverTdsStream">
  11279. <summary>
  11280. SSL encapsulated over TDS transport. During SSL handshake, SSL packets are
  11281. transported in TDS packet type 0x12. Once SSL handshake has completed, SSL
  11282. packets are sent transparently.
  11283. </summary>
  11284. </member>
  11285. <member name="M:Microsoft.Data.SqlClient.SNI.SslOverTdsStream.#ctor(System.IO.Stream)">
  11286. <summary>
  11287. Constructor
  11288. </summary>
  11289. <param name="stream">Underlying stream</param>
  11290. </member>
  11291. <member name="M:Microsoft.Data.SqlClient.SNI.SslOverTdsStream.FinishHandshake">
  11292. <summary>
  11293. Finish SSL handshake. Stop encapsulating in TDS.
  11294. </summary>
  11295. </member>
  11296. <member name="M:Microsoft.Data.SqlClient.SNI.SslOverTdsStream.Read(System.Byte[],System.Int32,System.Int32)">
  11297. <summary>
  11298. Read buffer
  11299. </summary>
  11300. <param name="buffer">Buffer</param>
  11301. <param name="offset">Offset</param>
  11302. <param name="count">Byte count</param>
  11303. <returns>Bytes read</returns>
  11304. </member>
  11305. <member name="M:Microsoft.Data.SqlClient.SNI.SslOverTdsStream.Write(System.Byte[],System.Int32,System.Int32)">
  11306. <summary>
  11307. Write Buffer
  11308. </summary>
  11309. <param name="buffer"></param>
  11310. <param name="offset"></param>
  11311. <param name="count"></param>
  11312. </member>
  11313. <member name="M:Microsoft.Data.SqlClient.SNI.SslOverTdsStream.WriteAsync(System.Byte[],System.Int32,System.Int32,System.Threading.CancellationToken)">
  11314. <summary>
  11315. Write Buffer Asynchronosly
  11316. </summary>
  11317. <param name="buffer"></param>
  11318. <param name="offset"></param>
  11319. <param name="count"></param>
  11320. <param name="token"></param>
  11321. <returns></returns>
  11322. </member>
  11323. <member name="M:Microsoft.Data.SqlClient.SNI.SslOverTdsStream.ReadAsync(System.Byte[],System.Int32,System.Int32,System.Threading.CancellationToken)">
  11324. <summary>
  11325. Read Buffer Asynchronosly
  11326. </summary>
  11327. <param name="buffer"></param>
  11328. <param name="offset"></param>
  11329. <param name="count"></param>
  11330. <param name="token"></param>
  11331. <returns></returns>
  11332. </member>
  11333. <member name="M:Microsoft.Data.SqlClient.SNI.SslOverTdsStream.ReadInternal(System.Byte[],System.Int32,System.Int32,System.Threading.CancellationToken,System.Boolean)">
  11334. <summary>
  11335. Read Internal is called synchronosly when async is false
  11336. </summary>
  11337. </member>
  11338. <member name="M:Microsoft.Data.SqlClient.SNI.SslOverTdsStream.WriteInternal(System.Byte[],System.Int32,System.Int32,System.Threading.CancellationToken,System.Boolean)">
  11339. <summary>
  11340. The internal write method calls Sync APIs when Async flag is false
  11341. </summary>
  11342. </member>
  11343. <member name="M:Microsoft.Data.SqlClient.SNI.SslOverTdsStream.SetLength(System.Int64)">
  11344. <summary>
  11345. Set stream length.
  11346. </summary>
  11347. <param name="value">Length</param>
  11348. </member>
  11349. <member name="M:Microsoft.Data.SqlClient.SNI.SslOverTdsStream.Flush">
  11350. <summary>
  11351. Flush stream
  11352. </summary>
  11353. </member>
  11354. <member name="P:Microsoft.Data.SqlClient.SNI.SslOverTdsStream.Position">
  11355. <summary>
  11356. Get/set stream position
  11357. </summary>
  11358. </member>
  11359. <member name="M:Microsoft.Data.SqlClient.SNI.SslOverTdsStream.Seek(System.Int64,System.IO.SeekOrigin)">
  11360. <summary>
  11361. Seek in stream
  11362. </summary>
  11363. <param name="offset">Offset</param>
  11364. <param name="origin">Origin</param>
  11365. <returns>Position</returns>
  11366. </member>
  11367. <member name="P:Microsoft.Data.SqlClient.SNI.SslOverTdsStream.CanRead">
  11368. <summary>
  11369. Check if stream can be read from
  11370. </summary>
  11371. </member>
  11372. <member name="P:Microsoft.Data.SqlClient.SNI.SslOverTdsStream.CanWrite">
  11373. <summary>
  11374. Check if stream can be written to
  11375. </summary>
  11376. </member>
  11377. <member name="P:Microsoft.Data.SqlClient.SNI.SslOverTdsStream.CanSeek">
  11378. <summary>
  11379. Check if stream can be seeked
  11380. </summary>
  11381. </member>
  11382. <member name="P:Microsoft.Data.SqlClient.SNI.SslOverTdsStream.Length">
  11383. <summary>
  11384. Get stream length
  11385. </summary>
  11386. </member>
  11387. <member name="T:Microsoft.Data.SqlClient.SNI.SNIAsyncCallback">
  11388. <summary>
  11389. SNI Asynchronous callback
  11390. </summary>
  11391. <param name="packet">SNI packet</param>
  11392. <param name="sniErrorCode">SNI error code</param>
  11393. </member>
  11394. <member name="T:Microsoft.Data.SqlClient.SNI.SNIProviders">
  11395. <summary>
  11396. SNI provider identifiers
  11397. </summary>
  11398. </member>
  11399. <member name="T:Microsoft.Data.SqlClient.SNI.SNISMUXHeader">
  11400. <summary>
  11401. SMUX packet header
  11402. </summary>
  11403. </member>
  11404. <member name="T:Microsoft.Data.SqlClient.SNI.SNISMUXFlags">
  11405. <summary>
  11406. SMUX packet flags
  11407. </summary>
  11408. </member>
  11409. <member name="M:Microsoft.Data.SqlClient.SNI.SNICommon.ValidateSslServerCertificate(System.String,System.Object,System.Security.Cryptography.X509Certificates.X509Certificate,System.Security.Cryptography.X509Certificates.X509Chain,System.Net.Security.SslPolicyErrors)">
  11410. <summary>
  11411. Validate server certificate callback for SSL
  11412. </summary>
  11413. <param name="targetServerName">Server that client is expecting to connect to</param>
  11414. <param name="sender">Sender object</param>
  11415. <param name="cert">X.509 certificate</param>
  11416. <param name="chain">X.509 chain</param>
  11417. <param name="policyErrors">Policy errors</param>
  11418. <returns>True if certificate is valid</returns>
  11419. </member>
  11420. <member name="M:Microsoft.Data.SqlClient.SNI.SNICommon.ReportSNIError(Microsoft.Data.SqlClient.SNI.SNIProviders,System.UInt32,System.UInt32,System.String)">
  11421. <summary>
  11422. Sets last error encountered for SNI
  11423. </summary>
  11424. <param name="provider">SNI provider</param>
  11425. <param name="nativeError">Native error code</param>
  11426. <param name="sniError">SNI error code</param>
  11427. <param name="errorMessage">Error message</param>
  11428. <returns></returns>
  11429. </member>
  11430. <member name="M:Microsoft.Data.SqlClient.SNI.SNICommon.ReportSNIError(Microsoft.Data.SqlClient.SNI.SNIProviders,System.UInt32,System.Exception)">
  11431. <summary>
  11432. Sets last error encountered for SNI
  11433. </summary>
  11434. <param name="provider">SNI provider</param>
  11435. <param name="sniError">SNI error code</param>
  11436. <param name="sniException">SNI Exception</param>
  11437. <returns></returns>
  11438. </member>
  11439. <member name="M:Microsoft.Data.SqlClient.SNI.SNICommon.ReportSNIError(Microsoft.Data.SqlClient.SNI.SNIError)">
  11440. <summary>
  11441. Sets last error encountered for SNI
  11442. </summary>
  11443. <param name="error">SNI error</param>
  11444. <returns></returns>
  11445. </member>
  11446. <member name="M:Microsoft.Data.SqlClient.SNI.SSRP.GetPortByInstanceName(System.String,System.String)">
  11447. <summary>
  11448. Finds instance port number for given instance name.
  11449. </summary>
  11450. <param name="browserHostName">SQL Sever Browser hostname</param>
  11451. <param name="instanceName">instance name to find port number</param>
  11452. <returns>port number for given instance name</returns>
  11453. </member>
  11454. <member name="M:Microsoft.Data.SqlClient.SNI.SSRP.CreateInstanceInfoRequest(System.String)">
  11455. <summary>
  11456. Creates instance port lookup request (CLNT_UCAST_INST) for given instance name.
  11457. </summary>
  11458. <param name="instanceName">instance name to lookup port</param>
  11459. <returns>Byte array of instance port lookup request (CLNT_UCAST_INST)</returns>
  11460. </member>
  11461. <member name="M:Microsoft.Data.SqlClient.SNI.SSRP.GetDacPortByInstanceName(System.String,System.String)">
  11462. <summary>
  11463. Finds DAC port for given instance name.
  11464. </summary>
  11465. <param name="browserHostName">SQL Sever Browser hostname</param>
  11466. <param name="instanceName">instance name to lookup DAC port</param>
  11467. <returns>DAC port for given instance name</returns>
  11468. </member>
  11469. <member name="M:Microsoft.Data.SqlClient.SNI.SSRP.CreateDacPortInfoRequest(System.String)">
  11470. <summary>
  11471. Creates DAC port lookup request (CLNT_UCAST_DAC) for given instance name.
  11472. </summary>
  11473. <param name="instanceName">instance name to lookup DAC port</param>
  11474. <returns>Byte array of DAC port lookup request (CLNT_UCAST_DAC)</returns>
  11475. </member>
  11476. <member name="M:Microsoft.Data.SqlClient.SNI.SSRP.SendUDPRequest(System.String,System.Int32,System.Byte[])">
  11477. <summary>
  11478. Sends request to server, and receives response from server by UDP.
  11479. </summary>
  11480. <param name="browserHostname">UDP server hostname</param>
  11481. <param name="port">UDP server port</param>
  11482. <param name="requestPacket">request packet</param>
  11483. <returns>response packet from UDP server</returns>
  11484. </member>
  11485. <member name="M:Microsoft.Data.SqlClient.SNI.LocalDB.LoadUserInstanceDll">
  11486. <summary>
  11487. Loads the User Instance dll.
  11488. </summary>
  11489. </member>
  11490. <member name="M:Microsoft.Data.SqlClient.SNI.LocalDB.GetUserInstanceDllPath(Microsoft.Data.SqlClient.SNI.LocalDB.LocalDBErrorState@)">
  11491. <summary>
  11492. Retrieves the part of the sqlUserInstance.dll from the registry
  11493. </summary>
  11494. <param name="errorState">In case the dll path is not found, the error is set here.</param>
  11495. <returns></returns>
  11496. </member>
  11497. <member name="T:Microsoft.Data.SqlClient.SqlCredential">
  11498. <summary>
  11499. <see cref="T:Microsoft.Data.SqlClient.SqlCredential" /> provides a more secure way to specify the password for a login attempt using SQL Server Authentication.
  11500. <see cref="T:Microsoft.Data.SqlClient.SqlCredential" /> is comprised of a user id and a password that will be used for SQL Server Authentication. The password in a <see cref="T:Microsoft.Data.SqlClient.SqlCredential" /> object is of type <see cref="T:System.Security.SecureString" />.
  11501. <see cref="T:Microsoft.Data.SqlClient.SqlCredential" /> cannot be inherited.
  11502. Windows Authentication (<see langword="Integrated Security = true" />) remains the most secure way to log in to a SQL Server database.</summary><remarks>
  11503. <format type="text/markdown"><![CDATA[
  11504. ## Remarks
  11505. Use <xref:Microsoft.Data.SqlClient.SqlConnection.Credential%2A> to get or set a connection's <xref:Microsoft.Data.SqlClient.SqlCredential> object. Use <xref:Microsoft.Data.SqlClient.SqlConnection.ChangePassword%2A> to change the password for a <xref:Microsoft.Data.SqlClient.SqlCredential> object. For information on how a <xref:Microsoft.Data.SqlClient.SqlCredential> object affects connection pool behavior, see [SQL Server Connection Pooling (ADO.NET)](~/docs/framework/data/adonet/sql-server-connection-pooling.md).
  11506. An <xref:System.InvalidOperationException> exception will be raised if a non-null <xref:Microsoft.Data.SqlClient.SqlCredential> object is used in a connection with any of the following connection string keywords:
  11507. - `Integrated Security = true`
  11508. - `Password`
  11509. - `User ID`
  11510. - `Context Connection = true`
  11511. The following sample connects to a SQL Server database using <xref:Microsoft.Data.SqlClient.SqlConnection.Credential%2A>:
  11512. ```
  11513. // change connection string in the APP.CONFIG file
  11514. <connectionStrings>
  11515. <add name="MyConnString"
  11516. connectionString="Initial Catalog=myDB;Server=myServer"
  11517. providerName="Microsoft.Data.SqlClient" />
  11518. </connectionStrings>
  11519. // then use the following snippet:
  11520. using System.Configuration;
  11521. System.Windows.Controls.TextBox txtUserId = new System.Windows.Controls.TextBox();
  11522. System.Windows.Controls.PasswordBox txtPwd = new System.Windows.Controls.PasswordBox();
  11523. Configuration config = Configuration.WebConfigurationManager.OpenWebConfiguration(Null);
  11524. ConnectionStringSettings connString = config.ConnectionStrings.ConnectionString["MyConnString"];
  11525. using (SqlConnection conn = new SqlConnection(connString.ConnectionString))
  11526. {
  11527. SecureString pwd = txtPwd.SecurePassword;
  11528. pwd.MakeReadOnly();
  11529. SqlCredential cred = new SqlCredential(txtUserId.Text, pwd);
  11530. conn.Credential = cred;
  11531. conn.Open();
  11532. }
  11533. ```
  11534. ]]></format>
  11535. </remarks>
  11536. </member>
  11537. <member name="M:Microsoft.Data.SqlClient.SqlCredential.#ctor(System.String,System.Security.SecureString)">
  11538. <param name="userId">The user id.</param><param name="password">The password; a <see cref="T:System.Security.SecureString" /> value marked as read-only. Passing a read/write <see cref="T:System.Security.SecureString" /> parameter will raise an <see cref="T:System.ArgumentException" />.</param><summary>Creates an object of type <see cref="T:Microsoft.Data.SqlClient.SqlCredential" />.</summary><remarks>
  11539. <format type="text/markdown"><![CDATA[
  11540. ## Remarks
  11541. The constructor does not accept null parameters. A <xref:System.String.Empty> value is allowed. An attempt to pass a null parameter in the constructor will raise an <xref:System.ArgumentNullException> exception.
  11542. ]]></format>
  11543. </remarks><related type="Article" href="~/docs/framework/data/adonet/ado-net-overview.md">ADO.NET Overview</related>
  11544. </member>
  11545. <member name="P:Microsoft.Data.SqlClient.SqlCredential.UserId">
  11546. <summary>Gets the user ID component of the <see cref="T:Microsoft.Data.SqlClient.SqlCredential" /> object.</summary><value>The user ID component of the <see cref="T:Microsoft.Data.SqlClient.SqlCredential" /> object.</value><remarks>To be added.</remarks><related type="Article" href="~/docs/framework/data/adonet/ado-net-overview.md">ADO.NET Overview</related>
  11547. </member>
  11548. <member name="P:Microsoft.Data.SqlClient.SqlCredential.Password">
  11549. <summary>Gets the password component of the <see cref="T:Microsoft.Data.SqlClient.SqlCredential" /> object.</summary><value>The password component of the <see cref="T:Microsoft.Data.SqlClient.SqlCredential" /> object.</value><remarks>To be added.</remarks><related type="Article" href="~/docs/framework/data/adonet/ado-net-overview.md">ADO.NET Overview</related>
  11550. </member>
  11551. <member name="T:Microsoft.Data.SqlClient.SqlEncryptionKeyInfo">
  11552. <summary>
  11553. <para> Represents a single encrypted value for a CEK. It contains the encrypted CEK,
  11554. the store type, name,the key path and encryption algorithm.</para>
  11555. </summary>
  11556. </member>
  11557. <member name="T:Microsoft.Data.SqlClient.SqlTceCipherInfoEntry">
  11558. <summary>
  11559. <para> Encapsulates one entry in the CipherInfo table sent as part of Colmetadata.
  11560. The same CEK is encrypted multiple times with different master keys (for master key
  11561. rotation scenario) We need to keep all these around until we can resolve the CEK
  11562. using the correct master key.</para>
  11563. </summary>
  11564. </member>
  11565. <member name="F:Microsoft.Data.SqlClient.SqlTceCipherInfoEntry._columnEncryptionKeyValues">
  11566. <summary>
  11567. List of Column Encryption Key Information.
  11568. </summary>
  11569. </member>
  11570. <member name="F:Microsoft.Data.SqlClient.SqlTceCipherInfoEntry._ordinal">
  11571. <summary>
  11572. Key Ordinal.
  11573. </summary>
  11574. </member>
  11575. <member name="F:Microsoft.Data.SqlClient.SqlTceCipherInfoEntry._databaseId">
  11576. <summary>
  11577. Database ID
  11578. </summary>
  11579. </member>
  11580. <member name="F:Microsoft.Data.SqlClient.SqlTceCipherInfoEntry._cekId">
  11581. <summary>
  11582. Cek ID
  11583. </summary>
  11584. </member>
  11585. <member name="F:Microsoft.Data.SqlClient.SqlTceCipherInfoEntry._cekVersion">
  11586. <summary>
  11587. Cek Version
  11588. </summary>
  11589. </member>
  11590. <member name="F:Microsoft.Data.SqlClient.SqlTceCipherInfoEntry._cekMdVersion">
  11591. <summary>
  11592. Cek MD Version
  11593. </summary>
  11594. </member>
  11595. <member name="P:Microsoft.Data.SqlClient.SqlTceCipherInfoEntry.Ordinal">
  11596. <summary>
  11597. Return the ordinal.
  11598. </summary>
  11599. </member>
  11600. <member name="P:Microsoft.Data.SqlClient.SqlTceCipherInfoEntry.DatabaseId">
  11601. <summary>
  11602. Return the DatabaseID.
  11603. </summary>
  11604. </member>
  11605. <member name="P:Microsoft.Data.SqlClient.SqlTceCipherInfoEntry.CekId">
  11606. <summary>
  11607. Return the CEK ID.
  11608. </summary>
  11609. </member>
  11610. <member name="P:Microsoft.Data.SqlClient.SqlTceCipherInfoEntry.CekVersion">
  11611. <summary>
  11612. Return the CEK Version.
  11613. </summary>
  11614. </member>
  11615. <member name="P:Microsoft.Data.SqlClient.SqlTceCipherInfoEntry.CekMdVersion">
  11616. <summary>
  11617. Return the CEK MD Version.
  11618. </summary>
  11619. </member>
  11620. <member name="P:Microsoft.Data.SqlClient.SqlTceCipherInfoEntry.ColumnEncryptionKeyValues">
  11621. <summary>
  11622. Return the list of Column Encryption Key Values.
  11623. </summary>
  11624. </member>
  11625. <member name="M:Microsoft.Data.SqlClient.SqlTceCipherInfoEntry.Add(System.Byte[],System.Int32,System.Int32,System.Int32,System.Byte[],System.String,System.String,System.String)">
  11626. <summary>
  11627. Add an entry to the list of ColumnEncryptionKeyValues.
  11628. </summary>
  11629. <param name="encryptedKey"></param>
  11630. <param name="databaseId"></param>
  11631. <param name="cekId"></param>
  11632. <param name="cekVersion"></param>
  11633. <param name="cekMdVersion"></param>
  11634. <param name="keyPath"></param>
  11635. <param name="keyStoreName"></param>
  11636. <param name="algorithmName"></param>
  11637. </member>
  11638. <member name="M:Microsoft.Data.SqlClient.SqlTceCipherInfoEntry.#ctor(System.Int32)">
  11639. <summary>
  11640. Constructor.
  11641. </summary>
  11642. <param name="ordinal"></param>
  11643. </member>
  11644. <member name="T:Microsoft.Data.SqlClient.SqlTceCipherInfoTable">
  11645. <summary>
  11646. <para> Represents a table with various CEKs used in a resultset. Each entry corresponds to one (unique) CEK. The CEK
  11647. may have been encrypted using multiple master keys (giving us multiple CEK values). All these values form one single
  11648. entry in this table.</para>
  11649. </summary>
  11650. </member>
  11651. <member name="T:Microsoft.Data.SqlClient.SqlCipherMetadata">
  11652. <summary>
  11653. Represents Encryption related information of the cipher data.
  11654. </summary>
  11655. </member>
  11656. <member name="F:Microsoft.Data.SqlClient.SqlCipherMetadata._sqlTceCipherInfoEntry">
  11657. <summary>
  11658. Cipher Info Entry.
  11659. </summary>
  11660. </member>
  11661. <member name="F:Microsoft.Data.SqlClient.SqlCipherMetadata._cipherAlgorithmId">
  11662. <summary>
  11663. Encryption Algorithm Id.
  11664. </summary>
  11665. </member>
  11666. <member name="F:Microsoft.Data.SqlClient.SqlCipherMetadata._cipherAlgorithmName">
  11667. <summary>
  11668. Encryption Algorithm Name.
  11669. </summary>
  11670. </member>
  11671. <member name="F:Microsoft.Data.SqlClient.SqlCipherMetadata._encryptionType">
  11672. <summary>
  11673. Encryption Type.
  11674. </summary>
  11675. </member>
  11676. <member name="F:Microsoft.Data.SqlClient.SqlCipherMetadata._normalizationRuleVersion">
  11677. <summary>
  11678. Normalization Rule Version.
  11679. </summary>
  11680. </member>
  11681. <member name="F:Microsoft.Data.SqlClient.SqlCipherMetadata._sqlClientEncryptionAlgorithm">
  11682. <summary>
  11683. Encryption Algorithm Handle.
  11684. </summary>
  11685. </member>
  11686. <member name="F:Microsoft.Data.SqlClient.SqlCipherMetadata._sqlEncryptionKeyInfo">
  11687. <summary>
  11688. Sql Encryption Key Info.
  11689. </summary>
  11690. </member>
  11691. <member name="F:Microsoft.Data.SqlClient.SqlCipherMetadata._ordinal">
  11692. <summary>
  11693. Ordinal (into the Cek Table).
  11694. </summary>
  11695. </member>
  11696. <member name="P:Microsoft.Data.SqlClient.SqlCipherMetadata.EncryptionInfo">
  11697. <summary>
  11698. Return the Encryption Info Entry.
  11699. </summary>
  11700. </member>
  11701. <member name="P:Microsoft.Data.SqlClient.SqlCipherMetadata.CipherAlgorithmId">
  11702. <summary>
  11703. Return the cipher's encryption algorithm id.
  11704. </summary>
  11705. </member>
  11706. <member name="P:Microsoft.Data.SqlClient.SqlCipherMetadata.CipherAlgorithmName">
  11707. <summary>
  11708. Return the cipher's encryption algorithm name (could be null).
  11709. </summary>
  11710. </member>
  11711. <member name="P:Microsoft.Data.SqlClient.SqlCipherMetadata.EncryptionType">
  11712. <summary>
  11713. Return EncryptionType (Deterministic, Randomized, etc.)
  11714. </summary>
  11715. </member>
  11716. <member name="P:Microsoft.Data.SqlClient.SqlCipherMetadata.NormalizationRuleVersion">
  11717. <summary>
  11718. Return normalization rule version.
  11719. </summary>
  11720. </member>
  11721. <member name="P:Microsoft.Data.SqlClient.SqlCipherMetadata.CipherAlgorithm">
  11722. <summary>
  11723. Return the cipher encyrption algorithm handle.
  11724. </summary>
  11725. </member>
  11726. <member name="P:Microsoft.Data.SqlClient.SqlCipherMetadata.EncryptionKeyInfo">
  11727. <summary>
  11728. Return Encryption Key Info.
  11729. </summary>
  11730. </member>
  11731. <member name="P:Microsoft.Data.SqlClient.SqlCipherMetadata.CekTableOrdinal">
  11732. <summary>
  11733. Return Ordinal into Cek Table.
  11734. </summary>
  11735. </member>
  11736. <member name="M:Microsoft.Data.SqlClient.SqlCipherMetadata.#ctor(System.Nullable{Microsoft.Data.SqlClient.SqlTceCipherInfoEntry},System.UInt16,System.Byte,System.String,System.Byte,System.Byte)">
  11737. <summary>
  11738. Constructor.
  11739. </summary>
  11740. <param name="sqlTceCipherInfoEntry"></param>
  11741. <param name="ordinal"></param>
  11742. <param name="cipherAlgorithmId"></param>
  11743. <param name="cipherAlgorithmName"></param>
  11744. <param name="encryptionType"></param>
  11745. <param name="normalizationRuleVersion"></param>
  11746. </member>
  11747. <member name="M:Microsoft.Data.SqlClient.SqlCipherMetadata.IsAlgorithmInitialized">
  11748. <summary>
  11749. Do we have an handle to the cipher encryption algorithm already ?
  11750. </summary>
  11751. <returns></returns>
  11752. </member>
  11753. <member name="T:Microsoft.Data.SqlClient.SqlColumnEncryptionInputParameterInfo">
  11754. <summary>
  11755. Class encapsulating additional information when sending encrypted input parameters.
  11756. </summary>
  11757. </member>
  11758. <member name="F:Microsoft.Data.SqlClient.SqlColumnEncryptionInputParameterInfo._smiParameterMetadata">
  11759. <summary>
  11760. Metadata of the parameter to write the TYPE_INFO of the unencrypted column data type.
  11761. </summary>
  11762. </member>
  11763. <member name="F:Microsoft.Data.SqlClient.SqlColumnEncryptionInputParameterInfo._cipherMetadata">
  11764. <summary>
  11765. Column encryption related metadata.
  11766. </summary>
  11767. </member>
  11768. <member name="F:Microsoft.Data.SqlClient.SqlColumnEncryptionInputParameterInfo._serializedWireFormat">
  11769. <summary>
  11770. Serialized format for a subset of members.
  11771. Does not include _smiParameterMetadata's serialization.
  11772. </summary>
  11773. </member>
  11774. <member name="P:Microsoft.Data.SqlClient.SqlColumnEncryptionInputParameterInfo.ParameterMetadata">
  11775. <summary>
  11776. Return the SMI Parameter Metadata.
  11777. </summary>
  11778. </member>
  11779. <member name="P:Microsoft.Data.SqlClient.SqlColumnEncryptionInputParameterInfo.SerializedWireFormat">
  11780. <summary>
  11781. Return the serialized format for some members.
  11782. This is pre-calculated and cached since members are immutable.
  11783. Does not include _smiParameterMetadata's serialization.
  11784. </summary>
  11785. </member>
  11786. <member name="M:Microsoft.Data.SqlClient.SqlColumnEncryptionInputParameterInfo.#ctor(Microsoft.Data.SqlClient.Server.SmiParameterMetaData,Microsoft.Data.SqlClient.SqlCipherMetadata)">
  11787. <summary>
  11788. Constructor.
  11789. </summary>
  11790. <param name="smiParameterMetadata"></param>
  11791. <param name="cipherMetadata"></param>
  11792. </member>
  11793. <member name="M:Microsoft.Data.SqlClient.SqlColumnEncryptionInputParameterInfo.SerializeToWriteFormat">
  11794. <summary>
  11795. Serializes some data members to wire format.
  11796. </summary>
  11797. </member>
  11798. <member name="M:Microsoft.Data.SqlClient.SqlColumnEncryptionInputParameterInfo.SerializeIntIntoBuffer(System.Int32,System.Byte[],System.Int32@)">
  11799. <summary>
  11800. Serializes an int into the provided buffer and offset.
  11801. </summary>
  11802. </member>
  11803. <member name="T:Microsoft.Data.SqlClient.SqlClientEncryptionAlgorithm">
  11804. <summary>
  11805. Abstract base class for all TCE encryption algorithms. It exposes two functions
  11806. 1. Encrypt - This function is used by SqlClient under the covers to transparently encrypt TCE enabled column data.
  11807. 2. Decrypt - This function is used by SqlClient under the covers to transparently decrypt TCE enabled column data.
  11808. </summary>
  11809. </member>
  11810. <member name="M:Microsoft.Data.SqlClient.SqlClientEncryptionAlgorithm.EncryptData(System.Byte[])">
  11811. <summary>
  11812. Encrypts the plainText with a column encryption key
  11813. </summary>
  11814. <param name="plainText">Plain text value to be encrypted</param>
  11815. <returns></returns>
  11816. </member>
  11817. <member name="M:Microsoft.Data.SqlClient.SqlClientEncryptionAlgorithm.DecryptData(System.Byte[])">
  11818. <summary>
  11819. Decrypts the cipherText with a column encryption key
  11820. </summary>
  11821. <param name="cipherText">Ciphertext value to be decrypted</param>
  11822. <returns></returns>
  11823. </member>
  11824. <member name="T:Microsoft.Data.SqlClient.SqlClientEncryptionAlgorithmFactory">
  11825. <summary>
  11826. Abstract base class for all TCE encryption algorithm factory classes. Factory classes create instances of an encryption algorithm
  11827. with a given key. At runtime when we determine a particular column is marked for TCE, based on the encryption algorithm we invoke
  11828. the corresponding factory class and retrieve an object to an encryption algorithm.
  11829. </summary>
  11830. </member>
  11831. <member name="M:Microsoft.Data.SqlClient.SqlClientEncryptionAlgorithmFactory.Create(Microsoft.Data.SqlClient.SqlClientSymmetricKey,Microsoft.Data.SqlClient.SqlClientEncryptionType,System.String)">
  11832. <summary>
  11833. Creates an encrytion algorithm with a given key.
  11834. </summary>
  11835. <param name="encryptionKey">encryption key that should be passed to the encryption algorithm to be created</param>
  11836. <param name="encryptionType">Encryption Type, some algorithms will need this</param>
  11837. <param name="encryptionAlgorithm">Encryption algorithm name. Needed for extracting version bits</param>
  11838. <returns>Return a newly created SqlClientEncryptionAlgorithm instance</returns>
  11839. </member>
  11840. <member name="T:Microsoft.Data.SqlClient.SqlClientEncryptionType">
  11841. <summary>
  11842. Encryption types supported in TCE
  11843. </summary>
  11844. </member>
  11845. <member name="T:Microsoft.Data.SqlClient.SqlClientSymmetricKey">
  11846. <summary>
  11847. Base class containing raw key bytes for symmetric key algorithms. Some encryption algorithms can use the key directly while others derive sub keys from this.
  11848. If an algorithm needs to derive more keys, have a derived class from this and use it in the corresponding encryption algorithm.
  11849. </summary>
  11850. </member>
  11851. <member name="F:Microsoft.Data.SqlClient.SqlClientSymmetricKey._rootKey">
  11852. <summary>
  11853. The underlying key material
  11854. </summary>
  11855. </member>
  11856. <member name="M:Microsoft.Data.SqlClient.SqlClientSymmetricKey.#ctor(System.Byte[])">
  11857. <summary>
  11858. Constructor that initializes the root key.
  11859. </summary>
  11860. <param name="rootKey">root key</param>
  11861. </member>
  11862. <member name="M:Microsoft.Data.SqlClient.SqlClientSymmetricKey.Finalize">
  11863. <summary>
  11864. Empty destructor for binary back compat.
  11865. </summary>
  11866. </member>
  11867. <member name="P:Microsoft.Data.SqlClient.SqlClientSymmetricKey.RootKey">
  11868. <summary>
  11869. Returns a copy of the plain text key
  11870. This is needed for actual encryption/decryption.
  11871. </summary>
  11872. </member>
  11873. <member name="M:Microsoft.Data.SqlClient.SqlClientSymmetricKey.GetKeyHash">
  11874. <summary>
  11875. Computes SHA256 value of the plain text key bytes
  11876. </summary>
  11877. <returns>A string containing SHA256 hash of the root key</returns>
  11878. </member>
  11879. <member name="M:Microsoft.Data.SqlClient.SqlClientSymmetricKey.Length">
  11880. <summary>
  11881. Gets the length of the root key
  11882. </summary>
  11883. <returns>
  11884. Returns the length of the root key
  11885. </returns>
  11886. </member>
  11887. <member name="M:Microsoft.Data.SqlClient.SqlSecurityUtility.GetHMACWithSHA256(System.Byte[],System.Byte[],System.Byte[])">
  11888. <summary>
  11889. Computes a keyed hash of a given text and returns. It fills the buffer "hash" with computed hash value.
  11890. </summary>
  11891. <param name="plainText">Plain text bytes whose hash has to be computed.</param>
  11892. <param name="key">key used for the HMAC</param>
  11893. <param name="hash">Output buffer where the computed hash value is stored. If its less that 64 bytes, the hash is truncated</param>
  11894. <returns>HMAC value</returns>
  11895. </member>
  11896. <member name="M:Microsoft.Data.SqlClient.SqlSecurityUtility.GetSHA256Hash(System.Byte[])">
  11897. <summary>
  11898. Computes SHA256 hash of a given input
  11899. </summary>
  11900. <param name="input">input byte array which needs to be hashed</param>
  11901. <returns>Returns SHA256 hash in a string form</returns>
  11902. </member>
  11903. <member name="M:Microsoft.Data.SqlClient.SqlSecurityUtility.GenerateRandomBytes(System.Byte[])">
  11904. <summary>
  11905. Generates cryptographicall random bytes
  11906. </summary>
  11907. <param name="randomBytes">No of cryptographically random bytes to be generated</param>
  11908. <returns>A byte array containing cryptographically generated random bytes</returns>
  11909. </member>
  11910. <member name="M:Microsoft.Data.SqlClient.SqlSecurityUtility.CompareBytes(System.Byte[],System.Byte[],System.Int32,System.Int32)">
  11911. <summary>
  11912. Compares two byte arrays and returns true if all bytes are equal
  11913. </summary>
  11914. <param name="buffer1">input buffer</param>
  11915. <param name="buffer2">another buffer to be compared against</param>
  11916. <param name="buffer2Index"></param>
  11917. <param name="lengthToCompare"></param>
  11918. <returns>returns true if both the arrays have the same byte values else returns false</returns>
  11919. </member>
  11920. <member name="M:Microsoft.Data.SqlClient.SqlSecurityUtility.GetHexString(System.Byte[])">
  11921. <summary>
  11922. Gets hex representation of byte array.
  11923. <param name="input">input byte array</param>
  11924. </summary>
  11925. </member>
  11926. <member name="M:Microsoft.Data.SqlClient.SqlSecurityUtility.GetCurrentFunctionName">
  11927. <summary>
  11928. Returns the caller's function name in the format of [ClassName].[FunctionName]
  11929. </summary>
  11930. </member>
  11931. <member name="M:Microsoft.Data.SqlClient.SqlSecurityUtility.ValidateAndGetEncryptionAlgorithmName(System.Byte,System.String)">
  11932. <summary>
  11933. Return the algorithm name mapped to an Id.
  11934. </summary>
  11935. <param name="cipherAlgorithmId"></param>
  11936. <param name="cipherAlgorithmName"></param>
  11937. <returns></returns>
  11938. </member>
  11939. <member name="M:Microsoft.Data.SqlClient.SqlSecurityUtility.GetRegisteredCipherAlgorithmIds">
  11940. <summary>
  11941. Retrieves a string with comma separated list of registered algorithm Ids (enclosed in quotes).
  11942. </summary>
  11943. </member>
  11944. <member name="M:Microsoft.Data.SqlClient.SqlSecurityUtility.EncryptWithKey(System.Byte[],Microsoft.Data.SqlClient.SqlCipherMetadata,System.String)">
  11945. <summary>
  11946. Encrypts the plaintext.
  11947. </summary>
  11948. </member>
  11949. <member name="M:Microsoft.Data.SqlClient.SqlSecurityUtility.GetBytesAsString(System.Byte[],System.Boolean,System.Int32)">
  11950. <summary>
  11951. Gets a string with first/last 10 bytes in the buff (useful for exception handling).
  11952. </summary>
  11953. </member>
  11954. <member name="M:Microsoft.Data.SqlClient.SqlSecurityUtility.DecryptWithKey(System.Byte[],Microsoft.Data.SqlClient.SqlCipherMetadata,System.String)">
  11955. <summary>
  11956. Decrypts the ciphertext.
  11957. </summary>
  11958. </member>
  11959. <member name="M:Microsoft.Data.SqlClient.SqlSecurityUtility.DecryptSymmetricKey(Microsoft.Data.SqlClient.SqlCipherMetadata,System.String)">
  11960. <summary>
  11961. <para> Decrypts the symmetric key and saves it in metadata. In addition, intializes
  11962. the SqlClientEncryptionAlgorithm for rapid decryption.</para>
  11963. </summary>
  11964. </member>
  11965. <member name="M:Microsoft.Data.SqlClient.SqlSecurityUtility.DecryptSymmetricKey(System.Nullable{Microsoft.Data.SqlClient.SqlTceCipherInfoEntry},System.String,Microsoft.Data.SqlClient.SqlClientSymmetricKey@,System.Nullable{Microsoft.Data.SqlClient.SqlEncryptionKeyInfo}@)">
  11966. <summary>
  11967. Decrypts the symmetric key and saves it in metadata.
  11968. </summary>
  11969. </member>
  11970. <member name="M:Microsoft.Data.SqlClient.SqlSecurityUtility.GetBase64LengthFromByteLength(System.Int32)">
  11971. <summary>
  11972. Calculates the length of the Base64 string used to represent a byte[] with the specified length.
  11973. </summary>
  11974. <param name="byteLength"></param>
  11975. <returns></returns>
  11976. </member>
  11977. <member name="M:Microsoft.Data.SqlClient.SqlSecurityUtility.VerifyColumnMasterKeySignature(System.String,System.String,System.String,System.Boolean,System.Byte[])">
  11978. <summary>
  11979. Verifies Column Master Key Signature.
  11980. </summary>
  11981. </member>
  11982. <member name="T:Microsoft.Data.SqlClient.SqlAeadAes256CbcHmac256Algorithm">
  11983. <summary>
  11984. This class implements authenticated encryption algorithm with associated data as described in
  11985. http://tools.ietf.org/html/draft-mcgrew-aead-aes-cbc-hmac-sha2-05. More specifically this implements
  11986. AEAD_AES_256_CBC_HMAC_SHA256 algorithm.
  11987. </summary>
  11988. </member>
  11989. <member name="F:Microsoft.Data.SqlClient.SqlAeadAes256CbcHmac256Algorithm.AlgorithmName">
  11990. <summary>
  11991. Algorithm Name
  11992. </summary>
  11993. </member>
  11994. <member name="F:Microsoft.Data.SqlClient.SqlAeadAes256CbcHmac256Algorithm._KeySizeInBytes">
  11995. <summary>
  11996. Key size in bytes
  11997. </summary>
  11998. </member>
  11999. <member name="F:Microsoft.Data.SqlClient.SqlAeadAes256CbcHmac256Algorithm._BlockSizeInBytes">
  12000. <summary>
  12001. Block size in bytes. AES uses 16 byte blocks.
  12002. </summary>
  12003. </member>
  12004. <member name="F:Microsoft.Data.SqlClient.SqlAeadAes256CbcHmac256Algorithm._MinimumCipherTextLengthInBytesNoAuthenticationTag">
  12005. <summary>
  12006. Minimum Length of cipherText without authentication tag. This value is 1 (version byte) + 16 (IV) + 16 (minimum of 1 block of cipher Text)
  12007. </summary>
  12008. </member>
  12009. <member name="F:Microsoft.Data.SqlClient.SqlAeadAes256CbcHmac256Algorithm._MinimumCipherTextLengthInBytesWithAuthenticationTag">
  12010. <summary>
  12011. Minimum Length of cipherText. This value is 1 (version byte) + 32 (authentication tag) + 16 (IV) + 16 (minimum of 1 block of cipher Text)
  12012. </summary>
  12013. </member>
  12014. <member name="F:Microsoft.Data.SqlClient.SqlAeadAes256CbcHmac256Algorithm._cipherMode">
  12015. <summary>
  12016. Cipher Mode. For this algorithm, we only use CBC mode.
  12017. </summary>
  12018. </member>
  12019. <member name="F:Microsoft.Data.SqlClient.SqlAeadAes256CbcHmac256Algorithm._paddingMode">
  12020. <summary>
  12021. Padding mode. This algorithm uses PKCS7.
  12022. </summary>
  12023. </member>
  12024. <member name="F:Microsoft.Data.SqlClient.SqlAeadAes256CbcHmac256Algorithm._isDeterministic">
  12025. <summary>
  12026. Variable indicating whether this algorithm should work in Deterministic mode or Randomized mode.
  12027. For deterministic encryption, we derive an IV from the plaintext data.
  12028. For randomized encryption, we generate a cryptographically random IV.
  12029. </summary>
  12030. </member>
  12031. <member name="F:Microsoft.Data.SqlClient.SqlAeadAes256CbcHmac256Algorithm._algorithmVersion">
  12032. <summary>
  12033. Algorithm Version.
  12034. </summary>
  12035. </member>
  12036. <member name="F:Microsoft.Data.SqlClient.SqlAeadAes256CbcHmac256Algorithm._columnEncryptionKey">
  12037. <summary>
  12038. Column Encryption Key. This has a root key and three derived keys.
  12039. </summary>
  12040. </member>
  12041. <member name="F:Microsoft.Data.SqlClient.SqlAeadAes256CbcHmac256Algorithm._cryptoProviderPool">
  12042. <summary>
  12043. The pool of crypto providers to use for encrypt/decrypt operations.
  12044. </summary>
  12045. </member>
  12046. <member name="F:Microsoft.Data.SqlClient.SqlAeadAes256CbcHmac256Algorithm._version">
  12047. <summary>
  12048. Byte array with algorithm version used for authentication tag computation.
  12049. </summary>
  12050. </member>
  12051. <member name="F:Microsoft.Data.SqlClient.SqlAeadAes256CbcHmac256Algorithm._versionSize">
  12052. <summary>
  12053. Byte array with algorithm version size used for authentication tag computation.
  12054. </summary>
  12055. </member>
  12056. <member name="M:Microsoft.Data.SqlClient.SqlAeadAes256CbcHmac256Algorithm.#ctor(Microsoft.Data.SqlClient.SqlAeadAes256CbcHmac256EncryptionKey,Microsoft.Data.SqlClient.SqlClientEncryptionType,System.Byte)">
  12057. <summary>
  12058. Initializes a new instance of SqlAeadAes256CbcHmac256Algorithm algorithm with a given key and encryption type
  12059. </summary>
  12060. <param name="encryptionKey">
  12061. Root encryption key from which three other keys will be derived
  12062. </param>
  12063. <param name="encryptionType">Encryption Type, accepted values are Deterministic and Randomized.
  12064. For Deterministic encryption, a synthetic IV will be genenrated during encryption
  12065. For Randomized encryption, a random IV will be generated during encryption.
  12066. </param>
  12067. <param name="algorithmVersion">
  12068. Algorithm version
  12069. </param>
  12070. </member>
  12071. <member name="M:Microsoft.Data.SqlClient.SqlAeadAes256CbcHmac256Algorithm.EncryptData(System.Byte[])">
  12072. <summary>
  12073. Encryption Algorithm
  12074. cell_iv = HMAC_SHA-2-256(iv_key, cell_data) truncated to 128 bits
  12075. cell_ciphertext = AES-CBC-256(enc_key, cell_iv, cell_data) with PKCS7 padding.
  12076. cell_tag = HMAC_SHA-2-256(mac_key, versionbyte + cell_iv + cell_ciphertext + versionbyte_length)
  12077. cell_blob = versionbyte + cell_tag + cell_iv + cell_ciphertext
  12078. </summary>
  12079. <param name="plainText">Plaintext data to be encrypted</param>
  12080. <returns>Returns the ciphertext corresponding to the plaintext.</returns>
  12081. </member>
  12082. <member name="M:Microsoft.Data.SqlClient.SqlAeadAes256CbcHmac256Algorithm.EncryptData(System.Byte[],System.Boolean)">
  12083. <summary>
  12084. Encryption Algorithm
  12085. cell_iv = HMAC_SHA-2-256(iv_key, cell_data) truncated to 128 bits
  12086. cell_ciphertext = AES-CBC-256(enc_key, cell_iv, cell_data) with PKCS7 padding.
  12087. (optional) cell_tag = HMAC_SHA-2-256(mac_key, versionbyte + cell_iv + cell_ciphertext + versionbyte_length)
  12088. cell_blob = versionbyte + [cell_tag] + cell_iv + cell_ciphertext
  12089. </summary>
  12090. <param name="plainText">Plaintext data to be encrypted</param>
  12091. <param name="hasAuthenticationTag">Does the algorithm require authentication tag.</param>
  12092. <returns>Returns the ciphertext corresponding to the plaintext.</returns>
  12093. </member>
  12094. <member name="M:Microsoft.Data.SqlClient.SqlAeadAes256CbcHmac256Algorithm.DecryptData(System.Byte[])">
  12095. <summary>
  12096. Decryption steps
  12097. 1. Validate version byte
  12098. 2. Validate Authentication tag
  12099. 3. Decrypt the message
  12100. </summary>
  12101. <param name="cipherText"></param>
  12102. <returns></returns>
  12103. </member>
  12104. <member name="M:Microsoft.Data.SqlClient.SqlAeadAes256CbcHmac256Algorithm.DecryptData(System.Byte[],System.Boolean)">
  12105. <summary>
  12106. Decryption steps
  12107. 1. Validate version byte
  12108. 2. (optional) Validate Authentication tag
  12109. 3. Decrypt the message
  12110. </summary>
  12111. <param name="cipherText"></param>
  12112. <param name="hasAuthenticationTag"></param>
  12113. <returns></returns>
  12114. </member>
  12115. <member name="M:Microsoft.Data.SqlClient.SqlAeadAes256CbcHmac256Algorithm.DecryptData(System.Byte[],System.Byte[],System.Int32,System.Int32)">
  12116. <summary>
  12117. Decrypts plain text data using AES in CBC mode
  12118. </summary>
  12119. <param name="cipherText"> cipher text data to be decrypted</param>
  12120. <param name="offset"></param>
  12121. <param name="count"></param>
  12122. <param name="iv">IV to be used for decryption</param>
  12123. <returns>Returns decrypted plain text data</returns>
  12124. </member>
  12125. <member name="M:Microsoft.Data.SqlClient.SqlAeadAes256CbcHmac256Algorithm.PrepareAuthenticationTag(System.Byte[],System.Byte[],System.Int32,System.Int32)">
  12126. <summary>
  12127. Prepares an authentication tag.
  12128. Authentication Tag = HMAC_SHA-2-256(mac_key, versionbyte + cell_iv + cell_ciphertext + versionbyte_length)
  12129. </summary>
  12130. <param name="iv"></param>
  12131. <param name="cipherText"></param>
  12132. <param name="offset"></param>
  12133. <param name="length"></param>
  12134. <returns></returns>
  12135. </member>
  12136. <member name="T:Microsoft.Data.SqlClient.SqlAeadAes256CbcHmac256EncryptionKey">
  12137. <summary>
  12138. Encryption key class containing 4 keys. This class is used by SqlAeadAes256CbcHmac256Algorithm and SqlAes256CbcAlgorithm
  12139. 1) root key - Main key that is used to derive the keys used in the encryption algorithm
  12140. 2) encryption key - A derived key that is used to encrypt the plain text and generate cipher text
  12141. 3) mac_key - A derived key that is used to compute HMAC of the cipher text
  12142. 4) iv_key - A derived key that is used to generate a synthetic IV from plain text data.
  12143. </summary>
  12144. </member>
  12145. <member name="F:Microsoft.Data.SqlClient.SqlAeadAes256CbcHmac256EncryptionKey.KeySize">
  12146. <summary>
  12147. Key size in bits
  12148. </summary>
  12149. </member>
  12150. <member name="F:Microsoft.Data.SqlClient.SqlAeadAes256CbcHmac256EncryptionKey._encryptionKeySaltFormat">
  12151. <summary>
  12152. Encryption Key Salt format. This is used to derive the encryption key from the root key.
  12153. </summary>
  12154. </member>
  12155. <member name="F:Microsoft.Data.SqlClient.SqlAeadAes256CbcHmac256EncryptionKey._macKeySaltFormat">
  12156. <summary>
  12157. MAC Key Salt format. This is used to derive the MAC key from the root key.
  12158. </summary>
  12159. </member>
  12160. <member name="F:Microsoft.Data.SqlClient.SqlAeadAes256CbcHmac256EncryptionKey._ivKeySaltFormat">
  12161. <summary>
  12162. IV Key Salt format. This is used to derive the IV key from the root key. This is only used for Deterministic encryption.
  12163. </summary>
  12164. </member>
  12165. <member name="F:Microsoft.Data.SqlClient.SqlAeadAes256CbcHmac256EncryptionKey._encryptionKey">
  12166. <summary>
  12167. Encryption Key
  12168. </summary>
  12169. </member>
  12170. <member name="F:Microsoft.Data.SqlClient.SqlAeadAes256CbcHmac256EncryptionKey._macKey">
  12171. <summary>
  12172. MAC key
  12173. </summary>
  12174. </member>
  12175. <member name="F:Microsoft.Data.SqlClient.SqlAeadAes256CbcHmac256EncryptionKey._ivKey">
  12176. <summary>
  12177. IV Key
  12178. </summary>
  12179. </member>
  12180. <member name="F:Microsoft.Data.SqlClient.SqlAeadAes256CbcHmac256EncryptionKey._algorithmName">
  12181. <summary>
  12182. The name of the algorithm this key will be used with.
  12183. </summary>
  12184. </member>
  12185. <member name="M:Microsoft.Data.SqlClient.SqlAeadAes256CbcHmac256EncryptionKey.#ctor(System.Byte[],System.String)">
  12186. <summary>
  12187. Derives all the required keys from the given root key
  12188. </summary>
  12189. <param name="rootKey">Root key used to derive all the required derived keys</param>
  12190. <param name="algorithmName"></param>
  12191. </member>
  12192. <member name="P:Microsoft.Data.SqlClient.SqlAeadAes256CbcHmac256EncryptionKey.EncryptionKey">
  12193. <summary>
  12194. Encryption key should be used for encryption and decryption
  12195. </summary>
  12196. </member>
  12197. <member name="P:Microsoft.Data.SqlClient.SqlAeadAes256CbcHmac256EncryptionKey.MACKey">
  12198. <summary>
  12199. MAC key should be used to compute and validate HMAC
  12200. </summary>
  12201. </member>
  12202. <member name="P:Microsoft.Data.SqlClient.SqlAeadAes256CbcHmac256EncryptionKey.IVKey">
  12203. <summary>
  12204. IV key should be used to compute synthetic IV from a given plain text
  12205. </summary>
  12206. </member>
  12207. <member name="T:Microsoft.Data.SqlClient.ColumnMasterKeyMetadataSignatureVerificationCache">
  12208. <summary>
  12209. Cache for storing result of signature verfication of CMK Metadata
  12210. </summary>
  12211. </member>
  12212. <member name="M:Microsoft.Data.SqlClient.ColumnMasterKeyMetadataSignatureVerificationCache.GetSignatureVerificationResult(System.String,System.String,System.Boolean,System.Byte[])">
  12213. <summary>
  12214. Get signature verification result for given CMK metadata (KeystoreName, MasterKeyPath, allowEnclaveComputations) and a given signature
  12215. </summary>
  12216. <param name="keyStoreName">Key Store name for CMK</param>
  12217. <param name="masterKeyPath">Key Path for CMK</param>
  12218. <param name="allowEnclaveComputations">boolean indicating whether the key can be sent to enclave</param>
  12219. <param name="signature">Signature for the CMK metadata</param>
  12220. <returns>null if the data is not found in cache otherwise returns true/false indicating signature verification success/failure</returns>
  12221. </member>
  12222. <member name="M:Microsoft.Data.SqlClient.ColumnMasterKeyMetadataSignatureVerificationCache.AddSignatureVerificationResult(System.String,System.String,System.Boolean,System.Byte[],System.Boolean)">
  12223. <summary>
  12224. Add signature verification result for given CMK metadata (KeystoreName, MasterKeyPath, allowEnclaveComputations) and a given signature in the cache
  12225. </summary>
  12226. <param name="keyStoreName">Key Store name for CMK</param>
  12227. <param name="masterKeyPath">Key Path for CMK</param>
  12228. <param name="allowEnclaveComputations">boolean indicating whether the key can be sent to enclave</param>
  12229. <param name="signature">Signature for the CMK metadata</param>
  12230. <param name="result">result indicating signature verification success/failure</param>
  12231. </member>
  12232. <member name="T:Microsoft.Data.SqlClient.SqlAes256CbcAlgorithm">
  12233. <summary>
  12234. This class implements AES_256_CBC algorithm.
  12235. </summary>
  12236. </member>
  12237. <member name="F:Microsoft.Data.SqlClient.SqlAes256CbcAlgorithm.AlgorithmName">
  12238. <summary>
  12239. Algorithm Name
  12240. </summary>
  12241. </member>
  12242. <member name="M:Microsoft.Data.SqlClient.SqlAes256CbcAlgorithm.#ctor(Microsoft.Data.SqlClient.SqlAeadAes256CbcHmac256EncryptionKey,Microsoft.Data.SqlClient.SqlClientEncryptionType,System.Byte)">
  12243. <summary>
  12244. Initializes a new instance of SqlAes256CbcAlgorithm algorithm with a given key and encryption type
  12245. </summary>
  12246. <param name="encryptionKey">
  12247. Root encryption key from which three other keys will be derived
  12248. </param>
  12249. <param name="encryptionType">Encryption Type, accepted values are Deterministic and Randomized.
  12250. For Deterministic encryption, a synthetic IV will be genenrated during encryption
  12251. For Randomized encryption, a random IV will be generated during encryption.
  12252. </param>
  12253. <param name="algorithmVersion">
  12254. Algorithm version
  12255. </param>
  12256. </member>
  12257. <member name="M:Microsoft.Data.SqlClient.SqlAes256CbcAlgorithm.EncryptData(System.Byte[])">
  12258. <summary>
  12259. Encryption Algorithm
  12260. Simply call the base class, indicating we don't need an authentication tag.
  12261. </summary>
  12262. <param name="plainText">Plaintext data to be encrypted</param>
  12263. <returns>Returns the ciphertext corresponding to the plaintext.</returns>
  12264. </member>
  12265. <member name="M:Microsoft.Data.SqlClient.SqlAes256CbcAlgorithm.DecryptData(System.Byte[])">
  12266. <summary>
  12267. Decryption Algorithm
  12268. Simply call the base class, indicating we don't have an authentication tag.
  12269. </summary>
  12270. <param name="cipherText"></param>
  12271. <returns></returns>
  12272. </member>
  12273. <member name="T:Microsoft.Data.SqlClient.SqlClientEncryptionAlgorithmFactoryList">
  12274. <summary>
  12275. <para> Implements a global directory of all the encryption algorithms registered with client.</para>
  12276. </summary>
  12277. </member>
  12278. <member name="M:Microsoft.Data.SqlClient.SqlClientEncryptionAlgorithmFactoryList.GetRegisteredCipherAlgorithmNames">
  12279. <summary>
  12280. Get the registered list of algorithms as a comma separated list with algorithm names
  12281. wrapped in single quotes.
  12282. </summary>
  12283. </member>
  12284. <member name="M:Microsoft.Data.SqlClient.SqlClientEncryptionAlgorithmFactoryList.GetAlgorithm(Microsoft.Data.SqlClient.SqlClientSymmetricKey,System.Byte,System.String,Microsoft.Data.SqlClient.SqlClientEncryptionAlgorithm@)">
  12285. <summary>
  12286. Gets the algorithm handle instance for a given algorithm and instantiates it using the provided key and the encryption type.
  12287. </summary>
  12288. <param name="key"></param>
  12289. <param name="type"></param>
  12290. <param name="algorithmName"></param>
  12291. <param name="encryptionAlgorithm"></param>
  12292. </member>
  12293. <member name="T:Microsoft.Data.SqlClient.SqlAeadAes256CbcHmac256Factory">
  12294. <summary>
  12295. This is a factory class for AEAD_AES_256_CBC_HMAC_SHA256
  12296. </summary>
  12297. </member>
  12298. <member name="F:Microsoft.Data.SqlClient.SqlAeadAes256CbcHmac256Factory._encryptionAlgorithms">
  12299. <summary>
  12300. Factory classes caches the SqlAeadAes256CbcHmac256EncryptionKey objects to avoid computation of the derived keys
  12301. </summary>
  12302. </member>
  12303. <member name="M:Microsoft.Data.SqlClient.SqlAeadAes256CbcHmac256Factory.Create(Microsoft.Data.SqlClient.SqlClientSymmetricKey,Microsoft.Data.SqlClient.SqlClientEncryptionType,System.String)">
  12304. <summary>
  12305. Creates an instance of AeadAes256CbcHmac256Algorithm class with a given key
  12306. </summary>
  12307. <param name="encryptionKey">Root key</param>
  12308. <param name="encryptionType">Encryption Type. Expected values are either Determinitic or Randomized.</param>
  12309. <param name="encryptionAlgorithm">Encryption Algorithm.</param>
  12310. <returns></returns>
  12311. </member>
  12312. <member name="T:Microsoft.Data.SqlClient.SqlAes256CbcFactory">
  12313. <summary>
  12314. This is a factory class for AES_256_CBC.
  12315. </summary>
  12316. </member>
  12317. <member name="F:Microsoft.Data.SqlClient.SqlAes256CbcFactory._encryptionAlgorithms">
  12318. <summary>
  12319. Factory classes caches the SqlAeadAes256CbcHmac256EncryptionKey objects to avoid computation of the derived keys
  12320. </summary>
  12321. </member>
  12322. <member name="M:Microsoft.Data.SqlClient.SqlAes256CbcFactory.Create(Microsoft.Data.SqlClient.SqlClientSymmetricKey,Microsoft.Data.SqlClient.SqlClientEncryptionType,System.String)">
  12323. <summary>
  12324. Creates an instance of SqlAes256CbcAlgorithm class with a given key
  12325. </summary>
  12326. <param name="encryptionKey">Root key</param>
  12327. <param name="encryptionType">Encryption Type. Expected values are either Determinitic or Randomized.</param>
  12328. <param name="encryptionAlgorithm">Encryption Algorithm.</param>
  12329. <returns></returns>
  12330. </member>
  12331. <member name="T:Microsoft.Data.SqlClient.SqlSymmetricKeyCache">
  12332. <summary>
  12333. <para> Implements a cache of Symmetric Keys (once they are decrypted).Useful for rapidly decrypting multiple data values.</para>
  12334. </summary>
  12335. </member>
  12336. <member name="M:Microsoft.Data.SqlClient.SqlSymmetricKeyCache.GetKey(Microsoft.Data.SqlClient.SqlEncryptionKeyInfo,System.String,Microsoft.Data.SqlClient.SqlClientSymmetricKey@)">
  12337. <summary>
  12338. <para> Retrieves Symmetric Key (in plaintext) given the encryption material.</para>
  12339. </summary>
  12340. </member>
  12341. <member name="T:Microsoft.Data.SqlClient.SqlColumnEncryptionKeyStoreProvider">
  12342. <summary>Base class for all key store providers. A custom provider must derive from this class and override its member functions and then register it using SqlConnection.RegisterColumnEncryptionKeyStoreProviders(). For details see, <see href="https://docs.microsoft.com/sql/relational-databases/security/encryption/always-encrypted-database-engine"> Always Encrypted</see>.
  12343. </summary><remarks>To be added.</remarks>
  12344. </member>
  12345. <member name="M:Microsoft.Data.SqlClient.SqlColumnEncryptionKeyStoreProvider.DecryptColumnEncryptionKey(System.String,System.String,System.Byte[])">
  12346. <param name="masterKeyPath">The master key path.</param><param name="encryptionAlgorithm">The encryption algorithm.</param><param name="encryptedColumnEncryptionKey">The encrypted column encryption key.</param><summary>Decrypts the specified encrypted value of a column encryption key. The encrypted value is expected to be encrypted using the column master key with the specified key path and using the specified algorithm.
  12347. </summary><returns>Returns <see cref="T:System.Byte" />. The decrypted column encryption key.</returns><remarks>To be added.</remarks>
  12348. </member>
  12349. <member name="M:Microsoft.Data.SqlClient.SqlColumnEncryptionKeyStoreProvider.EncryptColumnEncryptionKey(System.String,System.String,System.Byte[])">
  12350. <param name="masterKeyPath">The master key path.</param><param name="encryptionAlgorithm">The encryption algorithm.</param><param name="columnEncryptionKey">The encrypted column encryption key.</param><summary>Encrypts a column encryption key using the column master key with the specified key path and using the specified algorithm.</summary><returns>Returns <see cref="T:System.Byte" />. The encrypted column encryption key.</returns><remarks>To be added.</remarks>
  12351. </member>
  12352. <member name="M:Microsoft.Data.SqlClient.SqlColumnEncryptionKeyStoreProvider.SignColumnMasterKeyMetadata(System.String,System.Boolean)">
  12353. <param name="masterKeyPath">The column master key path.</param><param name="allowEnclaveComputations"><see langword="true" /> to indicate that the column master key supports enclave computations; otherwise, <see langword="false" />.</param><summary>When implemented in a derived class, digitally signs the column master key metadata with the column master key referenced by the <paramref name="masterKeyPath" /> parameter. The input values used to generate the signature should be the specified values of the <paramref name="masterKeyPath" /> and <paramref name="allowEnclaveComputations" /> parameters.
  12354. </summary><returns>The signature of the column master key metadata.</returns><remarks>
  12355. <format type="text/markdown"><![CDATA[
  12356. ## Remarks
  12357. To ensure that the <xref:Microsoft.Data.SqlClient.SqlColumnEncryptionKeyStoreProvider.SignColumnMasterKeyMetadata%2A> method doesn't break applications that rely on an old API, it throws a
  12358. <xref:System.NotImplementedException> exception by default.
  12359. The <xref:Microsoft.Data.SqlClient.SqlColumnEncryptionKeyStoreProvider.SignColumnMasterKeyMetadata%2A> method will be used by client tools that generate Column Master Keys (CMK) for customers.
  12360. <xref:Microsoft.Data.SqlClient.SqlColumnEncryptionKeyStoreProvider.SignColumnMasterKeyMetadata%2A> must be implemented by the corresponding key store providers that wish to use enclaves with
  12361. [Always Encrypted](https://docs.microsoft.com/sql/relational-databases/security/encryption/always-encrypted-database-engine).
  12362. ]]></format>
  12363. </remarks><exception cref="T:System.NotImplementedException">In all cases.</exception>
  12364. </member>
  12365. <member name="M:Microsoft.Data.SqlClient.SqlColumnEncryptionKeyStoreProvider.VerifyColumnMasterKeyMetadata(System.String,System.Boolean,System.Byte[])">
  12366. <param name="masterKeyPath">The column master key path.</param><param name="allowEnclaveComputations">Indicates whether the column master key supports enclave computations.</param><param name="signature">The signature of the column master key metadata.</param><summary>When implemented in a derived class, this method is expected to verify the specified signature is valid for the column master key with the specified key path and the specified enclave behavior. The default implementation throws NotImplementedException.</summary><returns>When implemented in a derived class, the method is expected to return true if the specified signature is valid, or false if the specified signature is not valid. The default implementation throws NotImplementedException.</returns><remarks>To be added.</remarks>
  12367. </member>
  12368. <member name="T:Microsoft.Data.SqlClient.EnclavePackage">
  12369. <summary>
  12370. Class encapsulating necessary information about the byte package that needs to be sent to the enclave
  12371. </summary>
  12372. </member>
  12373. <member name="M:Microsoft.Data.SqlClient.EnclavePackage.#ctor(System.Byte[],Microsoft.Data.SqlClient.SqlEnclaveSession)">
  12374. <summary>
  12375. Constructor
  12376. </summary>
  12377. <param name="enclavePackageBytes">byte package to be sent to enclave</param>
  12378. <param name="enclaveSession"> enclave session to be used</param>
  12379. </member>
  12380. <member name="T:Microsoft.Data.SqlClient.SqlEnclaveSession">
  12381. <summary>Encapsulates the state of a secure session between SqlClient and an enclave inside SQL Server, which can be used for computations on encrypted columns protected with Always Encrypted.</summary><remarks>To be added.</remarks>
  12382. </member>
  12383. <member name="P:Microsoft.Data.SqlClient.SqlEnclaveSession.SessionId">
  12384. <summary>Gets the session ID.</summary><value>The session ID.</value><remarks>To be added.</remarks>
  12385. </member>
  12386. <member name="M:Microsoft.Data.SqlClient.SqlEnclaveSession.GetSessionKey">
  12387. <summary>Gets the symmetric key that SqlClient uses to encrypt all the information it sends to the enclave using the session.</summary><returns>The symmetric key.</returns><remarks>To be added.</remarks>
  12388. </member>
  12389. <member name="M:Microsoft.Data.SqlClient.SqlEnclaveSession.Clone(System.Byte[])">
  12390. <summary>
  12391. Deep copy the array into a new array
  12392. </summary>
  12393. <param name="arrayToClone"></param>
  12394. <returns></returns>
  12395. </member>
  12396. <member name="M:Microsoft.Data.SqlClient.SqlEnclaveSession.#ctor(System.Byte[],System.Int64)">
  12397. <param name="sessionKey">The symmetric key used to encrypt all the information sent using the session.</param><param name="sessionId">The session ID.</param><summary>Instantiates a new instance of the <see cref="T:Microsoft.Data.SqlClient.SqlEnclaveSession" /> class.</summary><remarks>To be added.</remarks><exception cref="T:System.ArgumentNullException">
  12398. <paramref name="sessionKey" /> is <see langword="null" />.</exception><exception cref="T:System.ArgumentException">
  12399. <paramref name="sessionKey" /> has zero length.</exception>
  12400. </member>
  12401. <member name="T:Microsoft.Data.SqlClient.SqlQueryMetadataCache">
  12402. <summary>
  12403. <para> Implements a cache of query paramater metadata that is used to avoid the extra roundtrip to the server for every execution of the same query.</para>
  12404. </summary>
  12405. </member>
  12406. <member name="M:Microsoft.Data.SqlClient.SqlQueryMetadataCache.GetQueryMetadataIfExists(Microsoft.Data.SqlClient.SqlCommand)">
  12407. <summary>
  12408. <para> Retrieves the query metadata for a specific query from the cache.</para>
  12409. </summary>
  12410. </member>
  12411. <member name="M:Microsoft.Data.SqlClient.SqlQueryMetadataCache.AddQueryMetadata(Microsoft.Data.SqlClient.SqlCommand,System.Boolean)">
  12412. <summary>
  12413. <para> Add the metadata for a specific query to the cache.</para>
  12414. </summary>
  12415. </member>
  12416. <member name="M:Microsoft.Data.SqlClient.SqlQueryMetadataCache.InvalidateCacheEntry(Microsoft.Data.SqlClient.SqlCommand)">
  12417. <summary>
  12418. <para> Remove the metadata for a specific query from the cache.</para>
  12419. </summary>
  12420. </member>
  12421. <member name="M:Microsoft.Data.SqlClient.SqlQueryMetadataCache.IncrementCacheHits">
  12422. <summary>
  12423. Increments the counter for the cache hits in the query metadata cache.
  12424. </summary>
  12425. </member>
  12426. <member name="M:Microsoft.Data.SqlClient.SqlQueryMetadataCache.IncrementCacheMisses">
  12427. <summary>
  12428. Increments the counter for the cache misses in the query metadata cache.
  12429. </summary>
  12430. </member>
  12431. <member name="M:Microsoft.Data.SqlClient.SqlQueryMetadataCache.ResetCacheCounts">
  12432. <summary>
  12433. Resets the counters for the cache hits and misses in the query metadata cache.
  12434. </summary>
  12435. </member>
  12436. <member name="T:Microsoft.Data.SqlClient.ColumnEncryptionKeyInfo">
  12437. <summary>
  12438. Class encapsulating Column encryption key info
  12439. </summary>
  12440. </member>
  12441. <member name="M:Microsoft.Data.SqlClient.ColumnEncryptionKeyInfo.#ctor(System.Byte[],System.Int32,System.Byte[],System.Int32)">
  12442. <summary>
  12443. Constructor
  12444. </summary>
  12445. <param name="decryptedKey">Decrypted key bytes</param>
  12446. <param name="databaseId">database id for this column encryption key</param>
  12447. <param name="keyMetadataVersion">key metadata version for this column encryption key</param>
  12448. <param name="keyid">key id for this column encryption key</param>
  12449. </member>
  12450. <member name="M:Microsoft.Data.SqlClient.ColumnEncryptionKeyInfo.GetLengthForSerialization">
  12451. <summary>
  12452. Calculates number of bytes required to serialize this object
  12453. </summary>
  12454. <returns>Number of bytes required for serialization</returns>
  12455. </member>
  12456. <member name="M:Microsoft.Data.SqlClient.ColumnEncryptionKeyInfo.SerializeToBuffer(System.Byte[],System.Int32)">
  12457. <summary>
  12458. Serialize this object in a given byte[] starting at a given offset
  12459. </summary>
  12460. <param name="bytePackage">byte array for serialization</param>
  12461. <param name="startOffset">start offset in byte array</param>
  12462. <returns>next available offset</returns>
  12463. </member>
  12464. <member name="T:Microsoft.Data.SqlClient.DataClassification.Label">
  12465. <summary>Represents the Data Classification Labels as received from SQL Server for the active 'SqlDataReader'</summary><remarks>To be added.</remarks>
  12466. </member>
  12467. <member name="P:Microsoft.Data.SqlClient.DataClassification.Label.Name">
  12468. <summary>Gets the name for this 'Label' object</summary><value>Name of label.</value><remarks>To be added.</remarks>
  12469. </member>
  12470. <member name="P:Microsoft.Data.SqlClient.DataClassification.Label.Id">
  12471. <summary>Gets the ID for this 'Label' object</summary><value>ID of label.</value><remarks>To be added.</remarks>
  12472. </member>
  12473. <member name="M:Microsoft.Data.SqlClient.DataClassification.Label.#ctor(System.String,System.String)">
  12474. <summary>Initializes a new instance of the <see cref="T:Microsoft.Data.SqlClient.DataClassification.Label" /> class.</summary>
  12475. </member>
  12476. <member name="T:Microsoft.Data.SqlClient.DataClassification.InformationType">
  12477. <summary>Represents the Data Classification Information Types as received from SQL Server for the active 'SqlDataReader'</summary><remarks>To be added.</remarks>
  12478. </member>
  12479. <member name="P:Microsoft.Data.SqlClient.DataClassification.InformationType.Name">
  12480. <summary>Gets the name for this 'InformationType' object</summary><value>Name of InformationType.</value><remarks>To be added.</remarks>
  12481. </member>
  12482. <member name="P:Microsoft.Data.SqlClient.DataClassification.InformationType.Id">
  12483. <summary>Gets the ID for this 'InformationType' object</summary><value>ID of InformationType.</value><remarks>To be added.</remarks>
  12484. </member>
  12485. <member name="M:Microsoft.Data.SqlClient.DataClassification.InformationType.#ctor(System.String,System.String)">
  12486. <summary>Initializes a new instance of the <see cref="T:Microsoft.Data.SqlClient.DataClassification.InformationType" /> class.</summary>
  12487. </member>
  12488. <member name="T:Microsoft.Data.SqlClient.DataClassification.SensitivityProperty">
  12489. <summary>Represents the Data Classification Sensitivity Information for columns as configured in Database.</summary><remarks>To be added.</remarks>
  12490. </member>
  12491. <member name="P:Microsoft.Data.SqlClient.DataClassification.SensitivityProperty.Label">
  12492. <summary>Returns the label for this 'SensitivityProperty' Object</summary><value>Label for this SensitivityProperty.</value><remarks>To be added.</remarks>
  12493. </member>
  12494. <member name="P:Microsoft.Data.SqlClient.DataClassification.SensitivityProperty.InformationType">
  12495. <summary>Returns the information type for this 'SensitivityProperty' Object</summary><value>Information type for this SensitivityProperty.</value><remarks>To be added.</remarks>
  12496. </member>
  12497. <member name="M:Microsoft.Data.SqlClient.DataClassification.SensitivityProperty.#ctor(Microsoft.Data.SqlClient.DataClassification.Label,Microsoft.Data.SqlClient.DataClassification.InformationType)">
  12498. <summary>Initializes a new instance of the <see cref="T:Microsoft.Data.SqlClient.DataClassification.SensitivityProperty" /> class.</summary>
  12499. </member>
  12500. <member name="T:Microsoft.Data.SqlClient.DataClassification.ColumnSensitivity">
  12501. <summary>Represents the Data Classification Sensitivity Information for columns as configured in Database.</summary><remarks>To be added.</remarks>
  12502. </member>
  12503. <member name="P:Microsoft.Data.SqlClient.DataClassification.ColumnSensitivity.SensitivityProperties">
  12504. <summary>Returns the list of sensitivity properties as received from Server for this 'ColumnSensitivity' information</summary><value>List of sensitivity properties.</value><remarks>To be added.</remarks>
  12505. </member>
  12506. <member name="M:Microsoft.Data.SqlClient.DataClassification.ColumnSensitivity.#ctor(System.Collections.Generic.IList{Microsoft.Data.SqlClient.DataClassification.SensitivityProperty})">
  12507. <summary>Initializes a new instance of the <see cref="T:Microsoft.Data.SqlClient.DataClassification.ColumnSensitivity" /> class.</summary>
  12508. </member>
  12509. <member name="T:Microsoft.Data.SqlClient.DataClassification.SensitivityClassification">
  12510. <summary>Provides the functionlity to retrieve Sensitivity Classification data as received from SQL Server for the active 'SqlDataReader'</summary><remarks>To be added.</remarks>
  12511. </member>
  12512. <member name="P:Microsoft.Data.SqlClient.DataClassification.SensitivityClassification.Labels">
  12513. <summary>Returns the labels collection for this 'SensitivityClassification' Object</summary><value>List of labels.</value><remarks>To be added.</remarks>
  12514. </member>
  12515. <member name="P:Microsoft.Data.SqlClient.DataClassification.SensitivityClassification.InformationTypes">
  12516. <summary>Returns the information types collection for this 'SensitivityClassification' Object</summary><value>List of information types.</value><remarks>To be added.</remarks>
  12517. </member>
  12518. <member name="P:Microsoft.Data.SqlClient.DataClassification.SensitivityClassification.ColumnSensitivities">
  12519. <summary>Returns the column sensitivity for this 'SensitivityClassification' Object</summary><value>List of column sensitivities.</value><remarks>To be added.</remarks>
  12520. </member>
  12521. <member name="M:Microsoft.Data.SqlClient.DataClassification.SensitivityClassification.#ctor(System.Collections.Generic.IList{Microsoft.Data.SqlClient.DataClassification.Label},System.Collections.Generic.IList{Microsoft.Data.SqlClient.DataClassification.InformationType},System.Collections.Generic.IList{Microsoft.Data.SqlClient.DataClassification.ColumnSensitivity})">
  12522. <summary>Initializes a new instance of the <see cref="T:Microsoft.Data.SqlClient.DataClassification.SensitivityClassification" />
  12523. class.</summary>
  12524. </member>
  12525. <member name="T:Microsoft.Data.SqlClient.SqlColumnEncryptionCertificateStoreProvider">
  12526. <summary>The implementation of the key store provider for Windows Certificate Store. This class enables using certificates stored in the Windows Certificate Store as column master keys.
  12527. For details, see <see href="https://docs.microsoft.com/sql/relational-databases/security/encryption/always-encrypted-database-engine">Always Encrypted</see>.
  12528. </summary><remarks>To be added.</remarks>
  12529. </member>
  12530. <member name="F:Microsoft.Data.SqlClient.SqlColumnEncryptionCertificateStoreProvider.ProviderName">
  12531. <summary>The provider name.</summary><remarks>To be added.</remarks>
  12532. </member>
  12533. <member name="F:Microsoft.Data.SqlClient.SqlColumnEncryptionCertificateStoreProvider.RSAEncryptionAlgorithmWithOAEP">
  12534. <summary>
  12535. RSA_OAEP is the only algorithm supported for encrypting/decrypting column encryption keys.
  12536. </summary>
  12537. </member>
  12538. <member name="F:Microsoft.Data.SqlClient.SqlColumnEncryptionCertificateStoreProvider._certLocationLocalMachine">
  12539. <summary>
  12540. LocalMachine certificate store location. Valid certificate locations are LocalMachine and CurrentUser.
  12541. </summary>
  12542. </member>
  12543. <member name="F:Microsoft.Data.SqlClient.SqlColumnEncryptionCertificateStoreProvider._certLocationCurrentUser">
  12544. <summary>
  12545. CurrentUser certificate store location. Valid certificate locations are LocalMachine and CurrentUser.
  12546. </summary>
  12547. </member>
  12548. <member name="F:Microsoft.Data.SqlClient.SqlColumnEncryptionCertificateStoreProvider._myCertificateStore">
  12549. <summary>
  12550. Valid certificate store
  12551. </summary>
  12552. </member>
  12553. <member name="F:Microsoft.Data.SqlClient.SqlColumnEncryptionCertificateStoreProvider._certificatePathFormat">
  12554. <summary>
  12555. Certificate path format. This is a custom format.
  12556. </summary>
  12557. </member>
  12558. <member name="F:Microsoft.Data.SqlClient.SqlColumnEncryptionCertificateStoreProvider._hashingAlgorithm">
  12559. <summary>
  12560. Hashig algoirthm used for signing
  12561. </summary>
  12562. </member>
  12563. <member name="F:Microsoft.Data.SqlClient.SqlColumnEncryptionCertificateStoreProvider._version">
  12564. <summary>
  12565. Algorithm version
  12566. </summary>
  12567. </member>
  12568. <member name="M:Microsoft.Data.SqlClient.SqlColumnEncryptionCertificateStoreProvider.DecryptColumnEncryptionKey(System.String,System.String,System.Byte[])">
  12569. <param name="masterKeyPath">The master key path.</param><param name="encryptionAlgorithm">The encryption algorithm. Currently, the only valid value is: <c>RSA_OAEP</c>
  12570. </param><param name="encryptedColumnEncryptionKey">The encrypted column encryption key.</param><summary>Decrypts the specified encrypted value of a column encryption key. The encrypted value is expected to be encrypted using the certificate with the specified key path and using the specified
  12571. algorithm. The format of the key path should be "Local Machine/My/&lt;certificate_thumbprint&gt;" or "Current User/My/&lt;certificate_thumbprint&gt;".
  12572. </summary><returns>Returns <see cref="T:System.Byte" />
  12573. . The decrypted column encryption key.</returns><remarks>To be added.</remarks>
  12574. </member>
  12575. <member name="M:Microsoft.Data.SqlClient.SqlColumnEncryptionCertificateStoreProvider.EncryptColumnEncryptionKey(System.String,System.String,System.Byte[])">
  12576. <param name="masterKeyPath">The master key path.</param><param name="encryptionAlgorithm">The encryption algorithm. Currently, the only valid value is: <c>RSA_OAEP</c>
  12577. </param><param name="columnEncryptionKey">The encrypted column encryption key.</param><summary>Encrypts a column encryption key using the certificate with the specified key path and using the specified algorithm. The format of the key path should be
  12578. "Local Machine/My/&lt;certificate_thumbprint&gt;" or "Current User/My/&lt;certificate_thumbprint&gt;".
  12579. </summary><returns>Returns <see cref="T:System.Byte" />
  12580. . The encrypted column encryption key.</returns><remarks>To be added.</remarks>
  12581. </member>
  12582. <member name="M:Microsoft.Data.SqlClient.SqlColumnEncryptionCertificateStoreProvider.SignColumnMasterKeyMetadata(System.String,System.Boolean)">
  12583. <param name="masterKeyPath">The column master key path.</param><param name="allowEnclaveComputations">
  12584. <see langword="true" />
  12585. to indicate that the column master key supports enclave computations; otherwise, <see langword="false" />
  12586. .</param><summary>Digitally signs the column master key metadata with the column master key referenced by the <paramref name="masterKeyPath" />
  12587. parameter.</summary><returns>The signature of the column master key metadata.</returns><remarks>To be added.</remarks>
  12588. </member>
  12589. <member name="M:Microsoft.Data.SqlClient.SqlColumnEncryptionCertificateStoreProvider.VerifyColumnMasterKeyMetadata(System.String,System.Boolean,System.Byte[])">
  12590. <param name="masterKeyPath">The complete path of an asymmetric key. The path format is specific to a key store provider.</param><param name="allowEnclaveComputations">A Boolean that indicates if this key can be sent to the trusted enclave.</param><param name="signature">The master key metadata siognature.</param><summary>This function must be implemented by the corresponding Key Store providers. This function should use an asymmetric key identified by a key path and verify the masterkey metadata consisting of (masterKeyPath, allowEnclaveComputations, providerName).</summary><returns>A Boolean value that indicates if the master key metadata can be verified based on the provided signature.</returns><remarks>To be added.</remarks>
  12591. </member>
  12592. <member name="M:Microsoft.Data.SqlClient.SqlColumnEncryptionCertificateStoreProvider.ValidateEncryptionAlgorithm(System.String,System.Boolean)">
  12593. <summary>
  12594. This function validates that the encryption algorithm is RSA_OAEP and if it is not,
  12595. then throws an exception
  12596. </summary>
  12597. <param name="encryptionAlgorithm">Asymmetric key encryptio algorithm</param>
  12598. <param name="isSystemOp"></param>
  12599. </member>
  12600. <member name="M:Microsoft.Data.SqlClient.SqlColumnEncryptionCertificateStoreProvider.ValidateCertificatePathLength(System.String,System.Boolean)">
  12601. <summary>
  12602. Certificate path length has to fit in two bytes, so check its value against Int16.MaxValue
  12603. </summary>
  12604. <param name="masterKeyPath"></param>
  12605. <param name="isSystemOp"></param>
  12606. </member>
  12607. <member name="M:Microsoft.Data.SqlClient.SqlColumnEncryptionCertificateStoreProvider.GetValidCertificateLocations">
  12608. <summary>
  12609. Gets a string array containing Valid certificate locations.
  12610. </summary>
  12611. </member>
  12612. <member name="M:Microsoft.Data.SqlClient.SqlColumnEncryptionCertificateStoreProvider.ValidateNonEmptyCertificatePath(System.String,System.Boolean)">
  12613. <summary>
  12614. Checks if the certificate path is Empty or Null (and raises exception if they are).
  12615. </summary>
  12616. </member>
  12617. <member name="M:Microsoft.Data.SqlClient.SqlColumnEncryptionCertificateStoreProvider.GetCertificateByPath(System.String,System.Boolean)">
  12618. <summary>
  12619. Parses the given certificate path, searches in certificate store and returns a matching certificate
  12620. </summary>
  12621. <param name="keyPath">
  12622. Certificate key path. Format of the path is [LocalMachine|CurrentUser]/[storename]/thumbprint
  12623. </param>
  12624. <param name="isSystemOp"></param>
  12625. <returns>Returns the certificate identified by the certificate path</returns>
  12626. </member>
  12627. <member name="M:Microsoft.Data.SqlClient.SqlColumnEncryptionCertificateStoreProvider.GetCertificate(System.Security.Cryptography.X509Certificates.StoreLocation,System.Security.Cryptography.X509Certificates.StoreName,System.String,System.String,System.Boolean)">
  12628. <summary>
  12629. Searches for a certificate in certificate store and returns the matching certificate
  12630. </summary>
  12631. <param name="storeLocation">Store Location: This can be one of LocalMachine or UserName</param>
  12632. <param name="storeName">Store Location: Currently this can only be My store.</param>
  12633. <param name="masterKeyPath"></param>
  12634. <param name="thumbprint">Certificate thumbprint</param>
  12635. <param name="isSystemOp"></param>
  12636. <returns>Matching certificate</returns>
  12637. </member>
  12638. <member name="M:Microsoft.Data.SqlClient.SqlColumnEncryptionCertificateStoreProvider.RSAEncrypt(System.Byte[],System.Security.Cryptography.X509Certificates.X509Certificate2)">
  12639. <summary>
  12640. Encrypt the text using specified certificate.
  12641. </summary>
  12642. <param name="plainText">Text to encrypt.</param>
  12643. <param name="certificate">Certificate object.</param>
  12644. <returns>Returns an encrypted blob or throws an exception if there are any errors.</returns>
  12645. </member>
  12646. <member name="M:Microsoft.Data.SqlClient.SqlColumnEncryptionCertificateStoreProvider.RSADecrypt(System.Byte[],System.Security.Cryptography.X509Certificates.X509Certificate2)">
  12647. <summary>
  12648. Encrypt the text using specified certificate.
  12649. </summary>
  12650. <param name="cipherText">Text to decrypt.</param>
  12651. <param name="certificate">Certificate object.</param>
  12652. </member>
  12653. <member name="M:Microsoft.Data.SqlClient.SqlColumnEncryptionCertificateStoreProvider.RSASignHashedData(System.Byte[],System.Security.Cryptography.X509Certificates.X509Certificate2)">
  12654. <summary>
  12655. Generates signature based on RSA PKCS#v1.5 scheme using a specified certificate.
  12656. </summary>
  12657. <param name="dataToSign">Text to sign.</param>
  12658. <param name="certificate">Certificate object.</param>
  12659. <returns>Signature</returns>
  12660. </member>
  12661. <member name="M:Microsoft.Data.SqlClient.SqlColumnEncryptionCertificateStoreProvider.RSAVerifySignature(System.Byte[],System.Byte[],System.Security.Cryptography.X509Certificates.X509Certificate2)">
  12662. <summary>
  12663. Verifies the given RSA PKCSv1.5 signature.
  12664. </summary>
  12665. <param name="dataToVerify"></param>
  12666. <param name="signature"></param>
  12667. <param name="certificate"></param>
  12668. <returns>true if signature is valid, false if it is not valid</returns>
  12669. </member>
  12670. <member name="T:Microsoft.Data.SqlClient.SqlColumnEncryptionCngProvider">
  12671. <summary>The CMK Store provider implementation for using the Microsoft Cryptography API: Next Generation (CNG) with
  12672. <see href="https://docs.microsoft.com/sql/relational-databases/security/encryption/always-encrypted-database-engine">Always Encrypted</see>.
  12673. </summary><remarks>
  12674. <format type="text/markdown"><![CDATA[
  12675. ## Remarks
  12676. Enables storing Always Encrypted column master key keys in a store, such as a hardware security module (HSM), that supports the Microsoft Cryptography API: Next Generation (CNG).
  12677. ]]></format>
  12678. </remarks>
  12679. </member>
  12680. <member name="F:Microsoft.Data.SqlClient.SqlColumnEncryptionCngProvider.ProviderName">
  12681. <summary>A constant string for the provider name 'MSSQL_CNG_STORE'.</summary><remarks>To be added.</remarks>
  12682. </member>
  12683. <member name="F:Microsoft.Data.SqlClient.SqlColumnEncryptionCngProvider.RSAEncryptionAlgorithmWithOAEP">
  12684. <summary>
  12685. RSA_OAEP is the only algorithm supported for encrypting/decrypting column encryption keys using this provider.
  12686. For now, we are keeping all the providers in sync.
  12687. </summary>
  12688. </member>
  12689. <member name="F:Microsoft.Data.SqlClient.SqlColumnEncryptionCngProvider._version">
  12690. <summary>
  12691. Algorithm version
  12692. </summary>
  12693. </member>
  12694. <member name="M:Microsoft.Data.SqlClient.SqlColumnEncryptionCngProvider.DecryptColumnEncryptionKey(System.String,System.String,System.Byte[])">
  12695. <param name="masterKeyPath">The master key path.</param><param name="encryptionAlgorithm">The encryption algorithm.</param><param name="encryptedColumnEncryptionKey">The encrypted column encryption key.</param><summary>Decrypts the given encrypted value using an asymmetric key specified by the key path and the specified algorithm. The key path will be in the format of [ProviderName]/KeyIdentifier
  12696. and should be an asymmetric key stored in the specified CNG key store provider. The valid algorithm used to encrypt/decrypt the CEK is 'RSA_OAEP'.
  12697. </summary><returns>The decrypted column encryption key.</returns><remarks>To be added.</remarks>
  12698. </member>
  12699. <member name="M:Microsoft.Data.SqlClient.SqlColumnEncryptionCngProvider.EncryptColumnEncryptionKey(System.String,System.String,System.Byte[])">
  12700. <param name="masterKeyPath">The master key path.</param><param name="encryptionAlgorithm">The encryption algorithm.</param><param name="columnEncryptionKey">The encrypted column encryption key.</param><summary>Encrypts the given plain text column encryption key using an asymmetric key specified by the key path and the specified algorithm. The key path will be in the format of [ProviderName]/KeyIdentifier and should be an asymmetric key stored in the specified CNG key store provider. The valid algorithm used to encrypt/decrypt the CEK is 'RSA_OAEP'.</summary><returns>The encrypted column encryption key.</returns><remarks>To be added.</remarks>
  12701. </member>
  12702. <member name="M:Microsoft.Data.SqlClient.SqlColumnEncryptionCngProvider.SignColumnMasterKeyMetadata(System.String,System.Boolean)">
  12703. <param name="masterKeyPath">The column master key path. The path format is specific to a key store provider.</param><param name="allowEnclaveComputations"><see langword="true" /> to indicate that the column master key supports enclave computations; otherwise, <see langword="false" />.</param><summary>Throws a <see cref="T:System.NotSupportedException" /> exception in all cases.</summary><returns>The signature of the column master key metadata.</returns><remarks>
  12704. <format type="text/markdown"><![CDATA[
  12705. ## Remarks
  12706. The <xref:Microsoft.Data.SqlClient.SqlColumnEncryptionCngProvider.SignColumnMasterKeyMetadata%2A> method must be implemented by the corresponding key store providers.
  12707. <xref:Microsoft.Data.SqlClient.SqlColumnEncryptionCngProvider.SignColumnMasterKeyMetadata%2A> should use an asymmetric key identified by a key path and sign the masterkey metadata consisting
  12708. of `masterKeyPath`, `allowEnclaveComputations`, and providerName.
  12709. ]]></format>
  12710. </remarks>
  12711. </member>
  12712. <member name="M:Microsoft.Data.SqlClient.SqlColumnEncryptionCngProvider.VerifyColumnMasterKeyMetadata(System.String,System.Boolean,System.Byte[])">
  12713. <param name="masterKeyPath">The complete path of an asymmetric key. The path format is specific to a key store provider.</param><param name="allowEnclaveComputations">A Boolean that indicates if this key can be sent to the trusted enclave.</param><param name="signature">The master key metadata signature.</param><summary>This function must be implemented by the corresponding Key Store providers. This function should use an asymmetric key identified by a key path and verify the masterkey metadata consisting of (masterKeyPath, allowEnclaveComputations, providerName).</summary><returns>A Boolean that indicates if the master key metadata can be verified based on the provided signature.</returns><remarks>To be added.</remarks>
  12714. </member>
  12715. <member name="M:Microsoft.Data.SqlClient.SqlColumnEncryptionCngProvider.ValidateEncryptionAlgorithm(System.String,System.Boolean)">
  12716. <summary>
  12717. This function validates that the encryption algorithm is RSA_OAEP and if it is not,
  12718. then throws an exception
  12719. </summary>
  12720. <param name="encryptionAlgorithm">Asymmetric key encryptio algorithm</param>
  12721. <param name="isSystemOp">Indicates if ADO.NET calls or the customer calls the API</param>
  12722. </member>
  12723. <member name="M:Microsoft.Data.SqlClient.SqlColumnEncryptionCngProvider.ValidateNonEmptyKeyPath(System.String,System.Boolean)">
  12724. <summary>
  12725. Checks if the CNG key path is Empty or Null (and raises exception if they are).
  12726. </summary>
  12727. <param name="masterKeyPath">keypath containing the CNG provider name and key name</param>
  12728. <param name="isSystemOp">Indicates if ADO.NET calls or the customer calls the API</param>
  12729. </member>
  12730. <member name="M:Microsoft.Data.SqlClient.SqlColumnEncryptionCngProvider.RSAEncrypt(System.Security.Cryptography.RSACng,System.Byte[])">
  12731. <summary>
  12732. Encrypt the text using specified CNG key.
  12733. </summary>
  12734. <param name="rsaCngProvider">RSA CNG Provider.</param>
  12735. <param name="columnEncryptionKey">Plain text Column Encryption Key.</param>
  12736. <returns>Returns an encrypted blob or throws an exception if there are any errors.</returns>
  12737. </member>
  12738. <member name="M:Microsoft.Data.SqlClient.SqlColumnEncryptionCngProvider.RSADecrypt(System.Security.Cryptography.RSACng,System.Byte[])">
  12739. <summary>
  12740. Decrypt the text using the specified CNG key.
  12741. </summary>
  12742. <param name="rsaCngProvider">RSA CNG Provider.</param>
  12743. <param name="encryptedColumnEncryptionKey">Encrypted Column Encryption Key.</param>
  12744. <returns>Returns the decrypted plaintext Column Encryption Key or throws an exception if there are any errors.</returns>
  12745. </member>
  12746. <member name="M:Microsoft.Data.SqlClient.SqlColumnEncryptionCngProvider.RSASignHashedData(System.Byte[],System.Security.Cryptography.RSACng)">
  12747. <summary>
  12748. Generates signature based on RSA PKCS#v1.5 scheme using a specified CNG Key.
  12749. </summary>
  12750. <param name="dataToSign">Text to sign.</param>
  12751. <param name="rsaCngProvider">RSA CNG Provider.</param>
  12752. <returns>Signature</returns>
  12753. </member>
  12754. <member name="M:Microsoft.Data.SqlClient.SqlColumnEncryptionCngProvider.RSAVerifySignature(System.Byte[],System.Byte[],System.Security.Cryptography.RSACng)">
  12755. <summary>
  12756. Verifies the given RSA PKCSv1.5 signature.
  12757. </summary>
  12758. <param name="dataToVerify"></param>
  12759. <param name="signature"></param>
  12760. <param name="rsaCngProvider">RSA CNG Provider.</param>
  12761. <returns>true if signature is valid, false if it is not valid</returns>
  12762. </member>
  12763. <member name="M:Microsoft.Data.SqlClient.SqlColumnEncryptionCngProvider.GetKeySize(System.Security.Cryptography.RSACng)">
  12764. <summary>
  12765. Gets the public Key size in bytes
  12766. </summary>
  12767. <param name="rsaCngProvider">RSA CNG Provider.</param>
  12768. <returns>Key size in bytes</returns>
  12769. </member>
  12770. <member name="M:Microsoft.Data.SqlClient.SqlColumnEncryptionCngProvider.CreateRSACngProvider(System.String,System.Boolean)">
  12771. <summary>
  12772. Creates a RSACng object from the given keyName
  12773. </summary>
  12774. <param name="keyPath"></param>
  12775. <param name="isSystemOp">Indicates if ADO.NET calls or the customer calls the API</param>
  12776. <returns></returns>
  12777. </member>
  12778. <member name="M:Microsoft.Data.SqlClient.SqlColumnEncryptionCngProvider.GetCngProviderAndKeyId(System.String,System.Boolean,System.String@,System.String@)">
  12779. <summary>
  12780. Extracts the CNG provider and key name from the key path
  12781. </summary>
  12782. <param name="keyPath">keypath in the format [CNG Provider]\[KeyName]</param>
  12783. <param name="isSystemOp">Indicates if ADO.NET calls or the customer calls the API</param>
  12784. <param name="cngProvider">CNG Provider</param>
  12785. <param name="keyIdentifier">Key identifier inside the CNG provider</param>
  12786. </member>
  12787. <member name="T:Microsoft.Data.SqlClient.SqlColumnEncryptionCspProvider">
  12788. <summary>The CMK Store provider implementation for using Microsoft CAPI based Cryptographic Service Providers (CSP) with
  12789. <see href="https://docs.microsoft.com/sql/relational-databases/security/encryption/always-encrypted-database-engine">Always Encrypted</see>.
  12790. </summary><remarks>
  12791. <format type="text/markdown"><![CDATA[
  12792. ## Remarks
  12793. Enables storing Always Encrypted column master key keys in a store, such as a hardware security module (HSM), that supports the Microsoft CAPI based Cryptographic Service Providers (CSP).
  12794. ]]></format>
  12795. </remarks>
  12796. </member>
  12797. <member name="F:Microsoft.Data.SqlClient.SqlColumnEncryptionCspProvider.ProviderName">
  12798. <summary>A constant string for the provider name 'MSSQL_CSP_PROVIDER'.</summary><remarks>To be added.</remarks>
  12799. </member>
  12800. <member name="F:Microsoft.Data.SqlClient.SqlColumnEncryptionCspProvider.RSAEncryptionAlgorithmWithOAEP">
  12801. <summary>
  12802. RSA_OAEP is the only algorithm supported for encrypting/decrypting column encryption keys using this provider.
  12803. For now, we are keeping all the providers in sync.
  12804. </summary>
  12805. </member>
  12806. <member name="F:Microsoft.Data.SqlClient.SqlColumnEncryptionCspProvider.HashingAlgorithm">
  12807. <summary>
  12808. Hashing algoirthm used for signing
  12809. </summary>
  12810. </member>
  12811. <member name="F:Microsoft.Data.SqlClient.SqlColumnEncryptionCspProvider._version">
  12812. <summary>
  12813. Algorithm version
  12814. </summary>
  12815. </member>
  12816. <member name="M:Microsoft.Data.SqlClient.SqlColumnEncryptionCspProvider.DecryptColumnEncryptionKey(System.String,System.String,System.Byte[])">
  12817. <param name="masterKeyPath">The master key path.</param><param name="encryptionAlgorithm">The encryption algorithm.</param><param name="encryptedColumnEncryptionKey">The encrypted column encryption key.</param><summary>Decrypts the given encrypted value using an asymmetric key specified by the key path and algorithm. The key path will be in the format of [ProviderName]/KeyIdentifier and should be an asymmetric key stored in the specified CSP provider. The valid algorithm used to encrypt/decrypt the CEK is 'RSA_OAEP'.</summary><returns>The decrypted column encryption key.</returns><remarks>To be added.</remarks>
  12818. </member>
  12819. <member name="M:Microsoft.Data.SqlClient.SqlColumnEncryptionCspProvider.EncryptColumnEncryptionKey(System.String,System.String,System.Byte[])">
  12820. <param name="masterKeyPath">The master key path.</param><param name="encryptionAlgorithm">The encryption algorithm.</param><param name="columnEncryptionKey">The encrypted column encryption key.</param><summary>Encrypts the given plain text column encryption key using an asymmetric key specified by the key path and the specified algorithm. The key path will be in the format of [ProviderName]/KeyIdentifier and should be an asymmetric key stored in the specified CSP provider. The valid algorithm used to encrypt/decrypt the CEK is 'RSA_OAEP'.</summary><returns>The encrypted column encryption key.</returns><remarks>To be added.</remarks>
  12821. </member>
  12822. <member name="M:Microsoft.Data.SqlClient.SqlColumnEncryptionCspProvider.SignColumnMasterKeyMetadata(System.String,System.Boolean)">
  12823. <param name="masterKeyPath">The column master key path. The path format is specific to a key store provider.</param><param name="allowEnclaveComputations"><see langword="true" /> to indicate that the column master key supports enclave computations; otherwise, <see langword="false" />.</param><summary>Throws a <see cref="T:System.NotSupportedException" /> exception in all cases.</summary><returns>The signature of the column master key metadata.</returns><remarks>
  12824. <format type="text/markdown"><![CDATA[
  12825. ## Remarks
  12826. The <xref:Microsoft.Data.SqlClient.SqlColumnEncryptionCspProvider.SignColumnMasterKeyMetadata%2A> method must be implemented by the corresponding key store providers.
  12827. <xref:Microsoft.Data.SqlClient.SqlColumnEncryptionCspProvider.SignColumnMasterKeyMetadata%2A> should use an asymmetric key identified by a key path and sign the masterkey metadata
  12828. consisting of `masterKeyPath`, `allowEnclaveComputations`, and providerName.
  12829. ]]></format>
  12830. </remarks>
  12831. </member>
  12832. <member name="M:Microsoft.Data.SqlClient.SqlColumnEncryptionCspProvider.VerifyColumnMasterKeyMetadata(System.String,System.Boolean,System.Byte[])">
  12833. <param name="masterKeyPath">The complete path of an asymmetric key. The path format is specific to a key store provider.</param><param name="allowEnclaveComputations">A boolean that indicates if this key can be sent to the trusted enclave.</param><param name="signature">Master key metadata signature.</param><summary>This function must be implemented by the corresponding Key Store providers. This function should use an asymmetric key identified by a key path and sign the masterkey metadata consisting of (masterKeyPath, allowEnclaveComputations, providerName).</summary><returns>A Boolean that indicates if the master key metadata can be verified based on the provided signature.</returns><remarks>To be added.</remarks>
  12834. </member>
  12835. <member name="M:Microsoft.Data.SqlClient.SqlColumnEncryptionCspProvider.ValidateEncryptionAlgorithm(System.String,System.Boolean)">
  12836. <summary>
  12837. This function validates that the encryption algorithm is RSA_OAEP and if it is not,
  12838. then throws an exception
  12839. </summary>
  12840. <param name="encryptionAlgorithm">Asymmetric key encryptio algorithm</param>
  12841. <param name="isSystemOp">Indicates if ADO.NET calls or the customer calls the API</param>
  12842. </member>
  12843. <member name="M:Microsoft.Data.SqlClient.SqlColumnEncryptionCspProvider.ValidateNonEmptyCSPKeyPath(System.String,System.Boolean)">
  12844. <summary>
  12845. Checks if the CSP key path is Empty or Null (and raises exception if they are).
  12846. </summary>
  12847. <param name="masterKeyPath">CSP key path.</param>
  12848. <param name="isSystemOp">Indicates if ADO.NET calls or the customer calls the API</param>
  12849. </member>
  12850. <member name="M:Microsoft.Data.SqlClient.SqlColumnEncryptionCspProvider.RSAEncrypt(System.Security.Cryptography.RSACryptoServiceProvider,System.Byte[])">
  12851. <summary>
  12852. Encrypt the text using specified CSP key.
  12853. </summary>
  12854. <param name="rscp">RSACryptoServiceProvider</param>
  12855. <param name="columnEncryptionKey">Plain text Column Encryption Key.</param>
  12856. <returns>Returns an encrypted blob or throws an exception if there are any errors.</returns>
  12857. </member>
  12858. <member name="M:Microsoft.Data.SqlClient.SqlColumnEncryptionCspProvider.RSADecrypt(System.Security.Cryptography.RSACryptoServiceProvider,System.Byte[])">
  12859. <summary>
  12860. Decrypt the text using specified CSP key.
  12861. </summary>
  12862. <param name="rscp">RSACryptoServiceProvider</param>
  12863. <param name="encryptedColumnEncryptionKey">Encrypted Column Encryption Key.</param>
  12864. <returns>Returns the decrypted plaintext Column Encryption Key or throws an exception if there are any errors.</returns>
  12865. </member>
  12866. <member name="M:Microsoft.Data.SqlClient.SqlColumnEncryptionCspProvider.RSASignHashedData(System.Byte[],System.Security.Cryptography.RSACryptoServiceProvider)">
  12867. <summary>
  12868. Generates signature based on RSA PKCS#v1.5 scheme using a specified CSP Key URL.
  12869. </summary>
  12870. <param name="dataToSign">Text to sign.</param>
  12871. <param name="rscp">RSA Provider with a given key</param>
  12872. <returns>Signature</returns>
  12873. </member>
  12874. <member name="M:Microsoft.Data.SqlClient.SqlColumnEncryptionCspProvider.RSAVerifySignature(System.Byte[],System.Byte[],System.Security.Cryptography.RSACryptoServiceProvider)">
  12875. <summary>
  12876. Verifies the given RSA PKCSv1.5 signature.
  12877. </summary>
  12878. <param name="dataToVerify"></param>
  12879. <param name="signature"></param>
  12880. <param name="rscp">RSA Provider with a given key</param>
  12881. <returns>true if signature is valid, false if it is not valid</returns>
  12882. </member>
  12883. <member name="M:Microsoft.Data.SqlClient.SqlColumnEncryptionCspProvider.GetKeySize(System.Security.Cryptography.RSACryptoServiceProvider)">
  12884. <summary>
  12885. Gets the public Key size in bytes
  12886. </summary>
  12887. <param name="rscp">RSA Provider with a given key</param>
  12888. <returns>Key size in bytes</returns>
  12889. </member>
  12890. <member name="M:Microsoft.Data.SqlClient.SqlColumnEncryptionCspProvider.CreateRSACryptoProvider(System.String,System.Boolean)">
  12891. <summary>
  12892. Creates a RSACryptoServiceProvider from the given key path which contains both CSP name and key name
  12893. </summary>
  12894. <param name="keyPath">key path in the format of [CAPI provider name]\[key name]</param>
  12895. <param name="isSystemOp">Indicates if ADO.NET calls or the customer calls the API</param>
  12896. <returns></returns>
  12897. </member>
  12898. <member name="M:Microsoft.Data.SqlClient.SqlColumnEncryptionCspProvider.GetCspProviderAndKeyName(System.String,System.Boolean,System.String@,System.String@)">
  12899. <summary>
  12900. Extracts the CSP provider name and key name from the given key path
  12901. </summary>
  12902. <param name="keyPath">key path in the format of [CSP provider name]\[key name]</param>
  12903. <param name="isSystemOp">Indicates if ADO.NET calls or the customer calls the API</param>
  12904. <param name="cspProviderName">output containing the CSP provider name</param>
  12905. <param name="keyIdentifier">output containing the key name</param>
  12906. </member>
  12907. <member name="M:Microsoft.Data.SqlClient.SqlColumnEncryptionCspProvider.GetProviderType(System.String,System.String,System.Boolean)">
  12908. <summary>
  12909. Gets the provider type from a given CAPI provider name
  12910. </summary>
  12911. <param name="providerName">CAPI provider name</param>
  12912. <param name="keyPath">key path in the format of [CSP provider name]\[key name]</param>
  12913. <param name="isSystemOp">Indicates if ADO.NET calls or the customer calls the API</param>
  12914. <returns></returns>
  12915. </member>
  12916. <member name="T:Microsoft.Data.OperationAbortedException">
  12917. <summary>This exception is thrown when an ongoing operation is aborted by the user.</summary><remarks>
  12918. <format type="text/markdown"><![CDATA[
  12919. ## Remarks
  12920. This exception indicates that an operation has been aborted by the consumer of an API.
  12921. For example, if the event handler of the <xref:Microsoft.Data.SqlClient.SqlBulkCopy.SqlRowsCopied> event sets the **Abort** property to `true` in the <xref:Microsoft.Data.SqlClient.SqlRowsCopiedEventArgs> object passed to the handler, the <xref:Microsoft.Data.SqlClient.SqlBulkCopy.WriteToServer%2A> method stops sending rows to the server and throws an <xref:Microsoft.Data.OperationAbortedException>.
  12922. ]]></format>
  12923. </remarks>
  12924. </member>
  12925. <member name="T:Microsoft.Data.Sql.SqlNotificationRequest">
  12926. <summary>Represents a request for notification for a given command.</summary><remarks>
  12927. <format type="text/markdown"><![CDATA[
  12928. ## Remarks
  12929. This class provides low-level access to the query notification services exposed by SQL Server 2005. For most applications the <xref:Microsoft.Data.SqlClient.SqlDependency> class provides a simpler way of using query notifications. However, if you need fine control over when notifications occur, or you need to customize the message data returned as part of a notification, the <xref:Microsoft.Data.Sql.SqlNotificationRequest> class is the one to use.
  12930. ]]></format>
  12931. </remarks><related type="Article" href="~/docs/framework/data/adonet/sql/query-notifications-in-sql-server.md">Using Query Notifications</related>
  12932. </member>
  12933. <member name="M:Microsoft.Data.Sql.SqlNotificationRequest.#ctor">
  12934. <summary>Creates a new instance of the <see cref="T:Microsoft.Data.Sql.SqlNotificationRequest" /> class with default values.</summary><remarks>
  12935. <format type="text/markdown"><![CDATA[
  12936. ## Remarks
  12937. If the parameterless constructor is used to create a <xref:Microsoft.Data.Sql.SqlNotificationRequest> object, that instance must have its <xref:Microsoft.Data.Sql.SqlNotificationRequest.UserData%2A> and <xref:Microsoft.Data.Sql.SqlNotificationRequest.Options%2A> properties initialized before assigning the object to a <xref:Microsoft.Data.SqlClient.SqlCommand> object's <xref:Microsoft.Data.SqlClient.SqlCommand.Notification%2A> property. The default values used by the constructor are NULL (`Nothing` in Visual Basic) for the <xref:Microsoft.Data.Sql.SqlNotificationRequest.UserData%2A>, an empty string for the <xref:Microsoft.Data.Sql.SqlNotificationRequest.Options%2A>, and zero for the <xref:Microsoft.Data.Sql.SqlNotificationRequest.Timeout%2A>.
  12938. ]]></format>
  12939. </remarks><related type="Article" href="~/docs/framework/data/adonet/sql/query-notifications-in-sql-server.md">Using Query Notifications</related>
  12940. </member>
  12941. <member name="M:Microsoft.Data.Sql.SqlNotificationRequest.#ctor(System.String,System.String,System.Int32)">
  12942. <param name="userData">A string that contains an application-specific identifier for this notification. It is not used by the notifications infrastructure, but it allows you to associate notifications with the application state. The value indicated in this parameter is included in the Service Broker queue message.</param><param name="options">A string that contains the Service Broker service name where notification messages are posted, and it must include a database name or a Service Broker instance GUID that restricts the scope of the service name lookup to a particular database. For more information about the format of the <paramref name="options" /> parameter, see <see cref="P:Microsoft.Data.Sql.SqlNotificationRequest.Options" />.</param><param name="timeout">The time, in seconds, to wait for a notification message.</param><summary>Creates a new instance of the <see cref="T:Microsoft.Data.Sql.SqlNotificationRequest" /> class with a user-defined string that identifies a particular notification request, the name of a predefined SQL Server 2005 Service Broker service name, and the time-out period, measured in seconds.</summary><remarks>
  12943. <format type="text/markdown"><![CDATA[
  12944. ## Remarks
  12945. This constructor allows you to initialize a new <xref:Microsoft.Data.Sql.SqlNotificationRequest> instance, providing your own identifier, the SQL Server 2005 Service Broker service name, and a time-out value.
  12946. ]]></format>
  12947. </remarks><exception cref="T:System.ArgumentNullException">The value of the <paramref name="options" /> parameter is NULL.</exception><exception cref="T:System.ArgumentOutOfRangeException">The <paramref name="options" /> or <paramref name="userData" /> parameter is longer than <see langword="uint16.MaxValue" /> or the value in the <paramref name="timeout" /> parameter is less than zero.</exception><related type="Article" href="~/docs/framework/data/adonet/sql/query-notifications-in-sql-server.md">Using Query Notifications</related>
  12948. </member>
  12949. <member name="P:Microsoft.Data.Sql.SqlNotificationRequest.Options">
  12950. <summary>Gets or sets the SQL Server Service Broker service name where notification messages are posted.</summary><value>
  12951. <see langword="string" /> that contains the SQL Server 2005 Service Broker service name where notification messages are posted and the database or service broker instance GUID to scope the server name lookup.</value><remarks>
  12952. <format type="text/markdown"><![CDATA[
  12953. ## Remarks
  12954. The value of the <xref:Microsoft.Data.Sql.SqlNotificationRequest.Options%2A> property has the following format:
  12955. `service=<service-name>{;(local database=<database>|broker instance=<broker instance>)}`
  12956. For example, if you use the service "myservice" in the database "AdventureWorks" the format is:
  12957. `service=myservice;local database=AdventureWorks`
  12958. The SQL Server Service Broker service must be previously configured on the server. In addition, a Service Broker service and queue must be defined and security access granted as needed. See the SQL Server 2005 documentation for more information.
  12959. ]]></format>
  12960. </remarks><exception cref="T:System.ArgumentNullException">The value is NULL.</exception><exception cref="T:System.ArgumentException">The value is longer than <see langword="uint16.MaxValue" />.</exception><related type="Article" href="~/docs/framework/data/adonet/sql/query-notifications-in-sql-server.md">Using Query Notifications</related>
  12961. </member>
  12962. <member name="P:Microsoft.Data.Sql.SqlNotificationRequest.Timeout">
  12963. <summary>Gets or sets a value that specifies how long SQL Server waits for a change to occur before the operation times out.</summary><value>A signed integer value that specifies, in seconds, how long SQL Server waits for a change to occur before the operation times out.</value><remarks>
  12964. <format type="text/markdown"><![CDATA[
  12965. ## Remarks
  12966. After the time-out period expires, the notification is sent even if no change takes place. The <xref:Microsoft.Data.Sql.SqlNotificationRequest.Timeout%2A> property defaults to the value set on the server.
  12967. ]]></format>
  12968. </remarks><exception cref="T:System.ArgumentOutOfRangeException">The value is less than zero.</exception><related type="Article" href="~/docs/framework/data/adonet/sql/query-notifications-in-sql-server.md">Using Query Notifications</related>
  12969. </member>
  12970. <member name="P:Microsoft.Data.Sql.SqlNotificationRequest.UserData">
  12971. <summary>Gets or sets an application-specific identifier for this notification.</summary><value>A <see langword="string" /> value of the application-specific identifier for this notification.</value><remarks>
  12972. <format type="text/markdown"><![CDATA[
  12973. ## Remarks
  12974. This value is not used by the notifications infrastructure. Instead, it is a mechanism that allows an application to associate notifications with application state. The value specified in the <xref:Microsoft.Data.Sql.SqlNotificationRequest.UserData%2A> property is included in the SQL Server 2005 queue message.
  12975. ]]></format>
  12976. </remarks><exception cref="T:System.ArgumentException">The value is longer than <see langword="uint16.MaxValue" />.</exception><related type="Article" href="~/docs/framework/data/adonet/sql/query-notifications-in-sql-server.md">Using Query Notifications</related>
  12977. </member>
  12978. <member name="T:Microsoft.Data.SqlTypes.SqlTypeWorkarounds">
  12979. <summary>
  12980. This type provides workarounds for the separation between System.Data.Common
  12981. and Microsoft.Data.SqlClient. The latter wants to access internal members of the former, and
  12982. this class provides ways to do that. We must review and update this implementation any time the
  12983. implementation of the corresponding types in System.Data.Common change.
  12984. </summary>
  12985. </member>
  12986. <member name="M:Microsoft.Data.SqlTypes.SqlTypeWorkarounds.SqlMoneyCtor(System.Int64,System.Int32)">
  12987. <summary>
  12988. Constructs a SqlMoney from a long value without scaling. The ignored parameter exists
  12989. only to distinguish this constructor from the constructor that takes a long.
  12990. Used only internally.
  12991. </summary>
  12992. </member>
  12993. <member name="T:Microsoft.Data.SqlTypes.SqlFileStream">
  12994. <summary>Exposes SQL Server data that is stored with the FILESTREAM column attribute as a sequence of bytes.</summary><remarks>
  12995. <format type="text/markdown"><![CDATA[
  12996. ## Remarks
  12997. The <xref:Microsoft.Data.SqlTypes.SqlFileStream> class is used to work with `varbinary(max)` data stored with the FILESTREAM attribute in a SQL Server 2008 database. You must install the .NET Framework 3.5 SP1 (or later) to use <xref:Microsoft.Data.SqlTypes.SqlFileStream> to work with FILESTREAM data.
  12998. Specifying the FILESTREAM attribute on a `varbinary(max)` column causes SQL Server to store the data in the local NTFS file system instead of in the database file. Transact-SQL statements provide data manipulation capabilities within the server, and Win32 file system interfaces provide streaming access to the data.
  12999. > [!NOTE]
  13000. > Individual files stored in a FILESTREAM column cannot be opened directly from the NTFS file system. Streaming FILESTREAM data works only in the context of a SQL Server transaction.
  13001. The <xref:Microsoft.Data.SqlTypes.SqlFileStream> class is derived from the <xref:System.IO.Stream> class, which represents an abstraction of a sequence of bytes from some arbitrary data source such as a file or a block of memory. You can read from a FILESTREAM by transferring data from a stream into a data structure such as an array of bytes. You can write to a FILESTREAM by transferring the data from a data structure into a stream. You can also seek within the stream, which allows you to query and modify data at the current position within the stream.
  13002. For conceptual documentation and code examples, see [FILESTREAM Data](~/docs/framework/data/adonet/sql/filestream-data.md).
  13003. For documentation about setting up and configuring FILESTREAM data on SQL Server, see [Designing and Implementing FILESTREAM Storage](https://go.microsoft.com/fwlink/?LinkId=121499) in SQL Server 2008 Books Online.
  13004. ]]></format>
  13005. </remarks><related type="Article" href="https://msdn.microsoft.com/library/bd8b845c-0f09-4295-b466-97ef106eefa8">FILESTREAM Data in SQL Server 2008 (ADO.NET)</related><related type="Article" href="https://msdn.microsoft.com/library/fafdc31a-f435-4cd3-883f-1dfadd971277">SQL Server Data Type Mappings (ADO.NET)</related><related type="Article" href="https://msdn.microsoft.com/library/e00827b3-7511-4b2d-91d7-851ca86cc6b5">SQL Server Binary and Large-Value Data (ADO.NET)</related>
  13006. </member>
  13007. <member name="M:Microsoft.Data.SqlTypes.SqlFileStream.#ctor(System.String,System.Byte[],System.IO.FileAccess)">
  13008. <param name="path">The logical path to the file. The path can be retrieved by using the Transact-SQL Pathname function on the underlying FILESTREAM column in the table.</param><param name="transactionContext">The transaction context for the <see langword="SqlFileStream" /> object. Applications should return the byte array returned by calling the GET_FILESTREAM_TRANSACTION_CONTEXT method.</param><param name="access">The access mode to use when opening the file. Supported <see cref="T:System.IO.FileAccess" /> enumeration values are <see cref="F:System.IO.FileAccess.Read" />, <see cref="F:System.IO.FileAccess.Write" />, and <see cref="F:System.IO.FileAccess.ReadWrite" />.
  13009. When using <see langword="FileAccess.Read" />, the <see langword="SqlFileStream" /> object can be used to read all of the existing data.
  13010. When using <see langword="FileAccess.Write" />, <see langword="SqlFileStream" /> points to a zero byte file. Existing data will be overwritten when the object is closed and the transaction is committed.
  13011. When using <see langword="FileAccess.ReadWrite" />, the <see langword="SqlFileStream" /> points to a file which has all the existing data in it. The handle is positioned at the beginning of the file. You can use one of the <see langword="System.IO" /><see langword="Seek" /> methods to move the handle position within the file to write or append new data.</param><summary>Initializes a new instance of the <see cref="T:Microsoft.Data.SqlTypes.SqlFileStream" /> class.</summary><remarks>
  13012. <format type="text/markdown"><![CDATA[
  13013. ## Remarks
  13014. The following table lists the code access security (CAS) permissions that all callers in the stack must have to use the `SqlFileStream` constructors.
  13015. |File access|Permission|
  13016. |-----------------|----------------|
  13017. |Read|<xref:System.Security.Permissions.FileIOPermissionAccess.Read>|
  13018. |Write|<xref:System.Security.Permissions.FileIOPermissionAccess.Write>|
  13019. |ReadWrite|<xref:System.Security.Permissions.FileIOPermissionAccess.Read> and <xref:System.Security.Permissions.FileIOPermissionAccess.Write>|
  13020. For more information about CAS, see [Code Access Security and ADO.NET](~/docs/framework/data/adonet/code-access-security.md).
  13021. If an exception is thrown, any open transactions should be rolled back. Otherwise, data loss can occur.
  13022. ]]></format>
  13023. </remarks><exception cref="T:System.ArgumentNullException">
  13024. <paramref name="path" /> is a null reference, or <paramref name="transactionContext" /> is null.</exception><exception cref="T:System.ArgumentOutOfRangeException">
  13025. <paramref name="path" /> is an empty string (""), contains only white space, or contains one or more invalid characters.
  13026. <paramref name="path" /> begins with "\\\\.\\", for example "\\\\.\PHYSICALDRIVE0 ".
  13027. The handle returned by the call to NTCreateFile is not of type FILE_TYPE_DISK.
  13028. <paramref name="path" /> contains an unsupported value.</exception><exception cref="T:System.IO.FileNotFoundException">The file cannot be found.</exception><exception cref="T:System.IO.IOException">An I/O error occurred.</exception><exception cref="T:System.Security.SecurityException">The caller does not have the required permission.</exception><exception cref="T:System.IO.DirectoryNotFoundException">The specified <paramref name="path" /> is invalid, such as being on an unmapped drive.</exception><exception cref="T:System.UnauthorizedAccessException">The access requested is not permitted by the operating system for the specified path. This occurs when Write or ReadWrite access is specified, and the file or directory is set for read-only access.</exception><exception cref="T:System.InvalidOperationException">NtCreateFile fails with error code set to ERROR_SHARING_VIOLATION.</exception><related type="Article" href="https://msdn.microsoft.com/library/bd8b845c-0f09-4295-b466-97ef106eefa8">FILESTREAM Data in SQL Server 2008 (ADO.NET)</related>
  13029. </member>
  13030. <member name="M:Microsoft.Data.SqlTypes.SqlFileStream.#ctor(System.String,System.Byte[],System.IO.FileAccess,System.IO.FileOptions,System.Int64)">
  13031. <param name="path">The logical path to the file. The path can be retrieved by using the Transact-SQL Pathname function on the underlying FILESTREAM column in the table.</param><param name="transactionContext">The transaction context for the <see langword="SqlFileStream" /> object. When set to null, an implicit transaction will be used for the <see langword="SqlFileStream" /> object. Applications should return the byte array returned by calling the GET_FILESTREAM_TRANSACTION_CONTEXT method.</param><param name="access">The access mode to use when opening the file. Supported <see cref="T:System.IO.FileAccess" /> enumeration values are <see cref="F:System.IO.FileAccess.Read" />, <see cref="F:System.IO.FileAccess.Write" />, and <see cref="F:System.IO.FileAccess.ReadWrite" />.
  13032. When using <see langword="FileAccess.Read" />, the <see langword="SqlFileStream" /> object can be used to read all of the existing data.
  13033. When using <see langword="FileAccess.Write" />, <see langword="SqlFileStream" /> points to a zero byte file. Existing data will be overwritten when the object is closed and the transaction is committed.
  13034. When using <see langword="FileAccess.ReadWrite" />, the <see langword="SqlFileStream" /> points to a file which has all the existing data in it. The handle is positioned at the beginning of the file. You can use one of the <see langword="System.IO" /><see langword="Seek" /> methods to move the handle position within the file to write or append new data.</param><param name="options">Specifies the option to use while opening the file. Supported <see cref="T:System.IO.FileOptions" /> values are <see cref="F:System.IO.FileOptions.Asynchronous" />, <see cref="F:System.IO.FileOptions.WriteThrough" />, <see cref="F:System.IO.FileOptions.SequentialScan" />, and <see cref="F:System.IO.FileOptions.RandomAccess" />.</param><param name="allocationSize">The allocation size to use while creating a file. If set to 0, the default value is used.</param><summary>Initializes a new instance of the <see cref="T:Microsoft.Data.SqlTypes.SqlFileStream" /> class.</summary><remarks>
  13035. <format type="text/markdown"><![CDATA[
  13036. ## Remarks
  13037. The following table lists the code access security (CAS) permissions that all callers in the stack must have to use the `SqlFileStream` constructors.
  13038. |File access|Permission|
  13039. |-----------------|----------------|
  13040. |Read|<xref:System.Security.Permissions.FileIOPermissionAccess.Read>|
  13041. |Write|<xref:System.Security.Permissions.FileIOPermissionAccess.Write>|
  13042. |ReadWrite|<xref:System.Security.Permissions.FileIOPermissionAccess.Read> and <xref:System.Security.Permissions.FileIOPermissionAccess.Write>|
  13043. For more information about CAS, see [Code Access Security and ADO.NET](~/docs/framework/data/adonet/code-access-security.md).
  13044. If an exception is thrown, any open transactions should be rolled back. Otherwise, data loss can occur.
  13045. ]]></format>
  13046. </remarks><exception cref="T:System.ArgumentNullException">
  13047. <paramref name="path" /> is a null reference, or <paramref name="transactionContext" /> is null.</exception><exception cref="T:System.ArgumentOutOfRangeException">
  13048. <paramref name="path" /> is an empty string (""), contains only white space, or contains one or more invalid characters.
  13049. <paramref name="path" /> begins with "\\\\.\\", for example "\\\\.\PHYSICALDRIVE0 "
  13050. The handle returned by call to NTCreateFile is not of type FILE_TYPE_DISK.
  13051. <paramref name="options" /> contains an unsupported value.</exception><exception cref="T:System.IO.FileNotFoundException">The file cannot be found.</exception><exception cref="T:System.IO.IOException">An I/O error occurred.</exception><exception cref="T:System.Security.SecurityException">The caller does not have the required permission.</exception><exception cref="T:System.IO.DirectoryNotFoundException">The specified <paramref name="path" /> is invalid, such as being on an unmapped drive.</exception><exception cref="T:System.UnauthorizedAccessException">The access requested is not permitted by the operating system for the specified path. This occurs when Write or ReadWrite access is specified, and the file or directory is set for read-only access.</exception><exception cref="T:System.InvalidOperationException">NtCreateFile fails with error code set to ERROR_SHARING_VIOLATION.</exception><related type="Article" href="https://msdn.microsoft.com/library/bd8b845c-0f09-4295-b466-97ef106eefa8">FILESTREAM Data in SQL Server 2008 (ADO.NET)</related>
  13052. </member>
  13053. <member name="M:Microsoft.Data.SqlTypes.SqlFileStream.Finalize">
  13054. <summary>Destructor of the SqlFileStream class object.</summary><remarks>To be added.</remarks>
  13055. </member>
  13056. <member name="M:Microsoft.Data.SqlTypes.SqlFileStream.Dispose(System.Boolean)">
  13057. <param name="disposing"><see langword="true" /> to release managed and unmanaged resources; <see langword="false" /> to release only unmanaged resources.</param><summary>Releases the unmanaged resources used and optionally releases the managed resources.</summary><remarks>
  13058. <format type="text/markdown"><![CDATA[
  13059. ## Remarks
  13060. This method calls <xref:Stream.Dispose%2A>.
  13061. ]]></format>
  13062. </remarks>
  13063. </member>
  13064. <member name="P:Microsoft.Data.SqlTypes.SqlFileStream.Name">
  13065. <summary>Gets the logical path of the <see cref="T:Microsoft.Data.SqlTypes.SqlFileStream" /> passed to the constructor.</summary><value>A string value indicating the name of the <see cref="T:Microsoft.Data.SqlTypes.SqlFileStream" />.</value><remarks>To be added.</remarks><related type="Article" href="https://msdn.microsoft.com/library/bd8b845c-0f09-4295-b466-97ef106eefa8">FILESTREAM Data in SQL Server 2008 (ADO.NET)</related>
  13066. </member>
  13067. <member name="P:Microsoft.Data.SqlTypes.SqlFileStream.TransactionContext">
  13068. <summary>Gets or sets the transaction context for this <see cref="T:Microsoft.Data.SqlTypes.SqlFileStream" /> object.</summary><value>The <see cref="T:Microsoft.Data.SqlTypes.SqlFileStream.TransactionContext" /> array that was passed to the constructor for this <see cref="T:Microsoft.Data.SqlTypes.SqlFileStream" /> object.</value><remarks>To be added.</remarks><related type="Article" href="https://msdn.microsoft.com/library/bd8b845c-0f09-4295-b466-97ef106eefa8">FILESTREAM Data in SQL Server 2008 (ADO.NET)</related>
  13069. </member>
  13070. <member name="P:Microsoft.Data.SqlTypes.SqlFileStream.CanRead">
  13071. <summary>Gets a value indicating whether the current stream supports reading.</summary><value>
  13072. <see langword="true" /> if the current stream supports reading; otherwise, <see langword="false" />.</value><remarks>To be added.</remarks><related type="Article" href="https://msdn.microsoft.com/library/bd8b845c-0f09-4295-b466-97ef106eefa8">FILESTREAM Data in SQL Server 2008 (ADO.NET)</related>
  13073. </member>
  13074. <member name="P:Microsoft.Data.SqlTypes.SqlFileStream.CanSeek">
  13075. <summary>Gets a value indicating whether the current stream supports seeking.</summary><value>
  13076. <see langword="true" /> if the current stream supports seeking; otherwise, <see langword="false" />.</value><remarks>To be added.</remarks><related type="Article" href="https://msdn.microsoft.com/library/bd8b845c-0f09-4295-b466-97ef106eefa8">FILESTREAM Data in SQL Server 2008 (ADO.NET)</related>
  13077. </member>
  13078. <member name="P:Microsoft.Data.SqlTypes.SqlFileStream.CanTimeout">
  13079. <summary>Gets a value indicating whether the current stream can time out.</summary><value>
  13080. <see langword="true" /> if the current stream can time out; otherwise, <see langword="false" />.</value><remarks>To be added.</remarks>
  13081. </member>
  13082. <member name="P:Microsoft.Data.SqlTypes.SqlFileStream.CanWrite">
  13083. <summary>Gets a value indicating whether the current stream supports writing.</summary><value>
  13084. <see langword="true" /> if the current stream supports writing; otherwise, <see langword="false" />.</value><remarks>To be added.</remarks><related type="Article" href="https://msdn.microsoft.com/library/bd8b845c-0f09-4295-b466-97ef106eefa8">FILESTREAM Data in SQL Server 2008 (ADO.NET)</related>
  13085. </member>
  13086. <member name="P:Microsoft.Data.SqlTypes.SqlFileStream.Length">
  13087. <summary>Gets a value indicating the length of the current stream in bytes.</summary><value>An <see cref="T:System.Int64" /> indicating the length of the current stream in bytes.</value><remarks>To be added.</remarks><related type="Article" href="https://msdn.microsoft.com/library/bd8b845c-0f09-4295-b466-97ef106eefa8">FILESTREAM Data in SQL Server 2008 (ADO.NET)</related>
  13088. </member>
  13089. <member name="P:Microsoft.Data.SqlTypes.SqlFileStream.Position">
  13090. <summary>Gets or sets the position within the current stream.</summary><value>The current position within the <see cref="T:Microsoft.Data.SqlTypes.SqlFileStream" />.</value><remarks>To be added.</remarks><related type="Article" href="https://msdn.microsoft.com/library/bd8b845c-0f09-4295-b466-97ef106eefa8">FILESTREAM Data in SQL Server 2008 (ADO.NET)</related>
  13091. </member>
  13092. <member name="P:Microsoft.Data.SqlTypes.SqlFileStream.ReadTimeout">
  13093. <summary>Gets or sets a value, in milliseconds, that determines how long the stream will attempt to read before timing out.</summary><value>A value, in milliseconds, that determines how long the stream will attempt to read before timing out.</value><remarks>To be added.</remarks><related type="Article" href="https://msdn.microsoft.com/library/bd8b845c-0f09-4295-b466-97ef106eefa8">FILESTREAM Data in SQL Server 2008 (ADO.NET)</related>
  13094. </member>
  13095. <member name="P:Microsoft.Data.SqlTypes.SqlFileStream.WriteTimeout">
  13096. <summary>Gets or sets a value, in milliseconds, that determines how long the stream will attempt to write before timing out.</summary><value>A value, in milliseconds, that determines how long the stream will attempt to write before timing out.</value><remarks>To be added.</remarks><related type="Article" href="https://msdn.microsoft.com/library/bd8b845c-0f09-4295-b466-97ef106eefa8">FILESTREAM Data in SQL Server 2008 (ADO.NET)</related>
  13097. </member>
  13098. <member name="M:Microsoft.Data.SqlTypes.SqlFileStream.Flush">
  13099. <summary>Clears all buffers for this stream and causes any buffered data to be written to the underlying device.</summary><remarks>To be added.</remarks><related type="Article" href="https://msdn.microsoft.com/library/bd8b845c-0f09-4295-b466-97ef106eefa8">FILESTREAM Data in SQL Server 2008 (ADO.NET)</related>
  13100. </member>
  13101. <member name="M:Microsoft.Data.SqlTypes.SqlFileStream.BeginRead(System.Byte[],System.Int32,System.Int32,System.AsyncCallback,System.Object)">
  13102. <param name="buffer">The buffer to read the data into.</param><param name="offset">The byte offset in <paramref name="buffer" /> at which to begin writing data read from the stream.</param><param name="count">The maximum number of bytes to read.</param><param name="callback">An optional asynchronous callback, to be called when the read is complete.</param><param name="state">A user-provided object that distinguishes this particular asynchronous read request from other requests</param><summary>Begins an asynchronous read operation.</summary><returns>An <see cref="T:System.IAsyncResult" /> that represents the asynchronous read, which could still be pending.</returns><remarks>
  13103. <format type="text/markdown"><![CDATA[
  13104. ## Remarks
  13105. Use the <xref:Microsoft.Data.SqlTypes.SqlFileStream.CanRead%2A> property to determine whether the current instance supports reading.
  13106. ]]></format>
  13107. </remarks><exception cref="T:System.NotSupportedException">Reading data is not supported on the stream.</exception><related type="Article" href="https://msdn.microsoft.com/library/bd8b845c-0f09-4295-b466-97ef106eefa8">FILESTREAM Data in SQL Server 2008 (ADO.NET)</related>
  13108. </member>
  13109. <member name="M:Microsoft.Data.SqlTypes.SqlFileStream.EndRead(System.IAsyncResult)">
  13110. <param name="asyncResult">The reference to the pending asynchronous request to finish.</param><summary>Waits for the pending asynchronous read to complete.</summary><returns>The number of bytes read from the stream, between zero (0) and the number of bytes you requested. Streams return zero (0) only at the end of the stream, otherwise, they should block until at least one byte is available.</returns><remarks>To be added.</remarks><exception cref="T:System.ArgumentException">The <see cref="T:System.IAsyncResult" /> object did not come from the corresponding <see langword="BeginRead" /> method.</exception><related type="Article" href="https://msdn.microsoft.com/library/bd8b845c-0f09-4295-b466-97ef106eefa8">FILESTREAM Data in SQL Server 2008 (ADO.NET)</related>
  13111. </member>
  13112. <member name="M:Microsoft.Data.SqlTypes.SqlFileStream.BeginWrite(System.Byte[],System.Int32,System.Int32,System.AsyncCallback,System.Object)">
  13113. <param name="buffer">The buffer to write data from.</param><param name="offset">The byte offset in <paramref name="buffer" /> from which to begin writing.</param><param name="count">The maximum number of bytes to write.</param><param name="callback">An optional asynchronous callback, to be called when the write is complete.</param><param name="state">A user-provided object that distinguishes this particular asynchronous write request from other requests.</param><summary>Begins an asynchronous write operation.</summary><returns>An <see cref="T:System.IAsyncResult" /> that represents the asynchronous write, which could still be pending.</returns><remarks>
  13114. <format type="text/markdown"><![CDATA[
  13115. ## Remarks
  13116. Use the <xref:Microsoft.Data.SqlTypes.SqlFileStream.CanWrite%2A> property to determine whether the current instance supports writing.
  13117. ]]></format>
  13118. </remarks><exception cref="T:System.NotSupportedException">Writing data is not supported on the stream.</exception><related type="Article" href="https://msdn.microsoft.com/library/bd8b845c-0f09-4295-b466-97ef106eefa8">FILESTREAM Data in SQL Server 2008 (ADO.NET)</related>
  13119. </member>
  13120. <member name="M:Microsoft.Data.SqlTypes.SqlFileStream.EndWrite(System.IAsyncResult)">
  13121. <param name="asyncResult">A reference to the outstanding asynchronous I/O request.</param><summary>Ends an asynchronous write operation.</summary><remarks>To be added.</remarks><exception cref="T:System.ArgumentException">The <see cref="T:System.IAsyncResult" /> object did not come from the corresponding <see langword="BeginWrite" /> method.</exception><related type="Article" href="https://msdn.microsoft.com/library/bd8b845c-0f09-4295-b466-97ef106eefa8">FILESTREAM Data in SQL Server 2008 (ADO.NET)</related>
  13122. </member>
  13123. <member name="M:Microsoft.Data.SqlTypes.SqlFileStream.Seek(System.Int64,System.IO.SeekOrigin)">
  13124. <param name="offset">A byte offset relative to the <paramref name="origin" /> parameter</param><param name="origin">A value of type <see cref="T:System.IO.SeekOrigin" /> indicating the reference point used to obtain the new position</param><summary>Sets the position within the current stream.</summary><returns>The new position within the current stream.</returns><remarks>To be added.</remarks><related type="Article" href="https://msdn.microsoft.com/library/bd8b845c-0f09-4295-b466-97ef106eefa8">FILESTREAM Data in SQL Server 2008 (ADO.NET)</related>
  13125. </member>
  13126. <member name="M:Microsoft.Data.SqlTypes.SqlFileStream.SetLength(System.Int64)">
  13127. <param name="value">The desired length of the current stream in bytes.</param><summary>Sets the length of the current stream.</summary><remarks>
  13128. <format type="text/markdown"><![CDATA[
  13129. ## Remarks
  13130. Use the <xref:Microsoft.Data.SqlTypes.SqlFileStream.CanRead%2A> property to determine whether the current instance supports reading.
  13131. ]]></format>
  13132. </remarks><exception cref="T:System.NotSupportedException">The object does not support reading of data.</exception><related type="Article" href="https://msdn.microsoft.com/library/bd8b845c-0f09-4295-b466-97ef106eefa8">FILESTREAM Data in SQL Server 2008 (ADO.NET)</related>
  13133. </member>
  13134. <member name="M:Microsoft.Data.SqlTypes.SqlFileStream.Read(System.Byte[],System.Int32,System.Int32)">
  13135. <param name="buffer">An array of bytes. When this method returns, the buffer contains the specified byte array with the values between offset and (offset + count - 1) replaced by the bytes read from the current source.</param><param name="offset">The zero-based byte offset in buffer at which to begin storing the data read from the current stream.</param><param name="count">The maximum number of bytes to be read from the current stream.</param><summary>Reads a sequence of bytes from the current stream and advances the position within the stream by the number of bytes read.</summary><returns>The total number of bytes read into the buffer. This can be less than the number of bytes requested if that many bytes are not currently available, or zero (0) if the end of the stream has been reached.</returns><remarks>
  13136. <format type="text/markdown"><![CDATA[
  13137. ## Remarks
  13138. Use the <xref:Microsoft.Data.SqlTypes.SqlFileStream.CanRead%2A> property to determine whether the current instance supports writing.
  13139. ]]></format>
  13140. </remarks><exception cref="T:System.NotSupportedException">The object does not support reading of data.</exception><related type="Article" href="https://msdn.microsoft.com/library/bd8b845c-0f09-4295-b466-97ef106eefa8">FILESTREAM Data in SQL Server 2008 (ADO.NET)</related>
  13141. </member>
  13142. <member name="M:Microsoft.Data.SqlTypes.SqlFileStream.ReadByte">
  13143. <summary>Reads a byte from the stream and advances the position within the stream by one byte, or returns -1 if at the end of the stream.</summary><returns>The unsigned byte cast to an <see cref="T:System.Int32" />, or -1 if at the end of the stream.</returns><remarks>
  13144. <format type="text/markdown"><![CDATA[
  13145. ## Remarks
  13146. Use the <xref:Microsoft.Data.SqlTypes.SqlFileStream.CanRead%2A> property to determine whether the current instance supports reading.
  13147. ]]></format>
  13148. </remarks><exception cref="T:System.NotSupportedException">The object does not support reading of data.</exception><related type="Article" href="https://msdn.microsoft.com/library/bd8b845c-0f09-4295-b466-97ef106eefa8">FILESTREAM Data in SQL Server 2008 (ADO.NET)</related>
  13149. </member>
  13150. <member name="M:Microsoft.Data.SqlTypes.SqlFileStream.Write(System.Byte[],System.Int32,System.Int32)">
  13151. <param name="buffer">An array of bytes. This method copies <paramref name="count" /> bytes from <paramref name="buffer" /> to the current stream.</param><param name="offset">The zero-based byte offset in <paramref name="buffer" /> at which to begin copying bytes to the current stream.</param><param name="count">The number of bytes to be written to the current stream.</param><summary>Writes a sequence of bytes to the current stream and advances the current position within this stream by the number of bytes written.</summary><remarks>
  13152. <format type="text/markdown"><![CDATA[
  13153. ## Remarks
  13154. Use the <xref:Microsoft.Data.SqlTypes.SqlFileStream.CanWrite%2A> property to determine whether the current instance supports writing.
  13155. ]]></format>
  13156. </remarks><exception cref="T:System.NotSupportedException">The object does not support writing of data.</exception><related type="Article" href="https://msdn.microsoft.com/library/bd8b845c-0f09-4295-b466-97ef106eefa8">FILESTREAM Data in SQL Server 2008 (ADO.NET)</related>
  13157. </member>
  13158. <member name="M:Microsoft.Data.SqlTypes.SqlFileStream.WriteByte(System.Byte)">
  13159. <param name="value">The byte to write to the stream.</param><summary>Writes a byte to the current position in the stream and advances the position within the stream by one byte.</summary><remarks>
  13160. <format type="text/markdown"><![CDATA[
  13161. ## Remarks
  13162. Use the <xref:Microsoft.Data.SqlTypes.SqlFileStream.CanWrite%2A> property to determine whether the current instance supports writing.
  13163. ]]></format>
  13164. </remarks><exception cref="T:System.NotSupportedException">The object does not support writing of data.</exception><related type="Article" href="https://msdn.microsoft.com/library/bd8b845c-0f09-4295-b466-97ef106eefa8">FILESTREAM Data in SQL Server 2008 (ADO.NET)</related>
  13165. </member>
  13166. <member name="P:System.NotImplemented.ByDesign">
  13167. <summary>
  13168. Permanent NotImplementedException with no message shown to user.
  13169. </summary>
  13170. </member>
  13171. <member name="M:System.NotImplemented.ByDesignWithMessage(System.String)">
  13172. <summary>
  13173. Permanent NotImplementedException with localized message shown to user.
  13174. </summary>
  13175. </member>
  13176. <member name="M:System.NotImplemented.ActiveIssue(System.String)">
  13177. <summary>
  13178. Temporary NotImplementedException with no message shown to user.
  13179. Example: Exception.ActiveIssue("https://github.com/dotnet/corefx/issues/xxxx") or Exception.ActiveIssue("TFS xxxxxx").
  13180. </summary>
  13181. </member>
  13182. <member name="T:System.Threading.Tasks.TaskToApm">
  13183. <summary>
  13184. Provides support for efficiently using Tasks to implement the APM (Begin/End) pattern.
  13185. </summary>
  13186. </member>
  13187. <member name="M:System.Threading.Tasks.TaskToApm.Begin(System.Threading.Tasks.Task,System.AsyncCallback,System.Object)">
  13188. <summary>
  13189. Marshals the Task as an IAsyncResult, using the supplied callback and state
  13190. to implement the APM pattern.
  13191. </summary>
  13192. <param name="task">The Task to be marshaled.</param>
  13193. <param name="callback">The callback to be invoked upon completion.</param>
  13194. <param name="state">The state to be stored in the IAsyncResult.</param>
  13195. <returns>An IAsyncResult to represent the task's asynchronous operation.</returns>
  13196. </member>
  13197. <member name="M:System.Threading.Tasks.TaskToApm.End(System.IAsyncResult)">
  13198. <summary>Processes an IAsyncResult returned by Begin.</summary>
  13199. <param name="asyncResult">The IAsyncResult to unwrap.</param>
  13200. </member>
  13201. <member name="M:System.Threading.Tasks.TaskToApm.End``1(System.IAsyncResult)">
  13202. <summary>Processes an IAsyncResult returned by Begin.</summary>
  13203. <param name="asyncResult">The IAsyncResult to unwrap.</param>
  13204. </member>
  13205. <member name="M:System.Threading.Tasks.TaskToApm.InvokeCallbackWhenTaskCompletes(System.Threading.Tasks.Task,System.AsyncCallback,System.IAsyncResult)">
  13206. <summary>Invokes the callback asynchronously when the task has completed.</summary>
  13207. <param name="antecedent">The Task to await.</param>
  13208. <param name="callback">The callback to invoke when the Task completes.</param>
  13209. <param name="asyncResult">The Task used as the IAsyncResult.</param>
  13210. </member>
  13211. <member name="T:System.Threading.Tasks.TaskToApm.TaskWrapperAsyncResult">
  13212. <summary>
  13213. Provides a simple IAsyncResult that wraps a Task. This, in effect, allows
  13214. for overriding what's seen for the CompletedSynchronously and AsyncState values.
  13215. </summary>
  13216. </member>
  13217. <member name="F:System.Threading.Tasks.TaskToApm.TaskWrapperAsyncResult.Task">
  13218. <summary>The wrapped Task.</summary>
  13219. </member>
  13220. <member name="F:System.Threading.Tasks.TaskToApm.TaskWrapperAsyncResult._state">
  13221. <summary>The new AsyncState value.</summary>
  13222. </member>
  13223. <member name="F:System.Threading.Tasks.TaskToApm.TaskWrapperAsyncResult._completedSynchronously">
  13224. <summary>The new CompletedSynchronously value.</summary>
  13225. </member>
  13226. <member name="M:System.Threading.Tasks.TaskToApm.TaskWrapperAsyncResult.#ctor(System.Threading.Tasks.Task,System.Object,System.Boolean)">
  13227. <summary>Initializes the IAsyncResult with the Task to wrap and the overriding AsyncState and CompletedSynchronously values.</summary>
  13228. <param name="task">The Task to wrap.</param>
  13229. <param name="state">The new AsyncState value</param>
  13230. <param name="completedSynchronously">The new CompletedSynchronously value.</param>
  13231. </member>
  13232. <member name="T:System.IO.PathInternal">
  13233. <summary>Contains internal path helpers that are shared between many projects.</summary>
  13234. </member>
  13235. <member name="M:System.IO.PathInternal.IsValidDriveChar(System.Char)">
  13236. <summary>
  13237. Returns true if the given character is a valid drive letter
  13238. </summary>
  13239. </member>
  13240. <member name="M:System.IO.PathInternal.EnsureExtendedPrefixIfNeeded(System.String)">
  13241. <summary>
  13242. Adds the extended path prefix (\\?\) if not already a device path, IF the path is not relative,
  13243. AND the path is more than 259 characters. (> MAX_PATH + null). This will also insert the extended
  13244. prefix if the path ends with a period or a space. Trailing periods and spaces are normally eaten
  13245. away from paths during normalization, but if we see such a path at this point it should be
  13246. normalized and has retained the final characters. (Typically from one of the *Info classes)
  13247. </summary>
  13248. </member>
  13249. <member name="M:System.IO.PathInternal.EnsureExtendedPrefixOverMaxPath(System.String)">
  13250. <summary>
  13251. DO NOT USE- Use EnsureExtendedPrefixIfNeeded. This will be removed shortly.
  13252. Adds the extended path prefix (\\?\) if not already a device path, IF the path is not relative,
  13253. AND the path is more than 259 characters. (> MAX_PATH + null)
  13254. </summary>
  13255. </member>
  13256. <member name="M:System.IO.PathInternal.EnsureExtendedPrefix(System.String)">
  13257. <summary>
  13258. Adds the extended path prefix (\\?\) if not relative or already a device path.
  13259. </summary>
  13260. </member>
  13261. <member name="M:System.IO.PathInternal.IsDevice(System.ReadOnlySpan{System.Char})">
  13262. <summary>
  13263. Returns true if the path uses any of the DOS device path syntaxes. ("\\.\", "\\?\", or "\??\")
  13264. </summary>
  13265. </member>
  13266. <member name="M:System.IO.PathInternal.IsDeviceUNC(System.ReadOnlySpan{System.Char})">
  13267. <summary>
  13268. Returns true if the path is a device UNC (\\?\UNC\, \\.\UNC\)
  13269. </summary>
  13270. </member>
  13271. <member name="M:System.IO.PathInternal.IsExtended(System.ReadOnlySpan{System.Char})">
  13272. <summary>
  13273. Returns true if the path uses the canonical form of extended syntax ("\\?\" or "\??\"). If the
  13274. path matches exactly (cannot use alternate directory separators) Windows will skip normalization
  13275. and path length checks.
  13276. </summary>
  13277. </member>
  13278. <member name="M:System.IO.PathInternal.HasWildCardCharacters(System.ReadOnlySpan{System.Char})">
  13279. <summary>
  13280. Check for known wildcard characters. '*' and '?' are the most common ones.
  13281. </summary>
  13282. </member>
  13283. <member name="M:System.IO.PathInternal.GetRootLength(System.ReadOnlySpan{System.Char})">
  13284. <summary>
  13285. Gets the length of the root of the path (drive, share, etc.).
  13286. </summary>
  13287. </member>
  13288. <member name="M:System.IO.PathInternal.IsPartiallyQualified(System.ReadOnlySpan{System.Char})">
  13289. <summary>
  13290. Returns true if the path specified is relative to the current drive or working directory.
  13291. Returns false if the path is fixed to a specific drive or UNC path. This method does no
  13292. validation of the path (URIs will be returned as relative as a result).
  13293. </summary>
  13294. <remarks>
  13295. Handles paths that use the alternate directory separator. It is a frequent mistake to
  13296. assume that rooted paths (Path.IsPathRooted) are not relative. This isn't the case.
  13297. "C:a" is drive relative- meaning that it will be resolved against the current directory
  13298. for C: (rooted, but relative). "C:\a" is rooted and not relative (the current directory
  13299. will not be used to modify the path).
  13300. </remarks>
  13301. </member>
  13302. <member name="M:System.IO.PathInternal.IsDirectorySeparator(System.Char)">
  13303. <summary>
  13304. True if the given character is a directory separator.
  13305. </summary>
  13306. </member>
  13307. <member name="M:System.IO.PathInternal.NormalizeDirectorySeparators(System.String)">
  13308. <summary>
  13309. Normalize separators in the given path. Converts forward slashes into back slashes and compresses slash runs, keeping initial 2 if present.
  13310. Also trims initial whitespace in front of "rooted" paths (see PathStartSkip).
  13311. This effectively replicates the behavior of the legacy NormalizePath when it was called with fullCheck=false and expandShortpaths=false.
  13312. The current NormalizePath gets directory separator normalization from Win32's GetFullPathName(), which will resolve relative paths and as
  13313. such can't be used here (and is overkill for our uses).
  13314. Like the current NormalizePath this will not try and analyze periods/spaces within directory segments.
  13315. </summary>
  13316. <remarks>
  13317. The only callers that used to use Path.Normalize(fullCheck=false) were Path.GetDirectoryName() and Path.GetPathRoot(). Both usages do
  13318. not need trimming of trailing whitespace here.
  13319. GetPathRoot() could technically skip normalizing separators after the second segment- consider as a future optimization.
  13320. For legacy desktop behavior with ExpandShortPaths:
  13321. - It has no impact on GetPathRoot() so doesn't need consideration.
  13322. - It could impact GetDirectoryName(), but only if the path isn't relative (C:\ or \\Server\Share).
  13323. In the case of GetDirectoryName() the ExpandShortPaths behavior was undocumented and provided inconsistent results if the path was
  13324. fixed/relative. For example: "C:\PROGRA~1\A.TXT" would return "C:\Program Files" while ".\PROGRA~1\A.TXT" would return ".\PROGRA~1". If you
  13325. ultimately call GetFullPath() this doesn't matter, but if you don't or have any intermediate string handling could easily be tripped up by
  13326. this undocumented behavior.
  13327. We won't match this old behavior because:
  13328. 1. It was undocumented
  13329. 2. It was costly (extremely so if it actually contained '~')
  13330. 3. Doesn't play nice with string logic
  13331. 4. Isn't a cross-plat friendly concept/behavior
  13332. </remarks>
  13333. </member>
  13334. <member name="M:System.IO.PathInternal.IsEffectivelyEmpty(System.ReadOnlySpan{System.Char})">
  13335. <summary>
  13336. Returns true if the path is effectively empty for the current OS.
  13337. For unix, this is empty or null. For Windows, this is empty, null, or
  13338. just spaces ((char)32).
  13339. </summary>
  13340. </member>
  13341. <member name="T:System.Net.NetEventSource">
  13342. <summary>Provides logging facilities for System.Net libraries.</summary>
  13343. </member>
  13344. <member name="F:System.Net.NetEventSource.Log">
  13345. <summary>The single event source instance to use for all logging.</summary>
  13346. </member>
  13347. <member name="M:System.Net.NetEventSource.Enter(System.Object,System.FormattableString,System.String)">
  13348. <summary>Logs entrance to a method.</summary>
  13349. <param name="thisOrContextObject">`this`, or another object that serves to provide context for the operation.</param>
  13350. <param name="formattableString">A description of the entrance, including any arguments to the call.</param>
  13351. <param name="memberName">The calling member.</param>
  13352. </member>
  13353. <member name="M:System.Net.NetEventSource.Enter(System.Object,System.Object,System.String)">
  13354. <summary>Logs entrance to a method.</summary>
  13355. <param name="thisOrContextObject">`this`, or another object that serves to provide context for the operation.</param>
  13356. <param name="arg0">The object to log.</param>
  13357. <param name="memberName">The calling member.</param>
  13358. </member>
  13359. <member name="M:System.Net.NetEventSource.Enter(System.Object,System.Object,System.Object,System.String)">
  13360. <summary>Logs entrance to a method.</summary>
  13361. <param name="thisOrContextObject">`this`, or another object that serves to provide context for the operation.</param>
  13362. <param name="arg0">The first object to log.</param>
  13363. <param name="arg1">The second object to log.</param>
  13364. <param name="memberName">The calling member.</param>
  13365. </member>
  13366. <member name="M:System.Net.NetEventSource.Enter(System.Object,System.Object,System.Object,System.Object,System.String)">
  13367. <summary>Logs entrance to a method.</summary>
  13368. <param name="thisOrContextObject">`this`, or another object that serves to provide context for the operation.</param>
  13369. <param name="arg0">The first object to log.</param>
  13370. <param name="arg1">The second object to log.</param>
  13371. <param name="arg2">The third object to log.</param>
  13372. <param name="memberName">The calling member.</param>
  13373. </member>
  13374. <member name="M:System.Net.NetEventSource.Exit(System.Object,System.FormattableString,System.String)">
  13375. <summary>Logs exit from a method.</summary>
  13376. <param name="thisOrContextObject">`this`, or another object that serves to provide context for the operation.</param>
  13377. <param name="formattableString">A description of the exit operation, including any return values.</param>
  13378. <param name="memberName">The calling member.</param>
  13379. </member>
  13380. <member name="M:System.Net.NetEventSource.Exit(System.Object,System.Object,System.String)">
  13381. <summary>Logs exit from a method.</summary>
  13382. <param name="thisOrContextObject">`this`, or another object that serves to provide context for the operation.</param>
  13383. <param name="arg0">A return value from the member.</param>
  13384. <param name="memberName">The calling member.</param>
  13385. </member>
  13386. <member name="M:System.Net.NetEventSource.Exit(System.Object,System.Object,System.Object,System.String)">
  13387. <summary>Logs exit from a method.</summary>
  13388. <param name="thisOrContextObject">`this`, or another object that serves to provide context for the operation.</param>
  13389. <param name="arg0">A return value from the member.</param>
  13390. <param name="arg1">A second return value from the member.</param>
  13391. <param name="memberName">The calling member.</param>
  13392. </member>
  13393. <member name="M:System.Net.NetEventSource.Info(System.Object,System.FormattableString,System.String)">
  13394. <summary>Logs an information message.</summary>
  13395. <param name="thisOrContextObject">`this`, or another object that serves to provide context for the operation.</param>
  13396. <param name="formattableString">The message to be logged.</param>
  13397. <param name="memberName">The calling member.</param>
  13398. </member>
  13399. <member name="M:System.Net.NetEventSource.Info(System.Object,System.Object,System.String)">
  13400. <summary>Logs an information message.</summary>
  13401. <param name="thisOrContextObject">`this`, or another object that serves to provide context for the operation.</param>
  13402. <param name="message">The message to be logged.</param>
  13403. <param name="memberName">The calling member.</param>
  13404. </member>
  13405. <member name="M:System.Net.NetEventSource.Error(System.Object,System.FormattableString,System.String)">
  13406. <summary>Logs an error message.</summary>
  13407. <param name="thisOrContextObject">`this`, or another object that serves to provide context for the operation.</param>
  13408. <param name="formattableString">The message to be logged.</param>
  13409. <param name="memberName">The calling member.</param>
  13410. </member>
  13411. <member name="M:System.Net.NetEventSource.Error(System.Object,System.Object,System.String)">
  13412. <summary>Logs an error message.</summary>
  13413. <param name="thisOrContextObject">`this`, or another object that serves to provide context for the operation.</param>
  13414. <param name="message">The message to be logged.</param>
  13415. <param name="memberName">The calling member.</param>
  13416. </member>
  13417. <member name="M:System.Net.NetEventSource.Fail(System.Object,System.FormattableString,System.String)">
  13418. <summary>Logs a fatal error and raises an assert.</summary>
  13419. <param name="thisOrContextObject">`this`, or another object that serves to provide context for the operation.</param>
  13420. <param name="formattableString">The message to be logged.</param>
  13421. <param name="memberName">The calling member.</param>
  13422. </member>
  13423. <member name="M:System.Net.NetEventSource.Fail(System.Object,System.Object,System.String)">
  13424. <summary>Logs a fatal error and raises an assert.</summary>
  13425. <param name="thisOrContextObject">`this`, or another object that serves to provide context for the operation.</param>
  13426. <param name="message">The message to be logged.</param>
  13427. <param name="memberName">The calling member.</param>
  13428. </member>
  13429. <member name="M:System.Net.NetEventSource.DumpBuffer(System.Object,System.Byte[],System.String)">
  13430. <summary>Logs the contents of a buffer.</summary>
  13431. <param name="thisOrContextObject">`this`, or another object that serves to provide context for the operation.</param>
  13432. <param name="buffer">The buffer to be logged.</param>
  13433. <param name="memberName">The calling member.</param>
  13434. </member>
  13435. <member name="M:System.Net.NetEventSource.DumpBuffer(System.Object,System.Byte[],System.Int32,System.Int32,System.String)">
  13436. <summary>Logs the contents of a buffer.</summary>
  13437. <param name="thisOrContextObject">`this`, or another object that serves to provide context for the operation.</param>
  13438. <param name="buffer">The buffer to be logged.</param>
  13439. <param name="offset">The starting offset from which to log.</param>
  13440. <param name="count">The number of bytes to log.</param>
  13441. <param name="memberName">The calling member.</param>
  13442. </member>
  13443. <member name="M:System.Net.NetEventSource.DumpBuffer(System.Object,System.IntPtr,System.Int32,System.String)">
  13444. <summary>Logs the contents of a buffer.</summary>
  13445. <param name="thisOrContextObject">`this`, or another object that serves to provide context for the operation.</param>
  13446. <param name="bufferPtr">The starting location of the buffer to be logged.</param>
  13447. <param name="count">The number of bytes to log.</param>
  13448. <param name="memberName">The calling member.</param>
  13449. </member>
  13450. <member name="M:System.Net.NetEventSource.Associate(System.Object,System.Object,System.String)">
  13451. <summary>Logs a relationship between two objects.</summary>
  13452. <param name="first">The first object.</param>
  13453. <param name="second">The second object.</param>
  13454. <param name="memberName">The calling member.</param>
  13455. </member>
  13456. <member name="M:System.Net.NetEventSource.Associate(System.Object,System.Object,System.Object,System.String)">
  13457. <summary>Logs a relationship between two objects.</summary>
  13458. <param name="thisOrContextObject">`this`, or another object that serves to provide context for the operation.</param>
  13459. <param name="first">The first object.</param>
  13460. <param name="second">The second object.</param>
  13461. <param name="memberName">The calling member.</param>
  13462. </member>
  13463. <member name="T:System.SR">
  13464. <summary>
  13465. A strongly-typed resource class, for looking up localized strings, etc.
  13466. </summary>
  13467. </member>
  13468. <member name="P:System.SR.ResourceManager">
  13469. <summary>
  13470. Returns the cached ResourceManager instance used by this class.
  13471. </summary>
  13472. </member>
  13473. <member name="P:System.SR.Culture">
  13474. <summary>
  13475. Overrides the current thread's CurrentUICulture property for all
  13476. resource lookups using this strongly typed resource class.
  13477. </summary>
  13478. </member>
  13479. <member name="P:System.SR.ADP_BadParameterName">
  13480. <summary>
  13481. Looks up a localized string similar to Specified parameter name &apos;{0}&apos; is not valid..
  13482. </summary>
  13483. </member>
  13484. <member name="P:System.SR.ADP_CalledTwice">
  13485. <summary>
  13486. Looks up a localized string similar to The method &apos;{0}&apos; cannot be called more than once for the same execution..
  13487. </summary>
  13488. </member>
  13489. <member name="P:System.SR.ADP_ClosedConnectionError">
  13490. <summary>
  13491. Looks up a localized string similar to Invalid operation. The connection is closed..
  13492. </summary>
  13493. </member>
  13494. <member name="P:System.SR.ADP_CollectionIndexInt32">
  13495. <summary>
  13496. Looks up a localized string similar to Invalid index {0} for this {1} with Count={2}..
  13497. </summary>
  13498. </member>
  13499. <member name="P:System.SR.ADP_CollectionIndexString">
  13500. <summary>
  13501. Looks up a localized string similar to A {0} with {1} &apos;{2}&apos; is not contained by this {3}..
  13502. </summary>
  13503. </member>
  13504. <member name="P:System.SR.ADP_CollectionInvalidType">
  13505. <summary>
  13506. Looks up a localized string similar to The {0} only accepts non-null {1} type objects, not {2} objects..
  13507. </summary>
  13508. </member>
  13509. <member name="P:System.SR.ADP_CollectionIsNotParent">
  13510. <summary>
  13511. Looks up a localized string similar to The {0} is already contained by another {1}..
  13512. </summary>
  13513. </member>
  13514. <member name="P:System.SR.ADP_CollectionNullValue">
  13515. <summary>
  13516. Looks up a localized string similar to The {0} only accepts non-null {1} type objects..
  13517. </summary>
  13518. </member>
  13519. <member name="P:System.SR.ADP_CollectionRemoveInvalidObject">
  13520. <summary>
  13521. Looks up a localized string similar to Attempted to remove an {0} that is not contained by this {1}..
  13522. </summary>
  13523. </member>
  13524. <member name="P:System.SR.ADP_CommandTextRequired">
  13525. <summary>
  13526. Looks up a localized string similar to {0}: CommandText property has not been initialized.
  13527. </summary>
  13528. </member>
  13529. <member name="P:System.SR.ADP_ConnectionAlreadyOpen">
  13530. <summary>
  13531. Looks up a localized string similar to The connection was not closed. {0}.
  13532. </summary>
  13533. </member>
  13534. <member name="P:System.SR.ADP_ConnectionIsDisabled">
  13535. <summary>
  13536. Looks up a localized string similar to The connection has been disabled..
  13537. </summary>
  13538. </member>
  13539. <member name="P:System.SR.ADP_ConnectionRequired">
  13540. <summary>
  13541. Looks up a localized string similar to {0}: Connection property has not been initialized..
  13542. </summary>
  13543. </member>
  13544. <member name="P:System.SR.ADP_ConnectionStateMsg">
  13545. <summary>
  13546. Looks up a localized string similar to The connection&apos;s current state: {0}..
  13547. </summary>
  13548. </member>
  13549. <member name="P:System.SR.ADP_ConnectionStateMsg_Closed">
  13550. <summary>
  13551. Looks up a localized string similar to The connection&apos;s current state is closed..
  13552. </summary>
  13553. </member>
  13554. <member name="P:System.SR.ADP_ConnectionStateMsg_Connecting">
  13555. <summary>
  13556. Looks up a localized string similar to The connection&apos;s current state is connecting..
  13557. </summary>
  13558. </member>
  13559. <member name="P:System.SR.ADP_ConnectionStateMsg_Open">
  13560. <summary>
  13561. Looks up a localized string similar to The connection&apos;s current state is open..
  13562. </summary>
  13563. </member>
  13564. <member name="P:System.SR.ADP_ConnectionStateMsg_OpenExecuting">
  13565. <summary>
  13566. Looks up a localized string similar to The connection&apos;s current state is executing..
  13567. </summary>
  13568. </member>
  13569. <member name="P:System.SR.ADP_ConnectionStateMsg_OpenFetching">
  13570. <summary>
  13571. Looks up a localized string similar to The connection&apos;s current state is fetching..
  13572. </summary>
  13573. </member>
  13574. <member name="P:System.SR.ADP_ConnectionStringSyntax">
  13575. <summary>
  13576. Looks up a localized string similar to Format of the initialization string does not conform to specification starting at index {0}..
  13577. </summary>
  13578. </member>
  13579. <member name="P:System.SR.ADP_DataReaderClosed">
  13580. <summary>
  13581. Looks up a localized string similar to Invalid attempt to call {0} when reader is closed..
  13582. </summary>
  13583. </member>
  13584. <member name="P:System.SR.ADP_DbTypeNotSupported">
  13585. <summary>
  13586. Looks up a localized string similar to No mapping exists from DbType {0} to a known {1}..
  13587. </summary>
  13588. </member>
  13589. <member name="P:System.SR.ADP_DeriveParametersNotSupported">
  13590. <summary>
  13591. Looks up a localized string similar to {0} DeriveParameters only supports CommandType.StoredProcedure, not CommandType. {1}..
  13592. </summary>
  13593. </member>
  13594. <member name="P:System.SR.ADP_DoubleValuedProperty">
  13595. <summary>
  13596. Looks up a localized string similar to The acceptable values for the property &apos;{0}&apos; are &apos;{1}&apos; or &apos;{2}&apos;..
  13597. </summary>
  13598. </member>
  13599. <member name="P:System.SR.ADP_EmptyDatabaseName">
  13600. <summary>
  13601. Looks up a localized string similar to Database cannot be null, the empty string, or string of only whitespace..
  13602. </summary>
  13603. </member>
  13604. <member name="P:System.SR.ADP_InternalConnectionError">
  13605. <summary>
  13606. Looks up a localized string similar to Internal DbConnection Error: {0}.
  13607. </summary>
  13608. </member>
  13609. <member name="P:System.SR.ADP_InternalProviderError">
  13610. <summary>
  13611. Looks up a localized string similar to Internal .NET Framework Data Provider error {0}..
  13612. </summary>
  13613. </member>
  13614. <member name="P:System.SR.ADP_InvalidArgumentLength">
  13615. <summary>
  13616. Looks up a localized string similar to The length of argument &apos;{0}&apos; exceeds its limit of &apos;{1}&apos;..
  13617. </summary>
  13618. </member>
  13619. <member name="P:System.SR.ADP_InvalidCommandTimeout">
  13620. <summary>
  13621. Looks up a localized string similar to Invalid CommandTimeout value {0}; the value must be &gt;= 0..
  13622. </summary>
  13623. </member>
  13624. <member name="P:System.SR.ADP_InvalidConnectionOptionValue">
  13625. <summary>
  13626. Looks up a localized string similar to Invalid value for key &apos;{0}&apos;..
  13627. </summary>
  13628. </member>
  13629. <member name="P:System.SR.ADP_InvalidConnectionOptionValueLength">
  13630. <summary>
  13631. Looks up a localized string similar to The value&apos;s length for key &apos;{0}&apos; exceeds it&apos;s limit of &apos;{1}&apos;..
  13632. </summary>
  13633. </member>
  13634. <member name="P:System.SR.ADP_InvalidDataDirectory">
  13635. <summary>
  13636. Looks up a localized string similar to The DataDirectory substitute is not a string..
  13637. </summary>
  13638. </member>
  13639. <member name="P:System.SR.ADP_InvalidDataLength2">
  13640. <summary>
  13641. Looks up a localized string similar to Specified length &apos;{0}&apos; is out of range..
  13642. </summary>
  13643. </member>
  13644. <member name="P:System.SR.ADP_InvalidDataType">
  13645. <summary>
  13646. Looks up a localized string similar to The parameter data type of {0} is invalid..
  13647. </summary>
  13648. </member>
  13649. <member name="P:System.SR.ADP_InvalidDestinationBufferIndex">
  13650. <summary>
  13651. Looks up a localized string similar to Invalid destination buffer (size of {0}) offset: {1}.
  13652. </summary>
  13653. </member>
  13654. <member name="P:System.SR.ADP_InvalidEnumerationValue">
  13655. <summary>
  13656. Looks up a localized string similar to The {0} enumeration value, {1}, is invalid..
  13657. </summary>
  13658. </member>
  13659. <member name="P:System.SR.ADP_InvalidMetaDataValue">
  13660. <summary>
  13661. Looks up a localized string similar to Invalid value for this metadata..
  13662. </summary>
  13663. </member>
  13664. <member name="P:System.SR.ADP_InvalidMinMaxPoolSizeValues">
  13665. <summary>
  13666. Looks up a localized string similar to Invalid min or max pool size values, min pool size cannot be greater than the max pool size..
  13667. </summary>
  13668. </member>
  13669. <member name="P:System.SR.ADP_InvalidMixedUsageOfAccessTokenAndAuthentication">
  13670. <summary>
  13671. Looks up a localized string similar to Cannot set the AccessToken property if &apos;Authentication&apos; has been specified in the connection string..
  13672. </summary>
  13673. </member>
  13674. <member name="P:System.SR.ADP_InvalidMixedUsageOfAccessTokenAndIntegratedSecurity">
  13675. <summary>
  13676. Looks up a localized string similar to Cannot set the AccessToken property if the &apos;Integrated Security&apos; connection string keyword has been set to &apos;true&apos; or &apos;SSPI&apos;..
  13677. </summary>
  13678. </member>
  13679. <member name="P:System.SR.ADP_InvalidMixedUsageOfAccessTokenAndUserIDPassword">
  13680. <summary>
  13681. Looks up a localized string similar to Cannot set the AccessToken property if &apos;UserID&apos;, &apos;UID&apos;, &apos;Password&apos;, or &apos;PWD&apos; has been specified in connection string..
  13682. </summary>
  13683. </member>
  13684. <member name="P:System.SR.ADP_InvalidMixedUsageOfCredentialAndAccessToken">
  13685. <summary>
  13686. Looks up a localized string similar to Cannot set the Credential property if the AccessToken property is already set..
  13687. </summary>
  13688. </member>
  13689. <member name="P:System.SR.ADP_InvalidMixedUsageOfSecureAndClearCredential">
  13690. <summary>
  13691. Looks up a localized string similar to Cannot use Credential with UserID, UID, Password, or PWD connection string keywords..
  13692. </summary>
  13693. </member>
  13694. <member name="P:System.SR.ADP_InvalidMixedUsageOfSecureCredentialAndIntegratedSecurity">
  13695. <summary>
  13696. Looks up a localized string similar to Cannot use Credential with Integrated Security connection string keyword..
  13697. </summary>
  13698. </member>
  13699. <member name="P:System.SR.ADP_InvalidMultipartName">
  13700. <summary>
  13701. Looks up a localized string similar to {0} &apos;{1}&apos;..
  13702. </summary>
  13703. </member>
  13704. <member name="P:System.SR.ADP_InvalidMultipartNameQuoteUsage">
  13705. <summary>
  13706. Looks up a localized string similar to {0} &apos;{1}&apos;, incorrect usage of quotes..
  13707. </summary>
  13708. </member>
  13709. <member name="P:System.SR.ADP_InvalidMultipartNameToManyParts">
  13710. <summary>
  13711. Looks up a localized string similar to {0} &apos;{1}&apos;, the current limit of &apos;{2}&apos; is insufficient..
  13712. </summary>
  13713. </member>
  13714. <member name="P:System.SR.ADP_InvalidOffsetValue">
  13715. <summary>
  13716. Looks up a localized string similar to Invalid parameter Offset value &apos;{0}&apos;. The value must be greater than or equal to 0..
  13717. </summary>
  13718. </member>
  13719. <member name="P:System.SR.ADP_InvalidPrefixSuffix">
  13720. <summary>
  13721. Looks up a localized string similar to Specified QuotePrefix and QuoteSuffix values do not match..
  13722. </summary>
  13723. </member>
  13724. <member name="P:System.SR.ADP_InvalidSeekOrigin">
  13725. <summary>
  13726. Looks up a localized string similar to Specified SeekOrigin value is invalid..
  13727. </summary>
  13728. </member>
  13729. <member name="P:System.SR.ADP_InvalidSizeValue">
  13730. <summary>
  13731. Looks up a localized string similar to Invalid parameter Size value &apos;{0}&apos;. The value must be greater than or equal to 0..
  13732. </summary>
  13733. </member>
  13734. <member name="P:System.SR.ADP_InvalidSourceBufferIndex">
  13735. <summary>
  13736. Looks up a localized string similar to Invalid source buffer (size of {0}) offset: {1}.
  13737. </summary>
  13738. </member>
  13739. <member name="P:System.SR.ADP_KeywordNotSupported">
  13740. <summary>
  13741. Looks up a localized string similar to Keyword not supported: &apos;{0}&apos;..
  13742. </summary>
  13743. </member>
  13744. <member name="P:System.SR.ADP_LocalTransactionPresent">
  13745. <summary>
  13746. Looks up a localized string similar to Cannot enlist in the transaction because a local transaction is in progress on the connection. Finish local transaction and retry..
  13747. </summary>
  13748. </member>
  13749. <member name="P:System.SR.ADP_MismatchedAsyncResult">
  13750. <summary>
  13751. Looks up a localized string similar to Mismatched end method call for asyncResult. Expected call to {0} but {1} was called instead..
  13752. </summary>
  13753. </member>
  13754. <member name="P:System.SR.ADP_MissingConnectionOptionValue">
  13755. <summary>
  13756. Looks up a localized string similar to Use of key &apos;{0}&apos; requires the key &apos;{1}&apos; to be present..
  13757. </summary>
  13758. </member>
  13759. <member name="P:System.SR.ADP_MustBeReadOnly">
  13760. <summary>
  13761. Looks up a localized string similar to {0} must be marked as read only..
  13762. </summary>
  13763. </member>
  13764. <member name="P:System.SR.ADP_NegativeParameter">
  13765. <summary>
  13766. Looks up a localized string similar to Invalid value for argument &apos;{0}&apos;. The value must be greater than or equal to 0..
  13767. </summary>
  13768. </member>
  13769. <member name="P:System.SR.ADP_NoConnectionString">
  13770. <summary>
  13771. Looks up a localized string similar to The ConnectionString property has not been initialized..
  13772. </summary>
  13773. </member>
  13774. <member name="P:System.SR.ADP_NonPooledOpenTimeout">
  13775. <summary>
  13776. Looks up a localized string similar to Timeout attempting to open the connection. The time period elapsed prior to attempting to open the connection has been exceeded. This may have occurred because of too many simultaneous non-pooled connection attempts..
  13777. </summary>
  13778. </member>
  13779. <member name="P:System.SR.ADP_NonSeqByteAccess">
  13780. <summary>
  13781. Looks up a localized string similar to Invalid {2} attempt at dataIndex &apos;{0}&apos;. With CommandBehavior.SequentialAccess, you may only read from dataIndex &apos;{1}&apos; or greater..
  13782. </summary>
  13783. </member>
  13784. <member name="P:System.SR.ADP_NonSequentialColumnAccess">
  13785. <summary>
  13786. Looks up a localized string similar to Invalid attempt to read from column ordinal &apos;{0}&apos;. With CommandBehavior.SequentialAccess, you may only read from column ordinal &apos;{1}&apos; or greater..
  13787. </summary>
  13788. </member>
  13789. <member name="P:System.SR.ADP_NoStoredProcedureExists">
  13790. <summary>
  13791. Looks up a localized string similar to The stored procedure &apos;{0}&apos; doesn&apos;t exist..
  13792. </summary>
  13793. </member>
  13794. <member name="P:System.SR.ADP_NotSupportedEnumerationValue">
  13795. <summary>
  13796. Looks up a localized string similar to The {0} enumeration value, {1}, is not supported by the {2} method..
  13797. </summary>
  13798. </member>
  13799. <member name="P:System.SR.ADP_OpenConnectionPropertySet">
  13800. <summary>
  13801. Looks up a localized string similar to Not allowed to change the &apos;{0}&apos; property. {1}.
  13802. </summary>
  13803. </member>
  13804. <member name="P:System.SR.ADP_OpenConnectionRequired">
  13805. <summary>
  13806. Looks up a localized string similar to {0} requires an open and available Connection. {1}.
  13807. </summary>
  13808. </member>
  13809. <member name="P:System.SR.ADP_OpenReaderExists">
  13810. <summary>
  13811. Looks up a localized string similar to There is already an open DataReader associated with this {0} which must be closed first..
  13812. </summary>
  13813. </member>
  13814. <member name="P:System.SR.ADP_OperationAborted">
  13815. <summary>
  13816. Looks up a localized string similar to Operation aborted..
  13817. </summary>
  13818. </member>
  13819. <member name="P:System.SR.ADP_OperationAbortedExceptionMessage">
  13820. <summary>
  13821. Looks up a localized string similar to Operation aborted due to an exception (see InnerException for details)..
  13822. </summary>
  13823. </member>
  13824. <member name="P:System.SR.ADP_ParallelTransactionsNotSupported">
  13825. <summary>
  13826. Looks up a localized string similar to {0} does not support parallel transactions..
  13827. </summary>
  13828. </member>
  13829. <member name="P:System.SR.ADP_ParameterConversionFailed">
  13830. <summary>
  13831. Looks up a localized string similar to Failed to convert parameter value from a {0} to a {1}..
  13832. </summary>
  13833. </member>
  13834. <member name="P:System.SR.ADP_ParameterValueOutOfRange">
  13835. <summary>
  13836. Looks up a localized string similar to Parameter value &apos;{0}&apos; is out of range..
  13837. </summary>
  13838. </member>
  13839. <member name="P:System.SR.ADP_PendingAsyncOperation">
  13840. <summary>
  13841. Looks up a localized string similar to Can not start another operation while there is an asynchronous operation pending..
  13842. </summary>
  13843. </member>
  13844. <member name="P:System.SR.ADP_PooledOpenTimeout">
  13845. <summary>
  13846. Looks up a localized string similar to Timeout expired. The timeout period elapsed prior to obtaining a connection from the pool. This may have occurred because all pooled connections were in use and max pool size was reached..
  13847. </summary>
  13848. </member>
  13849. <member name="P:System.SR.ADP_PrepareParameterScale">
  13850. <summary>
  13851. Looks up a localized string similar to {0}.Prepare method requires parameters of type &apos;{1}&apos; have an explicitly set Precision and Scale..
  13852. </summary>
  13853. </member>
  13854. <member name="P:System.SR.ADP_PrepareParameterSize">
  13855. <summary>
  13856. Looks up a localized string similar to {0}.Prepare method requires all variable length parameters to have an explicitly set non-zero Size..
  13857. </summary>
  13858. </member>
  13859. <member name="P:System.SR.ADP_PrepareParameterType">
  13860. <summary>
  13861. Looks up a localized string similar to {0}.Prepare method requires all parameters to have an explicitly set type..
  13862. </summary>
  13863. </member>
  13864. <member name="P:System.SR.ADP_SingleValuedProperty">
  13865. <summary>
  13866. Looks up a localized string similar to The only acceptable value for the property &apos;{0}&apos; is &apos;{1}&apos;..
  13867. </summary>
  13868. </member>
  13869. <member name="P:System.SR.ADP_StreamClosed">
  13870. <summary>
  13871. Looks up a localized string similar to Invalid attempt to {0} when stream is closed..
  13872. </summary>
  13873. </member>
  13874. <member name="P:System.SR.ADP_TransactionCompletedButNotDisposed">
  13875. <summary>
  13876. Looks up a localized string similar to The transaction associated with the current connection has completed but has not been disposed. The transaction must be disposed before the connection can be used to execute SQL statements..
  13877. </summary>
  13878. </member>
  13879. <member name="P:System.SR.ADP_TransactionConnectionMismatch">
  13880. <summary>
  13881. Looks up a localized string similar to The transaction is either not associated with the current connection or has been completed..
  13882. </summary>
  13883. </member>
  13884. <member name="P:System.SR.ADP_TransactionPresent">
  13885. <summary>
  13886. Looks up a localized string similar to Connection currently has transaction enlisted. Finish current transaction and retry..
  13887. </summary>
  13888. </member>
  13889. <member name="P:System.SR.ADP_TransactionRequired">
  13890. <summary>
  13891. Looks up a localized string similar to {0} requires the command to have a transaction when the connection assigned to the command is in a pending local transaction. The Transaction property of the command has not been initialized..
  13892. </summary>
  13893. </member>
  13894. <member name="P:System.SR.ADP_TransactionZombied">
  13895. <summary>
  13896. Looks up a localized string similar to This {0} has completed; it is no longer usable..
  13897. </summary>
  13898. </member>
  13899. <member name="P:System.SR.ADP_UninitializedParameterSize">
  13900. <summary>
  13901. Looks up a localized string similar to {1}[{0}]: the Size property has an invalid size of 0..
  13902. </summary>
  13903. </member>
  13904. <member name="P:System.SR.ADP_UnknownDataType">
  13905. <summary>
  13906. Looks up a localized string similar to No mapping exists from object type {0} to a known managed provider native type..
  13907. </summary>
  13908. </member>
  13909. <member name="P:System.SR.ADP_UnknownDataTypeCode">
  13910. <summary>
  13911. Looks up a localized string similar to Unable to handle an unknown TypeCode {0} returned by Type {1}..
  13912. </summary>
  13913. </member>
  13914. <member name="P:System.SR.ADP_VersionDoesNotSupportDataType">
  13915. <summary>
  13916. Looks up a localized string similar to The version of SQL Server in use does not support datatype &apos;{0}&apos;..
  13917. </summary>
  13918. </member>
  13919. <member name="P:System.SR.Arg_ArrayPlusOffTooSmall">
  13920. <summary>
  13921. Looks up a localized string similar to Destination array is not long enough to copy all the items in the collection. Check array index and length..
  13922. </summary>
  13923. </member>
  13924. <member name="P:System.SR.Arg_RankMultiDimNotSupported">
  13925. <summary>
  13926. Looks up a localized string similar to Only single dimensional arrays are supported for the requested action..
  13927. </summary>
  13928. </member>
  13929. <member name="P:System.SR.Arg_RemoveArgNotFound">
  13930. <summary>
  13931. Looks up a localized string similar to Cannot remove the specified item because it was not found in the specified Collection..
  13932. </summary>
  13933. </member>
  13934. <member name="P:System.SR.ArgumentOutOfRange_NeedNonNegNum">
  13935. <summary>
  13936. Looks up a localized string similar to Non-negative number required..
  13937. </summary>
  13938. </member>
  13939. <member name="P:System.SR.AttestationTokenSignatureValidationFailed">
  13940. <summary>
  13941. Looks up a localized string similar to The validation of an attestation token failed. The token signature does not match the signature omputed using a public key retrieved from the attestation public key endpoint at &apos;{0}&apos;. Verify the DNS apping for the endpoint. If correct, contact Customer Support Services..
  13942. </summary>
  13943. </member>
  13944. <member name="P:System.SR.AZURESQL_ChinaEndpoint">
  13945. <summary>
  13946. Looks up a localized string similar to .database.chinacloudapi.cn.
  13947. </summary>
  13948. </member>
  13949. <member name="P:System.SR.AZURESQL_GenericEndpoint">
  13950. <summary>
  13951. Looks up a localized string similar to .database.windows.net.
  13952. </summary>
  13953. </member>
  13954. <member name="P:System.SR.AZURESQL_GermanEndpoint">
  13955. <summary>
  13956. Looks up a localized string similar to .database.cloudapi.de.
  13957. </summary>
  13958. </member>
  13959. <member name="P:System.SR.AZURESQL_UsGovEndpoint">
  13960. <summary>
  13961. Looks up a localized string similar to .database.usgovcloudapi.net.
  13962. </summary>
  13963. </member>
  13964. <member name="P:System.SR.Data_InvalidOffsetLength">
  13965. <summary>
  13966. Looks up a localized string similar to Offset and length were out of bounds for the array or count is greater than the number of elements from index to the end of the source collection..
  13967. </summary>
  13968. </member>
  13969. <member name="P:System.SR.EnclaveRetrySleepInSecondsValueException">
  13970. <summary>
  13971. Looks up a localized string similar to Internal error occurred when retrying the download of the HGS root certificate after the initial request failed. Contact Customer Support Services..
  13972. </summary>
  13973. </member>
  13974. <member name="P:System.SR.EnclaveSessionInvalidationFailed">
  13975. <summary>
  13976. Looks up a localized string similar to Internal error. Unable to invalidate the requested enclave session, because it does not exist in the cache. Contact Customer Support Services..
  13977. </summary>
  13978. </member>
  13979. <member name="P:System.SR.event_OperationReturnedSomething">
  13980. <summary>
  13981. Looks up a localized string similar to {0} returned {1}..
  13982. </summary>
  13983. </member>
  13984. <member name="P:System.SR.ExpiredAttestationToken">
  13985. <summary>
  13986. Looks up a localized string similar to The validation of an attestation token failed. The token received from SQL Server is expired. Contact Customer Support Services..
  13987. </summary>
  13988. </member>
  13989. <member name="P:System.SR.FailToCreateEnclaveSession">
  13990. <summary>
  13991. Looks up a localized string similar to Failed to create enclave session as attestation server is busy..
  13992. </summary>
  13993. </member>
  13994. <member name="P:System.SR.FailToParseAttestationInfo">
  13995. <summary>
  13996. Looks up a localized string similar to The validation of an attestation information failed. The attestation information has an invalid format. Contact Customer Support Services. Error details: &apos;{0}&apos;..
  13997. </summary>
  13998. </member>
  13999. <member name="P:System.SR.FailToParseAttestationToken">
  14000. <summary>
  14001. Looks up a localized string similar to The validation of an attestation token failed. The token has an invalid format. Contact Customer Support Services. Error details: &apos;{0}&apos;..
  14002. </summary>
  14003. </member>
  14004. <member name="P:System.SR.GetAttestationSigningCertificateFailedInvalidCertificate">
  14005. <summary>
  14006. Looks up a localized string similar to The attestation service returned an expired HGS root certificate for attestation URL &apos;{0}&apos;. Check the HGS root certificate configured for your HGS instance..
  14007. </summary>
  14008. </member>
  14009. <member name="P:System.SR.GetAttestationSigningCertificateRequestFailedFormat">
  14010. <summary>
  14011. Looks up a localized string similar to The obtained HGS root certificate for attestation URL &apos;{0}&apos; has an invalid format. Verify the attestation URL is correct and the HGS server is online and fully initialized. For more information contact Customer Support Services. Error details: &apos;{1}&apos;..
  14012. </summary>
  14013. </member>
  14014. <member name="P:System.SR.GetAttestationTokenSigningKeysFailed">
  14015. <summary>
  14016. Looks up a localized string similar to The validation of an attestation token failed. Cannot retrieve a public key from the attestation public key endpoint, or the retrieved key has an invalid format. Error details: &apos;{0}&apos;..
  14017. </summary>
  14018. </member>
  14019. <member name="P:System.SR.GetSharedSecretFailed">
  14020. <summary>
  14021. Looks up a localized string similar to Signature verification of the enclave&apos;s Diffie-Hellman key failed. Contact Customer Support Services..
  14022. </summary>
  14023. </member>
  14024. <member name="P:System.SR.GT_Disabled">
  14025. <summary>
  14026. Looks up a localized string similar to Global Transactions are not enabled for this Azure SQL Database. Please contact Azure SQL Database support for assistance..
  14027. </summary>
  14028. </member>
  14029. <member name="P:System.SR.IEnumerableOfSqlDataRecordHasNoRows">
  14030. <summary>
  14031. Looks up a localized string similar to There are no records in the SqlDataRecord enumeration. To send a table-valued parameter with no rows, use a null reference for the value instead..
  14032. </summary>
  14033. </member>
  14034. <member name="P:System.SR.InvalidArgumentToBase64UrlDecoder">
  14035. <summary>
  14036. Looks up a localized string similar to The validation of an attestation token failed due to an error while decoding the enclave public key obtained from SQL Server. Contact Customer Support Services..
  14037. </summary>
  14038. </member>
  14039. <member name="P:System.SR.InvalidArgumentToSHA256">
  14040. <summary>
  14041. Looks up a localized string similar to The validation of an attestation token failed due to an error while computing a hash of the enclave public key obtained from SQL Server. Contact Customer Support Services..
  14042. </summary>
  14043. </member>
  14044. <member name="P:System.SR.InvalidAttestationToken">
  14045. <summary>
  14046. Looks up a localized string similar to The validation of the attestation token has failed during signature validation. Exception: &apos;{0}&apos;..
  14047. </summary>
  14048. </member>
  14049. <member name="P:System.SR.InvalidClaimInAttestationToken">
  14050. <summary>
  14051. Looks up a localized string similar to The validation of an attestation token failed. Claim &apos;{0}&apos; in the token has an invalid value of &apos;{1}&apos;. Verify the attestation policy. If the policy is correct, contact Customer Support Services..
  14052. </summary>
  14053. </member>
  14054. <member name="P:System.SR.InvalidSchemaTableOrdinals">
  14055. <summary>
  14056. Looks up a localized string similar to Invalid column ordinals in schema table. ColumnOrdinals, if present, must not have duplicates or gaps..
  14057. </summary>
  14058. </member>
  14059. <member name="P:System.SR.LocalDB_FailedGetDLLHandle">
  14060. <summary>
  14061. Looks up a localized string similar to Local Database Runtime: Cannot load SQLUserInstance.dll..
  14062. </summary>
  14063. </member>
  14064. <member name="P:System.SR.LocalDB_MethodNotFound">
  14065. <summary>
  14066. Looks up a localized string similar to Invalid SQLUserInstance.dll found at the location specified in the registry. Verify that the Local Database Runtime feature of SQL Server Express is properly installed..
  14067. </summary>
  14068. </member>
  14069. <member name="P:System.SR.LocalDB_UnobtainableMessage">
  14070. <summary>
  14071. Looks up a localized string similar to Cannot obtain Local Database Runtime error message.
  14072. </summary>
  14073. </member>
  14074. <member name="P:System.SR.LocalDBNotSupported">
  14075. <summary>
  14076. Looks up a localized string similar to LocalDB is not supported on this platform..
  14077. </summary>
  14078. </member>
  14079. <member name="P:System.SR.MDF_AmbigousCollectionName">
  14080. <summary>
  14081. Looks up a localized string similar to The collection name &apos;{0}&apos; matches at least two collections with the same name but with different case, but does not match any of them exactly..
  14082. </summary>
  14083. </member>
  14084. <member name="P:System.SR.MDF_CollectionNameISNotUnique">
  14085. <summary>
  14086. Looks up a localized string similar to There are multiple collections named &apos;{0}&apos;..
  14087. </summary>
  14088. </member>
  14089. <member name="P:System.SR.MDF_DataTableDoesNotExist">
  14090. <summary>
  14091. Looks up a localized string similar to The collection &apos;{0}&apos; is missing from the metadata XML..
  14092. </summary>
  14093. </member>
  14094. <member name="P:System.SR.MDF_IncorrectNumberOfDataSourceInformationRows">
  14095. <summary>
  14096. Looks up a localized string similar to The DataSourceInformation table must contain exactly one row..
  14097. </summary>
  14098. </member>
  14099. <member name="P:System.SR.MDF_InvalidXml">
  14100. <summary>
  14101. Looks up a localized string similar to The metadata XML is invalid..
  14102. </summary>
  14103. </member>
  14104. <member name="P:System.SR.MDF_InvalidXmlInvalidValue">
  14105. <summary>
  14106. Looks up a localized string similar to The metadata XML is invalid. The {1} column of the {0} collection must contain a non-empty string..
  14107. </summary>
  14108. </member>
  14109. <member name="P:System.SR.MDF_InvalidXmlMissingColumn">
  14110. <summary>
  14111. Looks up a localized string similar to The metadata XML is invalid. The {0} collection must contain a {1} column and it must be a string column..
  14112. </summary>
  14113. </member>
  14114. <member name="P:System.SR.MDF_MissingDataSourceInformationColumn">
  14115. <summary>
  14116. Looks up a localized string similar to One of the required DataSourceInformation tables columns is missing..
  14117. </summary>
  14118. </member>
  14119. <member name="P:System.SR.MDF_MissingRestrictionColumn">
  14120. <summary>
  14121. Looks up a localized string similar to One or more of the required columns of the restrictions collection is missing..
  14122. </summary>
  14123. </member>
  14124. <member name="P:System.SR.MDF_MissingRestrictionRow">
  14125. <summary>
  14126. Looks up a localized string similar to A restriction exists for which there is no matching row in the restrictions collection..
  14127. </summary>
  14128. </member>
  14129. <member name="P:System.SR.MDF_NoColumns">
  14130. <summary>
  14131. Looks up a localized string similar to The schema table contains no columns..
  14132. </summary>
  14133. </member>
  14134. <member name="P:System.SR.MDF_QueryFailed">
  14135. <summary>
  14136. Looks up a localized string similar to Unable to build the &apos;{0}&apos; collection because execution of the SQL query failed. See the inner exception for details..
  14137. </summary>
  14138. </member>
  14139. <member name="P:System.SR.MDF_TooManyRestrictions">
  14140. <summary>
  14141. Looks up a localized string similar to More restrictions were provided than the requested schema (&apos;{0}&apos;) supports..
  14142. </summary>
  14143. </member>
  14144. <member name="P:System.SR.MDF_UnableToBuildCollection">
  14145. <summary>
  14146. Looks up a localized string similar to Unable to build schema collection &apos;{0}&apos;;.
  14147. </summary>
  14148. </member>
  14149. <member name="P:System.SR.MDF_UndefinedCollection">
  14150. <summary>
  14151. Looks up a localized string similar to The requested collection ({0}) is not defined..
  14152. </summary>
  14153. </member>
  14154. <member name="P:System.SR.MDF_UnsupportedVersion">
  14155. <summary>
  14156. Looks up a localized string similar to The requested collection ({0}) is not supported by this version of the provider..
  14157. </summary>
  14158. </member>
  14159. <member name="P:System.SR.MissingClaimInAttestationToken">
  14160. <summary>
  14161. Looks up a localized string similar to The validation of the attestation token failed. Claim &apos;{0}&apos; is missing in the token. Verify the attestation policy. If the policy is correct, contact Customer Support Services..
  14162. </summary>
  14163. </member>
  14164. <member name="P:System.SR.net_auth_message_not_encrypted">
  14165. <summary>
  14166. Looks up a localized string similar to Protocol error: A received message contains a valid signature but it was not encrypted as required by the effective Protection Level..
  14167. </summary>
  14168. </member>
  14169. <member name="P:System.SR.net_context_buffer_too_small">
  14170. <summary>
  14171. Looks up a localized string similar to Insufficient buffer space. Required: {0} Actual: {1}..
  14172. </summary>
  14173. </member>
  14174. <member name="P:System.SR.net_gssapi_operation_failed">
  14175. <summary>
  14176. Looks up a localized string similar to GSSAPI operation failed with status: {0} (Minor status: {1})..
  14177. </summary>
  14178. </member>
  14179. <member name="P:System.SR.net_gssapi_operation_failed_detailed">
  14180. <summary>
  14181. Looks up a localized string similar to GSSAPI operation failed with error - {0} ({1})..
  14182. </summary>
  14183. </member>
  14184. <member name="P:System.SR.net_invalid_enum">
  14185. <summary>
  14186. Looks up a localized string similar to The specified value is not valid in the &apos;{0}&apos; enumeration..
  14187. </summary>
  14188. </member>
  14189. <member name="P:System.SR.net_log_operation_failed_with_error">
  14190. <summary>
  14191. Looks up a localized string similar to {0} failed with error {1}..
  14192. </summary>
  14193. </member>
  14194. <member name="P:System.SR.net_MethodNotImplementedException">
  14195. <summary>
  14196. Looks up a localized string similar to This method is not implemented by this class..
  14197. </summary>
  14198. </member>
  14199. <member name="P:System.SR.net_nego_channel_binding_not_supported">
  14200. <summary>
  14201. Looks up a localized string similar to No support for channel binding on operating systems other than Windows..
  14202. </summary>
  14203. </member>
  14204. <member name="P:System.SR.net_nego_not_supported_empty_target_with_defaultcreds">
  14205. <summary>
  14206. Looks up a localized string similar to Target name should be non empty if default credentials are passed..
  14207. </summary>
  14208. </member>
  14209. <member name="P:System.SR.net_nego_protection_level_not_supported">
  14210. <summary>
  14211. Looks up a localized string similar to Requested protection level is not supported with the GSSAPI implementation currently installed..
  14212. </summary>
  14213. </member>
  14214. <member name="P:System.SR.net_nego_server_not_supported">
  14215. <summary>
  14216. Looks up a localized string similar to Server implementation is not supported.
  14217. </summary>
  14218. </member>
  14219. <member name="P:System.SR.net_ntlm_not_possible_default_cred">
  14220. <summary>
  14221. Looks up a localized string similar to NTLM authentication is not possible with default credentials on this platform..
  14222. </summary>
  14223. </member>
  14224. <member name="P:System.SR.net_securitypackagesupport">
  14225. <summary>
  14226. Looks up a localized string similar to The requested security package is not supported..
  14227. </summary>
  14228. </member>
  14229. <member name="P:System.SR.NullSchemaTableDataTypeNotSupported">
  14230. <summary>
  14231. Looks up a localized string similar to DateType column for field &apos;{0}&apos; in schema table is null. DataType must be non-null..
  14232. </summary>
  14233. </member>
  14234. <member name="P:System.SR.PlatformNotSupported_DataSqlClient">
  14235. <summary>
  14236. Looks up a localized string similar to Microsoft.Data.SqlClient is not supported on this platform..
  14237. </summary>
  14238. </member>
  14239. <member name="P:System.SR.SNI_ERROR_1">
  14240. <summary>
  14241. Looks up a localized string similar to I/O Error detected in read/write operation.
  14242. </summary>
  14243. </member>
  14244. <member name="P:System.SR.SNI_ERROR_11">
  14245. <summary>
  14246. Looks up a localized string similar to Timeout error.
  14247. </summary>
  14248. </member>
  14249. <member name="P:System.SR.SNI_ERROR_12">
  14250. <summary>
  14251. Looks up a localized string similar to No server name supplied.
  14252. </summary>
  14253. </member>
  14254. <member name="P:System.SR.SNI_ERROR_13">
  14255. <summary>
  14256. Looks up a localized string similar to TerminateListener() has been called.
  14257. </summary>
  14258. </member>
  14259. <member name="P:System.SR.SNI_ERROR_14">
  14260. <summary>
  14261. Looks up a localized string similar to Win9x not supported.
  14262. </summary>
  14263. </member>
  14264. <member name="P:System.SR.SNI_ERROR_15">
  14265. <summary>
  14266. Looks up a localized string similar to Function not supported.
  14267. </summary>
  14268. </member>
  14269. <member name="P:System.SR.SNI_ERROR_16">
  14270. <summary>
  14271. Looks up a localized string similar to Shared-Memory heap error.
  14272. </summary>
  14273. </member>
  14274. <member name="P:System.SR.SNI_ERROR_17">
  14275. <summary>
  14276. Looks up a localized string similar to Cannot find an ip/ipv6 type address to connect.
  14277. </summary>
  14278. </member>
  14279. <member name="P:System.SR.SNI_ERROR_18">
  14280. <summary>
  14281. Looks up a localized string similar to Connection has been closed by peer.
  14282. </summary>
  14283. </member>
  14284. <member name="P:System.SR.SNI_ERROR_19">
  14285. <summary>
  14286. Looks up a localized string similar to Physical connection is not usable.
  14287. </summary>
  14288. </member>
  14289. <member name="P:System.SR.SNI_ERROR_2">
  14290. <summary>
  14291. Looks up a localized string similar to Connection was terminated.
  14292. </summary>
  14293. </member>
  14294. <member name="P:System.SR.SNI_ERROR_20">
  14295. <summary>
  14296. Looks up a localized string similar to Connection has been closed.
  14297. </summary>
  14298. </member>
  14299. <member name="P:System.SR.SNI_ERROR_21">
  14300. <summary>
  14301. Looks up a localized string similar to Encryption is enforced but there is no valid certificate.
  14302. </summary>
  14303. </member>
  14304. <member name="P:System.SR.SNI_ERROR_22">
  14305. <summary>
  14306. Looks up a localized string similar to Couldn&apos;t load library.
  14307. </summary>
  14308. </member>
  14309. <member name="P:System.SR.SNI_ERROR_23">
  14310. <summary>
  14311. Looks up a localized string similar to Cannot open a new thread in server process.
  14312. </summary>
  14313. </member>
  14314. <member name="P:System.SR.SNI_ERROR_24">
  14315. <summary>
  14316. Looks up a localized string similar to Cannot post event to completion port.
  14317. </summary>
  14318. </member>
  14319. <member name="P:System.SR.SNI_ERROR_25">
  14320. <summary>
  14321. Looks up a localized string similar to Connection string is not valid.
  14322. </summary>
  14323. </member>
  14324. <member name="P:System.SR.SNI_ERROR_26">
  14325. <summary>
  14326. Looks up a localized string similar to Error Locating Server/Instance Specified.
  14327. </summary>
  14328. </member>
  14329. <member name="P:System.SR.SNI_ERROR_27">
  14330. <summary>
  14331. Looks up a localized string similar to Error getting enabled protocols list from registry.
  14332. </summary>
  14333. </member>
  14334. <member name="P:System.SR.SNI_ERROR_28">
  14335. <summary>
  14336. Looks up a localized string similar to Server doesn&apos;t support requested protocol.
  14337. </summary>
  14338. </member>
  14339. <member name="P:System.SR.SNI_ERROR_29">
  14340. <summary>
  14341. Looks up a localized string similar to Shared Memory is not supported for clustered server connectivity.
  14342. </summary>
  14343. </member>
  14344. <member name="P:System.SR.SNI_ERROR_3">
  14345. <summary>
  14346. Looks up a localized string similar to Asynchronous operations not supported.
  14347. </summary>
  14348. </member>
  14349. <member name="P:System.SR.SNI_ERROR_30">
  14350. <summary>
  14351. Looks up a localized string similar to Invalid attempt bind to shared memory segment.
  14352. </summary>
  14353. </member>
  14354. <member name="P:System.SR.SNI_ERROR_31">
  14355. <summary>
  14356. Looks up a localized string similar to Encryption(ssl/tls) handshake failed.
  14357. </summary>
  14358. </member>
  14359. <member name="P:System.SR.SNI_ERROR_32">
  14360. <summary>
  14361. Looks up a localized string similar to Packet size too large for SSL Encrypt/Decrypt operations.
  14362. </summary>
  14363. </member>
  14364. <member name="P:System.SR.SNI_ERROR_33">
  14365. <summary>
  14366. Looks up a localized string similar to SSRP error.
  14367. </summary>
  14368. </member>
  14369. <member name="P:System.SR.SNI_ERROR_34">
  14370. <summary>
  14371. Looks up a localized string similar to Could not connect to the Shared Memory pipe.
  14372. </summary>
  14373. </member>
  14374. <member name="P:System.SR.SNI_ERROR_35">
  14375. <summary>
  14376. Looks up a localized string similar to An internal exception was caught.
  14377. </summary>
  14378. </member>
  14379. <member name="P:System.SR.SNI_ERROR_36">
  14380. <summary>
  14381. Looks up a localized string similar to The Shared Memory dll used to connect to SQL Server 2000 was not found.
  14382. </summary>
  14383. </member>
  14384. <member name="P:System.SR.SNI_ERROR_37">
  14385. <summary>
  14386. Looks up a localized string similar to The SQL Server 2000 Shared Memory client dll appears to be invalid/corrupted.
  14387. </summary>
  14388. </member>
  14389. <member name="P:System.SR.SNI_ERROR_38">
  14390. <summary>
  14391. Looks up a localized string similar to Cannot open a Shared Memory connection to SQL Server 2000.
  14392. </summary>
  14393. </member>
  14394. <member name="P:System.SR.SNI_ERROR_39">
  14395. <summary>
  14396. Looks up a localized string similar to Shared memory connectivity to SQL Server 2000 is either disabled or not available on this machine.
  14397. </summary>
  14398. </member>
  14399. <member name="P:System.SR.SNI_ERROR_40">
  14400. <summary>
  14401. Looks up a localized string similar to Could not open a connection to SQL Server.
  14402. </summary>
  14403. </member>
  14404. <member name="P:System.SR.SNI_ERROR_41">
  14405. <summary>
  14406. Looks up a localized string similar to Cannot open a Shared Memory connection to a remote SQL server.
  14407. </summary>
  14408. </member>
  14409. <member name="P:System.SR.SNI_ERROR_42">
  14410. <summary>
  14411. Looks up a localized string similar to Could not establish dedicated administrator connection (DAC) on default port. Make sure that DAC is enabled.
  14412. </summary>
  14413. </member>
  14414. <member name="P:System.SR.SNI_ERROR_43">
  14415. <summary>
  14416. Looks up a localized string similar to An error occurred while obtaining the dedicated administrator connection (DAC) port. Make sure that SQL Browser is running, or check the error log for the port number.
  14417. </summary>
  14418. </member>
  14419. <member name="P:System.SR.SNI_ERROR_44">
  14420. <summary>
  14421. Looks up a localized string similar to Could not compose Service Principal Name (SPN) for Windows Integrated Authentication. Possible causes are server(s) incorrectly specified to connection API calls, Domain Name System (DNS) lookup failure or memory shortage.
  14422. </summary>
  14423. </member>
  14424. <member name="P:System.SR.SNI_ERROR_47">
  14425. <summary>
  14426. Looks up a localized string similar to Connecting with the MultiSubnetFailover connection option to a SQL Server instance configured with more than 64 IP addresses is not supported..
  14427. </summary>
  14428. </member>
  14429. <member name="P:System.SR.SNI_ERROR_48">
  14430. <summary>
  14431. Looks up a localized string similar to Connecting to a named SQL Server instance using the MultiSubnetFailover connection option is not supported..
  14432. </summary>
  14433. </member>
  14434. <member name="P:System.SR.SNI_ERROR_49">
  14435. <summary>
  14436. Looks up a localized string similar to Connecting to a SQL Server instance using the MultiSubnetFailover connection option is only supported when using the TCP protocol..
  14437. </summary>
  14438. </member>
  14439. <member name="P:System.SR.SNI_ERROR_5">
  14440. <summary>
  14441. Looks up a localized string similar to Invalid parameter(s) found.
  14442. </summary>
  14443. </member>
  14444. <member name="P:System.SR.SNI_ERROR_50">
  14445. <summary>
  14446. Looks up a localized string similar to Local Database Runtime error occurred. .
  14447. </summary>
  14448. </member>
  14449. <member name="P:System.SR.SNI_ERROR_51">
  14450. <summary>
  14451. Looks up a localized string similar to An instance name was not specified while connecting to a Local Database Runtime. Specify an instance name in the format (localdb)\instance_name..
  14452. </summary>
  14453. </member>
  14454. <member name="P:System.SR.SNI_ERROR_52">
  14455. <summary>
  14456. Looks up a localized string similar to Unable to locate a Local Database Runtime installation. Verify that SQL Server Express is properly installed and that the Local Database Runtime feature is enabled..
  14457. </summary>
  14458. </member>
  14459. <member name="P:System.SR.SNI_ERROR_53">
  14460. <summary>
  14461. Looks up a localized string similar to Invalid Local Database Runtime registry configuration found. Verify that SQL Server Express is properly installed..
  14462. </summary>
  14463. </member>
  14464. <member name="P:System.SR.SNI_ERROR_54">
  14465. <summary>
  14466. Looks up a localized string similar to Unable to locate the registry entry for SQLUserInstance.dll file path. Verify that the Local Database Runtime feature of SQL Server Express is properly installed..
  14467. </summary>
  14468. </member>
  14469. <member name="P:System.SR.SNI_ERROR_55">
  14470. <summary>
  14471. Looks up a localized string similar to Registry value contains an invalid SQLUserInstance.dll file path. Verify that the Local Database Runtime feature of SQL Server Express is properly installed..
  14472. </summary>
  14473. </member>
  14474. <member name="P:System.SR.SNI_ERROR_56">
  14475. <summary>
  14476. Looks up a localized string similar to Unable to load the SQLUserInstance.dll from the location specified in the registry. Verify that the Local Database Runtime feature of SQL Server Express is properly installed..
  14477. </summary>
  14478. </member>
  14479. <member name="P:System.SR.SNI_ERROR_57">
  14480. <summary>
  14481. Looks up a localized string similar to Invalid SQLUserInstance.dll found at the location specified in the registry. Verify that the Local Database Runtime feature of SQL Server Express is properly installed..
  14482. </summary>
  14483. </member>
  14484. <member name="P:System.SR.SNI_ERROR_6">
  14485. <summary>
  14486. Looks up a localized string similar to Unsupported protocol specified.
  14487. </summary>
  14488. </member>
  14489. <member name="P:System.SR.SNI_ERROR_7">
  14490. <summary>
  14491. Looks up a localized string similar to Invalid connection found when setting up new session protocol.
  14492. </summary>
  14493. </member>
  14494. <member name="P:System.SR.SNI_ERROR_8">
  14495. <summary>
  14496. Looks up a localized string similar to Protocol not supported.
  14497. </summary>
  14498. </member>
  14499. <member name="P:System.SR.SNI_ERROR_9">
  14500. <summary>
  14501. Looks up a localized string similar to Associating port with I/O completion mechanism failed.
  14502. </summary>
  14503. </member>
  14504. <member name="P:System.SR.SNI_PN0">
  14505. <summary>
  14506. Looks up a localized string similar to HTTP Provider.
  14507. </summary>
  14508. </member>
  14509. <member name="P:System.SR.SNI_PN1">
  14510. <summary>
  14511. Looks up a localized string similar to Named Pipes Provider.
  14512. </summary>
  14513. </member>
  14514. <member name="P:System.SR.SNI_PN2">
  14515. <summary>
  14516. Looks up a localized string similar to Session Provider.
  14517. </summary>
  14518. </member>
  14519. <member name="P:System.SR.SNI_PN3">
  14520. <summary>
  14521. Looks up a localized string similar to Sign Provider.
  14522. </summary>
  14523. </member>
  14524. <member name="P:System.SR.SNI_PN4">
  14525. <summary>
  14526. Looks up a localized string similar to Shared Memory Provider.
  14527. </summary>
  14528. </member>
  14529. <member name="P:System.SR.SNI_PN5">
  14530. <summary>
  14531. Looks up a localized string similar to SMux Provider.
  14532. </summary>
  14533. </member>
  14534. <member name="P:System.SR.SNI_PN6">
  14535. <summary>
  14536. Looks up a localized string similar to SSL Provider.
  14537. </summary>
  14538. </member>
  14539. <member name="P:System.SR.SNI_PN7">
  14540. <summary>
  14541. Looks up a localized string similar to TCP Provider.
  14542. </summary>
  14543. </member>
  14544. <member name="P:System.SR.SNI_PN8">
  14545. <summary>
  14546. Looks up a localized string similar to .
  14547. </summary>
  14548. </member>
  14549. <member name="P:System.SR.SNI_PN9">
  14550. <summary>
  14551. Looks up a localized string similar to SQL Network Interfaces.
  14552. </summary>
  14553. </member>
  14554. <member name="P:System.SR.Snix_AutoEnlist">
  14555. <summary>
  14556. Looks up a localized string similar to Connection open and login was successful, but then an error occurred while enlisting the connection into the current distributed transaction..
  14557. </summary>
  14558. </member>
  14559. <member name="P:System.SR.Snix_Close">
  14560. <summary>
  14561. Looks up a localized string similar to A transport-level error has occurred during connection clean-up..
  14562. </summary>
  14563. </member>
  14564. <member name="P:System.SR.Snix_Connect">
  14565. <summary>
  14566. Looks up a localized string similar to A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections..
  14567. </summary>
  14568. </member>
  14569. <member name="P:System.SR.Snix_EnableMars">
  14570. <summary>
  14571. Looks up a localized string similar to Connection open and login was successful, but then an error occurred while enabling MARS for this connection..
  14572. </summary>
  14573. </member>
  14574. <member name="P:System.SR.Snix_Execute">
  14575. <summary>
  14576. Looks up a localized string similar to A transport-level error has occurred when sending the request to the server..
  14577. </summary>
  14578. </member>
  14579. <member name="P:System.SR.Snix_GetMarsSession">
  14580. <summary>
  14581. Looks up a localized string similar to Failed to establish a MARS session in preparation to send the request to the server..
  14582. </summary>
  14583. </member>
  14584. <member name="P:System.SR.Snix_Login">
  14585. <summary>
  14586. Looks up a localized string similar to A connection was successfully established with the server, but then an error occurred during the login process..
  14587. </summary>
  14588. </member>
  14589. <member name="P:System.SR.Snix_LoginSspi">
  14590. <summary>
  14591. Looks up a localized string similar to A connection was successfully established with the server, but then an error occurred when obtaining the security/SSPI context information for integrated security login..
  14592. </summary>
  14593. </member>
  14594. <member name="P:System.SR.Snix_PreLogin">
  14595. <summary>
  14596. Looks up a localized string similar to A connection was successfully established with the server, but then an error occurred during the pre-login handshake..
  14597. </summary>
  14598. </member>
  14599. <member name="P:System.SR.Snix_PreLoginBeforeSuccessfulWrite">
  14600. <summary>
  14601. Looks up a localized string similar to The client was unable to establish a connection because of an error during connection initialization process before login. Possible causes include the following: the client tried to connect to an unsupported version of SQL Server; the server was too busy to accept new connections; or there was a resource limitation (insufficient memory or maximum allowed connections) on the server..
  14602. </summary>
  14603. </member>
  14604. <member name="P:System.SR.Snix_ProcessSspi">
  14605. <summary>
  14606. Looks up a localized string similar to A transport-level error has occurred during SSPI handshake..
  14607. </summary>
  14608. </member>
  14609. <member name="P:System.SR.Snix_Read">
  14610. <summary>
  14611. Looks up a localized string similar to A transport-level error has occurred when receiving results from the server..
  14612. </summary>
  14613. </member>
  14614. <member name="P:System.SR.Snix_SendRows">
  14615. <summary>
  14616. Looks up a localized string similar to A transport-level error has occurred while sending information to the server..
  14617. </summary>
  14618. </member>
  14619. <member name="P:System.SR.SQL_AuthenticationAndIntegratedSecurity">
  14620. <summary>
  14621. Looks up a localized string similar to Cannot use &apos;Authentication&apos; with &apos;Integrated Security&apos;..
  14622. </summary>
  14623. </member>
  14624. <member name="P:System.SR.SQL_BatchedUpdatesNotAvailableOnContextConnection">
  14625. <summary>
  14626. Looks up a localized string similar to Batching updates is not supported on the context connection..
  14627. </summary>
  14628. </member>
  14629. <member name="P:System.SR.SQL_BulkCopyDestinationTableName">
  14630. <summary>
  14631. Looks up a localized string similar to SqlBulkCopy.WriteToServer failed because the SqlBulkCopy.DestinationTableName is an invalid multipart name.
  14632. </summary>
  14633. </member>
  14634. <member name="P:System.SR.SQL_BulkLoadCannotConvertValue">
  14635. <summary>
  14636. Looks up a localized string similar to The given value of type {0} from the data source cannot be converted to type {1} of the specified target column..
  14637. </summary>
  14638. </member>
  14639. <member name="P:System.SR.SQL_BulkLoadConflictingTransactionOption">
  14640. <summary>
  14641. Looks up a localized string similar to Must not specify SqlBulkCopyOption.UseInternalTransaction and pass an external Transaction at the same time..
  14642. </summary>
  14643. </member>
  14644. <member name="P:System.SR.SQL_BulkLoadExistingTransaction">
  14645. <summary>
  14646. Looks up a localized string similar to Unexpected existing transaction..
  14647. </summary>
  14648. </member>
  14649. <member name="P:System.SR.SQL_BulkLoadInvalidDestinationTable">
  14650. <summary>
  14651. Looks up a localized string similar to Cannot access destination table &apos;{0}&apos;..
  14652. </summary>
  14653. </member>
  14654. <member name="P:System.SR.SQL_BulkLoadInvalidOperationInsideEvent">
  14655. <summary>
  14656. Looks up a localized string similar to Function must not be called during event..
  14657. </summary>
  14658. </member>
  14659. <member name="P:System.SR.SQL_BulkLoadInvalidTimeout">
  14660. <summary>
  14661. Looks up a localized string similar to Timeout Value &apos;{0}&apos; is less than 0..
  14662. </summary>
  14663. </member>
  14664. <member name="P:System.SR.SQL_BulkLoadInvalidVariantValue">
  14665. <summary>
  14666. Looks up a localized string similar to Value cannot be converted to SqlVariant..
  14667. </summary>
  14668. </member>
  14669. <member name="P:System.SR.Sql_BulkLoadLcidMismatch">
  14670. <summary>
  14671. Looks up a localized string similar to The locale id &apos;{0}&apos; of the source column &apos;{1}&apos; and the locale id &apos;{2}&apos; of the destination column &apos;{3}&apos; do not match..
  14672. </summary>
  14673. </member>
  14674. <member name="P:System.SR.SQL_BulkLoadMappingInaccessible">
  14675. <summary>
  14676. Looks up a localized string similar to The mapped collection is in use and cannot be accessed at this time;.
  14677. </summary>
  14678. </member>
  14679. <member name="P:System.SR.SQL_BulkLoadMappingsNamesOrOrdinalsOnly">
  14680. <summary>
  14681. Looks up a localized string similar to Mappings must be either all name or all ordinal based..
  14682. </summary>
  14683. </member>
  14684. <member name="P:System.SR.SQL_BulkLoadMissingDestinationTable">
  14685. <summary>
  14686. Looks up a localized string similar to The DestinationTableName property must be set before calling this method..
  14687. </summary>
  14688. </member>
  14689. <member name="P:System.SR.SQL_BulkLoadNoCollation">
  14690. <summary>
  14691. Looks up a localized string similar to Failed to obtain column collation information for the destination table. If the table is not in the current database the name must be qualified using the database name (e.g. [mydb]..[mytable](e.g. [mydb]..[mytable]); this also applies to temporary-tables (e.g. #mytable would be specified as tempdb..#mytable)..
  14692. </summary>
  14693. </member>
  14694. <member name="P:System.SR.SQL_BulkLoadNonMatchingColumnMapping">
  14695. <summary>
  14696. Looks up a localized string similar to The given ColumnMapping does not match up with any column in the source or destination..
  14697. </summary>
  14698. </member>
  14699. <member name="P:System.SR.SQL_BulkLoadNonMatchingColumnName">
  14700. <summary>
  14701. Looks up a localized string similar to The given ColumnName &apos;{0}&apos; does not match up with any column in data source..
  14702. </summary>
  14703. </member>
  14704. <member name="P:System.SR.SQL_BulkLoadNotAllowDBNull">
  14705. <summary>
  14706. Looks up a localized string similar to Column &apos;{0}&apos; does not allow DBNull.Value..
  14707. </summary>
  14708. </member>
  14709. <member name="P:System.SR.SQL_BulkLoadPendingOperation">
  14710. <summary>
  14711. Looks up a localized string similar to Attempt to invoke bulk copy on an object that has a pending operation..
  14712. </summary>
  14713. </member>
  14714. <member name="P:System.SR.SQL_BulkLoadStringTooLong">
  14715. <summary>
  14716. Looks up a localized string similar to String or binary data would be truncated in table &apos;{0}&apos;, column &apos;{1}&apos;. Truncated value: &apos;{2}&apos;..
  14717. </summary>
  14718. </member>
  14719. <member name="P:System.SR.SQL_CannotCreateAuthInitializer">
  14720. <summary>
  14721. Looks up a localized string similar to Failed to instantiate a SqlAuthenticationInitializer with type &apos;{0}&apos;..
  14722. </summary>
  14723. </member>
  14724. <member name="P:System.SR.SQL_CannotCreateAuthProvider">
  14725. <summary>
  14726. Looks up a localized string similar to Failed to instantiate an authentication provider with type &apos;{1}&apos; for &apos;{0}&apos;..
  14727. </summary>
  14728. </member>
  14729. <member name="P:System.SR.SQL_CannotCreateNormalizer">
  14730. <summary>
  14731. Looks up a localized string similar to Cannot create normalizer for &apos;{0}&apos;..
  14732. </summary>
  14733. </member>
  14734. <member name="P:System.SR.SQL_CannotFindAuthProvider">
  14735. <summary>
  14736. Looks up a localized string similar to Cannot find an authentication provider for &apos;{0}&apos;..
  14737. </summary>
  14738. </member>
  14739. <member name="P:System.SR.SQL_CannotGetAuthProviderConfig">
  14740. <summary>
  14741. Looks up a localized string similar to Failed to read the config section for authentication providers..
  14742. </summary>
  14743. </member>
  14744. <member name="P:System.SR.SQL_CannotGetDTCAddress">
  14745. <summary>
  14746. Looks up a localized string similar to Unable to get the address of the distributed transaction coordinator for the server, from the server. Is DTC enabled on the server?.
  14747. </summary>
  14748. </member>
  14749. <member name="P:System.SR.SQL_CannotInitializeAuthProvider">
  14750. <summary>
  14751. Looks up a localized string similar to The provider &apos;{0}&apos; threw an exception while initializing..
  14752. </summary>
  14753. </member>
  14754. <member name="P:System.SR.SQL_CannotModifyPropertyAsyncOperationInProgress">
  14755. <summary>
  14756. Looks up a localized string similar to {0} cannot be changed while async operation is in progress..
  14757. </summary>
  14758. </member>
  14759. <member name="P:System.SR.SQL_ChangePasswordArgumentMissing">
  14760. <summary>
  14761. Looks up a localized string similar to The &apos;{0}&apos; argument must not be null or empty..
  14762. </summary>
  14763. </member>
  14764. <member name="P:System.SR.SQL_ChangePasswordConflictsWithSSPI">
  14765. <summary>
  14766. Looks up a localized string similar to ChangePassword can only be used with SQL authentication, not with integrated security..
  14767. </summary>
  14768. </member>
  14769. <member name="P:System.SR.SQL_ChangePasswordRequiresYukon">
  14770. <summary>
  14771. Looks up a localized string similar to ChangePassword requires SQL Server 9.0 or later..
  14772. </summary>
  14773. </member>
  14774. <member name="P:System.SR.SQL_ChangePasswordUseOfUnallowedKey">
  14775. <summary>
  14776. Looks up a localized string similar to The keyword &apos;{0}&apos; must not be specified in the connectionString argument to ChangePassword..
  14777. </summary>
  14778. </member>
  14779. <member name="P:System.SR.SQL_ConnectionDoomed">
  14780. <summary>
  14781. Looks up a localized string similar to The requested operation cannot be completed because the connection has been broken..
  14782. </summary>
  14783. </member>
  14784. <member name="P:System.SR.SQL_ConnectionLockedForBcpEvent">
  14785. <summary>
  14786. Looks up a localized string similar to The connection cannot be used because there is an ongoing operation that must be finished..
  14787. </summary>
  14788. </member>
  14789. <member name="P:System.SR.SQL_CredentialsNotProvided">
  14790. <summary>
  14791. Looks up a localized string similar to Either Credential or both &apos;User ID&apos; and &apos;Password&apos; (or &apos;UID&apos; and &apos;PWD&apos;) connection string keywords must be specified, if &apos;Authentication={0}&apos;..
  14792. </summary>
  14793. </member>
  14794. <member name="P:System.SR.SQL_CultureIdError">
  14795. <summary>
  14796. Looks up a localized string similar to The Collation specified by SQL Server is not supported..
  14797. </summary>
  14798. </member>
  14799. <member name="P:System.SR.SQL_DbTypeNotSupportedOnThisPlatform">
  14800. <summary>
  14801. Looks up a localized string similar to Type {0} is not supported on this platform..
  14802. </summary>
  14803. </member>
  14804. <member name="P:System.SR.SQL_Duration_Login_Begin">
  14805. <summary>
  14806. Looks up a localized string similar to The duration spent while attempting to connect to this server was - [Pre-Login] initialization={0}; handshake={1}; [Login] initialization={2}; .
  14807. </summary>
  14808. </member>
  14809. <member name="P:System.SR.SQL_Duration_Login_ProcessConnectionAuth">
  14810. <summary>
  14811. Looks up a localized string similar to The duration spent while attempting to connect to this server was - [Pre-Login] initialization={0}; handshake={1}; [Login] initialization={2}; authentication={3}; .
  14812. </summary>
  14813. </member>
  14814. <member name="P:System.SR.SQL_Duration_PostLogin">
  14815. <summary>
  14816. Looks up a localized string similar to The duration spent while attempting to connect to this server was - [Pre-Login] initialization={0}; handshake={1}; [Login] initialization={2}; authentication={3}; [Post-Login] complete={4}; .
  14817. </summary>
  14818. </member>
  14819. <member name="P:System.SR.SQL_Duration_PreLogin_Begin">
  14820. <summary>
  14821. Looks up a localized string similar to The duration spent while attempting to connect to this server was - [Pre-Login] initialization={0};.
  14822. </summary>
  14823. </member>
  14824. <member name="P:System.SR.SQL_Duration_PreLoginHandshake">
  14825. <summary>
  14826. Looks up a localized string similar to The duration spent while attempting to connect to this server was - [Pre-Login] initialization={0}; handshake={1}; .
  14827. </summary>
  14828. </member>
  14829. <member name="P:System.SR.SQL_EncryptionNotSupportedByClient">
  14830. <summary>
  14831. Looks up a localized string similar to The instance of SQL Server you attempted to connect to requires encryption but this machine does not support it..
  14832. </summary>
  14833. </member>
  14834. <member name="P:System.SR.SQL_EncryptionNotSupportedByServer">
  14835. <summary>
  14836. Looks up a localized string similar to The instance of SQL Server you attempted to connect to does not support encryption..
  14837. </summary>
  14838. </member>
  14839. <member name="P:System.SR.SQL_EnumeratedRecordFieldCountChanged">
  14840. <summary>
  14841. Looks up a localized string similar to Number of fields in record &apos;{0}&apos; does not match the number in the original record..
  14842. </summary>
  14843. </member>
  14844. <member name="P:System.SR.SQL_EnumeratedRecordMetaDataChanged">
  14845. <summary>
  14846. Looks up a localized string similar to Metadata for field &apos;{0}&apos; of record &apos;{1}&apos; did not match the original record&apos;s metadata..
  14847. </summary>
  14848. </member>
  14849. <member name="P:System.SR.SQL_ExClientConnectionId">
  14850. <summary>
  14851. Looks up a localized string similar to ClientConnectionId:{0}.
  14852. </summary>
  14853. </member>
  14854. <member name="P:System.SR.SQL_ExErrorNumberStateClass">
  14855. <summary>
  14856. Looks up a localized string similar to Error Number:{0},State:{1},Class:{2}.
  14857. </summary>
  14858. </member>
  14859. <member name="P:System.SR.SQL_ExOriginalClientConnectionId">
  14860. <summary>
  14861. Looks up a localized string similar to ClientConnectionId before routing:{0}.
  14862. </summary>
  14863. </member>
  14864. <member name="P:System.SR.SQL_ExRoutingDestination">
  14865. <summary>
  14866. Looks up a localized string similar to Routing Destination:{0}.
  14867. </summary>
  14868. </member>
  14869. <member name="P:System.SR.SQL_GlobalizationInvariantModeNotSupported">
  14870. <summary>
  14871. Looks up a localized string similar to Globalization Invariant Mode is not supported..
  14872. </summary>
  14873. </member>
  14874. <member name="P:System.SR.SQL_InstanceFailure">
  14875. <summary>
  14876. Looks up a localized string similar to Instance failure..
  14877. </summary>
  14878. </member>
  14879. <member name="P:System.SR.SQL_IntegratedWithUserIDAndPassword">
  14880. <summary>
  14881. Looks up a localized string similar to Cannot use &apos;Authentication=Active Directory Integrated&apos; with &apos;User ID&apos;, &apos;UID&apos;, &apos;Password&apos; or &apos;PWD&apos; connection string keywords..
  14882. </summary>
  14883. </member>
  14884. <member name="P:System.SR.SQL_InteractiveWithoutUserID">
  14885. <summary>
  14886. Looks up a localized string similar to Cannot use &apos;Authentication=Active Directory Interactive&apos; without &apos;User ID&apos; or &apos;UID&apos; connection string keywords..
  14887. </summary>
  14888. </member>
  14889. <member name="P:System.SR.SQL_InteractiveWithPassword">
  14890. <summary>
  14891. Looks up a localized string similar to Cannot use &apos;Authentication=Active Directory Interactive&apos; with &apos;PWD&apos; connection string keywords..
  14892. </summary>
  14893. </member>
  14894. <member name="P:System.SR.Sql_InternalError">
  14895. <summary>
  14896. Looks up a localized string similar to Internal Error.
  14897. </summary>
  14898. </member>
  14899. <member name="P:System.SR.SQL_InvalidBufferSizeOrIndex">
  14900. <summary>
  14901. Looks up a localized string similar to Buffer offset &apos;{1}&apos; plus the bytes available &apos;{0}&apos; is greater than the length of the passed in buffer..
  14902. </summary>
  14903. </member>
  14904. <member name="P:System.SR.SQL_InvalidDataLength">
  14905. <summary>
  14906. Looks up a localized string similar to Data length &apos;{0}&apos; is less than 0..
  14907. </summary>
  14908. </member>
  14909. <member name="P:System.SR.SQL_InvalidInternalPacketSize">
  14910. <summary>
  14911. Looks up a localized string similar to Invalid internal packet size:.
  14912. </summary>
  14913. </member>
  14914. <member name="P:System.SR.SQL_InvalidPacketSizeValue">
  14915. <summary>
  14916. Looks up a localized string similar to Invalid &apos;Packet Size&apos;. The value must be an integer &gt;= 512 and &lt;= 32768..
  14917. </summary>
  14918. </member>
  14919. <member name="P:System.SR.SQL_InvalidParameterNameLength">
  14920. <summary>
  14921. Looks up a localized string similar to The length of the parameter &apos;{0}&apos; exceeds the limit of 128 characters..
  14922. </summary>
  14923. </member>
  14924. <member name="P:System.SR.SQL_InvalidParameterTypeNameFormat">
  14925. <summary>
  14926. Looks up a localized string similar to Invalid 3 part name format for TypeName..
  14927. </summary>
  14928. </member>
  14929. <member name="P:System.SR.SQL_InvalidPartnerConfiguration">
  14930. <summary>
  14931. Looks up a localized string similar to Server {0}, database {1} is not configured for database mirroring..
  14932. </summary>
  14933. </member>
  14934. <member name="P:System.SR.SQL_InvalidRead">
  14935. <summary>
  14936. Looks up a localized string similar to Invalid attempt to read when no data is present..
  14937. </summary>
  14938. </member>
  14939. <member name="P:System.SR.SQL_InvalidSQLServerVersionUnknown">
  14940. <summary>
  14941. Looks up a localized string similar to Unsupported SQL Server version. The .NET Framework SqlClient Data Provider can only be used with SQL Server versions 7.0 and later..
  14942. </summary>
  14943. </member>
  14944. <member name="P:System.SR.SQL_InvalidSSPIPacketSize">
  14945. <summary>
  14946. Looks up a localized string similar to Invalid SSPI packet size..
  14947. </summary>
  14948. </member>
  14949. <member name="P:System.SR.SQL_InvalidTDSPacketSize">
  14950. <summary>
  14951. Looks up a localized string similar to Invalid Packet Size..
  14952. </summary>
  14953. </member>
  14954. <member name="P:System.SR.SQL_InvalidTDSVersion">
  14955. <summary>
  14956. Looks up a localized string similar to The SQL Server instance returned an invalid or unsupported protocol version during login negotiation..
  14957. </summary>
  14958. </member>
  14959. <member name="P:System.SR.SQL_InvalidUdt3PartNameFormat">
  14960. <summary>
  14961. Looks up a localized string similar to Invalid 3 part name format for UdtTypeName..
  14962. </summary>
  14963. </member>
  14964. <member name="P:System.SR.SQL_KerberosTicketMissingError">
  14965. <summary>
  14966. Looks up a localized string similar to Cannot authenticate using Kerberos. Ensure Kerberos has been initialized on the client with &apos;kinit&apos; and a Service Principal Name has been registered for the SQL Server to allow Kerberos authentication..
  14967. </summary>
  14968. </member>
  14969. <member name="P:System.SR.SQL_MarsUnsupportedOnConnection">
  14970. <summary>
  14971. Looks up a localized string similar to The connection does not support MultipleActiveResultSets..
  14972. </summary>
  14973. </member>
  14974. <member name="P:System.SR.SQL_MoneyOverflow">
  14975. <summary>
  14976. Looks up a localized string similar to SqlDbType.SmallMoney overflow. Value &apos;{0}&apos; is out of range. Must be between -214,748.3648 and 214,748.3647..
  14977. </summary>
  14978. </member>
  14979. <member name="P:System.SR.SQL_MSALFailure">
  14980. <summary>
  14981. Looks up a localized string similar to Failed to authenticate the user {0} in Active Directory (Authentication={1})..
  14982. </summary>
  14983. </member>
  14984. <member name="P:System.SR.SQL_MSALInnerException">
  14985. <summary>
  14986. Looks up a localized string similar to Error code 0x{0}; state {1}.
  14987. </summary>
  14988. </member>
  14989. <member name="P:System.SR.SQL_NetworkLibraryNotSupported">
  14990. <summary>
  14991. Looks up a localized string similar to The keyword &apos;Network Library&apos; is not supported on this platform, prefix the &apos;Data Source&apos; with the protocol desired instead (&apos;tcp:&apos; for a TCP connection, or &apos;np:&apos; for a Named Pipe connection)..
  14992. </summary>
  14993. </member>
  14994. <member name="P:System.SR.SQL_NonBlobColumn">
  14995. <summary>
  14996. Looks up a localized string similar to Invalid attempt to GetBytes on column &apos;{0}&apos;. The GetBytes function can only be used on columns of type Text, NText, or Image..
  14997. </summary>
  14998. </member>
  14999. <member name="P:System.SR.SQL_NonCharColumn">
  15000. <summary>
  15001. Looks up a localized string similar to Invalid attempt to GetChars on column &apos;{0}&apos;. The GetChars function can only be used on columns of type Text, NText, Xml, VarChar or NVarChar..
  15002. </summary>
  15003. </member>
  15004. <member name="P:System.SR.SQL_NonLocalSSEInstance">
  15005. <summary>
  15006. Looks up a localized string similar to SSE Instance re-direction is not supported for non-local user instances..
  15007. </summary>
  15008. </member>
  15009. <member name="P:System.SR.SQL_NonXmlResult">
  15010. <summary>
  15011. Looks up a localized string similar to Invalid command sent to ExecuteXmlReader. The command must return an Xml result..
  15012. </summary>
  15013. </member>
  15014. <member name="P:System.SR.SQL_NotSupportedEnumerationValue">
  15015. <summary>
  15016. Looks up a localized string similar to The {0} enumeration value, {1}, is not supported by the .NET Framework SqlClient Data Provider..
  15017. </summary>
  15018. </member>
  15019. <member name="P:System.SR.SQL_NullEmptyTransactionName">
  15020. <summary>
  15021. Looks up a localized string similar to Invalid transaction or invalid name for a point at which to save within the transaction..
  15022. </summary>
  15023. </member>
  15024. <member name="P:System.SR.SQL_OpenResultCountExceeded">
  15025. <summary>
  15026. Looks up a localized string similar to Open result count exceeded..
  15027. </summary>
  15028. </member>
  15029. <member name="P:System.SR.SQL_OperationCancelled">
  15030. <summary>
  15031. Looks up a localized string similar to Operation cancelled by user..
  15032. </summary>
  15033. </member>
  15034. <member name="P:System.SR.SQL_ParameterCannotBeEmpty">
  15035. <summary>
  15036. Looks up a localized string similar to Parameter &apos;{0}&apos; cannot be null or empty..
  15037. </summary>
  15038. </member>
  15039. <member name="P:System.SR.SQL_ParameterInvalidVariant">
  15040. <summary>
  15041. Looks up a localized string similar to Parameter &apos;{0}&apos; exceeds the size limit for the sql_variant datatype..
  15042. </summary>
  15043. </member>
  15044. <member name="P:System.SR.SQL_ParameterTypeNameRequired">
  15045. <summary>
  15046. Looks up a localized string similar to The {0} type parameter &apos;{1}&apos; must have a valid type name..
  15047. </summary>
  15048. </member>
  15049. <member name="P:System.SR.SQL_ParsingError">
  15050. <summary>
  15051. Looks up a localized string similar to Internal connection fatal error..
  15052. </summary>
  15053. </member>
  15054. <member name="P:System.SR.SQL_ParsingErrorAuthLibraryType">
  15055. <summary>
  15056. Looks up a localized string similar to Internal connection fatal error. Error state: {0}, Authentication Library Type: {1}..
  15057. </summary>
  15058. </member>
  15059. <member name="P:System.SR.SQL_ParsingErrorFeatureId">
  15060. <summary>
  15061. Looks up a localized string similar to Internal connection fatal error. Error state: {0}, Feature Id: {1}..
  15062. </summary>
  15063. </member>
  15064. <member name="P:System.SR.SQL_ParsingErrorLength">
  15065. <summary>
  15066. Looks up a localized string similar to Internal connection fatal error. Error state: {0}, Length: {1}.
  15067. </summary>
  15068. </member>
  15069. <member name="P:System.SR.SQL_ParsingErrorOffset">
  15070. <summary>
  15071. Looks up a localized string similar to Internal connection fatal error. Error state: {0}, Offset: {1}.
  15072. </summary>
  15073. </member>
  15074. <member name="P:System.SR.SQL_ParsingErrorStatus">
  15075. <summary>
  15076. Looks up a localized string similar to Internal connection fatal error. Error state: {0}, Status: {1}.
  15077. </summary>
  15078. </member>
  15079. <member name="P:System.SR.SQL_ParsingErrorToken">
  15080. <summary>
  15081. Looks up a localized string similar to Internal connection fatal error. Error state: {0}, Token : {1}.
  15082. </summary>
  15083. </member>
  15084. <member name="P:System.SR.SQL_ParsingErrorValue">
  15085. <summary>
  15086. Looks up a localized string similar to Internal connection fatal error. Error state: {0}, Value: {1}..
  15087. </summary>
  15088. </member>
  15089. <member name="P:System.SR.SQL_ParsingErrorWithState">
  15090. <summary>
  15091. Looks up a localized string similar to Internal connection fatal error. Error state: {0}..
  15092. </summary>
  15093. </member>
  15094. <member name="P:System.SR.SQL_PendingBeginXXXExists">
  15095. <summary>
  15096. Looks up a localized string similar to The command execution cannot proceed due to a pending asynchronous operation already in progress..
  15097. </summary>
  15098. </member>
  15099. <member name="P:System.SR.SQL_PrecisionValueOutOfRange">
  15100. <summary>
  15101. Looks up a localized string similar to Precision value &apos;{0}&apos; is either less than 0 or greater than the maximum allowed precision of 38..
  15102. </summary>
  15103. </member>
  15104. <member name="P:System.SR.SQL_ScaleValueOutOfRange">
  15105. <summary>
  15106. Looks up a localized string similar to Scale value &apos;{0}&apos; is either less than 0 or greater than the maximum allowed scale of 38..
  15107. </summary>
  15108. </member>
  15109. <member name="P:System.SR.SQL_SevereError">
  15110. <summary>
  15111. Looks up a localized string similar to A severe error occurred on the current command. The results, if any, should be discarded..
  15112. </summary>
  15113. </member>
  15114. <member name="P:System.SR.SQL_SmallDateTimeOverflow">
  15115. <summary>
  15116. Looks up a localized string similar to SqlDbType.SmallDateTime overflow. Value &apos;{0}&apos; is out of range. Must be between 1/1/1900 12:00:00 AM and 6/6/2079 11:59:59 PM..
  15117. </summary>
  15118. </member>
  15119. <member name="P:System.SR.SQL_SNIPacketAllocationFailure">
  15120. <summary>
  15121. Looks up a localized string similar to Memory allocation for internal connection failed..
  15122. </summary>
  15123. </member>
  15124. <member name="P:System.SR.SQL_SqlCommandCommandText">
  15125. <summary>
  15126. Looks up a localized string similar to SqlCommand.DeriveParameters failed because the SqlCommand.CommandText property value is an invalid multipart name.
  15127. </summary>
  15128. </member>
  15129. <member name="P:System.SR.SQL_SqlServerBrowserNotAccessible">
  15130. <summary>
  15131. Looks up a localized string similar to Cannot connect to SQL Server Browser. Ensure SQL Server Browser has been started..
  15132. </summary>
  15133. </member>
  15134. <member name="P:System.SR.SQL_SSPIGenerateError">
  15135. <summary>
  15136. Looks up a localized string similar to Failed to generate SSPI context..
  15137. </summary>
  15138. </member>
  15139. <member name="P:System.SR.SQL_SSPIInitializeError">
  15140. <summary>
  15141. Looks up a localized string similar to Cannot initialize SSPI package..
  15142. </summary>
  15143. </member>
  15144. <member name="P:System.SR.SQL_StreamNotSupportOnColumnType">
  15145. <summary>
  15146. Looks up a localized string similar to Invalid attempt to GetStream on column &apos;{0}&apos;. The GetStream function can only be used on columns of type Binary, Image, Udt or VarBinary..
  15147. </summary>
  15148. </member>
  15149. <member name="P:System.SR.SQL_StreamReadNotSupported">
  15150. <summary>
  15151. Looks up a localized string similar to The Stream does not support reading..
  15152. </summary>
  15153. </member>
  15154. <member name="P:System.SR.SQL_StreamSeekNotSupported">
  15155. <summary>
  15156. Looks up a localized string similar to The Stream does not support seeking..
  15157. </summary>
  15158. </member>
  15159. <member name="P:System.SR.SQL_StreamWriteNotSupported">
  15160. <summary>
  15161. Looks up a localized string similar to The Stream does not support writing..
  15162. </summary>
  15163. </member>
  15164. <member name="P:System.SR.SQL_TDSParserTableName">
  15165. <summary>
  15166. Looks up a localized string similar to Processing of results from SQL Server failed because of an invalid multipart name.
  15167. </summary>
  15168. </member>
  15169. <member name="P:System.SR.SQL_TextReaderNotSupportOnColumnType">
  15170. <summary>
  15171. Looks up a localized string similar to Invalid attempt to GetTextReader on column &apos;{0}&apos;. The GetTextReader function can only be used on columns of type Char, NChar, NText, NVarChar, Text or VarChar..
  15172. </summary>
  15173. </member>
  15174. <member name="P:System.SR.SQL_Timeout">
  15175. <summary>
  15176. Looks up a localized string similar to Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding..
  15177. </summary>
  15178. </member>
  15179. <member name="P:System.SR.SQL_Timeout_Execution">
  15180. <summary>
  15181. Looks up a localized string similar to Execution Timeout Expired. The timeout period elapsed prior to completion of the operation or the server is not responding..
  15182. </summary>
  15183. </member>
  15184. <member name="P:System.SR.SQL_Timeout_FailoverInfo">
  15185. <summary>
  15186. Looks up a localized string similar to This failure occurred while attempting to connect to the {0} server..
  15187. </summary>
  15188. </member>
  15189. <member name="P:System.SR.SQL_Timeout_Login_Begin">
  15190. <summary>
  15191. Looks up a localized string similar to Connection Timeout Expired. The timeout period elapsed at the start of the login phase. This could be because of insufficient time provided for connection timeout..
  15192. </summary>
  15193. </member>
  15194. <member name="P:System.SR.SQL_Timeout_Login_ProcessConnectionAuth">
  15195. <summary>
  15196. Looks up a localized string similar to Connection Timeout Expired. The timeout period elapsed while attempting to authenticate the login. This could be because the server failed to authenticate the user or the server was unable to respond back in time..
  15197. </summary>
  15198. </member>
  15199. <member name="P:System.SR.SQL_Timeout_PostLogin">
  15200. <summary>
  15201. Looks up a localized string similar to Connection Timeout Expired. The timeout period elapsed during the post-login phase. The connection could have timed out while waiting for server to complete the login process and respond; Or it could have timed out while attempting to create multiple active connections..
  15202. </summary>
  15203. </member>
  15204. <member name="P:System.SR.SQL_Timeout_PreLogin_Begin">
  15205. <summary>
  15206. Looks up a localized string similar to Connection Timeout Expired. The timeout period elapsed at the start of the pre-login phase. This could be because of insufficient time provided for connection timeout..
  15207. </summary>
  15208. </member>
  15209. <member name="P:System.SR.SQL_Timeout_PreLogin_ConsumeHandshake">
  15210. <summary>
  15211. Looks up a localized string similar to Connection Timeout Expired. The timeout period elapsed while attempting to consume the pre-login handshake acknowledgement. This could be because the pre-login handshake failed or the server was unable to respond back in time..
  15212. </summary>
  15213. </member>
  15214. <member name="P:System.SR.SQL_Timeout_PreLogin_InitializeConnection">
  15215. <summary>
  15216. Looks up a localized string similar to Connection Timeout Expired. The timeout period elapsed while attempting to create and initialize a socket to the server. This could be either because the server was unreachable or unable to respond back in time..
  15217. </summary>
  15218. </member>
  15219. <member name="P:System.SR.SQL_Timeout_PreLogin_SendHandshake">
  15220. <summary>
  15221. Looks up a localized string similar to Connection Timeout Expired. The timeout period elapsed while making a pre-login handshake request. This could be because the server was unable to respond back in time..
  15222. </summary>
  15223. </member>
  15224. <member name="P:System.SR.SQL_Timeout_RoutingDestinationInfo">
  15225. <summary>
  15226. Looks up a localized string similar to This failure occurred while attempting to connect to the routing destination. The duration spent while attempting to connect to the original server was - [Pre-Login] initialization={0}; handshake={1}; [Login] initialization={2}; authentication={3}; [Post-Login] complete={4}; .
  15227. </summary>
  15228. </member>
  15229. <member name="P:System.SR.SQL_TimeOverflow">
  15230. <summary>
  15231. Looks up a localized string similar to SqlDbType.Time overflow. Value &apos;{0}&apos; is out of range. Must be between 00:00:00.0000000 and 23:59:59.9999999..
  15232. </summary>
  15233. </member>
  15234. <member name="P:System.SR.SQL_TimeScaleValueOutOfRange">
  15235. <summary>
  15236. Looks up a localized string similar to Scale value &apos;{0}&apos; is either less than 0 or greater than the maximum allowed scale of 7..
  15237. </summary>
  15238. </member>
  15239. <member name="P:System.SR.SQL_TypeName">
  15240. <summary>
  15241. Looks up a localized string similar to SqlParameter.TypeName is an invalid multipart name.
  15242. </summary>
  15243. </member>
  15244. <member name="P:System.SR.SQL_UDTTypeName">
  15245. <summary>
  15246. Looks up a localized string similar to SqlParameter.UdtTypeName is an invalid multipart name.
  15247. </summary>
  15248. </member>
  15249. <member name="P:System.SR.SQL_UnknownSysTxIsolationLevel">
  15250. <summary>
  15251. Looks up a localized string similar to Unrecognized System.Transactions.IsolationLevel enumeration value: {0}..
  15252. </summary>
  15253. </member>
  15254. <member name="P:System.SR.SQL_UnsupportedAuthentication">
  15255. <summary>
  15256. Looks up a localized string similar to The authentication &apos;{0}&apos; is not supported..
  15257. </summary>
  15258. </member>
  15259. <member name="P:System.SR.SQL_UnsupportedAuthenticationByProvider">
  15260. <summary>
  15261. Looks up a localized string similar to The provider &apos;{0}&apos; does not support authentication &apos;{1}&apos;..
  15262. </summary>
  15263. </member>
  15264. <member name="P:System.SR.SQL_UnsupportedFeature">
  15265. <summary>
  15266. Looks up a localized string similar to The server is attempting to use a feature that is not supported on this platform..
  15267. </summary>
  15268. </member>
  15269. <member name="P:System.SR.SQL_UnsupportedKeyword">
  15270. <summary>
  15271. Looks up a localized string similar to The keyword &apos;{0}&apos; is not supported on this platform..
  15272. </summary>
  15273. </member>
  15274. <member name="P:System.SR.SQL_UnsupportedSqlAuthenticationMethod">
  15275. <summary>
  15276. Looks up a localized string similar to SQL authentication method &apos;{0}&apos; is not supported..
  15277. </summary>
  15278. </member>
  15279. <member name="P:System.SR.SQL_UnsupportedSysTxVersion">
  15280. <summary>
  15281. Looks up a localized string similar to The currently loaded System.Transactions.dll does not support Global Transactions..
  15282. </summary>
  15283. </member>
  15284. <member name="P:System.SR.SQL_UnsupportedToken">
  15285. <summary>
  15286. Looks up a localized string similar to Received an unsupported token &apos;{0}&apos; while reading data from the server..
  15287. </summary>
  15288. </member>
  15289. <member name="P:System.SR.SQL_UserInstanceFailoverNotCompatible">
  15290. <summary>
  15291. Looks up a localized string similar to User Instance and Failover are not compatible options. Please choose only one of the two in the connection string..
  15292. </summary>
  15293. </member>
  15294. <member name="P:System.SR.SQL_UserInstanceFailure">
  15295. <summary>
  15296. Looks up a localized string similar to A user instance was requested in the connection string but the server specified does not support this option..
  15297. </summary>
  15298. </member>
  15299. <member name="P:System.SR.SQL_WrongType">
  15300. <summary>
  15301. Looks up a localized string similar to Expecting argument of type {1}, but received type {0}..
  15302. </summary>
  15303. </member>
  15304. <member name="P:System.SR.SQL_XmlReaderNotSupportOnColumnType">
  15305. <summary>
  15306. Looks up a localized string similar to Invalid attempt to GetXmlReader on column &apos;{0}&apos;. The GetXmlReader function can only be used on columns of type Xml..
  15307. </summary>
  15308. </member>
  15309. <member name="P:System.SR.SqlConvert_ConvertFailed">
  15310. <summary>
  15311. Looks up a localized string similar to Cannot convert object of type &apos;{0}&apos; to object of type &apos;{1}&apos;..
  15312. </summary>
  15313. </member>
  15314. <member name="P:System.SR.SQLCR_AllAttemptsFailed">
  15315. <summary>
  15316. Looks up a localized string similar to The connection is broken and recovery is not possible. The client driver attempted to recover the connection one or more times and all attempts failed. Increase the value of ConnectRetryCount to increase the number of recovery attempts..
  15317. </summary>
  15318. </member>
  15319. <member name="P:System.SR.SQLCR_EncryptionChanged">
  15320. <summary>
  15321. Looks up a localized string similar to The server did not preserve SSL encryption during a recovery attempt, connection recovery is not possible..
  15322. </summary>
  15323. </member>
  15324. <member name="P:System.SR.SQLCR_InvalidConnectRetryCountValue">
  15325. <summary>
  15326. Looks up a localized string similar to Invalid ConnectRetryCount value (should be 0-255)..
  15327. </summary>
  15328. </member>
  15329. <member name="P:System.SR.SQLCR_InvalidConnectRetryIntervalValue">
  15330. <summary>
  15331. Looks up a localized string similar to Invalid ConnectRetryInterval value (should be 1-60)..
  15332. </summary>
  15333. </member>
  15334. <member name="P:System.SR.SQLCR_NextAttemptWillExceedQueryTimeout">
  15335. <summary>
  15336. Looks up a localized string similar to Next reconnection attempt will exceed query timeout. Reconnection was terminated..
  15337. </summary>
  15338. </member>
  15339. <member name="P:System.SR.SQLCR_NoCRAckAtReconnection">
  15340. <summary>
  15341. Looks up a localized string similar to The server did not acknowledge a recovery attempt, connection recovery is not possible..
  15342. </summary>
  15343. </member>
  15344. <member name="P:System.SR.SQLCR_TDSVestionNotPreserved">
  15345. <summary>
  15346. Looks up a localized string similar to The server did not preserve the exact client TDS version requested during a recovery attempt, connection recovery is not possible..
  15347. </summary>
  15348. </member>
  15349. <member name="P:System.SR.SQLCR_UnrecoverableClient">
  15350. <summary>
  15351. Looks up a localized string similar to The connection is broken and recovery is not possible. The connection is marked by the client driver as unrecoverable. No attempt was made to restore the connection..
  15352. </summary>
  15353. </member>
  15354. <member name="P:System.SR.SQLCR_UnrecoverableServer">
  15355. <summary>
  15356. Looks up a localized string similar to The connection is broken and recovery is not possible. The connection is marked by the server as unrecoverable. No attempt was made to restore the connection..
  15357. </summary>
  15358. </member>
  15359. <member name="P:System.SR.SqlDelegatedTransaction_PromotionFailed">
  15360. <summary>
  15361. Looks up a localized string similar to Failure while attempting to promote transaction..
  15362. </summary>
  15363. </member>
  15364. <member name="P:System.SR.SqlDependency_DatabaseBrokerDisabled">
  15365. <summary>
  15366. Looks up a localized string similar to The SQL Server Service Broker for the current database is not enabled, and as a result query notifications are not supported. Please enable the Service Broker for this database if you wish to use notifications..
  15367. </summary>
  15368. </member>
  15369. <member name="P:System.SR.SqlDependency_DefaultOptionsButNoStart">
  15370. <summary>
  15371. Looks up a localized string similar to When using SqlDependency without providing an options value, SqlDependency.Start() must be called prior to execution of a command added to the SqlDependency instance..
  15372. </summary>
  15373. </member>
  15374. <member name="P:System.SR.SqlDependency_DuplicateStart">
  15375. <summary>
  15376. Looks up a localized string similar to SqlDependency does not support calling Start() with different connection strings having the same server, user, and database in the same app domain..
  15377. </summary>
  15378. </member>
  15379. <member name="P:System.SR.SqlDependency_EventNoDuplicate">
  15380. <summary>
  15381. Looks up a localized string similar to SqlDependency.OnChange does not support multiple event registrations for the same delegate..
  15382. </summary>
  15383. </member>
  15384. <member name="P:System.SR.SqlDependency_IdMismatch">
  15385. <summary>
  15386. Looks up a localized string similar to No SqlDependency exists for the key..
  15387. </summary>
  15388. </member>
  15389. <member name="P:System.SR.SqlDependency_InvalidTimeout">
  15390. <summary>
  15391. Looks up a localized string similar to Timeout specified is invalid. Timeout cannot be &lt; 0..
  15392. </summary>
  15393. </member>
  15394. <member name="P:System.SR.SqlDependency_NoMatchingServerDatabaseStart">
  15395. <summary>
  15396. Looks up a localized string similar to SqlDependency.Start has been called for the server the command is executing against more than once, but there is no matching server/user/database Start() call for current command..
  15397. </summary>
  15398. </member>
  15399. <member name="P:System.SR.SqlDependency_NoMatchingServerStart">
  15400. <summary>
  15401. Looks up a localized string similar to When using SqlDependency without providing an options value, SqlDependency.Start() must be called for each server that is being executed against..
  15402. </summary>
  15403. </member>
  15404. <member name="P:System.SR.SqlFileStream_FileAlreadyInTransaction">
  15405. <summary>
  15406. Looks up a localized string similar to The process cannot access the file specified because it has been opened in another transaction..
  15407. </summary>
  15408. </member>
  15409. <member name="P:System.SR.SqlFileStream_InvalidParameter">
  15410. <summary>
  15411. Looks up a localized string similar to An invalid parameter was passed to the function..
  15412. </summary>
  15413. </member>
  15414. <member name="P:System.SR.SqlFileStream_InvalidPath">
  15415. <summary>
  15416. Looks up a localized string similar to The path name is not valid..
  15417. </summary>
  15418. </member>
  15419. <member name="P:System.SR.SqlFileStream_NotSupported">
  15420. <summary>
  15421. Looks up a localized string similar to SqlFileStream is not supported on this platform..
  15422. </summary>
  15423. </member>
  15424. <member name="P:System.SR.SqlFileStream_PathNotValidDiskResource">
  15425. <summary>
  15426. Looks up a localized string similar to The path name is invalid or does not point to a disk file..
  15427. </summary>
  15428. </member>
  15429. <member name="P:System.SR.SqlMetaData_InvalidSqlDbTypeForConstructorFormat">
  15430. <summary>
  15431. Looks up a localized string similar to The dbType {0} is invalid for this constructor..
  15432. </summary>
  15433. </member>
  15434. <member name="P:System.SR.SqlMetaData_NameTooLong">
  15435. <summary>
  15436. Looks up a localized string similar to The name is too long..
  15437. </summary>
  15438. </member>
  15439. <member name="P:System.SR.SqlMetaData_SpecifyBothSortOrderAndOrdinal">
  15440. <summary>
  15441. Looks up a localized string similar to The sort order and ordinal must either both be specified, or neither should be specified (SortOrder.Unspecified and -1). The values given were: order = {0}, ordinal = {1}..
  15442. </summary>
  15443. </member>
  15444. <member name="P:System.SR.SqlMisc_AlreadyFilledMessage">
  15445. <summary>
  15446. Looks up a localized string similar to SQL Type has already been loaded with data..
  15447. </summary>
  15448. </member>
  15449. <member name="P:System.SR.SqlMisc_ArithOverflowMessage">
  15450. <summary>
  15451. Looks up a localized string similar to Arithmetic Overflow..
  15452. </summary>
  15453. </member>
  15454. <member name="P:System.SR.SqlMisc_ClosedXmlReaderMessage">
  15455. <summary>
  15456. Looks up a localized string similar to Invalid attempt to access a closed XmlReader..
  15457. </summary>
  15458. </member>
  15459. <member name="P:System.SR.SqlMisc_CompareDiffCollationMessage">
  15460. <summary>
  15461. Looks up a localized string similar to Two strings to be compared have different collation..
  15462. </summary>
  15463. </member>
  15464. <member name="P:System.SR.SqlMisc_ConcatDiffCollationMessage">
  15465. <summary>
  15466. Looks up a localized string similar to Two strings to be concatenated have different collation..
  15467. </summary>
  15468. </member>
  15469. <member name="P:System.SR.SqlMisc_ConversionOverflowMessage">
  15470. <summary>
  15471. Looks up a localized string similar to Conversion overflows..
  15472. </summary>
  15473. </member>
  15474. <member name="P:System.SR.SqlMisc_DateTimeOverflowMessage">
  15475. <summary>
  15476. Looks up a localized string similar to SqlDateTime overflow. Must be between 1/1/1753 12:00:00 AM and 12/31/9999 11:59:59 PM..
  15477. </summary>
  15478. </member>
  15479. <member name="P:System.SR.SqlMisc_DivideByZeroMessage">
  15480. <summary>
  15481. Looks up a localized string similar to Divide by zero error encountered..
  15482. </summary>
  15483. </member>
  15484. <member name="P:System.SR.SqlMisc_FormatMessage">
  15485. <summary>
  15486. Looks up a localized string similar to The input wasn&apos;t in a correct format..
  15487. </summary>
  15488. </member>
  15489. <member name="P:System.SR.SqlMisc_InvalidArraySizeMessage">
  15490. <summary>
  15491. Looks up a localized string similar to Invalid array size..
  15492. </summary>
  15493. </member>
  15494. <member name="P:System.SR.SqlMisc_InvalidDateTimeMessage">
  15495. <summary>
  15496. Looks up a localized string similar to Invalid SqlDateTime..
  15497. </summary>
  15498. </member>
  15499. <member name="P:System.SR.SqlMisc_InvalidFlagMessage">
  15500. <summary>
  15501. Looks up a localized string similar to Invalid flag value..
  15502. </summary>
  15503. </member>
  15504. <member name="P:System.SR.SqlMisc_InvalidOpStreamClosed">
  15505. <summary>
  15506. Looks up a localized string similar to Invalid attempt to call {0} when the stream is closed..
  15507. </summary>
  15508. </member>
  15509. <member name="P:System.SR.SqlMisc_InvalidOpStreamNonReadable">
  15510. <summary>
  15511. Looks up a localized string similar to Invalid attempt to call {0} when the stream non-readable..
  15512. </summary>
  15513. </member>
  15514. <member name="P:System.SR.SqlMisc_InvalidOpStreamNonSeekable">
  15515. <summary>
  15516. Looks up a localized string similar to Invalid attempt to call {0} when the stream is non-seekable..
  15517. </summary>
  15518. </member>
  15519. <member name="P:System.SR.SqlMisc_InvalidOpStreamNonWritable">
  15520. <summary>
  15521. Looks up a localized string similar to Invalid attempt to call {0} when the stream non-writable..
  15522. </summary>
  15523. </member>
  15524. <member name="P:System.SR.SqlMisc_InvalidPrecScaleMessage">
  15525. <summary>
  15526. Looks up a localized string similar to Invalid numeric precision/scale..
  15527. </summary>
  15528. </member>
  15529. <member name="P:System.SR.SqlMisc_MessageString">
  15530. <summary>
  15531. Looks up a localized string similar to Message.
  15532. </summary>
  15533. </member>
  15534. <member name="P:System.SR.SqlMisc_NotFilledMessage">
  15535. <summary>
  15536. Looks up a localized string similar to SQL Type has not been loaded with data..
  15537. </summary>
  15538. </member>
  15539. <member name="P:System.SR.SqlMisc_NullString">
  15540. <summary>
  15541. Looks up a localized string similar to Null.
  15542. </summary>
  15543. </member>
  15544. <member name="P:System.SR.SqlMisc_NullValueMessage">
  15545. <summary>
  15546. Looks up a localized string similar to Data is Null. This method or property cannot be called on Null values..
  15547. </summary>
  15548. </member>
  15549. <member name="P:System.SR.SqlMisc_NumeToDecOverflowMessage">
  15550. <summary>
  15551. Looks up a localized string similar to Conversion from SqlDecimal to Decimal overflows..
  15552. </summary>
  15553. </member>
  15554. <member name="P:System.SR.SqlMisc_StreamErrorMessage">
  15555. <summary>
  15556. Looks up a localized string similar to An error occurred while reading..
  15557. </summary>
  15558. </member>
  15559. <member name="P:System.SR.SqlMisc_SubclassMustOverride">
  15560. <summary>
  15561. Looks up a localized string similar to Subclass did not override a required method..
  15562. </summary>
  15563. </member>
  15564. <member name="P:System.SR.SqlMisc_TimeZoneSpecifiedMessage">
  15565. <summary>
  15566. Looks up a localized string similar to A time zone was specified. SqlDateTime does not support time zones..
  15567. </summary>
  15568. </member>
  15569. <member name="P:System.SR.SqlMisc_TruncationMaxDataMessage">
  15570. <summary>
  15571. Looks up a localized string similar to Data returned is larger than 2Gb in size. Use SequentialAccess command behavior in order to get all of the data..
  15572. </summary>
  15573. </member>
  15574. <member name="P:System.SR.SqlMisc_TruncationMessage">
  15575. <summary>
  15576. Looks up a localized string similar to Numeric arithmetic causes truncation..
  15577. </summary>
  15578. </member>
  15579. <member name="P:System.SR.SQLMSF_FailoverPartnerNotSupported">
  15580. <summary>
  15581. Looks up a localized string similar to Connecting to a mirrored SQL Server instance using the MultiSubnetFailover connection option is not supported..
  15582. </summary>
  15583. </member>
  15584. <member name="P:System.SR.SQLNotify_AlreadyHasCommand">
  15585. <summary>
  15586. Looks up a localized string similar to This SqlCommand object is already associated with another SqlDependency object..
  15587. </summary>
  15588. </member>
  15589. <member name="P:System.SR.SqlParameter_DBNullNotSupportedForTVP">
  15590. <summary>
  15591. Looks up a localized string similar to DBNull value for parameter &apos;{0}&apos; is not supported. Table-valued parameters cannot be DBNull..
  15592. </summary>
  15593. </member>
  15594. <member name="P:System.SR.SqlParameter_InvalidTableDerivedPrecisionForTvp">
  15595. <summary>
  15596. Looks up a localized string similar to Precision &apos;{0}&apos; required to send all values in column &apos;{1}&apos; exceeds the maximum supported precision &apos;{2}&apos;. The values must all fit in a single precision..
  15597. </summary>
  15598. </member>
  15599. <member name="P:System.SR.SqlParameter_UnexpectedTypeNameForNonStruct">
  15600. <summary>
  15601. Looks up a localized string similar to TypeName specified for parameter &apos;{0}&apos;. TypeName must only be set for Structured parameters..
  15602. </summary>
  15603. </member>
  15604. <member name="P:System.SR.SqlParameter_UnsupportedTVPOutputParameter">
  15605. <summary>
  15606. Looks up a localized string similar to ParameterDirection &apos;{0}&apos; specified for parameter &apos;{1}&apos; is not supported. Table-valued parameters only support ParameterDirection.Input..
  15607. </summary>
  15608. </member>
  15609. <member name="P:System.SR.SqlProvider_DuplicateSortOrdinal">
  15610. <summary>
  15611. Looks up a localized string similar to The sort ordinal {0} was specified twice..
  15612. </summary>
  15613. </member>
  15614. <member name="P:System.SR.SqlProvider_InvalidDataColumnMaxLength">
  15615. <summary>
  15616. Looks up a localized string similar to The size of column &apos;{0}&apos; is not supported. The size is {1}..
  15617. </summary>
  15618. </member>
  15619. <member name="P:System.SR.SqlProvider_InvalidDataColumnType">
  15620. <summary>
  15621. Looks up a localized string similar to The type of column &apos;{0}&apos; is not supported. The type is &apos;{1}&apos;.
  15622. </summary>
  15623. </member>
  15624. <member name="P:System.SR.SqlProvider_MissingSortOrdinal">
  15625. <summary>
  15626. Looks up a localized string similar to The sort ordinal {0} was not specified..
  15627. </summary>
  15628. </member>
  15629. <member name="P:System.SR.SqlProvider_NotEnoughColumnsInStructuredType">
  15630. <summary>
  15631. Looks up a localized string similar to There are not enough fields in the Structured type. Structured types must have at least one field..
  15632. </summary>
  15633. </member>
  15634. <member name="P:System.SR.SqlProvider_SortOrdinalGreaterThanFieldCount">
  15635. <summary>
  15636. Looks up a localized string similar to The sort ordinal {0} on field {1} exceeds the total number of fields..
  15637. </summary>
  15638. </member>
  15639. <member name="P:System.SR.SQLROR_FailoverNotSupported">
  15640. <summary>
  15641. Looks up a localized string similar to Connecting to a mirrored SQL Server instance using the ApplicationIntent ReadOnly connection option is not supported..
  15642. </summary>
  15643. </member>
  15644. <member name="P:System.SR.SQLROR_InvalidRoutingInfo">
  15645. <summary>
  15646. Looks up a localized string similar to Invalid routing information received..
  15647. </summary>
  15648. </member>
  15649. <member name="P:System.SR.SQLROR_RecursiveRoutingNotSupported">
  15650. <summary>
  15651. Looks up a localized string similar to Two or more redirections have occurred. Only one redirection per login is allowed..
  15652. </summary>
  15653. </member>
  15654. <member name="P:System.SR.SQLROR_TimeoutAfterRoutingInfo">
  15655. <summary>
  15656. Looks up a localized string similar to Server provided routing information, but timeout already expired..
  15657. </summary>
  15658. </member>
  15659. <member name="P:System.SR.SQLROR_UnexpectedRoutingInfo">
  15660. <summary>
  15661. Looks up a localized string similar to Unexpected routing information received..
  15662. </summary>
  15663. </member>
  15664. <member name="P:System.SR.SQLUDT_InvalidSqlType">
  15665. <summary>
  15666. Looks up a localized string similar to Specified type is not registered on the target server. {0}..
  15667. </summary>
  15668. </member>
  15669. <member name="P:System.SR.SqlUdt_InvalidUdtMessage">
  15670. <summary>
  15671. Looks up a localized string similar to &apos;{0}&apos; is an invalid user defined type, reason: {1}..
  15672. </summary>
  15673. </member>
  15674. <member name="P:System.SR.SQLUDT_InvalidUdtTypeName">
  15675. <summary>
  15676. Looks up a localized string similar to UdtTypeName property must be set for UDT parameters..
  15677. </summary>
  15678. </member>
  15679. <member name="P:System.SR.SQLUDT_MaxByteSizeValue">
  15680. <summary>
  15681. Looks up a localized string similar to range: 0-8000.
  15682. </summary>
  15683. </member>
  15684. <member name="P:System.SR.SQLUDT_Unexpected">
  15685. <summary>
  15686. Looks up a localized string similar to unexpected error encountered in SqlClient data provider. {0}.
  15687. </summary>
  15688. </member>
  15689. <member name="P:System.SR.SQLUDT_UnexpectedUdtTypeName">
  15690. <summary>
  15691. Looks up a localized string similar to UdtTypeName property must be set only for UDT parameters..
  15692. </summary>
  15693. </member>
  15694. <member name="P:System.SR.SqlUdtReason_NoUdtAttribute">
  15695. <summary>
  15696. Looks up a localized string similar to no UDT attribute.
  15697. </summary>
  15698. </member>
  15699. <member name="P:System.SR.SSPIInvalidHandleType">
  15700. <summary>
  15701. Looks up a localized string similar to &apos;{0}&apos; is not a supported handle type..
  15702. </summary>
  15703. </member>
  15704. <member name="P:System.SR.TCE_AttestationInfoNotReturnedFromSQLServer">
  15705. <summary>
  15706. Looks up a localized string similar to Attestation information was not returned by SQL Server. Enclave type is &apos;{0}&apos; and enclave attestation URL is &apos;{1}&apos;..
  15707. </summary>
  15708. </member>
  15709. <member name="P:System.SR.TCE_BatchedUpdateColumnEncryptionSettingMismatch">
  15710. <summary>
  15711. Looks up a localized string similar to {0} should be identical on all commands ({1}, {2}, {3}, {4}) when doing batch updates..
  15712. </summary>
  15713. </member>
  15714. <member name="P:System.SR.TCE_CannotCreateSqlColumnEncryptionEnclaveProvider">
  15715. <summary>
  15716. Looks up a localized string similar to Failed to instantiate an enclave provider with type &apos;{1}&apos; for name &apos;{0}&apos;. Error message: {2}.
  15717. </summary>
  15718. </member>
  15719. <member name="P:System.SR.TCE_CannotGetSqlColumnEncryptionEnclaveProviderConfig">
  15720. <summary>
  15721. Looks up a localized string similar to Failed to read the configuration section for enclave providers. Make sure the section is correctly formatted in your application configuration file. Error Message: {0}.
  15722. </summary>
  15723. </member>
  15724. <member name="P:System.SR.TCE_CanOnlyCallOnce">
  15725. <summary>
  15726. Looks up a localized string similar to Key store providers cannot be set more than once..
  15727. </summary>
  15728. </member>
  15729. <member name="P:System.SR.TCE_CertificateNotFound">
  15730. <summary>
  15731. Looks up a localized string similar to Certificate with thumbprint &apos;{0}&apos; not found in certificate store &apos;{1}&apos; in certificate location &apos;{2}&apos;..
  15732. </summary>
  15733. </member>
  15734. <member name="P:System.SR.TCE_CertificateNotFoundSysErr">
  15735. <summary>
  15736. Looks up a localized string similar to Certificate with thumbprint &apos;{0}&apos; not found in certificate store &apos;{1}&apos; in certificate location &apos;{2}&apos;. Verify the certificate path in the column master key definition in the database is correct, and the certificate has been imported correctly into the certificate location/store..
  15737. </summary>
  15738. </member>
  15739. <member name="P:System.SR.TCE_CertificateWithNoPrivateKey">
  15740. <summary>
  15741. Looks up a localized string similar to Certificate specified in key path &apos;{0}&apos; does not have a private key to encrypt a column encryption key. Verify the certificate is imported correctly..
  15742. </summary>
  15743. </member>
  15744. <member name="P:System.SR.TCE_CertificateWithNoPrivateKeySysErr">
  15745. <summary>
  15746. Looks up a localized string similar to Certificate specified in key path &apos;{0}&apos; does not have a private key to decrypt a column encryption key. Verify the certificate is imported correctly..
  15747. </summary>
  15748. </member>
  15749. <member name="P:System.SR.TCE_ColumnDecryptionFailed">
  15750. <summary>
  15751. Looks up a localized string similar to Failed to decrypt column &apos;{0}&apos;..
  15752. </summary>
  15753. </member>
  15754. <member name="P:System.SR.TCE_ColumnEncryptionKeysNotFound">
  15755. <summary>
  15756. Looks up a localized string similar to Internal Error. Encrypted column encryption keys not found when trying to send the keys to the enclave..
  15757. </summary>
  15758. </member>
  15759. <member name="P:System.SR.TCE_ColumnMasterKeySignatureNotFound">
  15760. <summary>
  15761. Looks up a localized string similar to Internal error. The signature returned by SQL Server for enclave-enabled column master key, specified at key path &apos;{0}&apos;, cannot be null or empty..
  15762. </summary>
  15763. </member>
  15764. <member name="P:System.SR.TCE_ColumnMasterKeySignatureVerificationFailed">
  15765. <summary>
  15766. Looks up a localized string similar to The signature returned by SQL Server for the column master key, specified in key path &apos;{0}&apos;, is invalid (does not match the computed signature). Recreate column master key metadata, making sure the signature inside the metadata is computed using the column master key being referenced in the metadata. If the error persists, please contact Microsoft for assistance..
  15767. </summary>
  15768. </member>
  15769. <member name="P:System.SR.TCE_DecryptionFailed">
  15770. <summary>
  15771. Looks up a localized string similar to Decryption failed. The last 10 bytes of the encrypted column encryption key are: &apos;{0}&apos;. The first 10 bytes of ciphertext are: &apos;{1}&apos;..
  15772. </summary>
  15773. </member>
  15774. <member name="P:System.SR.TCE_EmptyArgumentInConstructorInternal">
  15775. <summary>
  15776. Looks up a localized string similar to Internal Error. Empty argument &apos;{0}&apos; specified when constructing an object of type &apos;{1}&apos;. &apos;{0}&apos; cannot be empty..
  15777. </summary>
  15778. </member>
  15779. <member name="P:System.SR.TCE_EmptyArgumentInternal">
  15780. <summary>
  15781. Looks up a localized string similar to Internal Error. Argument &apos;{0}&apos; cannot be empty when executing method &apos;{1}.{2}&apos;..
  15782. </summary>
  15783. </member>
  15784. <member name="P:System.SR.TCE_EmptyCertificateThumbprint">
  15785. <summary>
  15786. Looks up a localized string similar to Empty certificate thumbprint specified in certificate path &apos;{0}&apos;..
  15787. </summary>
  15788. </member>
  15789. <member name="P:System.SR.TCE_EmptyCertificateThumbprintSysErr">
  15790. <summary>
  15791. Looks up a localized string similar to Internal error. Empty certificate thumbprint specified in certificate path &apos;{0}&apos;..
  15792. </summary>
  15793. </member>
  15794. <member name="P:System.SR.TCE_EmptyCngKeyId">
  15795. <summary>
  15796. Looks up a localized string similar to Empty key identifier specified in column master key path: &apos;{0}&apos;. Use the following format for a key stored in a Microsoft Cryptography API: Next Generation (CNG) provider: &lt;CNG Provider Name&gt;{1}&lt;Key Identifier&gt;..
  15797. </summary>
  15798. </member>
  15799. <member name="P:System.SR.TCE_EmptyCngKeyIdSysErr">
  15800. <summary>
  15801. Looks up a localized string similar to Internal error. Empty key identifier specified in column master key path: &apos;{0}&apos;. Use the following format for a key stored in a Microsoft Cryptography API: Next Generation (CNG) provider: &lt;CNG Provider Name&gt;{1}&lt;Key Identifier&gt;..
  15802. </summary>
  15803. </member>
  15804. <member name="P:System.SR.TCE_EmptyCngName">
  15805. <summary>
  15806. Looks up a localized string similar to Empty Microsoft Cryptography API: Next Generation (CNG) provider name specified in column master key path: &apos;{0}&apos;. Use the following format for a key stored in a Microsoft Cryptography API: Next Generation (CNG) provider: &lt;CNG Provider Name&gt;{1}&lt;Key Identifier&gt;..
  15807. </summary>
  15808. </member>
  15809. <member name="P:System.SR.TCE_EmptyCngNameSysErr">
  15810. <summary>
  15811. Looks up a localized string similar to Internal error. Empty Microsoft Cryptography API: Next Generation (CNG) provider name specified in column master key path: &apos;{0}&apos;. Use the following format for a key stored in a Microsoft Cryptography API: Next Generation (CNG) provider: &lt;CNG Provider Name&gt;{1}&lt;Key Identifier&gt;..
  15812. </summary>
  15813. </member>
  15814. <member name="P:System.SR.TCE_EmptyColumnEncryptionKey">
  15815. <summary>
  15816. Looks up a localized string similar to Empty column encryption key specified..
  15817. </summary>
  15818. </member>
  15819. <member name="P:System.SR.TCE_EmptyCspKeyId">
  15820. <summary>
  15821. Looks up a localized string similar to Empty key identifier specified in column master key path: &apos;{0}&apos;. Use the following format for a key stored in a Microsoft cryptographic service provider (CSP): &lt;CSP Provider Name&gt;{1}&lt;Key Identifier&gt;..
  15822. </summary>
  15823. </member>
  15824. <member name="P:System.SR.TCE_EmptyCspKeyIdSysErr">
  15825. <summary>
  15826. Looks up a localized string similar to Internal error. Empty key identifier specified in column master key path: &apos;{0}&apos;. Use the following format for a key stored in a Microsoft cryptographic service provider (CSP): &lt;CSP Provider Name&gt;{1}&lt;Key Identifier&gt;..
  15827. </summary>
  15828. </member>
  15829. <member name="P:System.SR.TCE_EmptyCspName">
  15830. <summary>
  15831. Looks up a localized string similar to Empty Microsoft cryptographic service provider (CSP) name specified in column master key path: &apos;{0}&apos;. Use the following format for a key stored in a Microsoft cryptographic service provider (CSP): &lt;CSP Provider Name&gt;{1}&lt;Key Identifier&gt;..
  15832. </summary>
  15833. </member>
  15834. <member name="P:System.SR.TCE_EmptyCspNameSysErr">
  15835. <summary>
  15836. Looks up a localized string similar to Internal error. Empty Microsoft cryptographic service provider (CSP) name specified in column master key path: &apos;{0}&apos;. Use the following format for a key stored in a Microsoft cryptographic service provider (CSP): &lt;CSP Provider Name&gt;{1}&lt;Key Identifier&gt;..
  15837. </summary>
  15838. </member>
  15839. <member name="P:System.SR.TCE_EmptyEncryptedColumnEncryptionKey">
  15840. <summary>
  15841. Looks up a localized string similar to Internal error. Empty encrypted column encryption key specified..
  15842. </summary>
  15843. </member>
  15844. <member name="P:System.SR.TCE_EmptyProviderName">
  15845. <summary>
  15846. Looks up a localized string similar to Invalid key store provider name specified. Key store provider names cannot be null or empty..
  15847. </summary>
  15848. </member>
  15849. <member name="P:System.SR.TCE_EnclaveComputationsNotSupported">
  15850. <summary>
  15851. Looks up a localized string similar to You have specified the enclave attestation URL in the connection string, but the SQL Server instance in use does not support enclave based computations..
  15852. </summary>
  15853. </member>
  15854. <member name="P:System.SR.TCE_EnclaveProviderNotFound">
  15855. <summary>
  15856. Looks up a localized string similar to No enclave provider found for enclave type &apos;{0}&apos;. Please specify the provider in the application configuration..
  15857. </summary>
  15858. </member>
  15859. <member name="P:System.SR.TCE_DbConnectionString_AttestationProtocol">
  15860. <summary>
  15861. Looks up a localized string similar to Specifies an attestation protocol for its corresponding enclave attestation service.
  15862. </summary>
  15863. </member>
  15864. <member name="P:System.SR.TCE_EnclaveTypeNotSupported">
  15865. <summary>
  15866. Looks up a localized string similar to The enclave type '{0}' returned from the server is not supported.
  15867. </summary>
  15868. </member>
  15869. <member name="P:System.SR.TCE_AttestationProtocolNotSupportEnclaveType">
  15870. <summary>
  15871. Looks up a localized string similar to Failed to initialize connection. The attestation protocol '{0}' does not support the enclave type '{1}'.
  15872. </summary>
  15873. </member>
  15874. <member name="P:System.SR.TCE_AttestationProtocolNotSpecifiedForGeneratingEnclavePackage">
  15875. <summary>
  15876. Looks up a localized string similar to Error occured when generating enclave package. Attestation Protocol has not been specified in the connection string, but the query requires enclave computations.
  15877. </summary>
  15878. </member>
  15879. <member name="P:System.SR.TCE_EnclaveProvidersNotConfiguredForEnclaveBasedQuery">
  15880. <summary>
  15881. Looks up a localized string similar to Executing a query requires enclave computations, but the application configuration is missing the enclave provider section..
  15882. </summary>
  15883. </member>
  15884. <member name="P:System.SR.TCE_EnclaveTypeNotReturned">
  15885. <summary>
  15886. Looks up a localized string similar to You have specified the enclave attestation URL in the connection string, but the SQL Server instance did not return an enclave type. Please make sure the enclave type is correctly configured in your instance..
  15887. </summary>
  15888. </member>
  15889. <member name="P:System.SR.TCE_EnclaveTypeNullForEnclaveBasedQuery">
  15890. <summary>
  15891. Looks up a localized string similar to Internal Error. Enclave type received from SQL Server is null or empty when executing a query requiring enclave computations..
  15892. </summary>
  15893. </member>
  15894. <member name="P:System.SR.TCE_ExceptionWhenGeneratingEnclavePackage">
  15895. <summary>
  15896. Looks up a localized string similar to Error encountered while generating package to be sent to enclave. Error message: {0}.
  15897. </summary>
  15898. </member>
  15899. <member name="P:System.SR.TCE_FailedToEncryptRegisterRulesBytePackage">
  15900. <summary>
  15901. Looks up a localized string similar to Internal Error. Failed to encrypt byte package to be sent to the enclave. Error Message: {0}.
  15902. </summary>
  15903. </member>
  15904. <member name="P:System.SR.TCE_InsufficientBuffer">
  15905. <summary>
  15906. Looks up a localized string similar to Internal Error. The buffer specified by argument &apos;{0}&apos; for method &apos;{1}.{2}&apos; has insufficient space..
  15907. </summary>
  15908. </member>
  15909. <member name="P:System.SR.TCE_InvalidAlgorithmVersion">
  15910. <summary>
  15911. Looks up a localized string similar to The specified ciphertext&apos;s encryption algorithm version &apos;{0}&apos; does not match the expected encryption algorithm version &apos;{1}&apos;..
  15912. </summary>
  15913. </member>
  15914. <member name="P:System.SR.TCE_InvalidAlgorithmVersionInEncryptedCEK">
  15915. <summary>
  15916. Looks up a localized string similar to Specified encrypted column encryption key contains an invalid encryption algorithm version &apos;{0}&apos;. Expected version is &apos;{1}&apos;..
  15917. </summary>
  15918. </member>
  15919. <member name="P:System.SR.TCE_InvalidAttestationParameterUnableToConvertToUnsignedInt">
  15920. <summary>
  15921. Looks up a localized string similar to Invalid attestation parameters specified by the enclave provider for enclave type &apos;{0}&apos;. Error occurred when converting the value &apos;{1}&apos; of parameter &apos;{2}&apos; to unsigned int. Error Message: {3}.
  15922. </summary>
  15923. </member>
  15924. <member name="P:System.SR.TCE_InvalidAuthenticationTag">
  15925. <summary>
  15926. Looks up a localized string similar to Specified ciphertext has an invalid authentication tag..
  15927. </summary>
  15928. </member>
  15929. <member name="P:System.SR.TCE_InvalidCertificateLocation">
  15930. <summary>
  15931. Looks up a localized string similar to Invalid certificate location &apos;{0}&apos; in certificate path &apos;{1}&apos;. Use the following format: &lt;certificate location&gt;{4}&lt;certificate store&gt;{4}&lt;certificate thumbprint&gt;, where &lt;certificate location&gt; is either &apos;{2}&apos; or &apos;{3}&apos;..
  15932. </summary>
  15933. </member>
  15934. <member name="P:System.SR.TCE_InvalidCertificateLocationSysErr">
  15935. <summary>
  15936. Looks up a localized string similar to Internal error. Invalid certificate location &apos;{0}&apos; in certificate path &apos;{1}&apos;. Use the following format: &lt;certificate location&gt;{4}&lt;certificate store&gt;{4}&lt;certificate thumbprint&gt;, where &lt;certificate location&gt; is either &apos;{2}&apos; or &apos;{3}&apos;..
  15937. </summary>
  15938. </member>
  15939. <member name="P:System.SR.TCE_InvalidCertificatePath">
  15940. <summary>
  15941. Looks up a localized string similar to Invalid certificate path: &apos;{0}&apos;. Use the following format: &lt;certificate location&gt;{3}&lt;certificate store&gt;{3}&lt;certificate thumbprint&gt;, where &lt;certificate location&gt; is either &apos;{1}&apos; or &apos;{2}&apos;..
  15942. </summary>
  15943. </member>
  15944. <member name="P:System.SR.TCE_InvalidCertificatePathSysErr">
  15945. <summary>
  15946. Looks up a localized string similar to Internal error. Invalid certificate path: &apos;{0}&apos;. Use the following format: &lt;certificate location&gt;{3}&lt;certificate store&gt;{3}&lt;certificate thumbprint&gt;, where &lt;certificate location&gt; is either &apos;{1}&apos; or &apos;{2}&apos;..
  15947. </summary>
  15948. </member>
  15949. <member name="P:System.SR.TCE_InvalidCertificateSignature">
  15950. <summary>
  15951. Looks up a localized string similar to The specified encrypted column encryption key signature does not match the signature computed with the column master key (certificate) in &apos;{0}&apos;. The encrypted column encryption key may be corrupt, or the specified path may be incorrect..
  15952. </summary>
  15953. </member>
  15954. <member name="P:System.SR.TCE_InvalidCertificateStore">
  15955. <summary>
  15956. Looks up a localized string similar to Invalid certificate store &apos;{0}&apos; specified in certificate path &apos;{1}&apos;. Expected value: &apos;{2}&apos;..
  15957. </summary>
  15958. </member>
  15959. <member name="P:System.SR.TCE_InvalidCertificateStoreSysErr">
  15960. <summary>
  15961. Looks up a localized string similar to Internal error. Invalid certificate store &apos;{0}&apos; specified in certificate path &apos;{1}&apos;. Expected value: &apos;{2}&apos;..
  15962. </summary>
  15963. </member>
  15964. <member name="P:System.SR.TCE_InvalidCiphertextLengthInEncryptedCEK">
  15965. <summary>
  15966. Looks up a localized string similar to The specified encrypted column encryption key&apos;s ciphertext length: {0} does not match the ciphertext length: {1} when using column master key (certificate) in &apos;{2}&apos;. The encrypted column encryption key may be corrupt, or the specified certificate path may be incorrect..
  15967. </summary>
  15968. </member>
  15969. <member name="P:System.SR.TCE_InvalidCiphertextLengthInEncryptedCEKCng">
  15970. <summary>
  15971. Looks up a localized string similar to The specified encrypted column encryption key&apos;s ciphertext length: {0} does not match the ciphertext length: {1} when using column master key (asymmetric key) in &apos;{2}&apos;. The encrypted column encryption key may be corrupt, or the specified Microsoft Cryptography API: Next Generation (CNG) provider path may be incorrect..
  15972. </summary>
  15973. </member>
  15974. <member name="P:System.SR.TCE_InvalidCiphertextLengthInEncryptedCEKCsp">
  15975. <summary>
  15976. Looks up a localized string similar to The specified encrypted column encryption key&apos;s ciphertext length: {0} does not match the ciphertext length: {1} when using column master key (asymmetric key) in &apos;{2}&apos;. The encrypted column encryption key may be corrupt, or the specified Microsoft Cryptographic Service provider (CSP) path may be incorrect..
  15977. </summary>
  15978. </member>
  15979. <member name="P:System.SR.TCE_InvalidCipherTextSize">
  15980. <summary>
  15981. Looks up a localized string similar to Specified ciphertext has an invalid size of {0} bytes, which is below the minimum {1} bytes required for decryption..
  15982. </summary>
  15983. </member>
  15984. <member name="P:System.SR.TCE_InvalidCngKey">
  15985. <summary>
  15986. Looks up a localized string similar to An error occurred while opening the Microsoft Cryptography API: Next Generation (CNG) key: &apos;{0}&apos;. Verify that the CNG provider name &apos;{1}&apos; is valid, installed on the machine, and the key &apos;{2}&apos; exists..
  15987. </summary>
  15988. </member>
  15989. <member name="P:System.SR.TCE_InvalidCngKeySysErr">
  15990. <summary>
  15991. Looks up a localized string similar to Internal error. An error occurred while opening the Microsoft Cryptography API: Next Generation (CNG) key: &apos;{0}&apos;. Verify that the CNG provider name &apos;{1}&apos; is valid, installed on the machine, and the key &apos;{2}&apos; exists..
  15992. </summary>
  15993. </member>
  15994. <member name="P:System.SR.TCE_InvalidCngPath">
  15995. <summary>
  15996. Looks up a localized string similar to Invalid column master key path: &apos;{0}&apos;. Use the following format for a key stored in a Microsoft Cryptography API: Next Generation (CNG) provider: &lt;CNG Provider Name&gt;{1}&lt;Key Identifier&gt;..
  15997. </summary>
  15998. </member>
  15999. <member name="P:System.SR.TCE_InvalidCngPathSysErr">
  16000. <summary>
  16001. Looks up a localized string similar to Internal error. Invalid column master key path: &apos;{0}&apos;. Use the following format for a key stored in a Microsoft Cryptography API: Next Generation (CNG) provider: &lt;CNG Provider Name&gt;{1}&lt;Key Identifier&gt;..
  16002. </summary>
  16003. </member>
  16004. <member name="P:System.SR.TCE_InvalidCspKeyId">
  16005. <summary>
  16006. Looks up a localized string similar to Invalid key identifier: &apos;{0}&apos;. Verify that the key identifier in column master key path: &apos;{1}&apos; is valid and exists in the CSP..
  16007. </summary>
  16008. </member>
  16009. <member name="P:System.SR.TCE_InvalidCspKeyIdSysErr">
  16010. <summary>
  16011. Looks up a localized string similar to Internal error. Invalid key identifier: &apos;{0}&apos;. Verify that the key identifier in column master key path: &apos;{1}&apos; is valid and exists in the CSP..
  16012. </summary>
  16013. </member>
  16014. <member name="P:System.SR.TCE_InvalidCspName">
  16015. <summary>
  16016. Looks up a localized string similar to Invalid Microsoft cryptographic service provider (CSP) name: &apos;{0}&apos;. Verify that the CSP provider name in column master key path: &apos;{1}&apos; is valid and installed on the machine..
  16017. </summary>
  16018. </member>
  16019. <member name="P:System.SR.TCE_InvalidCspNameSysErr">
  16020. <summary>
  16021. Looks up a localized string similar to Internal error. Invalid Microsoft cryptographic service provider (CSP) name: &apos;{0}&apos;. Verify that the CSP provider name in column master key path: &apos;{1}&apos; is valid and installed on the machine..
  16022. </summary>
  16023. </member>
  16024. <member name="P:System.SR.TCE_InvalidCspPath">
  16025. <summary>
  16026. Looks up a localized string similar to Invalid column master key path: &apos;{0}&apos;. Use the following format for a key stored in a Microsoft cryptographic service provider (CSP): &lt;CSP Provider Name&gt;{1}&lt;Key Identifier&gt;..
  16027. </summary>
  16028. </member>
  16029. <member name="P:System.SR.TCE_InvalidCspPathSysErr">
  16030. <summary>
  16031. Looks up a localized string similar to Internal error. Invalid column master key path: &apos;{0}&apos;. Use the following format for a key stored in a Microsoft cryptographic service provider (CSP): &lt;CSP Provider Name&gt;{1}&lt;Key Identifier&gt;..
  16032. </summary>
  16033. </member>
  16034. <member name="P:System.SR.TCE_InvalidCustomKeyStoreProviderName">
  16035. <summary>
  16036. Looks up a localized string similar to Invalid key store provider name &apos;{0}&apos;. &apos;{1}&apos; prefix is reserved for system key store providers..
  16037. </summary>
  16038. </member>
  16039. <member name="P:System.SR.TCE_InvalidDatabaseIdUnableToCastToUnsignedInt">
  16040. <summary>
  16041. Looks up a localized string similar to Internal Error. The given database id &apos;{0}&apos; is not valid. Error occurred when converting the database id to unsigned int. Error Message: {1}.
  16042. </summary>
  16043. </member>
  16044. <member name="P:System.SR.TCE_InvalidEncryptionKeyOrdinalEnclaveMetadata">
  16045. <summary>
  16046. Looks up a localized string similar to Internal error. Error occurred when populating enclave metadata. The referenced column encryption key ordinal &apos;{0}&apos; is missing in the encryption metadata returned by SQL Server. Max ordinal is &apos;{1}&apos;..
  16047. </summary>
  16048. </member>
  16049. <member name="P:System.SR.TCE_InvalidEncryptionKeyOrdinalParameterMetadata">
  16050. <summary>
  16051. Looks up a localized string similar to Internal error. Error occurred when populating parameter metadata. The referenced column encryption key ordinal &apos;{0}&apos; is missing in the encryption metadata returned by SQL Server. Max ordinal is &apos;{1}&apos;..
  16052. </summary>
  16053. </member>
  16054. <member name="P:System.SR.TCE_InvalidEncryptionType">
  16055. <summary>
  16056. Looks up a localized string similar to Encryption type &apos;{1}&apos; specified for the column in the database is either invalid or corrupted. Valid encryption types for algorithm &apos;{0}&apos; are: {2}..
  16057. </summary>
  16058. </member>
  16059. <member name="P:System.SR.TCE_InvalidKeyEncryptionAlgorithm">
  16060. <summary>
  16061. Looks up a localized string similar to Invalid key encryption algorithm specified: &apos;{0}&apos;. Expected value: &apos;{1}&apos;..
  16062. </summary>
  16063. </member>
  16064. <member name="P:System.SR.TCE_InvalidKeyEncryptionAlgorithmSysErr">
  16065. <summary>
  16066. Looks up a localized string similar to Internal error. Invalid key encryption algorithm specified: &apos;{0}&apos;. Expected value: &apos;{1}&apos;..
  16067. </summary>
  16068. </member>
  16069. <member name="P:System.SR.TCE_InvalidKeyIdUnableToCastToUnsignedShort">
  16070. <summary>
  16071. Looks up a localized string similar to Internal Error. The given key id &apos;{0}&apos; is not valid. Error occurred when converting the key id to unsigned short. Error Message: {1}.
  16072. </summary>
  16073. </member>
  16074. <member name="P:System.SR.TCE_InvalidKeySize">
  16075. <summary>
  16076. Looks up a localized string similar to The column encryption key has been successfully decrypted but it&apos;s length: {1} does not match the length: {2} for algorithm &apos;{0}&apos;. Verify the encrypted value of the column encryption key in the database..
  16077. </summary>
  16078. </member>
  16079. <member name="P:System.SR.TCE_InvalidKeyStoreProviderName">
  16080. <summary>
  16081. Looks up a localized string similar to Invalid key store provider name: &apos;{0}&apos;. A key store provider name must denote either a system key store provider or a registered custom key store provider. Valid system key store provider names are: {1}. Valid (currently registered) custom key store provider names are: {2}. Please verify key store provider information in column master key definitions in the database, and verify all custom key store providers used in your application are registered properly..
  16082. </summary>
  16083. </member>
  16084. <member name="P:System.SR.TCE_InvalidSignature">
  16085. <summary>
  16086. Looks up a localized string similar to The specified encrypted column encryption key signature does not match the signature computed with the column master key (asymmetric key) in &apos;{0}&apos;. The encrypted column encryption key may be corrupt, or the specified path may be incorrect..
  16087. </summary>
  16088. </member>
  16089. <member name="P:System.SR.TCE_InvalidSignatureInEncryptedCEK">
  16090. <summary>
  16091. Looks up a localized string similar to The specified encrypted column encryption key&apos;s signature length: {0} does not match the signature length: {1} when using column master key (certificate) in &apos;{2}&apos;. The encrypted column encryption key may be corrupt, or the specified certificate path may be incorrect..
  16092. </summary>
  16093. </member>
  16094. <member name="P:System.SR.TCE_InvalidSignatureInEncryptedCEKCng">
  16095. <summary>
  16096. Looks up a localized string similar to The specified encrypted column encryption key&apos;s signature length: {0} does not match the signature length: {1} when using column master key (asymmetric key) in &apos;{2}&apos;. The encrypted column encryption key may be corrupt, or the specified Microsoft Cryptography API: Next Generation (CNG) provider path may be incorrect..
  16097. </summary>
  16098. </member>
  16099. <member name="P:System.SR.TCE_InvalidSignatureInEncryptedCEKCsp">
  16100. <summary>
  16101. Looks up a localized string similar to The specified encrypted column encryption key&apos;s signature length: {0} does not match the signature length: {1} when using column master key (asymmetric key) in &apos;{2}&apos;. The encrypted column encryption key may be corrupt, or the specified Microsoft cryptographic service provider (CSP) path may be incorrect..
  16102. </summary>
  16103. </member>
  16104. <member name="P:System.SR.TCE_KeyDecryptionFailed">
  16105. <summary>
  16106. Looks up a localized string similar to Failed to decrypt a column encryption key using key store provider: &apos;{0}&apos;. Verify the properties of the column encryption key and its column master key in your database. The last 10 bytes of the encrypted column encryption key are: &apos;{1}&apos;..
  16107. </summary>
  16108. </member>
  16109. <member name="P:System.SR.TCE_KeyDecryptionFailedCertStore">
  16110. <summary>
  16111. Looks up a localized string similar to Failed to decrypt a column encryption key using key store provider: &apos;{0}&apos;. The last 10 bytes of the encrypted column encryption key are: &apos;{1}&apos;..
  16112. </summary>
  16113. </member>
  16114. <member name="P:System.SR.TCE_LargeCertificatePathLength">
  16115. <summary>
  16116. Looks up a localized string similar to Specified certificate path has {0} bytes, which exceeds maximum length of {1} bytes..
  16117. </summary>
  16118. </member>
  16119. <member name="P:System.SR.TCE_LargeCertificatePathLengthSysErr">
  16120. <summary>
  16121. Looks up a localized string similar to Internal error. Specified certificate path has {0} bytes, which exceeds maximum length of {1} bytes..
  16122. </summary>
  16123. </member>
  16124. <member name="P:System.SR.TCE_MultipleRowsReturnedForAttestationInfo">
  16125. <summary>
  16126. Looks up a localized string similar to Internal error. Error occurred when parsing the results of &apos;{0}&apos;. The attestation information resultset is expected to contain only one row, but it contains multiple rows..
  16127. </summary>
  16128. </member>
  16129. <member name="P:System.SR.TCE_NoAttestationUrlSpecifiedForEnclaveBasedQueryGeneratingEnclavePackage">
  16130. <summary>
  16131. Looks up a localized string similar to Error occured when generating enclave package. Attestation URL has not been specified in the connection string, but the query requires enclave computations. Enclave type is &apos;{0}&apos;..
  16132. </summary>
  16133. </member>
  16134. <member name="P:System.SR.TCE_NoAttestationUrlSpecifiedForEnclaveBasedQuerySpDescribe">
  16135. <summary>
  16136. Looks up a localized string similar to Error occured when reading &apos;{0}&apos; resultset. Attestation URL has not been specified in the connection string, but the query requires enclave computations. Enclave type is &apos;{1}&apos;..
  16137. </summary>
  16138. </member>
  16139. <member name="P:System.SR.TCE_NotSupportedByServer">
  16140. <summary>
  16141. Looks up a localized string similar to {0} instance in use does not support column encryption..
  16142. </summary>
  16143. </member>
  16144. <member name="P:System.SR.TCE_NullArgumentInConstructorInternal">
  16145. <summary>
  16146. Looks up a localized string similar to Internal Error. Null argument &apos;{0}&apos; specified when constructing an object of type &apos;{1}&apos;. &apos;{0}&apos; cannot be null..
  16147. </summary>
  16148. </member>
  16149. <member name="P:System.SR.TCE_NullArgumentInternal">
  16150. <summary>
  16151. Looks up a localized string similar to Internal Error. Argument &apos;{0}&apos; cannot be null when executing method &apos;{1}.{2}&apos;..
  16152. </summary>
  16153. </member>
  16154. <member name="P:System.SR.TCE_NullCertificatePath">
  16155. <summary>
  16156. Looks up a localized string similar to Certificate path cannot be null. Use the following format: &lt;certificate location&gt;{2}&lt;certificate store&gt;{2}&lt;certificate thumbprint&gt;, where &lt;certificate location&gt; is either &apos;{0}&apos; or &apos;{1}&apos;..
  16157. </summary>
  16158. </member>
  16159. <member name="P:System.SR.TCE_NullCertificatePathSysErr">
  16160. <summary>
  16161. Looks up a localized string similar to Internal error. Certificate path cannot be null. Use the following format: &lt;certificate location&gt;{2}&lt;certificate store&gt;{2}&lt;certificate thumbprint&gt;, where &lt;certificate location&gt; is either &apos;{0}&apos; or &apos;{1}&apos;..
  16162. </summary>
  16163. </member>
  16164. <member name="P:System.SR.TCE_NullCipherText">
  16165. <summary>
  16166. Looks up a localized string similar to Internal error. Ciphertext value cannot be null..
  16167. </summary>
  16168. </member>
  16169. <member name="P:System.SR.TCE_NullCngPath">
  16170. <summary>
  16171. Looks up a localized string similar to Column master key path cannot be null. Use the following format for a key stored in a Microsoft Cryptography API: Next Generation (CNG) provider: &lt;CNG Provider Name&gt;{0}&lt;Key Identifier&gt;..
  16172. </summary>
  16173. </member>
  16174. <member name="P:System.SR.TCE_NullCngPathSysErr">
  16175. <summary>
  16176. Looks up a localized string similar to Internal error. Column master key path cannot be null. Use the following format for a key stored in a Microsoft Cryptography API: Next Generation (CNG) provider: &lt;CNG Provider Name&gt;{0}&lt;Key Identifier&gt;..
  16177. </summary>
  16178. </member>
  16179. <member name="P:System.SR.TCE_NullColumnEncryptionAlgorithm">
  16180. <summary>
  16181. Looks up a localized string similar to Internal error. Encryption algorithm cannot be null. Valid algorithms are: {0}..
  16182. </summary>
  16183. </member>
  16184. <member name="P:System.SR.TCE_NullColumnEncryptionKey">
  16185. <summary>
  16186. Looks up a localized string similar to Column encryption key cannot be null..
  16187. </summary>
  16188. </member>
  16189. <member name="P:System.SR.TCE_NullColumnEncryptionKeySysErr">
  16190. <summary>
  16191. Looks up a localized string similar to Internal error. Column encryption key cannot be null..
  16192. </summary>
  16193. </member>
  16194. <member name="P:System.SR.TCE_NullCspPath">
  16195. <summary>
  16196. Looks up a localized string similar to Column master key path cannot be null. Use the following format for a key stored in a Microsoft cryptographic service provider (CSP): &lt;CSP Provider Name&gt;{0}&lt;Key Identifier&gt;..
  16197. </summary>
  16198. </member>
  16199. <member name="P:System.SR.TCE_NullCspPathSysErr">
  16200. <summary>
  16201. Looks up a localized string similar to Internal error. Column master key path cannot be null. Use the following format for a key stored in a Microsoft cryptographic service provider (CSP): &lt;CSP Provider Name&gt;{0}&lt;Key Identifier&gt;..
  16202. </summary>
  16203. </member>
  16204. <member name="P:System.SR.TCE_NullCustomKeyStoreProviderDictionary">
  16205. <summary>
  16206. Looks up a localized string similar to Column encryption key store provider dictionary cannot be null. Expecting a non-null value..
  16207. </summary>
  16208. </member>
  16209. <member name="P:System.SR.TCE_NullEnclavePackageForEnclaveBasedQuery">
  16210. <summary>
  16211. Looks up a localized string similar to Internal Error. Enclave package is null during execution of an enclave based query. Enclave type is &apos;{0}&apos; and enclaveAttestationUrl is &apos;{1}&apos;..
  16212. </summary>
  16213. </member>
  16214. <member name="P:System.SR.TCE_NullEnclaveSessionDuringQueryExecution">
  16215. <summary>
  16216. Looks up a localized string similar to Internal Error. Enclave session is null during query execution. Enclave type is &apos;{0}&apos; and enclaveAttestationUrl is &apos;{1}&apos;..
  16217. </summary>
  16218. </member>
  16219. <member name="P:System.SR.TCE_NullEnclaveSessionReturnedFromProvider">
  16220. <summary>
  16221. Looks up a localized string similar to Unable to communicate with the enclave. Null enclave session information received from the enclave provider. Enclave type is &apos;{0}&apos; and enclave attestation URL is &apos;{1}&apos;..
  16222. </summary>
  16223. </member>
  16224. <member name="P:System.SR.TCE_NullEncryptedColumnEncryptionKey">
  16225. <summary>
  16226. Looks up a localized string similar to Internal error. Encrypted column encryption key cannot be null..
  16227. </summary>
  16228. </member>
  16229. <member name="P:System.SR.TCE_NullKeyEncryptionAlgorithm">
  16230. <summary>
  16231. Looks up a localized string similar to Key encryption algorithm cannot be null..
  16232. </summary>
  16233. </member>
  16234. <member name="P:System.SR.TCE_NullKeyEncryptionAlgorithmSysErr">
  16235. <summary>
  16236. Looks up a localized string similar to Internal error. Key encryption algorithm cannot be null..
  16237. </summary>
  16238. </member>
  16239. <member name="P:System.SR.TCE_NullPlainText">
  16240. <summary>
  16241. Looks up a localized string similar to Internal error. Plaintext value cannot be null..
  16242. </summary>
  16243. </member>
  16244. <member name="P:System.SR.TCE_NullProviderValue">
  16245. <summary>
  16246. Looks up a localized string similar to Null reference specified for key store provider &apos;{0}&apos;. Expecting a non-null value..
  16247. </summary>
  16248. </member>
  16249. <member name="P:System.SR.TCE_OffsetOutOfBounds">
  16250. <summary>
  16251. Looks up a localized string similar to Internal Error. Failed to serialize keys to be sent to the enclave. The start offset specified by argument &apos;{0}&apos; for method {1}.{2} is out of bounds..
  16252. </summary>
  16253. </member>
  16254. <member name="P:System.SR.TCE_ParamDecryptionFailed">
  16255. <summary>
  16256. Looks up a localized string similar to Failed to decrypt parameter &apos;{0}&apos;..
  16257. </summary>
  16258. </member>
  16259. <member name="P:System.SR.TCE_ParamEncryptionFailed">
  16260. <summary>
  16261. Looks up a localized string similar to Failed to encrypt parameter &apos;{0}&apos;..
  16262. </summary>
  16263. </member>
  16264. <member name="P:System.SR.TCE_ParamEncryptionMetaDataMissing">
  16265. <summary>
  16266. Looks up a localized string similar to Internal error. Metadata for parameter &apos;{1}&apos; in statement or procedure &apos;{2}&apos; is missing in resultset returned by {0}..
  16267. </summary>
  16268. </member>
  16269. <member name="P:System.SR.TCE_ParamInvalidForceColumnEncryptionSetting">
  16270. <summary>
  16271. Looks up a localized string similar to Cannot set {0} for {3} &apos;{1}&apos; because encryption is not enabled for the statement or procedure &apos;{2}&apos;..
  16272. </summary>
  16273. </member>
  16274. <member name="P:System.SR.TCE_ParamUnExpectedEncryptionMetadata">
  16275. <summary>
  16276. Looks up a localized string similar to Cannot execute statement or procedure &apos;{1}&apos; because {2} was set for {3} &apos;{0}&apos; and the database expects this parameter to be sent as plaintext. This may be due to a configuration error..
  16277. </summary>
  16278. </member>
  16279. <member name="P:System.SR.TCE_ProcEncryptionMetaDataMissing">
  16280. <summary>
  16281. Looks up a localized string similar to Internal error. Metadata for parameters for command &apos;{1}&apos; in a batch is missing in the resultset returned by {0}..
  16282. </summary>
  16283. </member>
  16284. <member name="P:System.SR.TCE_SequentialAccessNotSupportedOnEncryptedColumn">
  16285. <summary>
  16286. Looks up a localized string similar to Retrieving encrypted column &apos;{0}&apos; with {1} is not supported..
  16287. </summary>
  16288. </member>
  16289. <member name="P:System.SR.TCE_SqlColumnEncryptionEnclaveProviderNameCannotBeEmpty">
  16290. <summary>
  16291. Looks up a localized string similar to Internal Error. SqlColumnEncryptionEnclaveProviderName cannot be null or empty..
  16292. </summary>
  16293. </member>
  16294. <member name="P:System.SR.TCE_StreamNotSupportOnEncryptedColumn">
  16295. <summary>
  16296. Looks up a localized string similar to Retrieving encrypted column &apos;{0}&apos; as a {1} is not supported..
  16297. </summary>
  16298. </member>
  16299. <member name="P:System.SR.TCE_UnableToVerifyColumnMasterKeySignature">
  16300. <summary>
  16301. Looks up a localized string similar to Unable to verify a column master key signature. Error message: {0}.
  16302. </summary>
  16303. </member>
  16304. <member name="P:System.SR.TCE_UnexpectedDescribeParamFormatAttestationInfo">
  16305. <summary>
  16306. Looks up a localized string similar to Internal error. The result returned by &apos;{0}&apos; is invalid. The attestation information resultset is missing for enclave type &apos;{1}&apos;..
  16307. </summary>
  16308. </member>
  16309. <member name="P:System.SR.TCE_UnexpectedDescribeParamFormatParameterMetadata">
  16310. <summary>
  16311. Looks up a localized string similar to Internal error. The result returned by &apos;{0}&apos; is invalid. The parameter metadata resultset is missing..
  16312. </summary>
  16313. </member>
  16314. <member name="P:System.SR.TCE_UnknownColumnEncryptionAlgorithm">
  16315. <summary>
  16316. Looks up a localized string similar to Encryption algorithm &apos;{0}&apos; for the column in the database is either invalid or corrupted. Valid algorithms are: {1}..
  16317. </summary>
  16318. </member>
  16319. <member name="P:System.SR.TCE_UnknownColumnEncryptionAlgorithmId">
  16320. <summary>
  16321. Looks up a localized string similar to Encryption algorithm id &apos;{0}&apos; for the column in the database is either invalid or corrupted. Valid encryption algorithm ids are: {1}..
  16322. </summary>
  16323. </member>
  16324. <member name="P:System.SR.TCE_UnrecognizedKeyStoreProviderName">
  16325. <summary>
  16326. Looks up a localized string similar to Failed to decrypt a column encryption key. Invalid key store provider name: &apos;{0}&apos;. A key store provider name must denote either a system key store provider or a registered custom key store provider. Valid system key store provider names are: {1}. Valid (currently registered) custom key store provider names are: {2}. Please verify key store provider information in column master key definitions in the database, and verify all custom key store providers used in your application are registered properly..
  16327. </summary>
  16328. </member>
  16329. <member name="P:System.SR.TCE_UnsupportedDatatype">
  16330. <summary>
  16331. Looks up a localized string similar to Encryption and decryption of data type &apos;{0}&apos; is not supported..
  16332. </summary>
  16333. </member>
  16334. <member name="P:System.SR.TCE_UnsupportedNormalizationVersion">
  16335. <summary>
  16336. Looks up a localized string similar to Normalization version &apos;{0}&apos; received from {2} is not supported. Valid normalization versions are: {1}..
  16337. </summary>
  16338. </member>
  16339. <member name="P:System.SR.TCE_UntrustedKeyPath">
  16340. <summary>
  16341. Looks up a localized string similar to Column master key path &apos;{0}&apos; received from server &apos;{1}&apos; is not a trusted key path..
  16342. </summary>
  16343. </member>
  16344. <member name="P:System.SR.VerifyEnclaveDebuggable">
  16345. <summary>
  16346. Looks up a localized string similar to Failed to check if the enclave is running in the production mode. Contact Customer Support Services..
  16347. </summary>
  16348. </member>
  16349. <member name="P:System.SR.VerifyEnclavePolicyFailedFormat">
  16350. <summary>
  16351. Looks up a localized string similar to Could not verify enclave policy due to a difference between the expected and actual values of the policy on property &apos;{0}&apos;. Actual: &apos;{1}&apos;, Expected: &apos;{2}&apos;..
  16352. </summary>
  16353. </member>
  16354. <member name="P:System.SR.VerifyEnclaveReportFailed">
  16355. <summary>
  16356. Looks up a localized string similar to Signature verification of the enclave report failed. The report signature does not match the signature computed using the HGS root certificate. Verify the DNS mapping for the endpoint. If correct, contact Customer Support Services..
  16357. </summary>
  16358. </member>
  16359. <member name="P:System.SR.VerifyEnclaveReportFormatFailed">
  16360. <summary>
  16361. Looks up a localized string similar to The enclave report received from SQL Server is not in the correct format. Contact Customer Support Services..
  16362. </summary>
  16363. </member>
  16364. <member name="P:System.SR.VerifyHealthCertificateChainFormat">
  16365. <summary>
  16366. Looks up a localized string similar to Failed to build a chain of trust between the enclave host&apos;s health report and the HGS root certificate for attestation URL &apos;{0}&apos; with status: &apos;{1}&apos;. Verify the attestation URL matches the URL configured on the SQL Server machine. If both the client and SQL Server use the same attestation service, contact Customer Support Services..
  16367. </summary>
  16368. </member>
  16369. <member name="T:Interop.Kernel32.IoControlCodeAccess">
  16370. <summary>
  16371. <a href="https://docs.microsoft.com/en-us/windows-hardware/drivers/kernel/defining-i-o-control-codes">RequiredAccess</a>.
  16372. Indicates the type of access that a caller must request when opening the file object that represents the device (see IRP_MJ_CREATE).
  16373. </summary>
  16374. </member>
  16375. <member name="F:Interop.Kernel32.IoControlCodeAccess.FILE_ANY_ACCESS">
  16376. <summary>
  16377. The I/O manager sends the IRP for any caller that has a handle to the file object that represents the target device object.
  16378. </summary>
  16379. </member>
  16380. <member name="F:Interop.Kernel32.IoControlCodeAccess.FILE_READ_DATA">
  16381. <summary>
  16382. The I/O manager sends the IRP only for a caller with read access rights, allowing the underlying device driver to transfer
  16383. data from the device to system memory.
  16384. </summary>
  16385. </member>
  16386. <member name="F:Interop.Kernel32.IoControlCodeAccess.FILE_WRITE_DATA">
  16387. <summary>
  16388. The I/O manager sends the IRP only for a caller with write access rights, allowing the underlying device driver to transfer
  16389. data from system memory to its device.
  16390. </summary>
  16391. </member>
  16392. <member name="M:Interop.Kernel32.CTL_CODE(System.UInt16,System.UInt16,System.Byte,System.Byte)">
  16393. <summary> <a href="https://docs.microsoft.com/en-us/windows-hardware/drivers/kernel/defining-i-o-control-codes">CTL_CODE</a> method.</summary>
  16394. <param name="deviceType">Identifies the device type. This value must match the value that is set in the DeviceType member of the driver's DEVICE_OBJECT structure.</param>
  16395. <param name="function">Identifies the function to be performed by the driver. Values of less than 0x800 are reserved for Microsoft. Values of 0x800 and higher can be used by vendors.</param>
  16396. <param name="method">Indicates how the system will pass data between the caller of DeviceIoControl (or IoBuildDeviceIoControlRequest) and the driver that handles the IRP.</param>
  16397. <param name="access">Indicates the type of access that a caller must request when opening the file object that represents the device (see IRP_MJ_CREATE).</param>
  16398. </member>
  16399. <member name="T:Interop.Kernel32.IoControlTransferType">
  16400. <summary>
  16401. <a href="https://docs.microsoft.com/en-us/windows-hardware/drivers/kernel/buffer-descriptions-for-i-o-control-codes">TransferType</a>.
  16402. Indicates how the system will pass data between the caller of DeviceIoControl (or IoBuildDeviceIoControlRequest) and the driver that handles the IRP.
  16403. </summary>
  16404. </member>
  16405. <member name="F:Interop.Kernel32.IoControlTransferType.METHOD_BUFFERED">
  16406. <summary>
  16407. Specifies the buffered I/O method, which is typically used for transferring small amounts of data per request.
  16408. Most I/O control codes for device and intermediate drivers use this TransferType value.
  16409. </summary>
  16410. </member>
  16411. <member name="F:Interop.Kernel32.IoControlTransferType.METHOD_IN_DIRECT">
  16412. <summary>
  16413. Specifies the direct I/O method, which is typically used for reading or writing large amounts of data, using DMA or PIO, that must be transferred quickly.
  16414. Specify METHOD_IN_DIRECT if the caller of DeviceIoControl or IoBuildDeviceIoControlRequest will pass data to the driver.
  16415. </summary>
  16416. </member>
  16417. <member name="F:Interop.Kernel32.IoControlTransferType.METHOD_OUT_DIRECT">
  16418. <summary>
  16419. Specifies the direct I/O method, which is typically used for reading or writing large amounts of data, using DMA or PIO, that must be transferred quickly.
  16420. Specify METHOD_OUT_DIRECT if the caller of DeviceIoControl or IoBuildDeviceIoControlRequest will receive data from the driver.
  16421. </summary>
  16422. </member>
  16423. <member name="F:Interop.Kernel32.IoControlTransferType.METHOD_NEITHER">
  16424. <summary>
  16425. Specifies neither buffered nor direct I/O. The I/O manager does not provide any system buffers or MDLs. The IRP supplies the user-mode virtual addresses
  16426. of the input and output buffers that were specified to DeviceIoControl or IoBuildDeviceIoControlRequest, without validating or mapping them.
  16427. </summary>
  16428. </member>
  16429. <member name="F:Interop.UNICODE_STRING.Length">
  16430. <summary>
  16431. Length, in bytes, not including the the null, if any.
  16432. </summary>
  16433. </member>
  16434. <member name="F:Interop.UNICODE_STRING.MaximumLength">
  16435. <summary>
  16436. Max size of the buffer in bytes
  16437. </summary>
  16438. </member>
  16439. <member name="T:Interop.NtDll.FILE_FULL_EA_INFORMATION">
  16440. <summary>
  16441. <a href="https://docs.microsoft.com/en-us/windows-hardware/drivers/ddi/content/wdm/ns-wdm-_file_full_ea_information">FILE_FULL_EA_INFORMATION</a> structure.
  16442. Provides extended attribute (EA) information. This structure is used primarily by network drivers.
  16443. </summary>
  16444. </member>
  16445. <member name="F:Interop.NtDll.FILE_FULL_EA_INFORMATION.NextEntryOffset">
  16446. <summary>
  16447. The offset of the next FILE_FULL_EA_INFORMATION-type entry. This member is zero if no other entries follow this one.
  16448. </summary>
  16449. </member>
  16450. <member name="F:Interop.NtDll.FILE_FULL_EA_INFORMATION.Flags">
  16451. <summary>
  16452. Can be zero or can be set with FILE_NEED_EA, indicating that the file to which the EA belongs cannot be interpreted without understanding the associated extended attributes.
  16453. </summary>
  16454. </member>
  16455. <member name="F:Interop.NtDll.FILE_FULL_EA_INFORMATION.EaNameLength">
  16456. <summary>
  16457. The length in bytes of the EaName array. This value does not include a null-terminator to EaName.
  16458. </summary>
  16459. </member>
  16460. <member name="F:Interop.NtDll.FILE_FULL_EA_INFORMATION.EaValueLength">
  16461. <summary>
  16462. The length in bytes of each EA value in the array.
  16463. </summary>
  16464. </member>
  16465. <member name="F:Interop.NtDll.IO_STATUS_BLOCK.Status">
  16466. <summary>
  16467. Status
  16468. </summary>
  16469. </member>
  16470. <member name="F:Interop.NtDll.IO_STATUS_BLOCK.Information">
  16471. <summary>
  16472. Request dependent value.
  16473. </summary>
  16474. </member>
  16475. <member name="F:Interop.NtDll.IO_STATUS_BLOCK.IO_STATUS.Status">
  16476. <summary>
  16477. The completion status, either STATUS_SUCCESS if the operation was completed successfully or
  16478. some other informational, warning, or error status.
  16479. </summary>
  16480. </member>
  16481. <member name="F:Interop.NtDll.IO_STATUS_BLOCK.IO_STATUS.Pointer">
  16482. <summary>
  16483. Reserved for internal use.
  16484. </summary>
  16485. </member>
  16486. <member name="T:Interop.NtDll.OBJECT_ATTRIBUTES">
  16487. <summary>
  16488. <a href="https://msdn.microsoft.com/en-us/library/windows/hardware/ff557749.aspx">OBJECT_ATTRIBUTES</a> structure.
  16489. The OBJECT_ATTRIBUTES structure specifies attributes that can be applied to objects or object handles by routines
  16490. that create objects and/or return handles to objects.
  16491. </summary>
  16492. </member>
  16493. <member name="F:Interop.NtDll.OBJECT_ATTRIBUTES.RootDirectory">
  16494. <summary>
  16495. Optional handle to root object directory for the given ObjectName.
  16496. Can be a file system directory or object manager directory.
  16497. </summary>
  16498. </member>
  16499. <member name="F:Interop.NtDll.OBJECT_ATTRIBUTES.ObjectName">
  16500. <summary>
  16501. Name of the object. Must be fully qualified if RootDirectory isn't set.
  16502. Otherwise is relative to RootDirectory.
  16503. </summary>
  16504. </member>
  16505. <member name="F:Interop.NtDll.OBJECT_ATTRIBUTES.SecurityDescriptor">
  16506. <summary>
  16507. If null, object will receive default security settings.
  16508. </summary>
  16509. </member>
  16510. <member name="F:Interop.NtDll.OBJECT_ATTRIBUTES.SecurityQualityOfService">
  16511. <summary>
  16512. Optional quality of service to be applied to the object. Used to indicate
  16513. security impersonation level and context tracking mode (dynamic or static).
  16514. </summary>
  16515. </member>
  16516. <member name="M:Interop.NtDll.OBJECT_ATTRIBUTES.#ctor(Interop.UNICODE_STRING*,Interop.NtDll.ObjectAttributes,System.IntPtr)">
  16517. <summary>
  16518. Equivalent of InitializeObjectAttributes macro with the exception that you can directly set SQOS.
  16519. </summary>
  16520. </member>
  16521. <member name="F:Interop.NtDll.ObjectAttributes.OBJ_INHERIT">
  16522. <summary>
  16523. This handle can be inherited by child processes of the current process.
  16524. </summary>
  16525. </member>
  16526. <member name="F:Interop.NtDll.ObjectAttributes.OBJ_PERMANENT">
  16527. <summary>
  16528. This flag only applies to objects that are named within the object manager.
  16529. By default, such objects are deleted when all open handles to them are closed.
  16530. If this flag is specified, the object is not deleted when all open handles are closed.
  16531. </summary>
  16532. </member>
  16533. <member name="F:Interop.NtDll.ObjectAttributes.OBJ_EXCLUSIVE">
  16534. <summary>
  16535. Only a single handle can be open for this object.
  16536. </summary>
  16537. </member>
  16538. <member name="F:Interop.NtDll.ObjectAttributes.OBJ_CASE_INSENSITIVE">
  16539. <summary>
  16540. Lookups for this object should be case insensitive.
  16541. </summary>
  16542. </member>
  16543. <member name="F:Interop.NtDll.ObjectAttributes.OBJ_OPENIF">
  16544. <summary>
  16545. Create on existing object should open, not fail with STATUS_OBJECT_NAME_COLLISION.
  16546. </summary>
  16547. </member>
  16548. <member name="F:Interop.NtDll.ObjectAttributes.OBJ_OPENLINK">
  16549. <summary>
  16550. Open the symbolic link, not its target.
  16551. </summary>
  16552. </member>
  16553. <member name="T:Interop.NtDll.CreateDisposition">
  16554. <summary>
  16555. File creation disposition when calling directly to NT APIs.
  16556. </summary>
  16557. </member>
  16558. <member name="F:Interop.NtDll.CreateDisposition.FILE_SUPERSEDE">
  16559. <summary>
  16560. Default. Replace or create. Deletes existing file instead of overwriting.
  16561. </summary>
  16562. <remarks>
  16563. As this potentially deletes it requires that DesiredAccess must include Delete.
  16564. This has no equivalent in CreateFile.
  16565. </remarks>
  16566. </member>
  16567. <member name="F:Interop.NtDll.CreateDisposition.FILE_OPEN">
  16568. <summary>
  16569. Open if exists or fail if doesn't exist. Equivalent to OPEN_EXISTING or
  16570. <see cref="F:System.IO.FileMode.Open"/>.
  16571. </summary>
  16572. <remarks>
  16573. TruncateExisting also uses Open and then manually truncates the file
  16574. by calling NtSetInformationFile with FileAllocationInformation and an
  16575. allocation size of 0.
  16576. </remarks>
  16577. </member>
  16578. <member name="F:Interop.NtDll.CreateDisposition.FILE_CREATE">
  16579. <summary>
  16580. Create if doesn't exist or fail if does exist. Equivalent to CREATE_NEW
  16581. or <see cref="F:System.IO.FileMode.CreateNew"/>.
  16582. </summary>
  16583. </member>
  16584. <member name="F:Interop.NtDll.CreateDisposition.FILE_OPEN_IF">
  16585. <summary>
  16586. Open if exists or create if doesn't exist. Equivalent to OPEN_ALWAYS or
  16587. <see cref="F:System.IO.FileMode.OpenOrCreate"/>.
  16588. </summary>
  16589. </member>
  16590. <member name="F:Interop.NtDll.CreateDisposition.FILE_OVERWRITE">
  16591. <summary>
  16592. Open and overwrite if exists or fail if doesn't exist. Equivalent to
  16593. TRUNCATE_EXISTING or <see cref="F:System.IO.FileMode.Truncate"/>.
  16594. </summary>
  16595. </member>
  16596. <member name="F:Interop.NtDll.CreateDisposition.FILE_OVERWRITE_IF">
  16597. <summary>
  16598. Open and overwrite if exists or create if doesn't exist. Equivalent to
  16599. CREATE_ALWAYS or <see cref="F:System.IO.FileMode.Create"/>.
  16600. </summary>
  16601. </member>
  16602. <member name="T:Interop.NtDll.CreateOptions">
  16603. <summary>
  16604. Options for creating/opening files with NtCreateFile.
  16605. </summary>
  16606. </member>
  16607. <member name="F:Interop.NtDll.CreateOptions.FILE_DIRECTORY_FILE">
  16608. <summary>
  16609. File being created or opened must be a directory file. Disposition must be FILE_CREATE, FILE_OPEN,
  16610. or FILE_OPEN_IF.
  16611. </summary>
  16612. <remarks>
  16613. Can only be used with FILE_SYNCHRONOUS_IO_ALERT/NONALERT, FILE_WRITE_THROUGH, FILE_OPEN_FOR_BACKUP_INTENT,
  16614. and FILE_OPEN_BY_FILE_ID flags.
  16615. </remarks>
  16616. </member>
  16617. <member name="F:Interop.NtDll.CreateOptions.FILE_WRITE_THROUGH">
  16618. <summary>
  16619. Applications that write data to the file must actually transfer the data into
  16620. the file before any requested write operation is considered complete. This flag
  16621. is set automatically if FILE_NO_INTERMEDIATE_BUFFERING is set.
  16622. </summary>
  16623. </member>
  16624. <member name="F:Interop.NtDll.CreateOptions.FILE_SEQUENTIAL_ONLY">
  16625. <summary>
  16626. All accesses to the file are sequential.
  16627. </summary>
  16628. </member>
  16629. <member name="F:Interop.NtDll.CreateOptions.FILE_NO_INTERMEDIATE_BUFFERING">
  16630. <summary>
  16631. File cannot be cached in driver buffers. Cannot use with AppendData desired access.
  16632. </summary>
  16633. </member>
  16634. <member name="F:Interop.NtDll.CreateOptions.FILE_SYNCHRONOUS_IO_ALERT">
  16635. <summary>
  16636. All operations are performed synchronously. Any wait on behalf of the caller is
  16637. subject to premature termination from alerts.
  16638. </summary>
  16639. <remarks>
  16640. Cannot be used with FILE_SYNCHRONOUS_IO_NONALERT.
  16641. Synchronous DesiredAccess flag is required. I/O system will maintain file position context.
  16642. </remarks>
  16643. </member>
  16644. <member name="F:Interop.NtDll.CreateOptions.FILE_SYNCHRONOUS_IO_NONALERT">
  16645. <summary>
  16646. All operations are performed synchronously. Waits in the system to synchronize I/O queuing
  16647. and completion are not subject to alerts.
  16648. </summary>
  16649. <remarks>
  16650. Cannot be used with FILE_SYNCHRONOUS_IO_ALERT.
  16651. Synchronous DesiredAccess flag is required. I/O system will maintain file position context.
  16652. </remarks>
  16653. </member>
  16654. <member name="F:Interop.NtDll.CreateOptions.FILE_NON_DIRECTORY_FILE">
  16655. <summary>
  16656. File being created or opened must not be a directory file. Can be a data file, device,
  16657. or volume.
  16658. </summary>
  16659. </member>
  16660. <member name="F:Interop.NtDll.CreateOptions.FILE_CREATE_TREE_CONNECTION">
  16661. <summary>
  16662. Create a tree connection for this file in order to open it over the network.
  16663. </summary>
  16664. <remarks>
  16665. Not used by device and intermediate drivers.
  16666. </remarks>
  16667. </member>
  16668. <member name="F:Interop.NtDll.CreateOptions.FILE_COMPLETE_IF_OPLOCKED">
  16669. <summary>
  16670. Complete the operation immediately with a success code of STATUS_OPLOCK_BREAK_IN_PROGRESS if
  16671. the target file is oplocked.
  16672. </summary>
  16673. <remarks>
  16674. Not compatible with ReserveOpfilter or OpenRequiringOplock.
  16675. Not used by device and intermediate drivers.
  16676. </remarks>
  16677. </member>
  16678. <member name="F:Interop.NtDll.CreateOptions.FILE_NO_EA_KNOWLEDGE">
  16679. <summary>
  16680. If the extended attributes on an existing file being opened indicate that the caller must
  16681. understand extended attributes to properly interpret the file, fail the request.
  16682. </summary>
  16683. <remarks>
  16684. Not used by device and intermediate drivers.
  16685. </remarks>
  16686. </member>
  16687. <member name="F:Interop.NtDll.CreateOptions.FILE_RANDOM_ACCESS">
  16688. <summary>
  16689. Accesses to the file can be random, so no sequential read-ahead operations should be performed
  16690. on the file by FSDs or the system.
  16691. </summary>
  16692. </member>
  16693. <member name="F:Interop.NtDll.CreateOptions.FILE_DELETE_ON_CLOSE">
  16694. <summary>
  16695. Delete the file when the last handle to it is passed to NtClose. Requires Delete flag in
  16696. DesiredAccess parameter.
  16697. </summary>
  16698. </member>
  16699. <member name="F:Interop.NtDll.CreateOptions.FILE_OPEN_BY_FILE_ID">
  16700. <summary>
  16701. Open the file by reference number or object ID. The file name that is specified by the ObjectAttributes
  16702. name parameter includes the 8 or 16 byte file reference number or ID for the file in the ObjectAttributes
  16703. name field. The device name can optionally be prefixed.
  16704. </summary>
  16705. <remarks>
  16706. NTFS supports both reference numbers and object IDs. 16 byte reference numbers are 8 byte numbers padded
  16707. with zeros. ReFS only supports reference numbers (not object IDs). 8 byte and 16 byte reference numbers
  16708. are not related. Note that as the UNICODE_STRING will contain raw byte data, it may not be a "valid" string.
  16709. Not used by device and intermediate drivers.
  16710. </remarks>
  16711. <example>
  16712. \??\C:\{8 bytes of binary FileID}
  16713. \device\HardDiskVolume1\{16 bytes of binary ObjectID}
  16714. {8 bytes of binary FileID}
  16715. </example>
  16716. </member>
  16717. <member name="F:Interop.NtDll.CreateOptions.FILE_OPEN_FOR_BACKUP_INTENT">
  16718. <summary>
  16719. The file is being opened for backup intent. Therefore, the system should check for certain access rights
  16720. and grant the caller the appropriate access to the file before checking the DesiredAccess parameter
  16721. against the file's security descriptor.
  16722. </summary>
  16723. <remarks>
  16724. Not used by device and intermediate drivers.
  16725. </remarks>
  16726. </member>
  16727. <member name="F:Interop.NtDll.CreateOptions.FILE_NO_COMPRESSION">
  16728. <summary>
  16729. When creating a file, specifies that it should not inherit the compression bit from the parent directory.
  16730. </summary>
  16731. </member>
  16732. <member name="F:Interop.NtDll.CreateOptions.FILE_OPEN_REQUIRING_OPLOCK">
  16733. <summary>
  16734. The file is being opened and an opportunistic lock (oplock) on the file is being requested as a single atomic
  16735. operation.
  16736. </summary>
  16737. <remarks>
  16738. The file system checks for oplocks before it performs the create operation and will fail the create with a
  16739. return code of STATUS_CANNOT_BREAK_OPLOCK if the result would be to break an existing oplock.
  16740. Not compatible with CompleteIfOplocked or ReserveOpFilter. Windows 7 and up.
  16741. </remarks>
  16742. </member>
  16743. <member name="F:Interop.NtDll.CreateOptions.FILE_DISALLOW_EXCLUSIVE">
  16744. <summary>
  16745. CreateFile2 uses this flag to prevent opening a file that you don't have access to without specifying
  16746. FILE_SHARE_READ. (Preventing users that can only read a file from denying access to other readers.)
  16747. </summary>
  16748. <remarks>
  16749. Windows 7 and up.
  16750. </remarks>
  16751. </member>
  16752. <member name="F:Interop.NtDll.CreateOptions.FILE_SESSION_AWARE">
  16753. <summary>
  16754. The client opening the file or device is session aware and per session access is validated if necessary.
  16755. </summary>
  16756. <remarks>
  16757. Windows 8 and up.
  16758. </remarks>
  16759. </member>
  16760. <member name="F:Interop.NtDll.CreateOptions.FILE_RESERVE_OPFILTER">
  16761. <summary>
  16762. This flag allows an application to request a filter opportunistic lock (oplock) to prevent other applications
  16763. from getting share violations.
  16764. </summary>
  16765. <remarks>
  16766. Not compatible with CompleteIfOplocked or OpenRequiringOplock.
  16767. If there are already open handles, the create request will fail with STATUS_OPLOCK_NOT_GRANTED.
  16768. </remarks>
  16769. </member>
  16770. <member name="F:Interop.NtDll.CreateOptions.FILE_OPEN_REPARSE_POINT">
  16771. <summary>
  16772. Open a file with a reparse point attribute, bypassing the normal reparse point processing.
  16773. </summary>
  16774. </member>
  16775. <member name="F:Interop.NtDll.CreateOptions.FILE_OPEN_NO_RECALL">
  16776. <summary>
  16777. Causes files that are marked with the Offline attribute not to be recalled from remote storage.
  16778. </summary>
  16779. <remarks>
  16780. More details can be found in Remote Storage documentation (see Basic Concepts).
  16781. https://technet.microsoft.com/en-us/library/cc938459.aspx
  16782. </remarks>
  16783. </member>
  16784. <member name="T:Interop.NtDll.DesiredAccess">
  16785. <summary>
  16786. System.IO.FileAccess looks up these values when creating handles
  16787. </summary>
  16788. <remarks>
  16789. File Security and Access Rights
  16790. https://msdn.microsoft.com/en-us/library/windows/desktop/aa364399.aspx
  16791. </remarks>
  16792. </member>
  16793. <member name="F:Interop.NtDll.DesiredAccess.FILE_READ_DATA">
  16794. <summary>
  16795. For a file, the right to read data from the file.
  16796. </summary>
  16797. <remarks>
  16798. Directory version of this flag is <see cref="F:Interop.NtDll.DesiredAccess.FILE_LIST_DIRECTORY"/>.
  16799. </remarks>
  16800. </member>
  16801. <member name="F:Interop.NtDll.DesiredAccess.FILE_LIST_DIRECTORY">
  16802. <summary>
  16803. For a directory, the right to list the contents.
  16804. </summary>
  16805. <remarks>
  16806. File version of this flag is <see cref="F:Interop.NtDll.DesiredAccess.FILE_READ_DATA"/>.
  16807. </remarks>
  16808. </member>
  16809. <member name="F:Interop.NtDll.DesiredAccess.FILE_WRITE_DATA">
  16810. <summary>
  16811. For a file, the right to write data to the file.
  16812. </summary>
  16813. <remarks>
  16814. Directory version of this flag is <see cref="F:Interop.NtDll.DesiredAccess.FILE_ADD_FILE"/>.
  16815. </remarks>
  16816. </member>
  16817. <member name="F:Interop.NtDll.DesiredAccess.FILE_ADD_FILE">
  16818. <summary>
  16819. For a directory, the right to create a file in a directory.
  16820. </summary>
  16821. <remarks>
  16822. File version of this flag is <see cref="F:Interop.NtDll.DesiredAccess.FILE_WRITE_DATA"/>.
  16823. </remarks>
  16824. </member>
  16825. <member name="F:Interop.NtDll.DesiredAccess.FILE_APPEND_DATA">
  16826. <summary>
  16827. For a file, the right to append data to a file. <see cref="F:Interop.NtDll.DesiredAccess.FILE_WRITE_DATA"/> is needed
  16828. to overwrite existing data.
  16829. </summary>
  16830. <remarks>
  16831. Directory version of this flag is <see cref="F:Interop.NtDll.DesiredAccess.FILE_ADD_SUBDIRECTORY"/>.
  16832. </remarks>
  16833. </member>
  16834. <member name="F:Interop.NtDll.DesiredAccess.FILE_ADD_SUBDIRECTORY">
  16835. <summary>
  16836. For a directory, the right to create a subdirectory.
  16837. </summary>
  16838. <remarks>
  16839. File version of this flag is <see cref="F:Interop.NtDll.DesiredAccess.FILE_APPEND_DATA"/>.
  16840. </remarks>
  16841. </member>
  16842. <member name="F:Interop.NtDll.DesiredAccess.FILE_CREATE_PIPE_INSTANCE">
  16843. <summary>
  16844. For a named pipe, the right to create a pipe instance.
  16845. </summary>
  16846. </member>
  16847. <member name="F:Interop.NtDll.DesiredAccess.FILE_READ_EA">
  16848. <summary>
  16849. The right to read extended attributes.
  16850. </summary>
  16851. </member>
  16852. <member name="F:Interop.NtDll.DesiredAccess.FILE_WRITE_EA">
  16853. <summary>
  16854. The right to write extended attributes.
  16855. </summary>
  16856. </member>
  16857. <member name="F:Interop.NtDll.DesiredAccess.FILE_EXECUTE">
  16858. <summary>
  16859. The right to execute the file.
  16860. </summary>
  16861. <remarks>
  16862. Directory version of this flag is <see cref="F:Interop.NtDll.DesiredAccess.FILE_TRAVERSE"/>.
  16863. </remarks>
  16864. </member>
  16865. <member name="F:Interop.NtDll.DesiredAccess.FILE_TRAVERSE">
  16866. <summary>
  16867. For a directory, the right to traverse the directory.
  16868. </summary>
  16869. <remarks>
  16870. File version of this flag is <see cref="F:Interop.NtDll.DesiredAccess.FILE_EXECUTE"/>.
  16871. </remarks>
  16872. </member>
  16873. <member name="F:Interop.NtDll.DesiredAccess.FILE_DELETE_CHILD">
  16874. <summary>
  16875. For a directory, the right to delete a directory and all
  16876. the files it contains, including read-only files.
  16877. </summary>
  16878. </member>
  16879. <member name="F:Interop.NtDll.DesiredAccess.FILE_READ_ATTRIBUTES">
  16880. <summary>
  16881. The right to read attributes.
  16882. </summary>
  16883. </member>
  16884. <member name="F:Interop.NtDll.DesiredAccess.FILE_WRITE_ATTRIBUTES">
  16885. <summary>
  16886. The right to write attributes.
  16887. </summary>
  16888. </member>
  16889. <member name="F:Interop.NtDll.DesiredAccess.FILE_ALL_ACCESS">
  16890. <summary>
  16891. All standard and specific rights. [FILE_ALL_ACCESS]
  16892. </summary>
  16893. </member>
  16894. <member name="F:Interop.NtDll.DesiredAccess.DELETE">
  16895. <summary>
  16896. The right to delete the object.
  16897. </summary>
  16898. </member>
  16899. <member name="F:Interop.NtDll.DesiredAccess.READ_CONTROL">
  16900. <summary>
  16901. The right to read the information in the object's security descriptor.
  16902. Doesn't include system access control list info (SACL).
  16903. </summary>
  16904. </member>
  16905. <member name="F:Interop.NtDll.DesiredAccess.WRITE_DAC">
  16906. <summary>
  16907. The right to modify the discretionary access control list (DACL) in the
  16908. object's security descriptor.
  16909. </summary>
  16910. </member>
  16911. <member name="F:Interop.NtDll.DesiredAccess.WRITE_OWNER">
  16912. <summary>
  16913. The right to change the owner in the object's security descriptor.
  16914. </summary>
  16915. </member>
  16916. <member name="F:Interop.NtDll.DesiredAccess.SYNCHRONIZE">
  16917. <summary>
  16918. The right to use the object for synchronization. Enables a thread to wait until the object
  16919. is in the signaled state. This is required if opening a synchronous handle.
  16920. </summary>
  16921. </member>
  16922. <member name="F:Interop.NtDll.DesiredAccess.STANDARD_RIGHTS_READ">
  16923. <summary>
  16924. Same as READ_CONTROL.
  16925. </summary>
  16926. </member>
  16927. <member name="F:Interop.NtDll.DesiredAccess.STANDARD_RIGHTS_WRITE">
  16928. <summary>
  16929. Same as READ_CONTROL.
  16930. </summary>
  16931. </member>
  16932. <member name="F:Interop.NtDll.DesiredAccess.STANDARD_RIGHTS_EXECUTE">
  16933. <summary>
  16934. Same as READ_CONTROL.
  16935. </summary>
  16936. </member>
  16937. <member name="F:Interop.NtDll.DesiredAccess.FILE_GENERIC_READ">
  16938. <summary>
  16939. Maps internally to <see cref="F:Interop.NtDll.DesiredAccess.FILE_READ_ATTRIBUTES"/> | <see cref="F:Interop.NtDll.DesiredAccess.FILE_READ_DATA"/> | <see cref="F:Interop.NtDll.DesiredAccess.FILE_READ_EA"/>
  16940. | <see cref="F:Interop.NtDll.DesiredAccess.STANDARD_RIGHTS_READ"/> | <see cref="F:Interop.NtDll.DesiredAccess.SYNCHRONIZE"/>.
  16941. (For directories, <see cref="F:Interop.NtDll.DesiredAccess.FILE_READ_ATTRIBUTES"/> | <see cref="F:Interop.NtDll.DesiredAccess.FILE_LIST_DIRECTORY"/> | <see cref="F:Interop.NtDll.DesiredAccess.FILE_READ_EA"/>
  16942. | <see cref="F:Interop.NtDll.DesiredAccess.STANDARD_RIGHTS_READ"/> | <see cref="F:Interop.NtDll.DesiredAccess.SYNCHRONIZE"/>.)
  16943. </summary>
  16944. </member>
  16945. <member name="F:Interop.NtDll.DesiredAccess.FILE_GENERIC_WRITE">
  16946. <summary>
  16947. Maps internally to <see cref="F:Interop.NtDll.DesiredAccess.FILE_APPEND_DATA"/> | <see cref="F:Interop.NtDll.DesiredAccess.FILE_WRITE_ATTRIBUTES"/> | <see cref="F:Interop.NtDll.DesiredAccess.FILE_WRITE_DATA"/>
  16948. | <see cref="F:Interop.NtDll.DesiredAccess.FILE_WRITE_EA"/> | <see cref="F:Interop.NtDll.DesiredAccess.STANDARD_RIGHTS_READ"/> | <see cref="F:Interop.NtDll.DesiredAccess.SYNCHRONIZE"/>.
  16949. (For directories, <see cref="F:Interop.NtDll.DesiredAccess.FILE_ADD_SUBDIRECTORY"/> | <see cref="F:Interop.NtDll.DesiredAccess.FILE_WRITE_ATTRIBUTES"/> | <see cref="F:Interop.NtDll.DesiredAccess.FILE_ADD_FILE"/> AddFile
  16950. | <see cref="F:Interop.NtDll.DesiredAccess.FILE_WRITE_EA"/> | <see cref="F:Interop.NtDll.DesiredAccess.STANDARD_RIGHTS_READ"/> | <see cref="F:Interop.NtDll.DesiredAccess.SYNCHRONIZE"/>.)
  16951. </summary>
  16952. </member>
  16953. <member name="F:Interop.NtDll.DesiredAccess.FILE_GENERIC_EXECUTE">
  16954. <summary>
  16955. Maps internally to <see cref="F:Interop.NtDll.DesiredAccess.FILE_EXECUTE"/> | <see cref="F:Interop.NtDll.DesiredAccess.FILE_READ_ATTRIBUTES"/> | <see cref="F:Interop.NtDll.DesiredAccess.STANDARD_RIGHTS_EXECUTE"/>
  16956. | <see cref="F:Interop.NtDll.DesiredAccess.SYNCHRONIZE"/>.
  16957. (For directories, <see cref="F:Interop.NtDll.DesiredAccess.FILE_DELETE_CHILD"/> | <see cref="F:Interop.NtDll.DesiredAccess.FILE_READ_ATTRIBUTES"/> | <see cref="F:Interop.NtDll.DesiredAccess.STANDARD_RIGHTS_EXECUTE"/>
  16958. | <see cref="F:Interop.NtDll.DesiredAccess.SYNCHRONIZE"/>.)
  16959. </summary>
  16960. </member>
  16961. </members>
  16962. </doc>