Show / Hide Table of Contents

Class CoreFoundation.CFArray

Inheritance
System.Object
CoreFoundation.CFObject
CoreFoundation.CFArrayBase
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
CoreFoundation.CFArrayBase.Count
CoreFoundation.CFArrayBase.Item[Int32]
CoreFoundation.CFArrayBase.GetEnumerator()
CoreFoundation.CFArrayBase.IEnumerable.GetEnumerator()
CoreFoundation.CFObject.Handle
CoreFoundation.CFObject.Dispose()
CoreFoundation.CFObject.Dispose(Boolean)
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 Source

CFArray(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 Source

FromCFStringArray(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
  • Improve this Doc
  • View Source
Back to top Generated by DocFX