How can I do a line trace and only check against a specific instance of an object?

I don’t see how this can work with a line trace? I need to explicitly only check against an object. You can’t line trace against all objects with a tag only?