The invention relates to an HF plug-and-socket device (1) that includes a contact device arranged inside a casing (2) having a coding device (3). Coding of the HF plug-and-socket device (1) can be accomplished by means of the coding device (3) provided in the casing so that no confusions arise when several HF plug-and-socket devices are connected. A permanently safe HF connection is achieved by means of a locking device (4) embodied in the casing, whereby locking can be carried out in a particularly easy manner through a locking device (4) embodied in the form of snap-on components.