A motor-operated valve, comprising: a valve main body; a can attached to the valve main body; and a stator unit mounted on an outside of the can, wherein the can includes a hollow cylindrical portion and a ceiling portion contiguous with an end of the hollow cylindrical portion, the stator unit includes a cover (40, 40A, 40B) in a shape of a cap, a stator accommodated in the cover (40, 40A, 40B) and having a hollow cylindrical shape, and a mold made of filling resin with which a space between the stator and the cover (40, 40A, 40B) is filled, the stator unit has a cavity into which the can is inserted in an axial direction, the cover (40, 40A, 40B) includes a dome portion, with the ceiling portion being located inside the dome portion, when the can is placed in an installation position such that the ceiling portion and the dome portion face each other in the axial direction with a space therebetween, the can is held by the stator unit, and when the can is placed in a contact position such that the ceiling portion and the dome portion are in contact with each other in the axial direction, the can is able to shift to the installation position, wherein the dome portion has an inner surface that includes a corner part, when the can is placed in the installation position, the corner part and the ceiling portion face each other in the axial direction with a space therebetween, and when the can is placed in the contact position, the corner part and the ceiling portion have line contact, wherein the hollow cylindrical portion of the can has protrusions that are each hemispherical, the stator unit includes holding tabs that are arranged so as to face an external circumferential surface of the hollow cylindrical portion, the holding tabs each include a holding portion that is a through-hole or a recess in which corresponding one of the protrusions is held when the can is placed in the installation position, wherein each holding portion is shaped in conformance with the corresponding protrusion, a dimension of each of the holding portions in the axial direction is equal to or smaller than a diameter of each of the protrusions, and L1 - L2 < D1/2 holds, where L1 denotes a distance in the axial direction between a center of each of the holding portions in the axial direction and the corner part, L2 denotes a distance in the axial direction between a center of each of the protrusions and a point that is located on the ceiling portion and comes into contact with the corner part, and D1 denotes the dimension of each of the holding portions in the axial direction, wherein in the installation position, the center of each holding portion in the axial direction coincides with the center of the corresponding protrusion. a valve main body; a can attached to the valve main body; and a stator unit mounted on an outside of the can, wherein the can includes a hollow cylindrical portion and a ceiling portion contiguous with an end of the hollow cylindrical portion, the stator unit includes a cover (40, 40A, 40B) in a shape of a cap, a stator accommodated in the cover (40, 40A, 40B) and having a hollow cylindrical shape, and a mold made of filling resin with which a space between the stator and the cover (40, 40A, 40B) is filled, the stator unit has a cavity into which the can is inserted in an axial direction, the cover (40, 40A, 40B) includes a dome portion, with the ceiling portion being located inside the dome portion, when the can is placed in an installation position such that the ceiling portion and the dome portion face each other in the axial direction with a space therebetween, the can is held by the stator unit, and when the can is placed in a contact position such that the ceiling portion and the dome portion are in contact with each other in the axial direction, the can is able to shift to the installation position, wherein the dome portion has an inner surface that includes a corner part, when the can is placed in the installation position, the corner part and the ceiling portion face each other in the axial direction with a space therebetween, and when the can is placed in the contact position, the corner part and the ceiling portion have line contact, wherein the hollow cylindrical portion of the can has protrusions that are each hemispherical, the stator unit includes holding tabs that are arranged so as to face an external circumferential surface of the hollow cylindrical portion, the holding tabs each include a holding portion that is a through-hole or a recess in which corresponding one of the protrusions is held when the can is placed in the installation position, wherein each holding portion is shaped in conformance with the corresponding protrusion, a dimension of each of the holding portions in the axial direction is equal to or smaller than a diameter of each of the protrusions, and L1 - L2 < D1/2 holds, where L1 denotes a distance in the axial direction between a center of each of the holding portions in the axial direction and the corner part, L2 denotes a distance in the axial direction between a center of each of the protrusions and a point that is located on the ceiling portion and comes into contact with the corner part, and D1 denotes the dimension of each of the holding portions in the axial direction, wherein in the installation position, the center of each holding portion in the axial direction coincides with the center of the corresponding protrusion.