ObjectDataProvider.ObjectType Property
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets the type of object to create an instance of.
public:
property Type ^ ObjectType { Type ^ get(); void set(Type ^ value); };
public Type ObjectType { get; set; }
member this.ObjectType : Type with get, set
Public Property ObjectType As Type
This property is null
when the ObjectDataProvider is uninitialized or explicitly set to null. If ObjectInstance is assigned, ObjectType returns the type of the object or null if the object is null. The default value is null
.
ObjectDataProvider is assigned both an ObjectType and an ObjectInstance; only one is allowed.
If DeferRefresh is used, ObjectInstance and Data do not update until Refresh is called.
<object ObjectType="myDataType"/>
myDataType
The data type to create an instance of. Use the x:Type Markup Extension to set a type.
Produkt | Wersje |
---|---|
.NET Framework | 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
Windows Desktop | 3.0, 3.1, 5, 6, 7, 8, 9, 10 |
Opinia o produkcie .NET
.NET to projekt typu open source. Wybierz link, aby przekazać opinię: