FolderItems3.Verbs 속성
모든 폴더 항목에 공통적인 동사 목록을 가져옵니다.
이 속성은 읽기 전용입니다.
구문
Verbs = FolderItems3.Verbs
속성 값
동사 컬렉션에 대한 포인터의 주소입니다. FolderItemVerbs를 참조하세요.
예제
다음 예제에서는 JScript, VBScript 및 Visual Basic에 대한 동사의 적절한 사용을 보여 줍니다.
Jscript:
<script language="JScript">
function fnFolderItems3VerbsJ()
{
var objShell = new ActiveXObject("shell.application");
var objFolder;
var ssfWINDOWS = 17;
objFolder = objShell.NameSpace(ssfWINDOWS);
if (objFolder != null)
{
var objFolderItems3;
objFolderItems3 = objFolder.Items();
if (objFolderItems3 != null)
{
var objFolderItemVerbs;
objFolderItemVerbs = objFolderItems3.Verbs;
alert(objFolderItemVerbs.Item(0));
}
}
}
</script>
Vbscript:
<script language="VBScript">
function fnFolderItems3VerbsVB()
dim objShell
set objShell = CreateObject("shell.application")
if (not objShell is nothing) then
dim objFolder
dim ssfDRIVES
ssfWINDOWS = 17
set objFolder = objShell.NameSpace(ssfWINDOWS)
if (not objFolder is nothing) then
dim objFolderItems3
set objFolderItems3 = objFolder.Items()
if (not objFolderItems3 is nothing) then
dim objFolderItemVerbs
set objFolderItemVerbs = objFolderItems3.Verbs
if (not objFolderItemVerbs is nothing) then
alert(objFolderItemVerbs.Item(0))
end if
set objFolderItemVerbs = nothing
end if
set objFolderItems3 = nothing
end if
set objFolder = nothing
end if
set objShell = nothing
end function
</script>
Visual Basic:
Private Sub fnFolderItems3VerbsVB()
Dim objShell As Shell
Dim objFolder As Folder
Dim ssfWINDOWS As Long
ssfWINDOWS = 36
Set objShell = New Shell
Set objFolder = objShell.NameSpace(ssfWINDOWS)
If (Not objFolder Is Nothing) Then
Dim objFolderItems3 As FolderItems3
Set objFolderItems3 = objFolder.Items
If (Not objFolderItems3 Is Nothing) Then
Dim objFolderItemVerbs As FolderItemVerbs
Set objFolderItemVerbs = objFolderItems3.Verbs
If (Not objFolderItemVerbs Is Nothing) Then
Debug.Print objFolderItemVerbs.Item(0)
End If
Set objFolderItemVerbs = Nothing
End If
Set objFolderItems3 = Nothing
End If
Set objFolder = Nothing
Set objShell = Nothing
End Sub
요구 사항
요구 사항 | 값 |
---|---|
지원되는 최소 클라이언트 |
Windows XP [데스크톱 앱만 해당] |
지원되는 최소 서버 |
Windows Server 2003 [데스크톱 앱만 해당] |
헤더 |
|
IDL |
|
DLL |
|