error CS0201: Only assignment, call, increment, decrement, and new object expressions can be used as a statement

This is my player.cs script,

using UnityEngine;

public class Player : MonoBehaviour
{
// The force which is added when the player jumps
// This can be changed in the Inspector window
public Vector2 jumpForce = new Vector2(0, 300);

// Update is called once per frame
void Update ()
{
	// Jump
	if (Input.GetKeyUp("space"))
	{
		GetComponent<Rigidbody2D>= Vector2();
		GetComponent<Rigidbody2D>(jumpForce);
	}
	
	// Die by being off screen
	Vector2 screenPosition = Camera.main.WorldToScreenPoint(transform.position);
	if (screenPosition.y > Screen.height || screenPosition.y < 0)
	{
		Die();
	}
}

// Die by collision
void OnCollisionEnter2D(Collision2D other)
{
	Die();
}

void Die()
{
	Application.LoadLevel(Application.loadedLevel);
}

}

As someone stated, its kinda hard to know what your trying to do… but my guess is you are wanting this:

GetComponent<Rigidbody2D>().velocity = jumpForce; // Where jumpForce is a Vector2