XamlDirect.SetDateTimeProperty 方法

定義

設定特定IXamlDirectObjectDateTimeOffset屬性值。

public:
 virtual void SetDateTimeProperty(IXamlDirectObject ^ xamlDirectObject, XamlPropertyIndex propertyIndex, DateTime value) = SetDateTimeProperty;
void SetDateTimeProperty(IXamlDirectObject const& xamlDirectObject, XamlPropertyIndex const& propertyIndex, DateTime const& value);
public void SetDateTimeProperty(IXamlDirectObject xamlDirectObject, XamlPropertyIndex propertyIndex, System.DateTimeOffset value);
function setDateTimeProperty(xamlDirectObject, propertyIndex, value)
Public Sub SetDateTimeProperty (xamlDirectObject As IXamlDirectObject, propertyIndex As XamlPropertyIndex, value As DateTimeOffset)

參數

xamlDirectObject
IXamlDirectObject

特定 IXamlDirectObject的參考。

propertyIndex
XamlPropertyIndex

DateTimeOffset屬性的參考,可從XamlPropertyIndex列舉中支援的屬性清單中設定 的值。

value
DateTime DateTimeOffset

要設定為指定屬性的DateTimeOffset值。

適用於

另請參閱