DataServiceContext.DeleteObject(Object) Método

Definição

Altera o estado do objeto especificado a ser excluído no DataServiceContext.Changes the state of the specified object to be deleted in the DataServiceContext.

public:
 void DeleteObject(System::Object ^ entity);
public void DeleteObject (object entity);
member this.DeleteObject : obj -> unit
Public Sub DeleteObject (entity As Object)

Parâmetros

entity
Object

A entidade acompanhada a ser alterada para o estado excluído.The tracked entity to be changed to the deleted state.

Exceções

Quando entity é null.When entity is null.

Quando o objeto não está sendo acompanhado pelo DataServiceContext.When the object is not being tracked by the DataServiceContext.

Comentários

Todos os links para a entidade especificada também são marcados como excluídos.All links to the specified entity are also marked deleted.

Aplica-se a