NSObject.RetainCount NSObject.RetainCount Property


Returns the current Objective-C retain count for the object.

[get: Foundation.Export("retainCount")]
public virtual nuint RetainCount { get; }
member this.RetainCount : nuint

Property Value



This property is exposed for debugging purposes, but in

general it might not be very useful, since the object might

have been added to an NSAutoReleasePool. Unfortunatelly, it

is not a precise measuring tool.

Applies to