How to get the value of a dropdown?

I made a UI dropdown in the inspector. But i get a error. The UI dropdown object is calling ServiceDropdown. I want to get the value and use this in another function in the same script. Thats why a have the public int dropdownValue.

	public int dropdownValue;
	public void DropdownKeuze()
		dropdownValue = GameObject.Find("ServiceDropdown").GetComponent<Dropdown>().value;

Can someone help me.

I got the answer:

    //Dropdown menu
    	public int DropdownLayer;
    	public void DropdownInput(int val)
    		DropdownLayer = val;