ISqlActivationService.CreateInstance<T> 메서드 (Type, array<Object )
Creates an instance of the specified type using the constructor that best matches the specified parameters.
네임스페이스: Microsoft.SqlServer.Management
어셈블리: SqlWorkbench.Interfaces(SqlWorkbench.Interfaces.dll)
구문
‘선언
Function CreateInstance(Of T) ( _
type As Type, _
ParamArray args As Object() _
) As T
‘사용 방법
Dim instance As ISqlActivationService
Dim type As Type
Dim args As Object()
Dim returnValue As T
returnValue = instance.CreateInstance(type, _
args)
T CreateInstance<T>(
Type type,
params Object[] args
)
generic<typename T>
T CreateInstance(
Type^ type,
... array<Object^>^ args
)
abstract CreateInstance :
type:Type *
args:Object[] -> 'T
JScript는 제네릭 형식 및 메서드를 지원하지 않습니다.
유형 매개 변수
- T
매개 변수
- type
유형: System.Type
The type of the service.
- args
유형: array<System.Object[]
An array of arguments that match in number, order, and type the parameters of the constructor to invoke.
반환 값
유형: T
A reference to the newly created object.