-
Notifications
You must be signed in to change notification settings - Fork 1.5k
/
ISponsor.xml
90 lines (80 loc) · 5.5 KB
/
ISponsor.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
<Type Name="ISponsor" FullName="System.Runtime.Remoting.Lifetime.ISponsor">
<TypeSignature Language="C#" Value="public interface ISponsor" />
<TypeSignature Language="ILAsm" Value=".class public interface auto ansi abstract ISponsor" />
<TypeSignature Language="DocId" Value="T:System.Runtime.Remoting.Lifetime.ISponsor" />
<TypeSignature Language="VB.NET" Value="Public Interface ISponsor" />
<TypeSignature Language="F#" Value="type ISponsor = interface" />
<TypeSignature Language="C++ CLI" Value="public interface class ISponsor" />
<AssemblyInfo>
<AssemblyName>mscorlib</AssemblyName>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>2.0.5.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Interfaces />
<Attributes>
<Attribute FrameworkAlternate="netframework-2.0;netframework-3.0;netframework-3.5;netframework-4.0;netframework-4.5;netframework-4.5.1;netframework-4.5.2;netframework-4.6;netframework-4.6.1;netframework-4.6.2;netframework-4.7;netframework-4.7.1;netframework-4.7.2;netframework-4.8;netframework-4.8.1">
<AttributeName Language="C#">[System.Runtime.InteropServices.ComVisible(true)]</AttributeName>
<AttributeName Language="F#">[<System.Runtime.InteropServices.ComVisible(true)>]</AttributeName>
</Attribute>
</Attributes>
<Docs>
<summary>Indicates that the implementer wants to be a lifetime lease sponsor.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
An object must implement the <xref:System.Runtime.Remoting.Lifetime.ISponsor> interface if it needs to request a lease renewal for a particular object. An object that implements the <xref:System.Runtime.Remoting.Lifetime.ISponsor> interface can become a sponsor by registering itself with the lease manager. The <xref:System.Runtime.Remoting.Lifetime.ISponsor> interface is used by the lifetime service to call back to the sponsor.
## Examples
:::code language="cpp" source="~/snippets/cpp/VS_Snippets_Remoting/ISponsor_Client/CPP/isponsor_client.cpp" id="Snippet2":::
:::code language="csharp" source="~/snippets/csharp/System.Runtime.Remoting.Lifetime/ISponsor/Overview/isponsor_client.cs" id="Snippet2":::
:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Remoting/ISponsor_Client/VB/isponsor_client.vb" id="Snippet2":::
]]></format>
</remarks>
</Docs>
<Members>
<Member MemberName="Renewal">
<MemberSignature Language="C#" Value="public TimeSpan Renewal (System.Runtime.Remoting.Lifetime.ILease lease);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance valuetype System.TimeSpan Renewal(class System.Runtime.Remoting.Lifetime.ILease lease) cil managed" />
<MemberSignature Language="DocId" Value="M:System.Runtime.Remoting.Lifetime.ISponsor.Renewal(System.Runtime.Remoting.Lifetime.ILease)" />
<MemberSignature Language="VB.NET" Value="Public Function Renewal (lease As ILease) As TimeSpan" />
<MemberSignature Language="F#" Value="abstract member Renewal : System.Runtime.Remoting.Lifetime.ILease -> TimeSpan" Usage="iSponsor.Renewal lease" />
<MemberSignature Language="C++ CLI" Value="public:
 TimeSpan Renewal(System::Runtime::Remoting::Lifetime::ILease ^ lease);" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>mscorlib</AssemblyName>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute FrameworkAlternate="netframework-4.0;netframework-4.5;netframework-4.5.1;netframework-4.5.2;netframework-4.6;netframework-4.6.1;netframework-4.6.2;netframework-4.7;netframework-4.7.1;netframework-4.7.2;netframework-4.8;netframework-4.8.1">
<AttributeName Language="C#">[System.Security.SecurityCritical]</AttributeName>
<AttributeName Language="F#">[<System.Security.SecurityCritical>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.TimeSpan</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="lease" Type="System.Runtime.Remoting.Lifetime.ILease" />
</Parameters>
<Docs>
<param name="lease">The lifetime lease of the object that requires lease renewal.</param>
<summary>Requests a sponsoring client to renew the lease for the specified object.</summary>
<returns>The additional lease time for the specified object.</returns>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
The <xref:System.Runtime.Remoting.Lifetime.ISponsor.Renewal%2A> method is called by the distributed garbage collector to renew the lease for the specified object.
## Examples
:::code language="cpp" source="~/snippets/cpp/VS_Snippets_Remoting/ISponsor_Client/CPP/isponsor_client.cpp" id="Snippet2":::
:::code language="csharp" source="~/snippets/csharp/System.Runtime.Remoting.Lifetime/ISponsor/Overview/isponsor_client.cs" id="Snippet2":::
:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Remoting/ISponsor_Client/VB/isponsor_client.vb" id="Snippet2":::
]]></format>
</remarks>
<exception cref="T:System.Security.SecurityException">The immediate caller makes the call through a reference to the interface and does not have infrastructure permission.</exception>
</Docs>
</Member>
</Members>
</Type>