Edit

Share via


NSObject.RetainCount Property

Definition

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

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

Property Value

System.System.UIntPtr System.unativeint

Implements

Attributes

Remarks

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