MonoTouch.Accounts.ACAccount Class
Represents a user account stored in the Accounts database.

See Also: ACAccount Members

Syntax

[MonoTouch.Foundation.Register("ACAccount", true)]
[MonoTouch.ObjCRuntime.Availability(Introduced=MonoTouch.ObjCRuntime.Platform.Mac_10_0 | MonoTouch.ObjCRuntime.Platform.Mac_10_1 | MonoTouch.ObjCRuntime.Platform.Mac_10_2 | MonoTouch.ObjCRuntime.Platform.Mac_10_3 | MonoTouch.ObjCRuntime.Platform.Mac_10_4 | MonoTouch.ObjCRuntime.Platform.Mac_10_5 | MonoTouch.ObjCRuntime.Platform.Mac_10_6 | MonoTouch.ObjCRuntime.Platform.Mac_10_7 | MonoTouch.ObjCRuntime.Platform.Mac_10_8 | MonoTouch.ObjCRuntime.Platform.Mac_10_9 | MonoTouch.ObjCRuntime.Platform.Mac_10_10 | MonoTouch.ObjCRuntime.Platform.Mac_Version | MonoTouch.ObjCRuntime.Platform.Mac_Arch64 | MonoTouch.ObjCRuntime.Platform.Mac_Arch)]
[MonoTouch.ObjCRuntime.Availability(Introduced=MonoTouch.ObjCRuntime.Platform.iOS_5_0)]
public class ACAccount : MonoTouch.Foundation.NSObject, MonoTouch.Foundation.INSSecureCoding, IDisposable

See Also

ACAccountStore

Remarks

iOS stores account information for certain social-network accounts in a system-wide database. A MonoTouch.Accounts.ACAccount represents a single account.

Accounts can either be retrieved based on account-type or via a known identifier (see ACAccount.Identifier):

C# Example

          var store = new ACAccountStore();
          var type = store.FindAccountType(ACAccountType.Twitter);
          var accounts = store.FindAccounts(type));
          if(accounts != null && accounts.Count() > 0){...}
          
          var account = store.FindAccount("21A78660-FFFF-FFFF-FFFF-027EB7E3FF5F");
        

Related content

Requirements

Namespace: MonoTouch.Accounts
Assembly: monotouch (in monotouch.dll)
Assembly Versions: 0.0.0.0