1<?xml version="1.0" encoding="utf-8"?> 2<Type Name="MdbDataFileEditor" FullName="System.Web.UI.Design.MdbDataFileEditor"> 3 <TypeSignature Language="C#" Value="public class MdbDataFileEditor : System.Web.UI.Design.UrlEditor" /> 4 <AssemblyInfo> 5 <AssemblyName>System.Design</AssemblyName> 6 <AssemblyVersion>2.0.0.0</AssemblyVersion> 7 </AssemblyInfo> 8 <Base> 9 <BaseTypeName>System.Web.UI.Design.UrlEditor</BaseTypeName> 10 </Base> 11 <Interfaces /> 12 <Docs> 13 <remarks> 14 <attribution license="cc4" from="Microsoft" modified="false" /> 15 <para>An <see cref="T:System.Web.UI.Design.MdbDataFileEditor" /> object is used at design time to select and edit a URL for a Microsoft Access database file (.mdb), and then assign the URL to a control property. For example, the <see cref="T:System.Web.UI.WebControls.AccessDataSource" /> control uses the <see cref="T:System.Web.UI.Design.MdbDataFileEditor" /> class at design time to set the value of the <see cref="P:System.Web.UI.WebControls.AccessDataSource.DataFile" /> property.</para> 16 <para>Use the <see cref="T:System.ComponentModel.EditorAttribute" /> attribute to associate the <see cref="T:System.Web.UI.Design.MdbDataFileEditor" /> with a property. When the associated property is edited on the design surface, the designer host calls the <see cref="Overload:System.Web.UI.Design.UrlEditor.EditValue" /> method. The <see cref="Overload:System.Web.UI.Design.UrlEditor.EditValue" /> method uses the <see cref="Overload:System.Web.UI.Design.UrlBuilder.BuildUrl" /> method, which in turn displays a user interface for selecting the URL, and then returns the URL that is selected by the user. The <see cref="Overload:System.Web.UI.Design.UrlEditor.GetEditStyle" /> method indicates the display style of the user interface.</para> 17 <para>Derive a class from the <see cref="T:System.Web.UI.Design.MdbDataFileEditor" /> to define a custom editor for an Access database URL property. For example, a derived class can override the <see cref="Overload:System.Web.UI.Design.UrlEditor.EditValue" /> method, and then call the <see cref="Overload:System.Web.UI.Design.UrlBuilder.BuildUrl" /> method with a custom <see cref="P:System.Web.UI.Design.MdbDataFileEditor.Filter" /> or <see cref="P:System.Web.UI.Design.MdbDataFileEditor.Caption" /> value.</para> 18 </remarks> 19 <summary> 20 <attribution license="cc4" from="Microsoft" modified="false" /> 21 <para>Provides a design-time user interface for selecting a Microsoft Access database file.</para> 22 </summary> 23 </Docs> 24 <Members> 25 <Member MemberName=".ctor"> 26 <MemberSignature Language="C#" Value="public MdbDataFileEditor ();" /> 27 <MemberType>Constructor</MemberType> 28 <AssemblyInfo> 29 <AssemblyVersion>2.0.0.0</AssemblyVersion> 30 </AssemblyInfo> 31 <Parameters /> 32 <Docs> 33 <remarks>To be added.</remarks> 34 <summary> 35 <attribution license="cc4" from="Microsoft" modified="false" /> 36 <para>Initializes a new instance of the <see cref="T:System.Web.UI.Design.MdbDataFileEditor" /> class. </para> 37 </summary> 38 </Docs> 39 </Member> 40 <Member MemberName="Caption"> 41 <MemberSignature Language="C#" Value="protected override string Caption { get; }" /> 42 <MemberType>Property</MemberType> 43 <AssemblyInfo> 44 <AssemblyVersion>2.0.0.0</AssemblyVersion> 45 </AssemblyInfo> 46 <ReturnValue> 47 <ReturnType>System.String</ReturnType> 48 </ReturnValue> 49 <Docs> 50 <value>To be added.</value> 51 <remarks> 52 <attribution license="cc4" from="Microsoft" modified="false" /> 53 <para>The <see cref="P:System.Web.UI.Design.MdbDataFileEditor.Caption" /> string is used by the <see cref="Overload:System.Web.UI.Design.UrlEditor.EditValue" /> method when calling the <see cref="Overload:System.Web.UI.Design.UrlBuilder.BuildUrl" /> method, which displays the URL selection dialog box to the user at design time.</para> 54 </remarks> 55 <summary> 56 <attribution license="cc4" from="Microsoft" modified="false" /> 57 <para>Gets the caption to display on the selection dialog box.</para> 58 </summary> 59 </Docs> 60 </Member> 61 <Member MemberName="Filter"> 62 <MemberSignature Language="C#" Value="protected override string Filter { get; }" /> 63 <MemberType>Property</MemberType> 64 <AssemblyInfo> 65 <AssemblyVersion>2.0.0.0</AssemblyVersion> 66 </AssemblyInfo> 67 <ReturnValue> 68 <ReturnType>System.String</ReturnType> 69 </ReturnValue> 70 <Docs> 71 <value>To be added.</value> 72 <remarks> 73 <attribution license="cc4" from="Microsoft" modified="false" /> 74 <para>The <see cref="P:System.Web.UI.Design.MdbDataFileEditor.Filter" /> property is used by the <see cref="Overload:System.Web.UI.Design.UrlEditor.EditValue" /> method when calling the <see cref="Overload:System.Web.UI.Design.UrlBuilder.BuildUrl" /> method, which displays the URL selection dialog box to the user at design time.</para> 75 <para>The <see cref="P:System.Web.UI.Design.MdbDataFileEditor.Filter" /> property default value indicates two URL filters for the dialog box: one for Microsoft Access database files (*.mdb) and another for all files (*.*).</para> 76 <para>To specify a custom filter string, derive a class from the <see cref="T:System.Web.UI.Design.MdbDataFileEditor" /> class and override the <see cref="P:System.Web.UI.Design.MdbDataFileEditor.Filter" /> property to return the custom filter string.</para> 77 <para>A filter string contains one or more filter options. Each filter option contains a description of the filter, followed by the vertical bar (|) and the filter pattern. The strings for different filtering options are separated by the vertical bar. </para> 78 <para>The following is an example of a filter string that contains two filter options: </para> 79 <para>"Microsoft Access Databases (*.mdb)|*.mdb|All Files (*.*)|*.*".</para> 80 <para>You can specify several filter patterns in a filter option by separating the filter patterns with semicolons. The following is an example of a filter string in which the first filter option specifies two filter patterns: </para> 81 <para>"Custom Database Files (*.db1; *.db2)|*.db1;*.db2|All Files (*.*)|*.*".</para> 82 </remarks> 83 <summary> 84 <attribution license="cc4" from="Microsoft" modified="false" /> 85 <para>Gets the URL filter options for the editor, which is used to filter the items that appear in the URL selection dialog box.</para> 86 </summary> 87 </Docs> 88 </Member> 89 </Members> 90</Type>