IShellDispatch.TrayProperties 方法

顯示 [工作列] 和 [開始功能表屬性 ] 對話方塊。 這個方法的效果與以滑鼠右鍵按一下工作列並選取 [ 屬性] 相同。

語法

IShellDispatch.TrayProperties()

IShellDispatch.TrayProperties()

參數

這個方法沒有任何參數。

傳回值

JScript

這個方法不會傳回值。

VB

這個方法不會傳回值。

備註

這個方法是透過 Shell.TrayProperties 方法來實作和存取。

範例

下列範例示範在 JScript、VBScript 和 Visual Basic 中使用 TrayProperties

Jscript:

<script language="JScript">
    function fnShellTrayPropertiesJ()
    {
        var objShell = new ActiveXObject("shell.application");
        
        objshell.TrayProperties();
    }
</script>

VBScript:

<script language="VBScript">
    function fnShellTrayPropertiesVB()
        dim objShell
        
        set objShell = CreateObject("shell.application")
        objshell.TrayProperties

        set objShell = nothing
    end function
 </script>

Visual Basic:

Private Sub fnShellTrayPropertiesVB()
    Dim objShell As Shell
    
    Set objShell = New Shell
    objshell.TrayProperties

    Set objShell = Nothing
End Sub

規格需求

需求
最低支援的用戶端
Windows 2000 Professional、Windows XP [僅限桌面應用程式]
最低支援的伺服器
Windows 2000 Server [僅限桌面應用程式]
標頭
Shldisp.h
Idl
Shldisp.idl
DLL
Shell32.dll (4.71 版或更新版本)