ParameterInfo.HasDefaultValue 屬性

定義

取得值,指出這個參數是否具有預設值。

public:
 virtual property bool HasDefaultValue { bool get(); };
public virtual bool HasDefaultValue { get; }
member this.HasDefaultValue : bool
Public Overridable ReadOnly Property HasDefaultValue As Boolean

屬性值

如果此參數具有預設值,則為 true,否則為 false

適用於