/// <summary> /// Retrieves the value of a BooleanItem field. /// </summary> /// <param name="field">BooleanItem with the schema name of the field to retrieve.</param> public bool GetValue(BooleanItem field) { return _client.GetValue(field); }
/// <summary> /// Sets the value of a Boolean Item. /// </summary> /// <param name="option">The option you want to set.</param> public void SetValue(BooleanItem optionSet) { _client.SetValue(optionSet); }
/// <summary> /// Sets the value of a BooleanItem in the header /// </summary> /// <param name="control">The boolean field you want to set.</param> public void SetHeaderValue(BooleanItem control) { _client.SetHeaderValue(control); }
/// <summary> /// Gets the value of a Boolean Item. /// </summary> /// <param name="option">The boolean field name.</param> public bool GetValue(BooleanItem option) { return(_client.GetValue(option)); }
/// <summary> /// Gets the value of a Boolean Item from the header /// </summary> /// <param name="control">The boolean field you want to Get.</param> /// <example>xrmApp.Entity.GetHeaderValue(new BooleanItem { Name = "preferredcontactmethodcode"}); </example> public bool GetHeaderValue(BooleanItem control) { return(_client.GetHeaderValue(control)); }
/// <summary> /// Sets the value of a Boolean Item. /// </summary> /// <param name="option">The boolean field name.</param> public void SetValue(BooleanItem option) { _client.SetValue(option, FormContextType.Dialog); }
/// <summary> /// Sets the value of a Boolean Item in the quick create form. /// </summary> /// <param name="option">The option you want to set.</param> public void SetValue(BooleanItem optionSet) { _client.SetValue(optionSet, FormContextType.QuickCreate); }