ReadOnlyAttribute.Yes 欄位

定義

指定此屬性綁定的屬性為唯讀,且無法在伺服器檔案總管中修改。 此 static 欄位為唯讀。

public: static initonly System::ComponentModel::ReadOnlyAttribute ^ Yes;
public static readonly System.ComponentModel.ReadOnlyAttribute Yes;
 staticval mutable Yes : System.ComponentModel.ReadOnlyAttribute
Public Shared ReadOnly Yes As ReadOnlyAttribute 

欄位值

備註

當你將屬性標記為 ReadOnlyAttributetrue時,該屬性的值會被設定為常數成員 Yes。 因此,當你想檢查該屬性是否設定為此值時,必須指定屬性為 ReadOnlyAttribute.Yes

適用於

另請參閱