Argument Argument Argument Argument Class

定義

表示 BaseProperty 的引數。Represents an argument to a BaseProperty.

public ref class Argument sealed : System::ComponentModel::ISupportInitialize
public sealed class Argument : System.ComponentModel.ISupportInitialize
type Argument = class
    interface ISupportInitialize
Public NotInheritable Class Argument
Implements ISupportInitialize
繼承
ArgumentArgumentArgumentArgument
實作

備註

就功能而言, 這只是另BaseProperty一個參考。Functionally, this is just a reference to another BaseProperty. 如果您手動具現化此類別BeginInit , 請在設定物件的第一個屬性和EndInit設定最後一個屬性之後呼叫。If you manually instantiate this class, call BeginInit before you set the first property of the object and EndInit after you set the last property.

建構函式

Argument() Argument() Argument() Argument()

XAML 還原序列化需要的無參數建構函式。Parameterless constructor required for XAML deserialization.

屬性

IsRequired IsRequired IsRequired IsRequired

表示是否必須定義 BaseProperty 所指向的 Property,讓擁有這個引數之 BaseProperty 的定義有意義。Indicates whether the BaseProperty pointed to by Property must be defined so that the definition of the BaseProperty that owns this argument makes sense.

Property Property Property Property

取得或設定這個引數所參照之 BaseProperty 的名稱。Gets or sets the name of the BaseProperty that this argument refers to.

Separator Separator Separator Separator

取得或設定字串,這個字串用來區隔命令列中的引數值與父 BaseProperty 參數。Gets or sets the string used to separate the argument value from the parent BaseProperty switch in the command line.

方法

BeginInit() BeginInit() BeginInit() BeginInit()

請參閱 BeginInit()See BeginInit().

EndInit() EndInit() EndInit() EndInit()

請參閱 EndInit()See EndInit().

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

判斷指定的物件是否等於目前的物件。Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode() GetHashCode() GetHashCode() GetHashCode()

做為預設雜湊函式。Serves as the default hash function.

(Inherited from Object)
GetType() GetType() GetType() GetType()

取得目前執行個體的 TypeGets the Type of the current instance.

(Inherited from Object)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

建立目前 Object 的淺層複本 (Shallow Copy)。Creates a shallow copy of the current Object.

(Inherited from Object)
ToString() ToString() ToString() ToString()

傳回代表目前物件的字串。Returns a string that represents the current object.

(Inherited from Object)

適用於