1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238
|
<?xml version="1.0" encoding="utf-8"?>
<Type Name="XPathBinder" FullName="System.Web.UI.XPathBinder">
<TypeSignature Language="C#" Value="public sealed class XPathBinder" />
<AssemblyInfo>
<AssemblyName>System.Web</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Base>
<BaseTypeName>System.Object</BaseTypeName>
</Base>
<Interfaces />
<Docs>
<since version=".NET 2.0" />
<remarks>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>You can use the overloaded <see cref="M:System.Web.UI.XPathBinder.Eval(System.Object,System.String)" /> method of this class to bind to the result of an XPath expression executed against an object that implements the <see cref="T:System.Xml.XPath.IXPathNavigable" /> interface, such as an <see cref="T:System.Xml.XmlNode" />. You can use the <see cref="M:System.Web.UI.XPathBinder.Select(System.Object,System.String)" /> method to retrieve the results of an XPath expression executed against an <see cref="T:System.Xml.XPath.IXPathNavigable" /> object as an <see cref="T:System.Collections.IEnumerable" /> list of nodes. This list of nodes can be enumerated directly or assigned to the DataSource property of a list control, such as a <see cref="T:System.Web.UI.WebControls.Repeater" /> or <see cref="T:System.Web.UI.WebControls.DataList" />.</para>
<para>You can use a simplified version of data-binding syntax when using the <see cref="T:System.Web.UI.XPathBinder" /> methods declaratively. Instead of calling XPathBinder.Eval(Container.DataItem, <paramref name="xpath" />) you can use XPath(<paramref name="xpath" />). Similarly, instead of calling XPathBinder.Select(Container.DataItem, <paramref name="xpath" />), you can use XPathSelect(<paramref name="xpath" />) to retrieve an <see cref="T:System.Collections.IEnumerable" /> set of nodes. When using this simplified syntax, the <see cref="M:System.Web.UI.XPathBinder.Eval(System.Object,System.String)" /> and <see cref="M:System.Web.UI.XPathBinder.Select(System.Object,System.String)" /> methods assume a default Container.DataItem context object.</para>
<para>For more information about data binding to ASP.NET server controls, see <format type="text/html"><a href="676BEB1D-DDFA-4153-BBA8-3C86DCB7CECA">Data-Binding Expression Syntax</a></format>.</para>
</remarks>
<summary>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>Provides support for rapid application development (RAD) designers to parse data-binding expressions that use XPath expressions. This class cannot be inherited.</para>
</summary>
</Docs>
<Members>
<Member MemberName="Eval">
<MemberSignature Language="C#" Value="public static object Eval (object container, string xpath);" />
<MemberType>Method</MemberType>
<ReturnValue>
<ReturnType>System.Object</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="container" Type="System.Object" />
<Parameter Name="xpath" Type="System.String" />
</Parameters>
<Docs>
<param name="xpath">To be added.</param>
<since version=".NET 2.0" />
<remarks>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>You can use the <see cref="M:System.Web.UI.XPathBinder.Eval(System.Object,System.String)" /> method declaratively if you want to simplify the casting of an XML node to a text string to be displayed on a browser. To do so, you must place the <%# and %> tags, which are also used in standard ASP.NET data binding, around the data-binding expression.</para>
<para>For any of the list ASP.NET server controls, such as <see cref="T:System.Web.UI.WebControls.DataList" />, <see cref="T:System.Web.UI.WebControls.DataGrid" />, or <see cref="T:System.Web.UI.WebControls.Repeater" />, the <paramref name="container" /> parameter should be Container.DataItem. If you are binding against the page, the <paramref name="container" /> parameter should be Page.</para>
</remarks>
<summary>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>Evaluates XPath data-binding expressions at run time.</para>
</summary>
<returns>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>An <see cref="T:System.Object" /> that results from the evaluation of the data-binding expression.</para>
</returns>
<param name="container">
<attribution license="cc4" from="Microsoft" modified="false" />The <see cref="T:System.Xml.XPath.IXPathNavigable" /> object reference that the expression is evaluated against. This must be a valid object identifier in the page's specified language. </param>
</Docs>
<AssemblyInfo>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
</AssemblyInfo>
</Member>
<Member MemberName="Eval">
<MemberSignature Language="C#" Value="public static string Eval (object container, string xpath, string format);" />
<MemberType>Method</MemberType>
<ReturnValue>
<ReturnType>System.String</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="container" Type="System.Object" />
<Parameter Name="xpath" Type="System.String" />
<Parameter Name="format" Type="System.String" />
</Parameters>
<Docs>
<param name="xpath">To be added.</param>
<since version=".NET 2.0" />
<remarks>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>To learn more about format strings in the .NET Framework, see <format type="text/html"><a href="0D1364DA-5B30-4D42-8E6B-03378343343F">Formatting Overview</a></format>.</para>
<para>You can use the <see cref="M:System.Web.UI.XPathBinder.Eval(System.Object,System.String)" /> method declaratively if you want to simplify the casting of an XML node to a text string to be displayed in a browser. To do so, you must place the <%# and %> tags, which are also used in standard ASP.NET data binding, around the data-binding expression.</para>
<para>For any of the list ASP.NET server controls, such as <see cref="T:System.Web.UI.WebControls.DataList" />, <see cref="T:System.Web.UI.WebControls.DataGrid" />, or <see cref="T:System.Web.UI.WebControls.Repeater" />, the <paramref name="container" /> parameter should be Container.DataItem. If you are binding against the page, the <paramref name="container" /> parameter should be Page.</para>
</remarks>
<summary>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>Evaluates XPath data-binding expressions at run time and formats the result as text to be displayed in the requesting browser.</para>
</summary>
<returns>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>A <see cref="T:System.String" /> that results from the evaluation of the data-binding expression and conversion to a string type.</para>
</returns>
<param name="container">
<attribution license="cc4" from="Microsoft" modified="false" />The <see cref="T:System.Xml.XPath.IXPathNavigable" /> object reference that the expression is evaluated against. This must be a valid object identifier in the page's specified language. </param>
<param name="format">
<attribution license="cc4" from="Microsoft" modified="false" />A .NET Framework format string, similar to those used by <see cref="M:System.String.Format(System.String,System.Object)" />, that converts the <see cref="T:System.Xml.XPath.IXPathNavigable" /> object (which results from the evaluation of the data-binding expression) to a <see cref="T:System.String" /> that can be displayed by the requesting browser. </param>
</Docs>
<AssemblyInfo>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
</AssemblyInfo>
</Member>
<Member MemberName="Eval">
<MemberSignature Language="C#" Value="public static object Eval (object container, string xpath, System.Xml.IXmlNamespaceResolver resolver);" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Object</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="container" Type="System.Object" />
<Parameter Name="xpath" Type="System.String" />
<Parameter Name="resolver" Type="System.Xml.IXmlNamespaceResolver" />
</Parameters>
<Docs>
<param name="xpath">To be added.</param>
<remarks>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>You can use the <see cref="M:System.Web.UI.XPathBinder.Eval(System.Object,System.String,System.Xml.IXmlNamespaceResolver)" /> method declaratively if you want to simplify the casting of an XML node to a text string to be displayed in a browser. To do so, you must place the <%# and %> tags, which are also used in standard ASP.NET data binding, around the data-binding expression. The data-binding expression includes the XPath expression and an <see cref="T:System.Xml.IXmlNamespaceResolver" /> object to resolve the namespace reference.</para>
<para>For any of the list ASP.NET server controls, such as <see cref="T:System.Web.UI.WebControls.DataList" />, <see cref="T:System.Web.UI.WebControls.DataGrid" />, or <see cref="T:System.Web.UI.WebControls.Repeater" />, the <paramref name="container" /> parameter should be Container.DataItem. If you are binding against the page, the <paramref name="container" /> parameter should be Page.</para>
</remarks>
<summary>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>Evaluates XPath data-binding expressions at run time and formats the result as text to be displayed in the requesting browser, using the <see cref="T:System.Xml.IXmlNamespaceResolver" /> object specified to resolve namespace prefixes in the XPath expression.</para>
</summary>
<returns>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>A <see cref="T:System.Object" /> that results from the evaluation of the data-binding expression.</para>
</returns>
<param name="container">
<attribution license="cc4" from="Microsoft" modified="false" />The <see cref="T:System.Xml.XPath.IXPathNavigable" /> object reference that the expression is evaluated against. This must be a valid object identifier in the page's specified language.</param>
<param name="resolver">
<attribution license="cc4" from="Microsoft" modified="false" />The <see cref="T:System.Xml.IXmlNamespaceResolver" /> object used to resolve namespace prefixes in the XPath expression.</param>
</Docs>
</Member>
<Member MemberName="Eval">
<MemberSignature Language="C#" Value="public static string Eval (object container, string xpath, string format, System.Xml.IXmlNamespaceResolver resolver);" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.String</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="container" Type="System.Object" />
<Parameter Name="xpath" Type="System.String" />
<Parameter Name="format" Type="System.String" />
<Parameter Name="resolver" Type="System.Xml.IXmlNamespaceResolver" />
</Parameters>
<Docs>
<param name="xpath">To be added.</param>
<remarks>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>You can use the <see cref="M:System.Web.UI.XPathBinder.Eval(System.Object,System.String,System.String,System.Xml.IXmlNamespaceResolver)" /> method declaratively if you want to simplify the casting of an XML node to a text string to be displayed in a browser. To do so, you must place the <%# and %> tags, which are also used in standard ASP.NET data binding, around the data-binding expression. The data-binding expression includes the XPath expression and an <see cref="T:System.Xml.IXmlNamespaceResolver" /> object to resolve the namespace reference.</para>
<para>For any of the list ASP.NET server controls, such as <see cref="T:System.Web.UI.WebControls.DataList" />, <see cref="T:System.Web.UI.WebControls.DataGrid" />, or <see cref="T:System.Web.UI.WebControls.Repeater" />, the <paramref name="container" /> parameter should be Container.DataItem. If you are binding against the page, the <paramref name="container" /> parameter should be Page.</para>
</remarks>
<summary>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>Evaluates XPath data-binding expressions at run time and formats the result as text to be displayed in the requesting browser, using the <see cref="T:System.Xml.IXmlNamespaceResolver" /> object specified to resolve namespace prefixes in the XPath expression..</para>
</summary>
<returns>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>A <see cref="T:System.String" /> that results from the evaluation of the data-binding expression and conversion to a string type.</para>
</returns>
<param name="container">
<attribution license="cc4" from="Microsoft" modified="false" />The <see cref="T:System.Xml.XPath.IXPathNavigable" /> object reference that the expression is evaluated against. This must be a valid object identifier in the page's specified language.</param>
<param name="format">
<attribution license="cc4" from="Microsoft" modified="false" />A .NET Framework format string, similar to those used by <see cref="M:System.String.Format(System.String,System.Object)" />, that converts the <see cref="T:System.Xml.XPath.IXPathNavigable" /> object (which results from the evaluation of the data-binding expression) to a <see cref="T:System.String" /> that can be displayed by the requesting browser.</param>
<param name="resolver">
<attribution license="cc4" from="Microsoft" modified="false" />The <see cref="T:System.Xml.IXmlNamespaceResolver" /> object used to resolve namespace prefixes in the XPath expression.</param>
</Docs>
</Member>
<Member MemberName="Select">
<MemberSignature Language="C#" Value="public static System.Collections.IEnumerable Select (object container, string xpath);" />
<MemberType>Method</MemberType>
<ReturnValue>
<ReturnType>System.Collections.IEnumerable</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="container" Type="System.Object" />
<Parameter Name="xpath" Type="System.String" />
</Parameters>
<Docs>
<param name="xpath">To be added.</param>
<since version=".NET 2.0" />
<remarks>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>You can use the <see cref="M:System.Web.UI.XPathBinder.Select(System.Object,System.String)" /> method declaratively if you want to simplify the retrieval of a set of nodes using an XPath query. To do so, you must place the <%# and %> tags, which are also used in standard ASP.NET data binding, around the XPath query.</para>
<para>For any of the list ASP.NET server controls, such as <see cref="T:System.Web.UI.WebControls.DataList" />, <see cref="T:System.Web.UI.WebControls.DataGrid" />, or <see cref="T:System.Web.UI.WebControls.Repeater" />, the <paramref name="container" /> parameter should be Container.DataItem.</para>
</remarks>
<summary>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>Uses an XPath data-binding expression at run time to return a list of nodes.</para>
</summary>
<returns>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>An <see cref="T:System.Collections.IEnumerable" /> list of nodes.</para>
</returns>
<param name="container">
<attribution license="cc4" from="Microsoft" modified="false" />The <see cref="T:System.Xml.XPath.IXPathNavigable" /> object reference that the expression is evaluated against. This must be a valid object identifier in the page's specified language. </param>
</Docs>
<AssemblyInfo>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
</AssemblyInfo>
</Member>
<Member MemberName="Select">
<MemberSignature Language="C#" Value="public static System.Collections.IEnumerable Select (object container, string xpath, System.Xml.IXmlNamespaceResolver resolver);" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Collections.IEnumerable</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="container" Type="System.Object" />
<Parameter Name="xpath" Type="System.String" />
<Parameter Name="resolver" Type="System.Xml.IXmlNamespaceResolver" />
</Parameters>
<Docs>
<param name="xpath">To be added.</param>
<remarks>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>You can use the <see cref="M:System.Web.UI.XPathBinder.Select(System.Object,System.String,System.Xml.IXmlNamespaceResolver)" /> method declaratively if you want to simplify the retrieval of a set of nodes using an XPath query. To do so, you must place the <%# and %> tags, which are also used in standard ASP.NET data binding, around the XPath query and an <see cref="T:System.Xml.IXmlNamespaceResolver" /> object to resolve the namespace reference.</para>
<para>For any of the list ASP.NET server controls, such as <see cref="T:System.Web.UI.WebControls.DataList" />, <see cref="T:System.Web.UI.WebControls.DataGrid" />, or <see cref="T:System.Web.UI.WebControls.Repeater" />, the <paramref name="container" /> parameter should be Container.DataItem.</para>
</remarks>
<summary>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>Uses an XPath data-binding expression at run time to return a list of nodes, using the <see cref="T:System.Xml.IXmlNamespaceResolver" /> object specified to resolve namespace prefixes in the XPath expression.</para>
</summary>
<returns>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>An <see cref="T:System.Collections.IEnumerable" /> list of nodes.</para>
</returns>
<param name="container">
<attribution license="cc4" from="Microsoft" modified="false" />The <see cref="T:System.Xml.XPath.IXPathNavigable" /> object reference that the expression is evaluated against. This must be a valid object identifier in the page's specified language.</param>
<param name="resolver">
<attribution license="cc4" from="Microsoft" modified="false" />The <see cref="T:System.Xml.IXmlNamespaceResolver" /> object used to resolve namespace prefixes in the XPath expression.</param>
</Docs>
</Member>
</Members>
</Type>
|