PackagePart.DeleteRelationship(String) Método

Definição

Exclui uma PackageRelationship de nível de parte.Deletes a specified part-level PackageRelationship.

public:
 void DeleteRelationship(System::String ^ id);
public void DeleteRelationship (string id);
member this.DeleteRelationship : string -> unit
Public Sub DeleteRelationship (id As String)

Parâmetros

id
String

A Id da relação a ser excluída.The Id of the relationship to delete.

Exceções

A parte foi excluída.The part has been deleted.

- ou --or- O Package não está aberto (Dispose(Boolean) ou Close() foi chamado).The Package is not open (Dispose(Boolean) or Close() has been called).

id é null.id is null.

O pacote é somente leitura (não é possível excluir relações).The package is read-only (relationships cannot be deleted).

id não é um identificador XML válido.id is not a valid XML identifier.

Comentários

id deve ser um identificador XML válido.id must be a valid XML identifier. O id tipo é xsd: ID e deve seguir as convenções de nomenclatura prescritas no esquema XML parte 2: especificação de datatypes (consulte https://www.w3.org/TR/xmlschema-2/#ID ).The id type is xsd:ID and must follow the naming conventions prescribed in the XML Schema Part 2: Datatypes specification (see https://www.w3.org/TR/xmlschema-2/#ID).

Se o especificado não id corresponder ao Id para qualquer uma das relações que pertencem a essa parte, nenhuma relação será excluída e nenhuma exceção será lançada.If the specified id does not match the Id for any of the relationships that are owned by this part, no relationship is deleted and no exception is thrown.

Além de excluir a relação especificada, o DeleteRelationship método não altera fisicamente essa parte ou a parte de destino.Other than deleting the specified relationship, the DeleteRelationship method does not physically change either this part or the target part.

Aplica-se a

Confira também