Timer.GetScriptDescriptors 方法

定義

從傳遞至用戶端元件的 Timer 物件中擷取屬性,該用戶端元件用來實作瀏覽器中的計時器邏輯。

protected:
 virtual System::Collections::Generic::IEnumerable<System::Web::UI::ScriptDescriptor ^> ^ GetScriptDescriptors();
protected virtual System.Collections.Generic.IEnumerable<System.Web.UI.ScriptDescriptor> GetScriptDescriptors ();
abstract member GetScriptDescriptors : unit -> seq<System.Web.UI.ScriptDescriptor>
override this.GetScriptDescriptors : unit -> seq<System.Web.UI.ScriptDescriptor>
Protected Overridable Function GetScriptDescriptors () As IEnumerable(Of ScriptDescriptor)
Protected Iterator Overridable Function GetScriptDescriptors () As IEnumerable(Of ScriptDescriptor)

傳回

類型為 ScriptDescriptor 的陣列。

備註

方法會將 GetScriptDescriptorsIntervalEnabled 屬性從 類別的 Timer 實例新增至 ScriptDescriptor 物件。 用戶端元件會存取值,並在腳本中設定對應的值。

適用於