RuntimeNamePropertyAttribute(String) 建構函式

定義

初始化 RuntimeNamePropertyAttribute 類別的新執行個體。Initializes a new instance of the RuntimeNamePropertyAttribute class.

public:
 RuntimeNamePropertyAttribute(System::String ^ name);
public RuntimeNamePropertyAttribute (string name);
new System.Windows.Markup.RuntimeNamePropertyAttribute : string -> System.Windows.Markup.RuntimeNamePropertyAttribute
Public Sub New (name As String)

參數

name
String

要作為類別之對等 x:Name 的屬性名稱。The name of the property to use as the x:Name equivalent of the class.

備註

指定的屬性必須是 String 類型,而且具有 get 和 set 存取權。The specified property must be of type String and have get and set access.

適用於