NSDictionary.Item[] Property

Definition

Overloads

Name Description
Item[NSString]

Gets the object associated with the specified key.

Item[NSObject]

Gets the object associated with the specified key.

Item[String]

Gets the object associated with the specified key.

Item[NSString]

Gets the object associated with the specified key.

public virtual Foundation.NSObject this[Foundation.NSString key] { get; set; }
public virtual Foundation.NSObject? this[Foundation.NSString key] { get; set; }
member this.Item(Foundation.NSString) : Foundation.NSObject with get, set

Parameters

key
NSString

The key of the object to get.

Property Value

The object associated with the specified key.

Remarks

Returns null if the key wasn't found.

Applies to

Item[NSObject]

Gets the object associated with the specified key.

public virtual Foundation.NSObject this[Foundation.NSObject key] { get; set; }
public virtual Foundation.NSObject? this[Foundation.NSObject key] { get; set; }
member this.Item(Foundation.NSObject) : Foundation.NSObject with get, set

Parameters

key
NSObject

The key of the object to get.

Property Value

The object associated with the specified key.

Implements

Remarks

Returns null if the key wasn't found.

Applies to

Item[String]

Gets the object associated with the specified key.

public virtual Foundation.NSObject this[string key] { get; set; }
public virtual Foundation.NSObject? this[string key] { get; set; }
member this.Item(string) : Foundation.NSObject with get, set

Parameters

key
String

The key of the object to get.

Property Value

The object associated with the specified key.

Exceptions

Thrown when key is null.

Remarks

Returns null if the key wasn't found.

Applies to