コード例 #1
0
 /// <summary>
 /// Unpairs the device with the given HostID and removes the pairing records
 /// from the device and host if the internal pairing record management is used.
 /// </summary>
 /// <param name="client">
 /// The lockdown client
 /// </param>
 /// <param name="pair_record">
 /// The pair record to use for unpair. If NULL is passed, then
 /// the pair records from the current machine are used.
 /// </param>
 /// <returns>
 /// LOCKDOWN_E_SUCCESS on success, LOCKDOWN_E_INVALID_ARG when client is NULL,
 /// LOCKDOWN_E_PLIST_ERROR if the pair_record certificates are wrong,
 /// LOCKDOWN_E_PAIRING_FAILED if the pairing failed,
 /// LOCKDOWN_E_PASSWORD_PROTECTED if the device is password protected,
 /// LOCKDOWN_E_INVALID_HOST_ID if the device does not know the caller's host id
 /// </returns>
 public virtual LockdownError lockdownd_unpair(LockdownClientHandle client, LockdownPairRecordHandle pairRecord)
 {
     return(LockdownNativeMethods.lockdownd_unpair(client, pairRecord));
 }