Folder2.DismissedWebViewBarricade 方法
呼叫 以回應使用者正在關閉的 Web 檢視長條圖。
語法
Folder2.DismissedWebViewBarricade()
參數
這個方法沒有任何參數。
傳回值
這個方法不會傳回值。
備註
應用程式會在使用者關閉 Web 檢視標欄之後呼叫這個方法。
範例
下列範例會使用 DismissedWebViewBarricade 來指定已關閉 C:\Windows 資料夾的 Web 檢視列。 JScript、VBScript 和 Visual Basic 會顯示適當的使用方式。
Jscript:
<script language="JScript">
function fnFolder2ObjectDismissedWebViewBarricadeJ()
{
var objShell = new ActiveXObject("shell.application");
var objFolder2 = new Object;
objFolder2 = objShell.NameSpace("C:\\WINDOWS");
if (objFolder2 != null)
{
objFolder2.DismissedWebViewBarricade();
}
}
</script>
VBScript:
<script language="VBScript">
function fnFolder2ObjectDismissedWebViewBarricadeVB()
dim objShell
dim objFolder2
set objShell = CreateObject("shell.application")
set objFolder2 = objShell.NameSpace("C:\WINDOWS")
if (not objFolder2 is nothing) then
objFolder2.DismissedWebViewBarricade()
end if
set objFolder2 = nothing
set objShell = nothing
end function
</script>
Visual Basic:
Private Sub btnDismissedWebViewBarricade_Click()
Dim objShell As Shell
Dim objFolder2 As Folder2
Set objShell = New Shell
Set objFolder2 = objShell.NameSpace("C:\WINDOWS")
If (Not objFolder2 Is Nothing) Then
objFolder2.DismissedWebViewBarricade
End If
Set objFolder2 = Nothing
Set objShell = Nothing
End Sub
規格需求
需求 | 值 |
---|---|
最低支援的用戶端 |
Windows 2000 Professional、Windows XP [僅限桌面應用程式] |
最低支援的伺服器 |
Windows Server 2003 [僅限桌面應用程式] |
標頭 |
|
Idl |
|
DLL |
|
另請參閱