File: ResourceExpressionFields.xml

package info (click to toggle)
mono-reference-assemblies 3.12.1%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 604,240 kB
  • ctags: 625,505
  • sloc: cs: 3,967,741; xml: 2,793,081; ansic: 418,042; java: 60,435; sh: 14,833; makefile: 11,576; sql: 7,956; perl: 1,467; cpp: 1,446; yacc: 1,203; python: 598; asm: 422; sed: 16; php: 1
file content (82 lines) | stat: -rw-r--r-- 6,232 bytes parent folder | download | duplicates (8)
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
<?xml version="1.0" encoding="utf-8"?>
<Type Name="ResourceExpressionFields" FullName="System.Web.Compilation.ResourceExpressionFields">
  <TypeSignature Language="C#" Value="public sealed class ResourceExpressionFields" />
  <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>When a page is parsed, the values contained in a resource expression are parsed and stored in an instance of the <see cref="T:System.Web.Compilation.ResourceExpressionFields" /> class. This <see cref="T:System.Web.Compilation.ResourceExpressionFields" /> object contains two fields, <see cref="P:System.Web.Compilation.ResourceExpressionFields.ClassKey" /> and <see cref="P:System.Web.Compilation.ResourceExpressionFields.ResourceKey" />. These fields are drawn from the values of a resource expression in either the explicit (&lt;%$ Resources: ClassKey, ResourceKey %&gt;) or implicit (meta:resourcekey="ResourceKey") form. </para>
      <para>The <see cref="P:System.Web.Compilation.ResourceExpressionFields.ClassKey" /> property identifies the class name of a resource that is mapped to a resource file. For example, to reference a resource file named Financial.resx, or a localized version such as Financial.en-GB.resx, the resource expression would appear as &lt;%$ Resources: Financial, ResourceKey %&gt;. After parsing, the <see cref="P:System.Web.Compilation.ResourceExpressionFields.ClassKey" /> property would return "Financial" as its value.</para>
      <para>The <see cref="P:System.Web.Compilation.ResourceExpressionFields.ResourceKey" /> property identifies the particular key/value pair to be retrieved from the file. If the Financial.resx file contains a key called Currency, that value could be specified with the resource expression &lt;%$ Resources: Financial, Currency %&gt;. After parsing, the <see cref="P:System.Web.Compilation.ResourceExpressionFields.ResourceKey" /> property would return "Currency" as its value.</para>
      <para>The resource expression is parsed through the <see cref="M:System.Web.Compilation.ResourceExpressionBuilder.ParseExpression(System.String)" /> method.</para>
      <block subset="none" type="note">
        <para>Sensitive information should not be stored in a resource file.</para>
      </block>
    </remarks>
    <summary>
      <attribution license="cc4" from="Microsoft" modified="false" />
      <para>Contains the fields from a parsed resource expression.</para>
    </summary>
  </Docs>
  <Members>
    <Member MemberName="ClassKey">
      <MemberSignature Language="C#" Value="public string ClassKey { get; }" />
      <MemberType>Property</MemberType>
      <ReturnValue>
        <ReturnType>System.String</ReturnType>
      </ReturnValue>
      <Docs>
        <value>To be added.</value>
        <since version=".NET 2.0" />
        <remarks>
          <attribution license="cc4" from="Microsoft" modified="false" />
          <para>This method returns the class key for a parsed resource expression. The class key represents the name of the resource file, and is the value specified before the comma (,) in an expression of the form &lt;%$ Resources: [Namespace.]ClassKey, ResourceKey $&gt;. A namespace value for the resource class is optional. When a namespace is provided, the namespace and the class key are returned in the <see cref="P:System.Web.Compilation.ResourceExpressionFields.ClassKey" /> property. The class key cannot contain spaces or double-byte character sets (DBCS).</para>
          <para>To reference a resource file named Financial.resx or a localized version such as Financial.en-GB.resx, you would include the resource expression &lt;%$ Resources: Financial, ResourceKey %&gt;. After parsing, the <see cref="P:System.Web.Compilation.ResourceExpressionFields.ClassKey" /> property would return "Financial" as its value.</para>
          <block subset="none" type="note">
            <para>Sensitive information should not be stored in a resource file.</para>
          </block>
        </remarks>
        <summary>
          <attribution license="cc4" from="Microsoft" modified="false" />
          <para>Gets the class key for a parsed resource expression.</para>
        </summary>
      </Docs>
      <AssemblyInfo>
        <AssemblyVersion>2.0.0.0</AssemblyVersion>
      </AssemblyInfo>
    </Member>
    <Member MemberName="ResourceKey">
      <MemberSignature Language="C#" Value="public string ResourceKey { get; }" />
      <MemberType>Property</MemberType>
      <ReturnValue>
        <ReturnType>System.String</ReturnType>
      </ReturnValue>
      <Docs>
        <value>To be added.</value>
        <since version=".NET 2.0" />
        <remarks>
          <attribution license="cc4" from="Microsoft" modified="false" />
          <para>This method returns the resource key for a parsed resource expression. The resource key is the value specified after the comma (,) in an expression of the form &lt;%$ Resources: ClassKey, ResourceKey %&gt;. The <see cref="P:System.Web.Compilation.ResourceExpressionFields.ResourceKey" /> property identifies a particular key/value pair within the resource file mapped to the class key. For example, if a file named Financial.resx contains a key called Currency, that value could be specified with the resource expression &lt;%$ Resources: Financial, Currency %&gt;. After parsing, the <see cref="P:System.Web.Compilation.ResourceExpressionFields.ResourceKey" /> property would return "Currency" as its value.</para>
          <block subset="none" type="note">
            <para>Sensitive information should not be stored in a resource file.</para>
          </block>
        </remarks>
        <summary>
          <attribution license="cc4" from="Microsoft" modified="false" />
          <para>Gets the resource key for a parsed resource expression.</para>
        </summary>
      </Docs>
      <AssemblyInfo>
        <AssemblyVersion>2.0.0.0</AssemblyVersion>
      </AssemblyInfo>
    </Member>
  </Members>
</Type>