11 references to ThrowIfNotOk
Microsoft.CodeAnalysis.Workspaces (11)
Storage\SQLite\v2\Interop\SqlConnection.cs (6)
195ThrowIfNotOk(result); 314self.ThrowIfNotOk(NativeMethods.sqlite3_blob_read(blobHandle, bytes, offset: 0)); 335ThrowIfNotOk(NativeMethods.sqlite3_blob_read(blob, bytes.AsSpan(), offset: 0)); 346ThrowIfNotOk(NativeMethods.sqlite3_blob_read(blob, new Span<byte>(bytes, start: 0, length), offset: 0)); 424ThrowIfNotOk(result); 431=> ThrowIfNotOk((Result)result);
Storage\SQLite\v2\Interop\SqlStatement.cs (5)
38=> connection.ThrowIfNotOk(NativeMethods.sqlite3_reset(statement)); 94connection.ThrowIfNotOk(NativeMethods.sqlite3_bind_text(statement, parameterIndex, bytes)); 99connection.ThrowIfNotOk(NativeMethods.sqlite3_bind_text(statement, parameterIndex, value)); 103=> connection.ThrowIfNotOk(NativeMethods.sqlite3_bind_int64(statement, parameterIndex, value)); 106=> connection.ThrowIfNotOk(NativeMethods.sqlite3_bind_blob(statement, parameterIndex, bytes));