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