Package.RelationshipExists(String) Método
Definição
Indica se uma relação de nível de pacote com uma determinada ID está contida no pacote.Indicates whether a package-level relationship with a given ID is contained in the package.
public:
bool RelationshipExists(System::String ^ id);
public bool RelationshipExists (string id);
member this.RelationshipExists : string -> bool
Public Function RelationshipExists (id As String) As Boolean
Parâmetros
Retornos
true se uma relação de nível de pacote com o id especificado estiver no pacote, caso contrário, false.true if a package-level relationship with the specified id is in the package; otherwise, false.
Exceções
id é null.id is null.
id não é um identificador XML válido.id is not a valid XML identifier.
O pacote não está aberto (Dispose(Boolean) ou Close() foi chamado).The package is not open (Dispose(Boolean) or Close() has been called).
O pacote é somente gravação.The package is write-only.
Comentários
Para obter informações adicionais, consulte Especificação do OPC (Open Packaging Conventions) disponível para download em https://go.microsoft.com/fwlink/?LinkID=71255 .For additional information, see the Open Packaging Conventions (OPC) specification available for download at https://go.microsoft.com/fwlink/?LinkID=71255.