private void UndefineAssociation(string name, bool isAsync, UndefineAssociationCallback callback, Object state) { var parameterList = new Dictionary<string, string> { { "method", "facebook.data.undefineAssociation" } }; Utilities.AddRequiredParameter(parameterList, "name", name); if (isAsync) { SendRequestAsync<data_undefineAssociation_response, bool>(parameterList, new FacebookCallCompleted<bool>(callback), state); return; } SendRequest(parameterList); }
/// <summary> /// Remove a previously defined association. This will also delete this type of associations established between objects. This deletion is not reversible. /// </summary> /// <example> /// <code> /// /// </code> /// </example> /// <param name="name">Name of the association to remove.</param> /// <param name="callback">The AsyncCallback delegate</param> /// <param name="state">An object containing state information for this asynchronous request</param> public void UndefineAssociationAsync(string name, UndefineAssociationCallback callback, Object state) { UndefineAssociation(name, true, callback, state); }