Freigeben über


ConvertType-Element in Interpretation

(BDCMetadata-Schema)

Gilt für: SharePoint 2016 | SharePoint Foundation 2013 | SharePoint Online-| SharePoint Server 2013

Gibt die Regel zur Konvertierung des Datentyps eines Datenwerts in einen anderen Datentyp an.

Namespace: http://schemas.microsoft.com/windows/2007/BusinessDataCatalog

Schema: BDCMetadata

The Convert element specifies the rule to convert the data type of a data value into another data type. When the rules are applied in order, this rule specifies the data type of the data value to be converted to the data type specified by the BDCType attribute. When the rules are applied in reverse order, this rule specifies the data type of the data value to be converted to the data type specified by the LOBType attribute.

For example, this rule can specify converting a date value obtained from an external system, into a culture and locale sensitive string which will eventually be displayed to the user, and converting the updated value for that string back into the date that is compatible with the external system.

Warnung

ConvertType unterstützt ausschließlich den gregorianischen Kalender für Konvertierungen zwischen System.String und System.DateTime.

<ConvertType LOBType = "String" BDCType = "String"> </ConvertType>

Elemente und Attribute

In den folgenden Abschnitten werden Attribute, untergeordnete und übergeordnete Elemente erläutert.

Attribute

Attribut

Beschreibung

**LOBType**

Erforderlich.

Der Datentyp für die Konvertierung des Datenwerts, wenn die Regeln in umgekehrter Reihenfolge angewendet werden.

Attributtyp: **String**

**BDCType**

Erforderlich.

Der Datentyp für die Konvertierung des Datenwerts, wenn die Regeln nacheinander angewendet werden.

Attributtyp: **String**

**LOBLocale**

Optional.

Das Gebietsschema der Daten vom externen System.


Untergeordnete Elemente

Keine.


Übergeordnete Elemente

Element Beschreibung
Interpretation-Element in "TypeDescriptor" (BDCMetadata-Schema) Die Regeln, die auf die in den Datenstrukturen gespeicherten Daten, welche durch TypeDescriptor dargestellt sind, angewendet werden.