VARFLAGS 列舉

定義

識別定義變數屬性的常數。Identifies the constants that define the properties of a variable.

此列舉具有 FlagsAttribute 個屬性允許以位元方式合併其成員值。

public enum class VARFLAGS
[System.Flags]
[System.Serializable]
public enum VARFLAGS
type VARFLAGS = 
Public Enum VARFLAGS
繼承
VARFLAGS
屬性

欄位

VARFLAG_FBINDABLE 4

變數支援資料繫結 (Data Binding)。The variable supports data binding.

VARFLAG_FDEFAULTBIND 32

變數是最能表示該物件的單一屬性。The variable is the single property that best represents the object. 型別資訊中只能有一個變數具有這個屬性 (Attribute)。Only one variable in type information can have this attribute.

VARFLAG_FDEFAULTCOLLELEM 256

允許最佳化,其中編譯器會在「abc」型別上尋找名為「xyz」的成員。Permits an optimization in which the compiler looks for a member named "xyz" on the type of "abc". 如果找到這種成員,而且是被標示為預設集合之元素的存取子 (Accessor) 函式,就會產生一個對該成員函式的呼叫。If such a member is found and is flagged as an accessor function for an element of the default collection, then a call is generated to that member function. 在分配介面和介面中的成員受允許;模組上則不受允許。Permitted on members in dispinterfaces and interfaces; not permitted on modules.

VARFLAG_FDISPLAYBIND 16

變數對使用者顯示為可繫結的。The variable is displayed to the user as bindable. VARFLAG_FBINDABLE 也必須設定。VARFLAG_FBINDABLE must also be set.

VARFLAG_FHIDDEN 64

雖然變數存在而且可繫結,但是不應該在瀏覽器中向使用者顯示。The variable should not be displayed to the user in a browser, although it exists and is bindable.

VARFLAG_FIMMEDIATEBIND 4096

變數是對應為可繫結的個別屬性。The variable is mapped as individual bindable properties.

VARFLAG_FNONBROWSABLE 1024

變數出現在物件瀏覽器中,但不會在屬性瀏覽器中。The variable appears in an object browser, but not in a properties browser.

VARFLAG_FREADONLY 1

不允許對變數進行指派 (Assignment)。Assignment to the variable should not be allowed.

VARFLAG_FREPLACEABLE 2048

將介面標記 (Tag) 為具有預設行為。Tags the interface as having default behaviors.

VARFLAG_FREQUESTEDIT 8

設定後,間接變更屬性的任何嘗試都將產生對 IPropertyNotifySink::OnRequestEdit 的呼叫。When set, any attempt to directly change the property results in a call to IPropertyNotifySink::OnRequestEdit. OnRequestEdit 的實作 (Implementation) 會判斷是否接受變更。The implementation of OnRequestEdit determines if the change is accepted.

VARFLAG_FRESTRICTED 128

變數不應該可自巨集語言存取。The variable should not be accessible from macro languages. 這旗標旨在做為系統層級變數或您不希望型別瀏覽器顯示的變數。This flag is intended for system-level variables or variables that you do not want type browsers to display.

VARFLAG_FSOURCE 2

變數會傳回是事件來源的物件。The variable returns an object that is a source of events.

VARFLAG_FUIDEFAULT 512

變數為使用者介面中的預設顯示。The variable is the default display in the user interface.

備註

如需 VARFLAGS的詳細資訊,請參閱 MSDN Library。For additional information about VARFLAGS, see the MSDN Library.

當原生程式碼中的 COM 方法傳回 HRESULT 時,common language runtime 會擲回例外狀況。The common language runtime throws an exception when a COM method in native code returns an HRESULT. 如需詳細資訊,請參閱 How to: Map HRESULTs and ExceptionsFor more information, see How to: Map HRESULTs and Exceptions.

適用於