How to restore a database in sql server from a network share

RESTORE DATABASE SampleDB
FROM DISK = '\\NetworkShare\SampleDBFullbackup.BAK'