File: IResourceUrlGenerator.xml

package info (click to toggle)
mono 6.14.1%2Bds2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,282,732 kB
  • sloc: cs: 11,182,461; xml: 2,850,281; ansic: 699,123; cpp: 122,919; perl: 58,604; javascript: 30,841; asm: 21,845; makefile: 19,602; sh: 10,973; python: 4,772; pascal: 925; sql: 859; sed: 16; php: 1
file content (67 lines) | stat: -rw-r--r-- 4,467 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
<?xml version="1.0" encoding="utf-8"?>
<Type Name="IResourceUrlGenerator" FullName="System.Web.UI.IResourceUrlGenerator">
  <TypeSignature Language="C#" Value="public interface IResourceUrlGenerator" />
  <AssemblyInfo>
    <AssemblyName>System.Web</AssemblyName>
    <AssemblyVersion>2.0.0.0</AssemblyVersion>
  </AssemblyInfo>
  <Interfaces />
  <Docs>
    <since version=".NET 2.0" />
    <remarks>
      <attribution license="cc4" from="Microsoft" modified="false" />
      <para>ASP.NET version 2.0 provides the ability to retrieve embedded resources from an assembly for controls, such as the <see cref="T:System.Web.UI.Page" /> control. At run time, the URL to the embedded resource can be retrieved using the <see cref="M:System.Web.UI.ClientScriptManager.GetWebResourceUrl(System.Type,System.String)" /> method of the <see cref="T:System.Web.UI.ClientScriptManager" /> class. To provide a design-time means for generating a resource URL from an assembly, designer hosts can offer a service that implements the <see cref="T:System.Web.UI.IResourceUrlGenerator" /> interface. For more information: </para>
      <list type="bullet">
        <item>
          <para>On using resources in localization, see <format type="text/html"><a href="0936b3b2-9e6e-4abe-9c06-364efef9dbbd">ASP.NET Web Page Resources Overview</a></format>. </para>
        </item>
        <item>
          <para>On using embedded resources, see <format type="text/html"><a href="d8e0e5c0-1958-422b-b4f5-ebe63f6c45cb">How to: Use Resources to Set ASP.NET Control Property Values</a></format> and <format type="text/html"><a href="7a06d512-6fc3-40ca-9cb6-7f41d1a9fa28">How to: Read Resource Values Programmatically</a></format>. </para>
        </item>
        <item>
          <para>On control designers, see <format type="text/html"><a href="1d5a99d7-0a72-403e-812e-2c1ab595c810">Introduction to ASP.NET Control Designers</a></format>. </para>
        </item>
      </list>
      <para>The <see cref="T:System.Web.UI.IResourceUrlGenerator" /> interface has one method, the <see cref="M:System.Web.UI.IResourceUrlGenerator.GetResourceUrl(System.Type,System.String)" /> method, that returns a URL reference to a resource given the resource type and name.</para>
    </remarks>
    <summary>
      <attribution license="cc4" from="Microsoft" modified="false" />
      <para>Defines the method that a designer-host must implement to provide URL reference look-up for embedded resources.</para>
    </summary>
  </Docs>
  <Members>
    <Member MemberName="GetResourceUrl">
      <MemberSignature Language="C#" Value="public string GetResourceUrl (Type type, string resource);" />
      <MemberType>Method</MemberType>
      <ReturnValue>
        <ReturnType>System.String</ReturnType>
      </ReturnValue>
      <Parameters>
        <Parameter Name="type" Type="System.Type" />
        <Parameter Name="resource" Type="System.String" />
      </Parameters>
      <Docs>
        <param name="resource">To be added.</param>
        <since version=".NET 2.0" />
        <remarks>
          <attribution license="cc4" from="Microsoft" modified="false" />
          <para>At run time, the <see cref="M:System.Web.UI.ClientScriptManager.GetWebResourceUrl(System.Type,System.String)" /> method returns a URL to a resource. The <see cref="T:System.Web.Handlers.AssemblyResourceLoader" /> class defines the HTTP handler that is used to load embedded resources.</para>
          <para>At design time, the <see cref="M:System.Web.UI.ClientScriptManager.GetWebResourceUrl(System.Type,System.String)" /> method of the <see cref="T:System.Web.UI.ClientScriptManager" /> class detects design mode and delegates to the designer-host service implementation, which returns a URL.</para>
        </remarks>
        <summary>
          <attribution license="cc4" from="Microsoft" modified="false" />
          <para>Returns a URL reference to an embedded resource in an assembly that is used at design time.</para>
        </summary>
        <returns>
          <attribution license="cc4" from="Microsoft" modified="false" />
          <para>The URL reference to the resource.</para>
        </returns>
        <param name="type">
          <attribution license="cc4" from="Microsoft" modified="false" />The type in the assembly that contains the embedded resource.</param>
      </Docs>
      <AssemblyInfo>
        <AssemblyVersion>2.0.0.0</AssemblyVersion>
      </AssemblyInfo>
    </Member>
  </Members>
</Type>