Megosztás a következőn keresztül:


TagHelperAttributeDescriptor.IsStringProperty Property

Definition

Gets or sets an indication whether this property is of type String or, if IsIndexer is true, whether the indexer's value is of type String.

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

Property Value

If true the TypeName is for String. This causes the Razor parser to allow empty values for HTML attributes matching this TagHelperAttributeDescriptor. If false empty values for such matching attributes lead to errors.

Applies to