public void Set(SessionSearchSetSessionIdOptions other)
 {
     if (other != null)
     {
         m_ApiVersion = SessionSearch.SessionsearchSetsessionidApiLatest;
         SessionId    = other.SessionId;
     }
 }
示例#2
0
        /// <summary>
        /// Set a session ID to find and will return at most one search result. Setting TargetUserId or SearchParameters will result in <see cref="Find" /> failing
        /// </summary>
        /// <param name="options">A specific session ID for which to search</param>
        /// <returns>
        /// <see cref="Result.Success" /> if setting this session ID was successful
        /// <see cref="Result.InvalidParameters" /> if the session ID is invalid or null
        /// <see cref="Result.IncompatibleVersion" /> if the API version passed in is incorrect
        /// </returns>
        public Result SetSessionId(SessionSearchSetSessionIdOptions options)
        {
            System.IntPtr optionsAddress = new System.IntPtr();
            Helper.TryMarshalSet <SessionSearchSetSessionIdOptionsInternal, SessionSearchSetSessionIdOptions>(ref optionsAddress, options);

            var funcResult = EOS_SessionSearch_SetSessionId(InnerHandle, optionsAddress);

            Helper.TryMarshalDispose(ref optionsAddress);

            return(funcResult);
        }