다음을 통해 공유


IServiceProvider.GetService 메서드

지정된 형식의 서비스 개체를 가져옵니다.

네임스페이스: System
어셈블리: mscorlib(mscorlib.dll)

구문

‘선언
Function GetService ( _
    serviceType As Type _
) As Object
‘사용 방법
Dim instance As IServiceProvider
Dim serviceType As Type
Dim returnValue As Object

returnValue = instance.GetService(serviceType)
Object GetService (
    Type serviceType
)
Object^ GetService (
    Type^ serviceType
)
Object GetService (
    Type serviceType
)
function GetService (
    serviceType : Type
) : Object

매개 변수

  • serviceType
    가져올 서비스 개체의 형식을 지정하는 개체입니다.

반환 값

serviceType 형식의 서비스 개체입니다. - 또는 - serviceType 형식의 서비스 개체가 없으면 Null 참조(Visual Basic의 경우 Nothing)입니다.

플랫폼

Windows 98, Windows 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

.NET Framework에서 모든 플래폼의 모든 버전을 지원하지는 않습니다. 지원되는 버전의 목록은 시스템 요구 사항을 참조하십시오.

버전 정보

.NET Framework

2.0, 1.1, 1.0에서 지원

.NET Compact Framework

2.0, 1.0에서 지원

참고 항목

참조

IServiceProvider 인터페이스
IServiceProvider 멤버
System 네임스페이스