forked from dotnet/dotnet-api-docs
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathContractBase.xml
More file actions
319 lines (311 loc) · 18.7 KB
/
ContractBase.xml
File metadata and controls
319 lines (311 loc) · 18.7 KB
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
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
<Type Name="ContractBase" FullName="System.AddIn.Pipeline.ContractBase">
<TypeSignature Language="C#" Value="public class ContractBase : MarshalByRefObject, System.AddIn.Contract.IContract, System.Runtime.Remoting.Lifetime.ISponsor" />
<TypeSignature Language="ILAsm" Value=".class public auto ansi beforefieldinit ContractBase extends System.MarshalByRefObject implements class System.AddIn.Contract.IContract, class System.Runtime.Remoting.Lifetime.ISponsor" />
<TypeSignature Language="DocId" Value="T:System.AddIn.Pipeline.ContractBase" />
<TypeSignature Language="VB.NET" Value="Public Class ContractBase
Inherits MarshalByRefObject
Implements IContract, ISponsor" />
<TypeSignature Language="F#" Value="type ContractBase = class
 inherit MarshalByRefObject
 interface IContract
 interface ISponsor" />
<TypeSignature Language="C++ CLI" Value="public ref class ContractBase : MarshalByRefObject, System::AddIn::Contract::IContract, System::Runtime::Remoting::Lifetime::ISponsor" />
<AssemblyInfo>
<AssemblyName>System.AddIn</AssemblyName>
<AssemblyVersion>3.5.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Base>
<BaseTypeName>System.MarshalByRefObject</BaseTypeName>
</Base>
<Interfaces>
<Interface>
<InterfaceName>System.AddIn.Contract.IContract</InterfaceName>
</Interface>
<Interface>
<InterfaceName>System.Runtime.Remoting.Lifetime.ISponsor</InterfaceName>
</Interface>
</Interfaces>
<Docs>
<summary>Provides a default implementation of <see cref="T:System.AddIn.Contract.IContract" /> members.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
Contracts define the types and methods used by the host and the add-in. All contracts must derive from <xref:System.AddIn.Contract.IContract>. This class provides the default implementation of <xref:System.AddIn.Contract.IContract> members.
]]></format>
</remarks>
</Docs>
<Members>
<Member MemberName=".ctor">
<MemberSignature Language="C#" Value="public ContractBase ();" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor() cil managed" />
<MemberSignature Language="DocId" Value="M:System.AddIn.Pipeline.ContractBase.#ctor" />
<MemberSignature Language="VB.NET" Value="Public Sub New ()" />
<MemberSignature Language="C++ CLI" Value="public:
 ContractBase();" />
<MemberType>Constructor</MemberType>
<AssemblyInfo>
<AssemblyName>System.AddIn</AssemblyName>
<AssemblyVersion>3.5.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Parameters />
<Docs>
<summary>Initializes a new instance of the <see cref="T:System.AddIn.Pipeline.ContractBase" /> class.</summary>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="AcquireLifetimeToken">
<MemberSignature Language="C#" Value="public int AcquireLifetimeToken ();" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance int32 AcquireLifetimeToken() cil managed" />
<MemberSignature Language="DocId" Value="M:System.AddIn.Pipeline.ContractBase.AcquireLifetimeToken" />
<MemberSignature Language="VB.NET" Value="Public Function AcquireLifetimeToken () As Integer" />
<MemberSignature Language="F#" Value="abstract member AcquireLifetimeToken : unit -> int
override this.AcquireLifetimeToken : unit -> int" Usage="contractBase.AcquireLifetimeToken " />
<MemberSignature Language="C++ CLI" Value="public:
 virtual int AcquireLifetimeToken();" />
<MemberType>Method</MemberType>
<Implements>
<InterfaceMember>M:System.AddIn.Contract.IContract.AcquireLifetimeToken</InterfaceMember>
</Implements>
<AssemblyInfo>
<AssemblyName>System.AddIn</AssemblyName>
<AssemblyVersion>3.5.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Int32</ReturnType>
</ReturnValue>
<Parameters />
<Docs>
<summary>Obtains a lifetime token.</summary>
<returns>A random number that identifies a token.</returns>
<remarks>To be added.</remarks>
<exception cref="T:System.InvalidOperationException">All previously acquired tokens have been revoked. No further tokens are available.</exception>
</Docs>
</Member>
<Member MemberName="GetRemoteHashCode">
<MemberSignature Language="C#" Value="public virtual int GetRemoteHashCode ();" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance int32 GetRemoteHashCode() cil managed" />
<MemberSignature Language="DocId" Value="M:System.AddIn.Pipeline.ContractBase.GetRemoteHashCode" />
<MemberSignature Language="VB.NET" Value="Public Overridable Function GetRemoteHashCode () As Integer" />
<MemberSignature Language="F#" Value="abstract member GetRemoteHashCode : unit -> int
override this.GetRemoteHashCode : unit -> int" Usage="contractBase.GetRemoteHashCode " />
<MemberSignature Language="C++ CLI" Value="public:
 virtual int GetRemoteHashCode();" />
<MemberType>Method</MemberType>
<Implements>
<InterfaceMember>M:System.AddIn.Contract.IContract.GetRemoteHashCode</InterfaceMember>
</Implements>
<AssemblyInfo>
<AssemblyName>System.AddIn</AssemblyName>
<AssemblyVersion>3.5.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Int32</ReturnType>
</ReturnValue>
<Parameters />
<Docs>
<summary>Gets the hash code for the current <see cref="T:System.AddIn.Pipeline.ContractBase" /> object.</summary>
<returns>A hash code for the current <see cref="T:System.AddIn.Pipeline.ContractBase" /> object.</returns>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="OnFinalRevoke">
<MemberSignature Language="C#" Value="protected virtual void OnFinalRevoke ();" />
<MemberSignature Language="ILAsm" Value=".method familyhidebysig newslot virtual instance void OnFinalRevoke() cil managed" />
<MemberSignature Language="DocId" Value="M:System.AddIn.Pipeline.ContractBase.OnFinalRevoke" />
<MemberSignature Language="VB.NET" Value="Protected Overridable Sub OnFinalRevoke ()" />
<MemberSignature Language="F#" Value="abstract member OnFinalRevoke : unit -> unit
override this.OnFinalRevoke : unit -> unit" Usage="contractBase.OnFinalRevoke " />
<MemberSignature Language="C++ CLI" Value="protected:
 virtual void OnFinalRevoke();" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>System.AddIn</AssemblyName>
<AssemblyVersion>3.5.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters />
<Docs>
<summary>When overridden in an add-in-side adapter, releases native resources held by the adapter.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
This method is called by the system when all the lifetime tokens that have been acquired from the current <xref:System.AddIn.Pipeline.ContractBase> instance have been revoked. Use this method to clean up any native resources held by the adapter, and to signal to the adapted views that they should do the same.
]]></format>
</remarks>
</Docs>
</Member>
<Member MemberName="QueryContract">
<MemberSignature Language="C#" Value="public virtual System.AddIn.Contract.IContract QueryContract (string contractIdentifier);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance class System.AddIn.Contract.IContract QueryContract(string contractIdentifier) cil managed" />
<MemberSignature Language="DocId" Value="M:System.AddIn.Pipeline.ContractBase.QueryContract(System.String)" />
<MemberSignature Language="VB.NET" Value="Public Overridable Function QueryContract (contractIdentifier As String) As IContract" />
<MemberSignature Language="F#" Value="abstract member QueryContract : string -> System.AddIn.Contract.IContract
override this.QueryContract : string -> System.AddIn.Contract.IContract" Usage="contractBase.QueryContract contractIdentifier" />
<MemberSignature Language="C++ CLI" Value="public:
 virtual System::AddIn::Contract::IContract ^ QueryContract(System::String ^ contractIdentifier);" />
<MemberType>Method</MemberType>
<Implements>
<InterfaceMember>M:System.AddIn.Contract.IContract.QueryContract(System.String)</InterfaceMember>
</Implements>
<AssemblyInfo>
<AssemblyName>System.AddIn</AssemblyName>
<AssemblyVersion>3.5.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.AddIn.Contract.IContract</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="contractIdentifier" Type="System.String" />
</Parameters>
<Docs>
<param name="contractIdentifier">The full name of the contract, including its assembly name.</param>
<summary>Reflects over the instance of a contract and returns the <see langword="this" /> pointer if the current object implements that contract.</summary>
<returns>The <see langword="this" /> pointer to an <see cref="T:System.AddIn.Contract.IContract" /> interface, or <see langword="null" /> if the contract is not implemented.</returns>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
This method can be overridden.
]]></format>
</remarks>
<exception cref="T:System.ArgumentNullException">
<paramref name="contractIdentifier" /> is <see langword="null" />.</exception>
</Docs>
</Member>
<Member MemberName="RemoteEquals">
<MemberSignature Language="C#" Value="public virtual bool RemoteEquals (System.AddIn.Contract.IContract contract);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance bool RemoteEquals(class System.AddIn.Contract.IContract contract) cil managed" />
<MemberSignature Language="DocId" Value="M:System.AddIn.Pipeline.ContractBase.RemoteEquals(System.AddIn.Contract.IContract)" />
<MemberSignature Language="VB.NET" Value="Public Overridable Function RemoteEquals (contract As IContract) As Boolean" />
<MemberSignature Language="F#" Value="abstract member RemoteEquals : System.AddIn.Contract.IContract -> bool
override this.RemoteEquals : System.AddIn.Contract.IContract -> bool" Usage="contractBase.RemoteEquals contract" />
<MemberSignature Language="C++ CLI" Value="public:
 virtual bool RemoteEquals(System::AddIn::Contract::IContract ^ contract);" />
<MemberType>Method</MemberType>
<Implements>
<InterfaceMember>M:System.AddIn.Contract.IContract.RemoteEquals(System.AddIn.Contract.IContract)</InterfaceMember>
</Implements>
<AssemblyInfo>
<AssemblyName>System.AddIn</AssemblyName>
<AssemblyVersion>3.5.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Boolean</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="contract" Type="System.AddIn.Contract.IContract" />
</Parameters>
<Docs>
<param name="contract">The object to test for equality with the remote object.</param>
<summary>Compares an object with a remote object for equality.</summary>
<returns>
<see langword="true" /> if the object is equal to the remote object; otherwise, <see langword="false" />.</returns>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="RemoteToString">
<MemberSignature Language="C#" Value="public virtual string RemoteToString ();" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance string RemoteToString() cil managed" />
<MemberSignature Language="DocId" Value="M:System.AddIn.Pipeline.ContractBase.RemoteToString" />
<MemberSignature Language="VB.NET" Value="Public Overridable Function RemoteToString () As String" />
<MemberSignature Language="F#" Value="abstract member RemoteToString : unit -> string
override this.RemoteToString : unit -> string" Usage="contractBase.RemoteToString " />
<MemberSignature Language="C++ CLI" Value="public:
 virtual System::String ^ RemoteToString();" />
<MemberType>Method</MemberType>
<Implements>
<InterfaceMember>M:System.AddIn.Contract.IContract.RemoteToString</InterfaceMember>
</Implements>
<AssemblyInfo>
<AssemblyName>System.AddIn</AssemblyName>
<AssemblyVersion>3.5.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.String</ReturnType>
</ReturnValue>
<Parameters />
<Docs>
<summary>Gets a string that identifies a remote object.</summary>
<returns>A string that identifies the remote object.</returns>
<remarks>To be added.</remarks>
</Docs>
</Member>
<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.AddIn.Pipeline.ContractBase.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
override this.Renewal : System.Runtime.Remoting.Lifetime.ILease -> TimeSpan" Usage="contractBase.Renewal lease" />
<MemberSignature Language="C++ CLI" Value="public:
 virtual TimeSpan Renewal(System::Runtime::Remoting::Lifetime::ILease ^ lease);" />
<MemberType>Method</MemberType>
<Implements>
<InterfaceMember>M:System.Runtime.Remoting.Lifetime.ISponsor.Renewal(System.Runtime.Remoting.Lifetime.ILease)</InterfaceMember>
</Implements>
<AssemblyInfo>
<AssemblyName>System.AddIn</AssemblyName>
<AssemblyVersion>3.5.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<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 object that is used by the remoting lifetime service.</param>
<summary>Requests a sponsoring client to renew the lease for the specified object.</summary>
<returns>The renewed lease.</returns>
<remarks>To be added.</remarks>
<exception cref="T:System.ArgumentNullException">
<paramref name="lease" /> is <see langword="null" />.</exception>
</Docs>
</Member>
<Member MemberName="RevokeLifetimeToken">
<MemberSignature Language="C#" Value="public void RevokeLifetimeToken (int token);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance void RevokeLifetimeToken(int32 token) cil managed" />
<MemberSignature Language="DocId" Value="M:System.AddIn.Pipeline.ContractBase.RevokeLifetimeToken(System.Int32)" />
<MemberSignature Language="VB.NET" Value="Public Sub RevokeLifetimeToken (token As Integer)" />
<MemberSignature Language="F#" Value="abstract member RevokeLifetimeToken : int -> unit
override this.RevokeLifetimeToken : int -> unit" Usage="contractBase.RevokeLifetimeToken token" />
<MemberSignature Language="C++ CLI" Value="public:
 virtual void RevokeLifetimeToken(int token);" />
<MemberType>Method</MemberType>
<Implements>
<InterfaceMember>M:System.AddIn.Contract.IContract.RevokeLifetimeToken(System.Int32)</InterfaceMember>
</Implements>
<AssemblyInfo>
<AssemblyName>System.AddIn</AssemblyName>
<AssemblyVersion>3.5.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute FrameworkAlternate="netframework-3.5">
<AttributeName Language="C#">[System.Security.SecurityCritical]</AttributeName>
<AttributeName Language="F#">[<System.Security.SecurityCritical>]</AttributeName>
</Attribute>
<Attribute FrameworkAlternate="netframework-3.5">
<AttributeName Language="C#">[System.Security.SecurityTreatAsSafe]</AttributeName>
<AttributeName Language="F#">[<System.Security.SecurityTreatAsSafe>]</AttributeName>
</Attribute>
<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.SecuritySafeCritical]</AttributeName>
<AttributeName Language="F#">[<System.Security.SecuritySafeCritical>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="token" Type="System.Int32" />
</Parameters>
<Docs>
<param name="token">The token number.</param>
<summary>Removes the specified token from the list of outstanding lifetime tokens.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
If the token is not in the list of outstanding lifetime tokens, this method throws an <xref:System.InvalidOperationException>.
]]></format>
</remarks>
<exception cref="T:System.InvalidOperationException">
<paramref name="token" /> is not found in the list of outstanding lifetime tokens.</exception>
</Docs>
</Member>
</Members>
</Type>