Freigeben über


LinkToQuery-Klasse

Query Contains Link to External Query File.When the object is serialized out as xml, its qualified name is w:linkToQuery.

Vererbungshierarchie

System.Object
  DocumentFormat.OpenXml.OpenXmlElement
    DocumentFormat.OpenXml.OpenXmlLeafElement
      DocumentFormat.OpenXml.Wordprocessing.OnOffType
        DocumentFormat.OpenXml.Wordprocessing.LinkToQuery

Namespace:  DocumentFormat.OpenXml.Wordprocessing
Assembly:  DocumentFormat.OpenXml (in DocumentFormat.OpenXml.dll)

Syntax

'Declaration
Public Class LinkToQuery _
    Inherits OnOffType
'Usage
Dim instance As LinkToQuery
public class LinkToQuery : OnOffType

Hinweise

[ISO/IEC 29500-1 1. Ausgabe]

17.14.18 linkToQuery (Query Contains Link to External Query File)

This element specifies that the current WordprocessingML document's query string, stored in the query element (§17.14.26) and used to specify the data to be imported from the external data source, actually contains a reference to an external query file which contains the actual query data to be used against the specified external data source for the mail merge. This query shall mimic a SQL query and be of the following form: SELECT * FROM <query file path>.

If this element is omitted, then the query specified for the data source attached to the current document shall be assumed to not be a query containing a link to an external file.

[Example: Consider a mail merge source document that uses the linkToQuery element to specify that the query used is stored in the specified external data source as follows:

<w:mailMerge>
…
<w:linkToQuery />
<w:query w:val="SELECT * FROM C:\queryExample.txt" />
…
</w:mailMerge>

The linkToQuery element specifies that the query string stored in the query element (§17.14.26) is actually just a reference to an externally stored query file, in this case, an external query file stored at c:\queryExample.txt. end example]

Parent Elements

mailMerge (§17.14.20)

This element's content model is defined by the common boolean property definition in §17.17.4.

© ISO/IEC29500: 2008. Die oben aufgeführten Textauszüge wurden von Microsoft (und/oder den Microsoft-Vendoren) von Englisch nach Deutsch übersetzt, und im Rahmen von ISO wird keinerlei Verantwortung für diese Übersetzungen übernommen.

Threadsicherheit

Alle öffentlichen static (Shared in Visual Basic) Member dieses Typs sind threadsicher. Bei Instanzmembern ist die Threadsicherheit nicht gewährleistet.

Siehe auch

Referenz

LinkToQuery-Member

DocumentFormat.OpenXml.Wordprocessing-Namespace