public void Set(SessionSearchSetParameterOptions other)
 {
     if (other != null)
     {
         m_ApiVersion = SessionSearch.SessionsearchSetparameterApiLatest;
         Parameter    = other.Parameter;
         ComparisonOp = other.ComparisonOp;
     }
 }
Beispiel #2
0
        /// <summary>
        /// Add a parameter to an array of search criteria combined via an implicit AND operator. Setting SessionId or TargetUserId will result in <see cref="Find" /> failing
        /// <seealso cref="AttributeData" />
        /// <seealso cref="ComparisonOp" />
        /// </summary>
        /// <param name="options">a search parameter and its comparison op</param>
        /// <returns>
        /// <see cref="Result.Success" /> if setting this search parameter was successful
        /// <see cref="Result.InvalidParameters" /> if the search criteria is invalid or null
        /// <see cref="Result.IncompatibleVersion" /> if the API version passed in is incorrect
        /// </returns>
        public Result SetParameter(SessionSearchSetParameterOptions options)
        {
            System.IntPtr optionsAddress = new System.IntPtr();
            Helper.TryMarshalSet <SessionSearchSetParameterOptionsInternal, SessionSearchSetParameterOptions>(ref optionsAddress, options);

            var funcResult = EOS_SessionSearch_SetParameter(InnerHandle, optionsAddress);

            Helper.TryMarshalDispose(ref optionsAddress);

            return(funcResult);
        }