IXamlDirect.GetDateTimeProperty(Object, XamlPropertyIndex) Metodo

Definizione

Ottiene il valore di una proprietà DateTimeOffset per un oggetto IXamlDirect specifico.

Questa documentazione si applica a WinUI 2 per UWP (per WinUI nella SDK per app di Windows, vedere gli spazi dei nomi SDK per app di Windows).

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

Parametri

xamlDirectObject
Object

Platform::Object

IInspectable

Riferimento all'IXamlDirect specifico.

propertyIndex
XamlPropertyIndex

Riferimento alla proprietà DateTimeOffset in cui ottenere il valore dall'elenco delle proprietà supportate in XamlPropertyIndex enumerazione.

Restituisce

Valore DateTimeOffset della proprietà specificata.

Si applica a

Vedi anche