public void Set(SessionSearchRemoveParameterOptions other) { if (other != null) { m_ApiVersion = SessionSearch.SessionsearchRemoveparameterApiLatest; Key = other.Key; ComparisonOp = other.ComparisonOp; } }
/// <summary> /// Remove a parameter from the array of search criteria. /// /// @params Options a search parameter key name to remove /// </summary> /// <returns> /// <see cref="Result.Success" /> if removing this search parameter was successful /// <see cref="Result.InvalidParameters" /> if the search key is invalid or null /// <see cref="Result.NotFound" /> if the parameter was not a part of the search criteria /// <see cref="Result.IncompatibleVersion" /> if the API version passed in is incorrect /// </returns> public Result RemoveParameter(SessionSearchRemoveParameterOptions options) { System.IntPtr optionsAddress = new System.IntPtr(); Helper.TryMarshalSet <SessionSearchRemoveParameterOptionsInternal, SessionSearchRemoveParameterOptions>(ref optionsAddress, options); var funcResult = EOS_SessionSearch_RemoveParameter(InnerHandle, optionsAddress); Helper.TryMarshalDispose(ref optionsAddress); return(funcResult); }