Share via


DictionaryContainer.SetValueTypeAsNSData<T> Method

Definition

Sets an NSData with the contents of a value type of type T associated with key.

protected void SetValueTypeAsNSData<T>(Foundation.NSString key, T? value) where T : struct;
member this.SetValueTypeAsNSData : Foundation.NSString * Nullable<'T (requires 'T : struct)> -> unit (requires 'T : struct)

Type Parameters

T

The value type stored in the type NSData.

Parameters

key
NSString

The identifier of the value to get.

value
Nullable<T>

The value to store in the NSData.

Applies to