Argument 类

定义

表示 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
继承
Argument
实现

注解

在功能上, 这只是对另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()

XAML 反序列化所需的无参数构造函数。Parameterless constructor required for XAML deserialization.

属性

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

获取或设置此参数引用的 BaseProperty 的名称。Gets or sets the name of the BaseProperty that this argument refers to.

Separator

获取或设置一个字符串,该字符串用于在命令行中将参数值与父 BaseProperty 开关分隔开。Gets or sets the string used to separate the argument value from the parent BaseProperty switch in the command line.

方法

BeginInit()

请参阅 BeginInit()See BeginInit().

EndInit()

请参阅 EndInit()See EndInit().

Equals(Object)

确定指定的对象是否等于当前对象。Determines whether the specified object is equal to the current object.

(继承自 Object)
GetHashCode()

用作默认哈希函数。Serves as the default hash function.

(继承自 Object)
GetType()

获取当前实例的 TypeGets the Type of the current instance.

(继承自 Object)
MemberwiseClone()

创建当前 Object 的浅表副本。Creates a shallow copy of the current Object.

(继承自 Object)
ToString()

返回一个表示当前对象的 string。Returns a string that represents the current object.

(继承自 Object)

适用于