Muokkaa

Jaa


TypeExtension.Type Property

Definition

Gets or sets the type information for this extension.

public:
 property Type ^ Type { Type ^ get(); void set(Type ^ value); };
public Type Type { get; set; }
member this.Type : Type with get, set
Public Property Type As Type

Property Value

The established type. For runtime purposes, this may be null for get access, but cannot be set to null.

Exceptions

Attempted to set to null.

Remarks

Unless this instance was deliberately instantiated with the TypeExtension(Type) signature constructor, this value will be null. This property will not be reset when ProvideValue is called. If you want the true type represented you should always call ProvideValue rather than check this property.

This property is settable per usual rules regarding markup extension usage. However, if you are setting with a Type, then the purpose of this markup extension is irrelevant, because the same Type is returned from a ProvideValue call.

Applies to