Compartilhar via


Método IShellDispatch.TrayProperties

Exibe a barra de tarefas e a caixa de diálogo Propriedades do Menu Iniciar . Esse método tem o mesmo efeito que clicar com o botão direito do mouse na barra de tarefas e selecionar Propriedades.

Sintaxe

IShellDispatch.TrayProperties()

IShellDispatch.TrayProperties()

Parâmetros

Esse método não tem parâmetros.

Valor retornado

JScript

Esse método não retorna um valor.

VB

Esse método não retorna um valor.

Comentários

Esse método é implementado e acessado por meio do método Shell.TrayProperties .

Exemplos

Os exemplos a seguir mostram o uso de TrayProperties em JScript, VBScript e Visual Basic.

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

Requisitos

Requisito Valor
Cliente mínimo com suporte
Windows 2000 Professional, Windows XP [somente aplicativos da área de trabalho]
Servidor mínimo com suporte
Windows 2000 Server [somente aplicativos da área de trabalho]
Cabeçalho
Shldisp.h
IDL
Shldisp.idl
DLL
Shell32.dll (versão 4.71 ou posterior)