-
Notifications
You must be signed in to change notification settings - Fork 42
/
ReleaseAttribute.xml
66 lines (66 loc) · 2.66 KB
/
ReleaseAttribute.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
<Type Name="ReleaseAttribute" FullName="ObjCRuntime.ReleaseAttribute">
<TypeSignature Language="C#" Value="public sealed class ReleaseAttribute : Attribute" />
<TypeSignature Language="ILAsm" Value=".class public auto ansi sealed beforefieldinit ReleaseAttribute extends System.Attribute" />
<TypeSignature Language="DocId" Value="T:ObjCRuntime.ReleaseAttribute" />
<TypeSignature Language="F#" Value="type ReleaseAttribute = class
 inherit Attribute" />
<AssemblyInfo>
<AssemblyName>Xamarin.iOS</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<AssemblyInfo>
<AssemblyName>Xamarin.Mac</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Base>
<BaseTypeName>System.Attribute</BaseTypeName>
</Base>
<Interfaces />
<Attributes>
<Attribute>
<AttributeName>System.AttributeUsage(System.AttributeTargets.ReturnValue)</AttributeName>
</Attribute>
</Attributes>
<Docs>
<summary>This attribute indicates that the return value of a function is retained (the caller obtains a reference to the object returned).</summary>
<remarks>
<para>
The Xamarin.iOS runtime uses this attribute to determine the reference counting behavior on the boundary between Objective-C and managed code.
</para>
<example>
<code lang="csharp lang-csharp"><![CDATA[
class MyUrl : NSUrl { // NSUrl implements NSCopying
public override NSObject Clone ()
{
return base.Clone ();
}
}
]]></code>
</example>
<para>
In this example Xamarin.iOS will first call 'release' on the object returned by [NSUrl clone] (the call to base.Clone), then call 'retain' as the object is returned to Objective-C.
</para>
</remarks>
</Docs>
<Members>
<Member MemberName=".ctor">
<MemberSignature Language="C#" Value="public ReleaseAttribute ();" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor() cil managed" />
<MemberSignature Language="DocId" Value="M:ObjCRuntime.ReleaseAttribute.#ctor" />
<MemberType>Constructor</MemberType>
<AssemblyInfo>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
<AssemblyName>Xamarin.iOS</AssemblyName>
</AssemblyInfo>
<AssemblyInfo>
<AssemblyName>Xamarin.Mac</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Parameters />
<Docs>
<summary>Initializes a new instance of the Release attribute.</summary>
<remarks>
</remarks>
</Docs>
</Member>
</Members>
</Type>