MethodSignature<TType>.RequiredParameterCount 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得該方法所需的參數數量。
public:
property int RequiredParameterCount { int get(); };
public int RequiredParameterCount { get; }
member this.RequiredParameterCount : int
Public ReadOnly Property RequiredParameterCount As Integer
屬性值
所需參數的數量。
備註
此值等於屬性的 ParameterTypes 長度,除非此方法簽章代表方法的獨立呼叫站 vararg 點,此時額外的 ParameterTypes 項目即為可選參數的類型。