DBDataPermission.xml 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <Type Name="DBDataPermission" FullName="System.Data.Common.DBDataPermission">
  3. <TypeSignature Language="C#" Maintainer="auto" Value="public abstract class DBDataPermission : System.Security.CodeAccessPermission, System.Security.Permissions.IUnrestrictedPermission" />
  4. <AssemblyInfo>
  5. <AssemblyName>System.Data</AssemblyName>
  6. <AssemblyPublicKey>[00 00 00 00 00 00 00 00 04 00 00 00 00 00 00 00]</AssemblyPublicKey>
  7. <AssemblyVersion>1.0.3300.0</AssemblyVersion>
  8. <AssemblyVersion>1.0.5000.0</AssemblyVersion>
  9. <AssemblyVersion>2.0.0.0</AssemblyVersion>
  10. </AssemblyInfo>
  11. <ThreadSafetyStatement>Gtk# is thread aware, but not thread safe; See the &lt;link location="node:gtk-sharp/programming/threads"&gt;Gtk# Thread Programming&lt;/link&gt; for details.</ThreadSafetyStatement>
  12. <Base>
  13. <BaseTypeName>System.Security.CodeAccessPermission</BaseTypeName>
  14. </Base>
  15. <Interfaces>
  16. <Interface>
  17. <InterfaceName>System.Security.Permissions.IUnrestrictedPermission</InterfaceName>
  18. </Interface>
  19. </Interfaces>
  20. <Docs>
  21. <remarks>To be added</remarks>
  22. <summary>
  23. <attribution license="cc4" from="Microsoft" modified="false" />
  24. <para>Enables a .NET Framework data provider to help ensure that a user has a security level adequate for accessing data.</para>
  25. </summary>
  26. </Docs>
  27. <Members>
  28. <Member MemberName=".ctor">
  29. <MemberSignature Language="C#" Value="protected DBDataPermission ();" />
  30. <MemberType>Constructor</MemberType>
  31. <ReturnValue />
  32. <Parameters />
  33. <Docs>
  34. <remarks>To be added</remarks>
  35. <summary>
  36. <attribution license="cc4" from="Microsoft" modified="false" />
  37. <para>Initializes a new instance of a DBDataPermission class.</para>
  38. </summary>
  39. </Docs>
  40. <AssemblyInfo>
  41. <AssemblyVersion>1.0.5000.0</AssemblyVersion>
  42. <AssemblyVersion>2.0.0.0</AssemblyVersion>
  43. </AssemblyInfo>
  44. <Attributes>
  45. <Attribute>
  46. <AttributeName>System.Obsolete("use DBDataPermission (PermissionState.None)", true)</AttributeName>
  47. </Attribute>
  48. </Attributes>
  49. </Member>
  50. <Member MemberName=".ctor">
  51. <MemberSignature Language="C#" Value="protected DBDataPermission (System.Data.Common.DBDataPermission permission);" />
  52. <MemberType>Constructor</MemberType>
  53. <AssemblyInfo>
  54. <AssemblyVersion>1.0.5000.0</AssemblyVersion>
  55. <AssemblyVersion>2.0.0.0</AssemblyVersion>
  56. </AssemblyInfo>
  57. <Parameters>
  58. <Parameter Name="permission" Type="System.Data.Common.DBDataPermission" />
  59. </Parameters>
  60. <Docs>
  61. <remarks>To be added.</remarks>
  62. <summary>
  63. <attribution license="cc4" from="Microsoft" modified="false" />
  64. <para>Initializes a new instance of a DBDataPermission class using an existing DBDataPermission.</para>
  65. </summary>
  66. <param name="permission">
  67. <attribution license="cc4" from="Microsoft" modified="false" />An existing DBDataPermission used to create a new DBDataPermission. </param>
  68. </Docs>
  69. </Member>
  70. <Member MemberName=".ctor">
  71. <MemberSignature Language="C#" Value="protected DBDataPermission (System.Data.Common.DBDataPermissionAttribute permissionAttribute);" />
  72. <MemberType>Constructor</MemberType>
  73. <AssemblyInfo>
  74. <AssemblyVersion>1.0.5000.0</AssemblyVersion>
  75. <AssemblyVersion>2.0.0.0</AssemblyVersion>
  76. </AssemblyInfo>
  77. <Parameters>
  78. <Parameter Name="permissionAttribute" Type="System.Data.Common.DBDataPermissionAttribute" />
  79. </Parameters>
  80. <Docs>
  81. <remarks>To be added.</remarks>
  82. <summary>
  83. <attribution license="cc4" from="Microsoft" modified="false" />
  84. <para>Initializes a new instance of a DBDataPermission class with the specified DBDataPermissionAttribute.</para>
  85. </summary>
  86. <param name="permissionAttribute">
  87. <attribution license="cc4" from="Microsoft" modified="false" />A security action associated with a custom security attribute. </param>
  88. </Docs>
  89. </Member>
  90. <Member MemberName=".ctor">
  91. <MemberSignature Language="C#" Value="protected DBDataPermission (System.Security.Permissions.PermissionState state);" />
  92. <MemberType>Constructor</MemberType>
  93. <ReturnValue />
  94. <Parameters>
  95. <Parameter Name="state" Type="System.Security.Permissions.PermissionState" />
  96. </Parameters>
  97. <Docs>
  98. <remarks>To be added</remarks>
  99. <summary>
  100. <attribution license="cc4" from="Microsoft" modified="false" />
  101. <para>Initializes a new instance of a DBDataPermission class with the specified <see cref="T:System.Security.Permissions.PermissionState" /> value.</para>
  102. </summary>
  103. <param name="state">
  104. <attribution license="cc4" from="Microsoft" modified="false" />One of the <see cref="T:System.Security.Permissions.PermissionState" /> values. </param>
  105. </Docs>
  106. <AssemblyInfo>
  107. <AssemblyVersion>1.0.5000.0</AssemblyVersion>
  108. <AssemblyVersion>2.0.0.0</AssemblyVersion>
  109. </AssemblyInfo>
  110. </Member>
  111. <Member MemberName=".ctor">
  112. <MemberSignature Language="C#" Value="protected DBDataPermission (System.Security.Permissions.PermissionState state, bool allowBlankPassword);" />
  113. <MemberType>Constructor</MemberType>
  114. <ReturnValue />
  115. <Parameters>
  116. <Parameter Name="state" Type="System.Security.Permissions.PermissionState" />
  117. <Parameter Name="allowBlankPassword" Type="System.Boolean" />
  118. </Parameters>
  119. <Docs>
  120. <remarks>
  121. <attribution license="cc4" from="Microsoft" modified="false" />
  122. <para>The <see cref="T:System.Security.Permissions.PermissionState" /> enumeration takes precedence over the <see cref="P:System.Data.Common.DBDataPermission.AllowBlankPassword" /> property. Therefore, if you set <see cref="P:System.Data.Common.DBDataPermission.AllowBlankPassword" /> to false, you must also set <see cref="T:System.Security.Permissions.PermissionState" /> to None to prevent a user from making a connection using a blank password.</para>
  123. </remarks>
  124. <summary>
  125. <attribution license="cc4" from="Microsoft" modified="false" />
  126. <para>Initializes a new instance of a DBDataPermission class with the specified <see cref="T:System.Security.Permissions.PermissionState" /> value, and a value indicating whether a blank password is allowed.</para>
  127. </summary>
  128. <param name="state">
  129. <attribution license="cc4" from="Microsoft" modified="false" />One of the <see cref="T:System.Security.Permissions.PermissionState" /> values. </param>
  130. <param name="allowBlankPassword">
  131. <attribution license="cc4" from="Microsoft" modified="false" />Indicates whether a blank password is allowed. </param>
  132. </Docs>
  133. <AssemblyInfo>
  134. <AssemblyVersion>1.0.5000.0</AssemblyVersion>
  135. <AssemblyVersion>2.0.0.0</AssemblyVersion>
  136. </AssemblyInfo>
  137. <Attributes>
  138. <Attribute>
  139. <AttributeName>System.Obsolete("use DBDataPermission (PermissionState.None)", true)</AttributeName>
  140. </Attribute>
  141. </Attributes>
  142. </Member>
  143. <Member MemberName="Add">
  144. <MemberSignature Language="C#" Value="public virtual void Add (string connectionString, string restrictions, System.Data.KeyRestrictionBehavior behavior);" />
  145. <MemberType>Method</MemberType>
  146. <AssemblyInfo>
  147. <AssemblyVersion>1.0.5000.0</AssemblyVersion>
  148. <AssemblyVersion>2.0.0.0</AssemblyVersion>
  149. </AssemblyInfo>
  150. <ReturnValue>
  151. <ReturnType>System.Void</ReturnType>
  152. </ReturnValue>
  153. <Parameters>
  154. <Parameter Name="connectionString" Type="System.String" />
  155. <Parameter Name="restrictions" Type="System.String" />
  156. <Parameter Name="behavior" Type="System.Data.KeyRestrictionBehavior" />
  157. </Parameters>
  158. <Docs>
  159. <remarks>
  160. <attribution license="cc4" from="Microsoft" modified="false" />
  161. <para>This method can be useful when implementing:</para>
  162. <list type="bullet">
  163. <item>
  164. <para>A .NET framework data provider.</para>
  165. </item>
  166. <item>
  167. <para>An API that must assert for data access permission.</para>
  168. </item>
  169. <item>
  170. <para>An administrative tool or installation program that must modify security policy.</para>
  171. </item>
  172. <item>
  173. <para>When more than one rule is specified, the more restrictive rule is selected.</para>
  174. </item>
  175. </list>
  176. </remarks>
  177. <summary>
  178. <attribution license="cc4" from="Microsoft" modified="false" />
  179. <para>Adds access for the specified connection string to the existing state of the DBDataPermission. </para>
  180. </summary>
  181. <param name="connectionString">
  182. <attribution license="cc4" from="Microsoft" modified="false" />A permitted connection string.</param>
  183. <param name="restrictions">
  184. <attribution license="cc4" from="Microsoft" modified="false" />String that identifies connection string parameters that are allowed or disallowed.</param>
  185. <param name="behavior">
  186. <attribution license="cc4" from="Microsoft" modified="false" />One of the <see cref="T:System.Data.KeyRestrictionBehavior" /> properties.</param>
  187. </Docs>
  188. </Member>
  189. <Member MemberName="AllowBlankPassword">
  190. <MemberSignature Language="C#" Value="public bool AllowBlankPassword { set; get; }" />
  191. <MemberType>Property</MemberType>
  192. <ReturnValue>
  193. <ReturnType>System.Boolean</ReturnType>
  194. </ReturnValue>
  195. <Parameters>
  196. </Parameters>
  197. <Docs>
  198. <value>To be added: an object of type 'bool'</value>
  199. <remarks>
  200. <attribution license="cc4" from="Microsoft" modified="false" />
  201. <para>The <see cref="T:System.Security.Permissions.PermissionState" /> enumeration takes precedence over the <see cref="P:System.Data.Common.DBDataPermission.AllowBlankPassword" /> property. Therefore, if you set <see cref="P:System.Data.Common.DBDataPermission.AllowBlankPassword" /> to false, you must also set <see cref="T:System.Security.Permissions.PermissionState" /> to None to prevent a user from making a connection using a blank password.</para>
  202. </remarks>
  203. <summary>
  204. <attribution license="cc4" from="Microsoft" modified="false" />
  205. <para>Gets a value indicating whether a blank password is allowed.</para>
  206. </summary>
  207. </Docs>
  208. <AssemblyInfo>
  209. <AssemblyVersion>1.0.5000.0</AssemblyVersion>
  210. <AssemblyVersion>2.0.0.0</AssemblyVersion>
  211. </AssemblyInfo>
  212. </Member>
  213. <Member MemberName="Clear">
  214. <MemberSignature Language="C#" Value="protected void Clear ();" />
  215. <MemberType>Method</MemberType>
  216. <AssemblyInfo>
  217. <AssemblyVersion>1.0.5000.0</AssemblyVersion>
  218. <AssemblyVersion>2.0.0.0</AssemblyVersion>
  219. </AssemblyInfo>
  220. <ReturnValue>
  221. <ReturnType>System.Void</ReturnType>
  222. </ReturnValue>
  223. <Parameters />
  224. <Docs>
  225. <remarks>To be added.</remarks>
  226. <summary>
  227. <attribution license="cc4" from="Microsoft" modified="false" />
  228. <para>Removes all permissions that were previous added using the <see cref="M:System.Data.Common.DBDataPermission.Add(System.String,System.String,System.Data.KeyRestrictionBehavior)" /> method.</para>
  229. </summary>
  230. </Docs>
  231. </Member>
  232. <Member MemberName="Copy">
  233. <MemberSignature Language="C#" Value="public override System.Security.IPermission Copy ();" />
  234. <MemberType>Method</MemberType>
  235. <ReturnValue>
  236. <ReturnType>System.Security.IPermission</ReturnType>
  237. </ReturnValue>
  238. <Parameters />
  239. <Docs>
  240. <remarks>
  241. <attribution license="cc4" from="Microsoft" modified="false" />
  242. <para>A copy of a permission object represents the same access to resources as the original permission object.</para>
  243. </remarks>
  244. <summary>
  245. <attribution license="cc4" from="Microsoft" modified="false" />
  246. <para>Creates and returns an identical copy of the current permission object.</para>
  247. </summary>
  248. <returns>
  249. <attribution license="cc4" from="Microsoft" modified="false" />
  250. <para>A copy of the current permission object.</para>
  251. </returns>
  252. </Docs>
  253. <AssemblyInfo>
  254. <AssemblyVersion>1.0.5000.0</AssemblyVersion>
  255. <AssemblyVersion>2.0.0.0</AssemblyVersion>
  256. </AssemblyInfo>
  257. </Member>
  258. <Member MemberName="CreateInstance">
  259. <MemberSignature Language="C#" Value="protected virtual System.Data.Common.DBDataPermission CreateInstance ();" />
  260. <MemberType>Method</MemberType>
  261. <ReturnValue>
  262. <ReturnType>System.Data.Common.DBDataPermission</ReturnType>
  263. </ReturnValue>
  264. <Parameters />
  265. <Docs>
  266. <remarks>To be added</remarks>
  267. <summary>
  268. <attribution license="cc4" from="Microsoft" modified="false" />
  269. <para>Creates a new instance of the DBDataPermission class.</para>
  270. </summary>
  271. <returns>
  272. <attribution license="cc4" from="Microsoft" modified="false" />
  273. <para>A new DBDataPermission object.</para>
  274. </returns>
  275. </Docs>
  276. <AssemblyInfo>
  277. <AssemblyVersion>1.0.5000.0</AssemblyVersion>
  278. <AssemblyVersion>2.0.0.0</AssemblyVersion>
  279. </AssemblyInfo>
  280. </Member>
  281. <Member MemberName="FromXml">
  282. <MemberSignature Language="C#" Value="public override void FromXml (System.Security.SecurityElement securityElement);" />
  283. <MemberType>Method</MemberType>
  284. <ReturnValue>
  285. <ReturnType>System.Void</ReturnType>
  286. </ReturnValue>
  287. <Parameters>
  288. <Parameter Name="securityElement" Type="System.Security.SecurityElement" />
  289. </Parameters>
  290. <Docs>
  291. <remarks>
  292. <attribution license="cc4" from="Microsoft" modified="false" />
  293. <para>Custom code that extends security objects needs to implement the ToXml and FromXml methods to make the objects security encodable.</para>
  294. </remarks>
  295. <summary>
  296. <attribution license="cc4" from="Microsoft" modified="false" />
  297. <para>Reconstructs a security object with a specified state from an XML encoding.</para>
  298. </summary>
  299. <param name="securityElement">
  300. <attribution license="cc4" from="Microsoft" modified="false" />The XML encoding to use to reconstruct the security object. </param>
  301. </Docs>
  302. <AssemblyInfo>
  303. <AssemblyVersion>1.0.5000.0</AssemblyVersion>
  304. <AssemblyVersion>2.0.0.0</AssemblyVersion>
  305. </AssemblyInfo>
  306. </Member>
  307. <Member MemberName="Intersect">
  308. <MemberSignature Language="C#" Value="public override System.Security.IPermission Intersect (System.Security.IPermission target);" />
  309. <MemberType>Method</MemberType>
  310. <ReturnValue>
  311. <ReturnType>System.Security.IPermission</ReturnType>
  312. </ReturnValue>
  313. <Parameters>
  314. <Parameter Name="target" Type="System.Security.IPermission" />
  315. </Parameters>
  316. <Docs>
  317. <remarks>
  318. <attribution license="cc4" from="Microsoft" modified="false" />
  319. <para>The intersection of two permissions is a permission that describes the set of operations they both describe. Only a demand that passes both original permissions will pass the intersection.</para>
  320. </remarks>
  321. <summary>
  322. <attribution license="cc4" from="Microsoft" modified="false" />
  323. <para>Returns a new permission object representing the intersection of the current permission object and the specified permission object.</para>
  324. </summary>
  325. <returns>
  326. <attribution license="cc4" from="Microsoft" modified="false" />
  327. <para>A new permission object that represents the intersection of the current permission object and the specified permission object. This new permission object is a null reference (Nothing in Visual Basic) if the intersection is empty.</para>
  328. </returns>
  329. <param name="target">
  330. <attribution license="cc4" from="Microsoft" modified="false" />A permission object to intersect with the current permission object. It must be of the same type as the current permission object. </param>
  331. </Docs>
  332. <AssemblyInfo>
  333. <AssemblyVersion>1.0.5000.0</AssemblyVersion>
  334. <AssemblyVersion>2.0.0.0</AssemblyVersion>
  335. </AssemblyInfo>
  336. </Member>
  337. <Member MemberName="IsSubsetOf">
  338. <MemberSignature Language="C#" Value="public override bool IsSubsetOf (System.Security.IPermission target);" />
  339. <MemberType>Method</MemberType>
  340. <ReturnValue>
  341. <ReturnType>System.Boolean</ReturnType>
  342. </ReturnValue>
  343. <Parameters>
  344. <Parameter Name="target" Type="System.Security.IPermission" />
  345. </Parameters>
  346. <Docs>
  347. <remarks>
  348. <attribution license="cc4" from="Microsoft" modified="false" />
  349. <para>The current permission object is a subset of the specified permission object if the current permission object specifies a set of operations that is wholly contained by the specified permission object. For example, a permission that represents access to C:\example.txt is a subset of a permission that represents access to C:\. If this method returns true, the current permission object represents no more access to the protected resource than does the specified permission object.</para>
  350. </remarks>
  351. <summary>
  352. <attribution license="cc4" from="Microsoft" modified="false" />
  353. <para>Returns a value indicating whether the current permission object is a subset of the specified permission object.</para>
  354. </summary>
  355. <returns>
  356. <attribution license="cc4" from="Microsoft" modified="false" />
  357. <para>true if the current permission object is a subset of the specified permission object, otherwise false.</para>
  358. </returns>
  359. <param name="target">
  360. <attribution license="cc4" from="Microsoft" modified="false" />A permission object that is to be tested for the subset relationship. This object must be of the same type as the current permission object. </param>
  361. </Docs>
  362. <AssemblyInfo>
  363. <AssemblyVersion>1.0.5000.0</AssemblyVersion>
  364. <AssemblyVersion>2.0.0.0</AssemblyVersion>
  365. </AssemblyInfo>
  366. </Member>
  367. <Member MemberName="IsUnrestricted">
  368. <MemberSignature Language="C#" Value="public bool IsUnrestricted ();" />
  369. <MemberType>Method</MemberType>
  370. <ReturnValue>
  371. <ReturnType>System.Boolean</ReturnType>
  372. </ReturnValue>
  373. <Parameters />
  374. <Docs>
  375. <remarks>To be added</remarks>
  376. <summary>
  377. <attribution license="cc4" from="Microsoft" modified="false" />
  378. <para>Returns a value indicating whether the permission can be represented as unrestricted without any knowledge of the permission semantics.</para>
  379. </summary>
  380. <returns>
  381. <attribution license="cc4" from="Microsoft" modified="false" />
  382. <para>true if the permission can be represented as unrestricted.</para>
  383. </returns>
  384. </Docs>
  385. <AssemblyInfo>
  386. <AssemblyVersion>1.0.5000.0</AssemblyVersion>
  387. <AssemblyVersion>2.0.0.0</AssemblyVersion>
  388. </AssemblyInfo>
  389. </Member>
  390. <Member MemberName="ToXml">
  391. <MemberSignature Language="C#" Value="public override System.Security.SecurityElement ToXml ();" />
  392. <MemberType>Method</MemberType>
  393. <ReturnValue>
  394. <ReturnType>System.Security.SecurityElement</ReturnType>
  395. </ReturnValue>
  396. <Parameters />
  397. <Docs>
  398. <remarks>
  399. <attribution license="cc4" from="Microsoft" modified="false" />
  400. <para>Custom code that extends security objects must implement the <see cref="M:System.Data.Common.DBDataPermission.ToXml" /> and <see cref="M:System.Data.Common.DBDataPermission.FromXml(System.Security.SecurityElement)" /> methods to make the objects security encodable.</para>
  401. </remarks>
  402. <summary>
  403. <attribution license="cc4" from="Microsoft" modified="false" />
  404. <para>Creates an XML encoding of the security object and its current state.</para>
  405. </summary>
  406. <returns>
  407. <attribution license="cc4" from="Microsoft" modified="false" />
  408. <para>An XML encoding of the security object, including any state information.</para>
  409. </returns>
  410. </Docs>
  411. <AssemblyInfo>
  412. <AssemblyVersion>1.0.5000.0</AssemblyVersion>
  413. <AssemblyVersion>2.0.0.0</AssemblyVersion>
  414. </AssemblyInfo>
  415. </Member>
  416. <Member MemberName="Union">
  417. <MemberSignature Language="C#" Value="public override System.Security.IPermission Union (System.Security.IPermission target);" />
  418. <MemberType>Method</MemberType>
  419. <ReturnValue>
  420. <ReturnType>System.Security.IPermission</ReturnType>
  421. </ReturnValue>
  422. <Parameters>
  423. <Parameter Name="target" Type="System.Security.IPermission" />
  424. </Parameters>
  425. <Docs>
  426. <remarks>
  427. <attribution license="cc4" from="Microsoft" modified="false" />
  428. <para>The result of a call to <see cref="M:System.Data.Common.DBDataPermission.Union(System.Security.IPermission)" /> is a permission that represents all the operations permitted by both the current permission object and the specified permission object. Any demand that passes either permission passes their union.</para>
  429. </remarks>
  430. <summary>
  431. <attribution license="cc4" from="Microsoft" modified="false" />
  432. <para>Returns a new permission object that is the union of the current and specified permission objects.</para>
  433. </summary>
  434. <returns>
  435. <attribution license="cc4" from="Microsoft" modified="false" />
  436. <para>A new permission object that represents the union of the current permission object and the specified permission object.</para>
  437. </returns>
  438. <param name="target">
  439. <attribution license="cc4" from="Microsoft" modified="false" />A permission object to combine with the current permission object. It must be of the same type as the current permission object. </param>
  440. </Docs>
  441. <AssemblyInfo>
  442. <AssemblyVersion>1.0.5000.0</AssemblyVersion>
  443. <AssemblyVersion>2.0.0.0</AssemblyVersion>
  444. </AssemblyInfo>
  445. </Member>
  446. </Members>
  447. </Type>