Share via


SWbemObject.Derivation_ 속성

SWbemObject 개체의 Derivation_ 속성에는 참조되는 인스턴스의 클래스 파생 계층 구조를 설명하는 문자열 배열이 포함되어 있습니다. 배열의 첫 번째 요소는 부모 클래스를 정의하고 마지막 요소는 dynasty 클래스를 정의합니다. 이 속성은 읽기 전용입니다.

이 구문에 대한 설명은 스크립팅 API의 문서 규칙을 참조하세요.

이 속성은 읽기 전용입니다.

구문

SWbemObject.Derivation_ As String

속성 값

예제

다음 VBScript 샘플에서는 win32_logicaldisk에 대한 클래스 계층 구조를 검색하는 방법을 설명합니다.

on Error resume next

Set c = GetObject("winmgmts://./root/cimv2:win32_logicaldisk")
d = c.Derivation_

for x = LBound(d) to UBound(d)
 WScript.Echo d(x)
Next

if err <> 0 then
 WScript.Echo Err.Description
end if

다음 Perl 샘플에서는 win32_logicaldisk에 대한 클래스 계층 구조를 검색하는 방법을 설명합니다.

use strict;
use Win32::OLE;

my ($C, $D, @collection);

eval {$C = Win32::OLE->GetObject("winmgmts:{impersonationLevel=impersonate}!\\\\.\\root\\cimv2")->
  InstancesOf ("win32_logicaldisk") };
unless ($@) 
{
 @collection = in $C;
 eval {$D = $collection[0]->Derivation_();};
 print "\n";
 unless ($@) 
 {
  print map{"$_\n"} @{$D};
 }
 else
 {
  print STDERR Win32::OLE->LastError, "\n";
 }
}
else
{
 print STDERR Win32::OLE->LastError, "\n";
}

요구 사항

요구 사항
지원되는 최소 클라이언트
Windows Vista
지원되는 최소 서버
Windows Server 2008
헤더
Wbemdisp.h
유형 라이브러리
Wbemdisp.tlb
DLL
Wbemdisp.dll
CLSID
CLSID_SWbemObject
IID
IID_ISWbemObject