IXamlDirect.GetDateTimeProperty(Object, XamlPropertyIndex) Methode

Definition

Ruft den Wert einer DateTimeOffset-Eigenschaft für eine bestimmte IXamlDirect ab.

Diese Dokumentation gilt für WinUI 2 für UWP (für WinUI im Windows App SDK, siehe Windows App SDK Namespaces).

public:
 DateTime GetDateTimeProperty(Platform::Object ^ xamlDirectObject, XamlPropertyIndex propertyIndex);
DateTime GetDateTimeProperty(IInspectable const& xamlDirectObject, XamlPropertyIndex const& propertyIndex);
public System.DateTimeOffset GetDateTimeProperty(object xamlDirectObject, XamlPropertyIndex propertyIndex);
Public Function GetDateTimeProperty (xamlDirectObject As Object, propertyIndex As XamlPropertyIndex) As DateTimeOffset

Parameter

xamlDirectObject
Object

Platform::Object

IInspectable

Ein Verweis auf den spezifischen IXamlDirect.

propertyIndex
XamlPropertyIndex

Ein Verweis auf die DateTimeOffset-Eigenschaft , auf der der Wert aus der Liste der unterstützten Eigenschaften in xamlPropertyIndex-Enumeration abgerufen werden soll.

Gibt zurück

DateTimeOffset-Wert der angegebenen Eigenschaft.

Gilt für:

Weitere Informationen