BinderBase<T> 類別

定義

支援自定義類型的系結。

generic <typename T>
public ref class BinderBase abstract : System::CommandLine::Binding::IValueDescriptor<T>, System::CommandLine::Binding::IValueSource
public abstract class BinderBase<T> : System.CommandLine.Binding.IValueDescriptor<T>, System.CommandLine.Binding.IValueSource
type BinderBase<'T> = class
    interface IValueDescriptor<'T>
    interface IValueDescriptor
    interface IValueSource
Public MustInherit Class BinderBase(Of T)
Implements IValueDescriptor(Of T), IValueSource

類型參數

T

要系結的型別。

繼承
BinderBase<T>
實作

建構函式

BinderBase<T>()

支援自定義類型的系結。

方法

Equals(Object)

判斷指定的物件是否等於目前的物件。

(繼承來源 Object)
GetBoundValue(BindingContext)

從系結內容取得值。

GetHashCode()

做為預設雜湊函式。

(繼承來源 Object)
GetType()

取得目前執行個體的 Type

(繼承來源 Object)
MemberwiseClone()

建立目前 Object 的淺層複製。

(繼承來源 Object)
ToString()

傳回代表目前物件的字串。

(繼承來源 Object)

明確介面實作

IValueDescriptor.GetDefaultValue()

取得預設值,如果有的話。

IValueDescriptor.HasDefaultValue

取得值,指定是否有預設值。

IValueDescriptor.ValueName

取得值的名稱。

IValueDescriptor.ValueType

取得值的型別。

IValueSource.TryGetValue(IValueDescriptor, BindingContext, Object)

嘗試從系結內容取得值。 傳回值指出是否有符合指定之值描述元的值。

適用於