名前空間 : Microsoft.VisualStudio.Data.Schema.Project.Project.MPF
アセンブリ : Microsoft.VisualStudio.Data.Schema.Project (Microsoft.VisualStudio.Data.Schema.Project.dll 内)
構文
'宣言
Public Function TryGetService(Of T) ( _
serviceType As Type _
) As T
'使用
Dim instance As ProjectPackage
Dim serviceType As Type
Dim returnValue As T
returnValue = instance.TryGetService(serviceType)
public T TryGetService<T>(
Type serviceType
)
public:
generic<typename T>
T TryGetService(
Type^ serviceType
)
JScript では、ジェネリックな型またはメソッドは使用できません。
型パラメータ
- T
パラメータ
- serviceType
型 : System.Type
戻り値
型 : T