-
Notifications
You must be signed in to change notification settings - Fork 1.5k
/
IImplicitResourceProvider.xml
108 lines (100 loc) · 7.38 KB
/
IImplicitResourceProvider.xml
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
<Type Name="IImplicitResourceProvider" FullName="System.Web.Compilation.IImplicitResourceProvider">
<TypeSignature Language="C#" Value="public interface IImplicitResourceProvider" />
<TypeSignature Language="ILAsm" Value=".class public interface auto ansi abstract IImplicitResourceProvider" />
<TypeSignature Language="DocId" Value="T:System.Web.Compilation.IImplicitResourceProvider" />
<TypeSignature Language="VB.NET" Value="Public Interface IImplicitResourceProvider" />
<TypeSignature Language="F#" Value="type IImplicitResourceProvider = interface" />
<TypeSignature Language="C++ CLI" Value="public interface class IImplicitResourceProvider" />
<AssemblyInfo>
<AssemblyName>System.Web</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Interfaces />
<Docs>
<summary>Defines methods a class implements to act as an implicit resource provider.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
Resources can be declared explicitly or implicitly within a page. Implicit resources allow the developer to assign a collection of resource values to a control in one statement rather than assigning each value individually. When the page parser encounters an implicit resource in the form of `meta:resourcekey="WelcomeLabel"`, it assigns all the values with the `WelcomeLabel` resource key prefix to the corresponding values in the control. For example, if a resource file defines values for `WelcomeLabel.Text` and `WelcomeLabel.ToolTip`, those values would be assigned to a `Label` control with an implicit reference to `WelcomeLabel`.
The <xref:System.Web.Compilation.IImplicitResourceProvider> interface defines the methods a resource provider implements to access implicit resources. You can obtain a particular value using the <xref:System.Web.Compilation.IImplicitResourceProvider.GetObject%2A> method.
If you create a custom resource provider, you do not need to provide customized support for implicit resource localization. Implicit localization will work with your resource provider.
]]></format>
</remarks>
<altmember cref="T:System.Web.Compilation.ResourceExpressionBuilder" />
<altmember cref="T:System.Web.Compilation.ImplicitResourceKey" />
<altmember cref="T:System.Web.UI.Design.ResourceExpressionEditor" />
</Docs>
<Members>
<Member MemberName="GetImplicitResourceKeys">
<MemberSignature Language="C#" Value="public System.Collections.ICollection GetImplicitResourceKeys (string keyPrefix);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance class System.Collections.ICollection GetImplicitResourceKeys(string keyPrefix) cil managed" />
<MemberSignature Language="DocId" Value="M:System.Web.Compilation.IImplicitResourceProvider.GetImplicitResourceKeys(System.String)" />
<MemberSignature Language="VB.NET" Value="Public Function GetImplicitResourceKeys (keyPrefix As String) As ICollection" />
<MemberSignature Language="F#" Value="abstract member GetImplicitResourceKeys : string -> System.Collections.ICollection" Usage="iImplicitResourceProvider.GetImplicitResourceKeys keyPrefix" />
<MemberSignature Language="C++ CLI" Value="public:
 System::Collections::ICollection ^ GetImplicitResourceKeys(System::String ^ keyPrefix);" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>System.Web</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Collections.ICollection</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="keyPrefix" Type="System.String" />
</Parameters>
<Docs>
<param name="keyPrefix">The prefix of the implicit resource keys to be collected.</param>
<summary>Gets a collection of implicit resource keys as specified by the prefix.</summary>
<returns>An <see cref="T:System.Collections.ICollection" /> of implicit resource keys.</returns>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
When implemented, the method returns a collection of implicit resource keys for a particular prefix. For example, `WelcomeLabel` is specified as the prefix in the expression `meta:resourcekey="WelcomeLabel"`. Any properties in a local resource file with `WelcomeLabel` as a prefix should be returned with this method.
]]></format>
</remarks>
<altmember cref="T:System.Web.Compilation.ResourceExpressionBuilder" />
<altmember cref="T:System.Web.Compilation.ImplicitResourceKey" />
<altmember cref="T:System.Web.UI.Design.ResourceExpressionEditor" />
</Docs>
</Member>
<Member MemberName="GetObject">
<MemberSignature Language="C#" Value="public object GetObject (System.Web.Compilation.ImplicitResourceKey key, System.Globalization.CultureInfo culture);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance object GetObject(class System.Web.Compilation.ImplicitResourceKey key, class System.Globalization.CultureInfo culture) cil managed" />
<MemberSignature Language="DocId" Value="M:System.Web.Compilation.IImplicitResourceProvider.GetObject(System.Web.Compilation.ImplicitResourceKey,System.Globalization.CultureInfo)" />
<MemberSignature Language="VB.NET" Value="Public Function GetObject (key As ImplicitResourceKey, culture As CultureInfo) As Object" />
<MemberSignature Language="F#" Value="abstract member GetObject : System.Web.Compilation.ImplicitResourceKey * System.Globalization.CultureInfo -> obj" Usage="iImplicitResourceProvider.GetObject (key, culture)" />
<MemberSignature Language="C++ CLI" Value="public:
 System::Object ^ GetObject(System::Web::Compilation::ImplicitResourceKey ^ key, System::Globalization::CultureInfo ^ culture);" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>System.Web</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Object</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="key" Type="System.Web.Compilation.ImplicitResourceKey" />
<Parameter Name="culture" Type="System.Globalization.CultureInfo" />
</Parameters>
<Docs>
<param name="key">The resource key containing the prefix, filter, and property.</param>
<param name="culture">The <see cref="T:System.Globalization.CultureInfo" /> that represents the culture for which the resource is localized.</param>
<summary>Gets an object representing the value of the specified resource key.</summary>
<returns>An <see cref="T:System.Object" /> representing the localized value of an implicit resource key.</returns>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
When implemented, the method returns the object for the value represented by the implicit resource key.
]]></format>
</remarks>
<altmember cref="T:System.Web.Compilation.ResourceExpressionBuilder" />
<altmember cref="T:System.Web.Compilation.ImplicitResourceKey" />
<altmember cref="T:System.Web.UI.Design.ResourceExpressionEditor" />
</Docs>
</Member>
</Members>
</Type>