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
|
<Type Name="IServiceProvider" FullName="System.IServiceProvider">
<TypeSignature Maintainer="auto" Language="C#" Value="public interface IServiceProvider" />
<AssemblyInfo>
<AssemblyName>mscorlib</AssemblyName>
<AssemblyPublicKey>[00 00 00 00 00 00 00 00 04 00 00 00 00 00 00 00]</AssemblyPublicKey>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ThreadSafetyStatement>Gtk# is thread aware, but not thread safe; See the <link location="node:gtk-sharp/programming/threads">Gtk# Thread Programming</link> for details.</ThreadSafetyStatement>
<Docs>
<summary>This interface is used to query for instances of objects based on a Type.</summary>
<remarks>This interface provides a mechanism to fetch instances to objects of a given <see cref="T:System.Type" /> from classes that implement this interface.
For example the <see cref="T:System.Web.HttpContext" /> class implements this and allows fething a few fields that are not exposed by its properties.
<para>
A typical implementation will look like this:
</para><example><code lang="C#">
object IServiceProvider.GetService (Type service)
{
if (service == typeof (Something))
return something;
if (service == typeof (DateTime))
return my_date_time;
}
</code></example></remarks>
</Docs>
<Members>
<Member MemberName="GetService">
<MemberSignature Language="C#" Value="public object GetService (Type serviceType);" />
<MemberType>Method</MemberType>
<ReturnValue>
<ReturnType>System.Object</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="serviceType" Type="System.Type" />
</Parameters>
<Docs>
<param name="serviceType">To be added: an object of type 'Type'</param>
<summary>To be added</summary>
<returns>To be added: an object of type 'object'</returns>
<remarks>To be added</remarks>
</Docs>
<AssemblyInfo>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
</AssemblyInfo>
</Member>
</Members>
<Interfaces />
</Type>
|