宣告和常數摘要 (Visual Basic)

Visual Basic 語言關鍵詞和運行時間連結庫成員會依用途和使用來組織。

行動 語言元素
指派值。 Get、 屬性
宣告變數或常數。 Const、 Dim、 Private、 Protected、 Public、 Shadows、 Shared、 Static
宣告類別、委派、列舉、模組、命名空間或結構。 類別、 委派、 列舉、 模組、 命名空間、 結構
建立物件。 CreateObject、、GetObject新增
取得 對象的相關信息。 GetType、、IsArray、IsDBNullIsNothingIsDateIsErrorIsNumeric、SystemTypeNameIsReference、、 TypeNameVarTypeVbTypeName
請參閱目前的物件。 我
需要明確的變數宣告。 Option Explicit、 Option Strict
處理事件。 AddHandler、 Event、 RaiseEvent、 RemoveHandler
實作繼承。 Inherits、 MustInherit、 MustOverride、 MyBase、 MyClass、 New、 NotInheritable、 NotOverridable、 Overloads、 Overridable、 Overrides

另請參閱