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" />
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>
11 <ThreadSafetyStatement>Gtk# is thread aware, but not thread safe; See the <link location="node:gtk-sharp/programming/threads">Gtk# Thread Programming</link> for details.</ThreadSafetyStatement>
13 <BaseTypeName>System.Security.CodeAccessPermission</BaseTypeName>
17 <InterfaceName>System.Security.Permissions.IUnrestrictedPermission</InterfaceName>
21 <remarks>To be added</remarks>
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>
28 <Member MemberName=".ctor">
29 <MemberSignature Language="C#" Value="protected DBDataPermission ();" />
30 <MemberType>Constructor</MemberType>
34 <remarks>To be added</remarks>
36 <attribution license="cc4" from="Microsoft" modified="false" />
37 <para>Initializes a new instance of a DBDataPermission class.</para>
41 <AssemblyVersion>1.0.5000.0</AssemblyVersion>
42 <AssemblyVersion>2.0.0.0</AssemblyVersion>
46 <AttributeName>System.Obsolete("use DBDataPermission (PermissionState.None)", true)</AttributeName>
50 <Member MemberName=".ctor">
51 <MemberSignature Language="C#" Value="protected DBDataPermission (System.Data.Common.DBDataPermission permission);" />
52 <MemberType>Constructor</MemberType>
54 <AssemblyVersion>1.0.5000.0</AssemblyVersion>
55 <AssemblyVersion>2.0.0.0</AssemblyVersion>
58 <Parameter Name="permission" Type="System.Data.Common.DBDataPermission" />
61 <remarks>To be added.</remarks>
63 <attribution license="cc4" from="Microsoft" modified="false" />
64 <para>Initializes a new instance of a DBDataPermission class using an existing DBDataPermission.</para>
66 <param name="permission">
67 <attribution license="cc4" from="Microsoft" modified="false" />An existing DBDataPermission used to create a new DBDataPermission. </param>
70 <Member MemberName=".ctor">
71 <MemberSignature Language="C#" Value="protected DBDataPermission (System.Data.Common.DBDataPermissionAttribute permissionAttribute);" />
72 <MemberType>Constructor</MemberType>
74 <AssemblyVersion>1.0.5000.0</AssemblyVersion>
75 <AssemblyVersion>2.0.0.0</AssemblyVersion>
78 <Parameter Name="permissionAttribute" Type="System.Data.Common.DBDataPermissionAttribute" />
81 <remarks>To be added.</remarks>
83 <attribution license="cc4" from="Microsoft" modified="false" />
84 <para>Initializes a new instance of a DBDataPermission class with the specified DBDataPermissionAttribute.</para>
86 <param name="permissionAttribute">
87 <attribution license="cc4" from="Microsoft" modified="false" />A security action associated with a custom security attribute. </param>
90 <Member MemberName=".ctor">
91 <MemberSignature Language="C#" Value="protected DBDataPermission (System.Security.Permissions.PermissionState state);" />
92 <MemberType>Constructor</MemberType>
95 <Parameter Name="state" Type="System.Security.Permissions.PermissionState" />
98 <remarks>To be added</remarks>
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>
104 <attribution license="cc4" from="Microsoft" modified="false" />One of the <see cref="T:System.Security.Permissions.PermissionState" /> values. </param>
107 <AssemblyVersion>1.0.5000.0</AssemblyVersion>
108 <AssemblyVersion>2.0.0.0</AssemblyVersion>
111 <Member MemberName=".ctor">
112 <MemberSignature Language="C#" Value="protected DBDataPermission (System.Security.Permissions.PermissionState state, bool allowBlankPassword);" />
113 <MemberType>Constructor</MemberType>
116 <Parameter Name="state" Type="System.Security.Permissions.PermissionState" />
117 <Parameter Name="allowBlankPassword" Type="System.Boolean" />
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>
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>
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>
134 <AssemblyVersion>1.0.5000.0</AssemblyVersion>
135 <AssemblyVersion>2.0.0.0</AssemblyVersion>
139 <AttributeName>System.Obsolete("use DBDataPermission (PermissionState.None)", true)</AttributeName>
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>
147 <AssemblyVersion>1.0.5000.0</AssemblyVersion>
148 <AssemblyVersion>2.0.0.0</AssemblyVersion>
151 <ReturnType>System.Void</ReturnType>
154 <Parameter Name="connectionString" Type="System.String" />
155 <Parameter Name="restrictions" Type="System.String" />
156 <Parameter Name="behavior" Type="System.Data.KeyRestrictionBehavior" />
160 <attribution license="cc4" from="Microsoft" modified="false" />
161 <para>This method can be useful when implementing:</para>
164 <para>A .NET framework data provider.</para>
167 <para>An API that must assert for data access permission.</para>
170 <para>An administrative tool or installation program that must modify security policy.</para>
173 <para>When more than one rule is specified, the more restrictive rule is selected.</para>
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>
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>
189 <Member MemberName="AllowBlankPassword">
190 <MemberSignature Language="C#" Value="public bool AllowBlankPassword { set; get; }" />
191 <MemberType>Property</MemberType>
193 <ReturnType>System.Boolean</ReturnType>
198 <value>To be added: an object of type 'bool'</value>
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>
204 <attribution license="cc4" from="Microsoft" modified="false" />
205 <para>Gets a value indicating whether a blank password is allowed.</para>
209 <AssemblyVersion>1.0.5000.0</AssemblyVersion>
210 <AssemblyVersion>2.0.0.0</AssemblyVersion>
213 <Member MemberName="Clear">
214 <MemberSignature Language="C#" Value="protected void Clear ();" />
215 <MemberType>Method</MemberType>
217 <AssemblyVersion>1.0.5000.0</AssemblyVersion>
218 <AssemblyVersion>2.0.0.0</AssemblyVersion>
221 <ReturnType>System.Void</ReturnType>
225 <remarks>To be added.</remarks>
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>
232 <Member MemberName="Copy">
233 <MemberSignature Language="C#" Value="public override System.Security.IPermission Copy ();" />
234 <MemberType>Method</MemberType>
236 <ReturnType>System.Security.IPermission</ReturnType>
240 <returns>To be added: an object of type 'Security.IPermission'</returns>
242 <attribution license="cc4" from="Microsoft" modified="false" />
243 <para>A copy of a permission object represents the same access to resources as the original permission object.</para>
246 <attribution license="cc4" from="Microsoft" modified="false" />
247 <para>Creates and returns an identical copy of the current permission object.</para>
251 <AssemblyVersion>1.0.5000.0</AssemblyVersion>
252 <AssemblyVersion>2.0.0.0</AssemblyVersion>
255 <Member MemberName="CreateInstance">
256 <MemberSignature Language="C#" Value="protected virtual System.Data.Common.DBDataPermission CreateInstance ();" />
257 <MemberType>Method</MemberType>
259 <ReturnType>System.Data.Common.DBDataPermission</ReturnType>
263 <returns>To be added: an object of type 'DBDataPermission'</returns>
264 <remarks>To be added</remarks>
266 <attribution license="cc4" from="Microsoft" modified="false" />
267 <para>Creates a new instance of the DBDataPermission class.</para>
271 <AssemblyVersion>1.0.5000.0</AssemblyVersion>
272 <AssemblyVersion>2.0.0.0</AssemblyVersion>
275 <Member MemberName="FromXml">
276 <MemberSignature Language="C#" Value="public override void FromXml (System.Security.SecurityElement securityElement);" />
277 <MemberType>Method</MemberType>
279 <ReturnType>System.Void</ReturnType>
282 <Parameter Name="securityElement" Type="System.Security.SecurityElement" />
286 <attribution license="cc4" from="Microsoft" modified="false" />
287 <para>Custom code that extends security objects needs to implement the ToXml and FromXml methods to make the objects security encodable.</para>
290 <attribution license="cc4" from="Microsoft" modified="false" />
291 <para>Reconstructs a security object with a specified state from an XML encoding.</para>
293 <param name="securityElement">
294 <attribution license="cc4" from="Microsoft" modified="false" />The XML encoding to use to reconstruct the security object. </param>
297 <AssemblyVersion>1.0.5000.0</AssemblyVersion>
298 <AssemblyVersion>2.0.0.0</AssemblyVersion>
301 <Member MemberName="Intersect">
302 <MemberSignature Language="C#" Value="public override System.Security.IPermission Intersect (System.Security.IPermission target);" />
303 <MemberType>Method</MemberType>
305 <ReturnType>System.Security.IPermission</ReturnType>
308 <Parameter Name="target" Type="System.Security.IPermission" />
311 <returns>To be added: an object of type 'Security.IPermission'</returns>
313 <attribution license="cc4" from="Microsoft" modified="false" />
314 <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>
317 <attribution license="cc4" from="Microsoft" modified="false" />
318 <para>Returns a new permission object representing the intersection of the current permission object and the specified permission object.</para>
320 <param name="target">
321 <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>
324 <AssemblyVersion>1.0.5000.0</AssemblyVersion>
325 <AssemblyVersion>2.0.0.0</AssemblyVersion>
328 <Member MemberName="IsSubsetOf">
329 <MemberSignature Language="C#" Value="public override bool IsSubsetOf (System.Security.IPermission target);" />
330 <MemberType>Method</MemberType>
332 <ReturnType>System.Boolean</ReturnType>
335 <Parameter Name="target" Type="System.Security.IPermission" />
338 <returns>To be added: an object of type 'bool'</returns>
340 <attribution license="cc4" from="Microsoft" modified="false" />
341 <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>
344 <attribution license="cc4" from="Microsoft" modified="false" />
345 <para>Returns a value indicating whether the current permission object is a subset of the specified permission object.</para>
347 <param name="target">
348 <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>
351 <AssemblyVersion>1.0.5000.0</AssemblyVersion>
352 <AssemblyVersion>2.0.0.0</AssemblyVersion>
355 <Member MemberName="IsUnrestricted">
356 <MemberSignature Language="C#" Value="public bool IsUnrestricted ();" />
357 <MemberType>Method</MemberType>
359 <ReturnType>System.Boolean</ReturnType>
363 <returns>To be added: an object of type 'bool'</returns>
364 <remarks>To be added</remarks>
366 <attribution license="cc4" from="Microsoft" modified="false" />
367 <para>Returns a value indicating whether the permission can be represented as unrestricted without any knowledge of the permission semantics.</para>
371 <AssemblyVersion>1.0.5000.0</AssemblyVersion>
372 <AssemblyVersion>2.0.0.0</AssemblyVersion>
375 <Member MemberName="ToXml">
376 <MemberSignature Language="C#" Value="public override System.Security.SecurityElement ToXml ();" />
377 <MemberType>Method</MemberType>
379 <ReturnType>System.Security.SecurityElement</ReturnType>
383 <returns>To be added: an object of type 'Security.SecurityElement'</returns>
385 <attribution license="cc4" from="Microsoft" modified="false" />
386 <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>
389 <attribution license="cc4" from="Microsoft" modified="false" />
390 <para>Creates an XML encoding of the security object and its current state.</para>
394 <AssemblyVersion>1.0.5000.0</AssemblyVersion>
395 <AssemblyVersion>2.0.0.0</AssemblyVersion>
398 <Member MemberName="Union">
399 <MemberSignature Language="C#" Value="public override System.Security.IPermission Union (System.Security.IPermission target);" />
400 <MemberType>Method</MemberType>
402 <ReturnType>System.Security.IPermission</ReturnType>
405 <Parameter Name="target" Type="System.Security.IPermission" />
408 <returns>To be added: an object of type 'Security.IPermission'</returns>
410 <attribution license="cc4" from="Microsoft" modified="false" />
411 <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>
414 <attribution license="cc4" from="Microsoft" modified="false" />
415 <para>Returns a new permission object that is the union of the current and specified permission objects.</para>
417 <param name="target">
418 <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>
421 <AssemblyVersion>1.0.5000.0</AssemblyVersion>
422 <AssemblyVersion>2.0.0.0</AssemblyVersion>