Compartir a través de


DataServiceContext.DeleteLink Método

Cambia el estado del vínculo a eliminado en la lista de vínculos cuyo seguimiento realiza DataServiceContext.

Espacio de nombres:  System.Data.Services.Client
Ensamblado:  Microsoft.Data.Services.Client (en Microsoft.Data.Services.Client.dll)

Sintaxis

'Declaración
Public Sub DeleteLink ( _
    source As Object, _
    sourceProperty As String, _
    target As Object _
)
'Uso
Dim instance As DataServiceContext
Dim source As Object
Dim sourceProperty As String
Dim target As Object

instance.DeleteLink(source, sourceProperty, _
    target)
public void DeleteLink(
    Object source,
    string sourceProperty,
    Object target
)
public:
void DeleteLink(
    Object^ source, 
    String^ sourceProperty, 
    Object^ target
)
member DeleteLink : 
        source:Object * 
        sourceProperty:string * 
        target:Object -> unit 
public function DeleteLink(
    source : Object, 
    sourceProperty : String, 
    target : Object
)

Parámetros

  • source
    Tipo: System.Object
    Objeto de origen del vínculo que se va a marcar para eliminar.
  • sourceProperty
    Tipo: System.String
    Nombre de la propiedad de navegación del objeto de origen que se usa para obtener acceso al objeto de destino.
  • target
    Tipo: System.Object
    Objeto de destino implicado en el vínculo que está enlazado al objeto de origen.El objeto de destino debe ser del tipo identificado por la propiedad de origen o un subtipo.

Excepciones

Excepción Condición
ArgumentNullException

Cuando source, sourceProperty o target es NULL.

InvalidOperationException

Cuando source o target está en un estado Detached o Added.

O bien

Cuando sourceProperty no es una colección.

Comentarios

Se puede desasociar cualquier vínculo cuyo seguimiento realice DataServiceContext, independientemente de su estado actual.

Vea también

Referencia

DataServiceContext Clase

Espacio de nombres System.Data.Services.Client