Allow a BP to access a C++ defined reference

Does following not work?

UPROPERTY(BlueprintReadWrite,EditAnywhere)
FYourCustomStruct YourVariable;