ArgumentSemantic ArgumentSemantic Enum

Definition

Represents the assignment semantics for properties.

public enum ArgumentSemantic
type ArgumentSemantic = 
Inheritance
ArgumentSemanticArgumentSemantic

Fields

Assign Assign 0

Assigning is merely a pointer copy.

Copy Copy 1

A copy of the object is made.

None None -1

No argument semantics is specified.

Retain Retain 2

The object increases the reference count of the passed object.

Strong Strong 2

The object increases the reference count of the passed object (modern name for “Retain").

UnsafeUnretained UnsafeUnretained 0

Merely performs a pointer copy in unmanaged code (modern name for "Assign").

Weak Weak 3

Weak properties do not increase the reference count of the passed object, and will be nulled out automatically when the passed object is freed.

Remarks

This is used to flag the behavior of properties when objects are assigned, these are used by the Xamarin.iOS / Xamarin.Mac runtime to properly track used objects and to garbage collect them when they are no longer required.

Applies to