DictionaryContainer.GetNSDataAsValueType<T>(NSString) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns an NSData with the contents of a value type of type T associated with key.
protected T? GetNSDataAsValueType<T>(Foundation.NSString key) where T : struct;
member this.GetNSDataAsValueType : Foundation.NSString -> Nullable<'T (requires 'T : struct)> (requires 'T : struct)
Type Parameters
- T
The value type stored in the type NSData.
Parameters
- key
- NSString
The identifier of the value to get.
Returns
The value type initialized from the data in the NSData, or null if the specified key is not present in this dictionary.