Class CoreFoundation.CFArray
Implements
System.IDisposable
System.Collections.Generic.IReadOnlyList<System.IntPtr>
System.Collections.Generic.IReadOnlyCollection<System.IntPtr>
System.Collections.Generic.IEnumerable<System.IntPtr>
System.Collections.IEnumerable
Inherited Members
Namespace: Xamarin.NativeHelpers
Assembly: Xamarin.NativeHelpers.dll
Syntax
public sealed class CFArray : CoreFoundation.CFArrayBase, IDisposable, IReadOnlyList<IntPtr>, IReadOnlyCollection<IntPtr>, IEnumerable<IntPtr>, IEnumerable
Constructors
| Improve this Doc View SourceCFArray(IntPtr, Boolean)
Declaration
public CFArray(IntPtr handle, bool ownsHandle = true)
Parameters
Type | Name | Description |
---|---|---|
System.IntPtr | handle | |
System.Boolean | ownsHandle |
Methods
| Improve this Doc View SourceFromCFStringArray(IntPtr, Boolean)
Read a CoreFoundation.CFArray from cfArrayHandle
containing
only CoreFoundation.CFString or null
items. If an item is not null or
CoreFoundation.CFString, a System.ArrayTypeMismatchException will be raised.
Declaration
public static List<string> FromCFStringArray(IntPtr cfArrayHandle, bool ownsHandle = true)
Parameters
Type | Name | Description |
---|---|---|
System.IntPtr | cfArrayHandle | |
System.Boolean | ownsHandle |
Returns
Type | Description |
---|---|
System.Collections.Generic.List<System.String> |
Implements
System.IDisposable
System.Collections.Generic.IReadOnlyList<T>
System.Collections.Generic.IReadOnlyCollection<T>
System.Collections.Generic.IEnumerable<T>
System.Collections.IEnumerable