ISqlActivationService.CreateInstance<T> 메서드 (Type, Boolean)
Creates an instance of the specified type using that type's default constructor.
네임스페이스: Microsoft.SqlServer.Management
어셈블리: SqlWorkbench.Interfaces(SqlWorkbench.Interfaces.dll)
구문
‘선언
Function CreateInstance(Of T) ( _
type As Type, _
nonPublic As Boolean _
) As T
‘사용 방법
Dim instance As ISqlActivationService
Dim type As Type
Dim nonPublic As Boolean
Dim returnValue As T
returnValue = instance.CreateInstance(type, _
nonPublic)
T CreateInstance<T>(
Type type,
bool nonPublic
)
generic<typename T>
T CreateInstance(
Type^ type,
bool nonPublic
)
abstract CreateInstance :
type:Type *
nonPublic:bool -> 'T
JScript는 제네릭 형식 및 메서드를 지원하지 않습니다.
유형 매개 변수
- T
매개 변수
- type
유형: System.Type
The type of object to create.
- nonPublic
유형: System.Boolean
true if a public or nonpublic default constructor can match; otherwise, false if only a public default constructor can match.
반환 값
유형: T
A reference to the newly created object.