ITypeReflector.Instantiate Method (TypeDescriptor, MethodInstance)
Creates an instance of a Type corresponding to the TypeDescriptor object for the specified method instance.
Namespace: Microsoft.Office.Server.ApplicationRegistry.Infrastructure
Assembly: Microsoft.SharePoint.Portal (in Microsoft.SharePoint.Portal.dll)
Syntax
'Declaration
Function Instantiate ( _
typeDescriptor As TypeDescriptor, _
methodInstance As MethodInstance _
) As Object
'Usage
Dim instance As ITypeReflector
Dim typeDescriptor As TypeDescriptor
Dim methodInstance As MethodInstance
Dim returnValue As Object
returnValue = instance.Instantiate(typeDescriptor, _
methodInstance)
Object Instantiate(
TypeDescriptor typeDescriptor,
MethodInstance methodInstance
)
Parameters
- typeDescriptor
Type: Microsoft.Office.Server.ApplicationRegistry.MetadataModel.TypeDescriptor
A TypeDescriptor object that represents the recursive structure describing the Type to be created.
- methodInstance
Type: Microsoft.Office.Server.ApplicationRegistry.MetadataModel.MethodInstance
A MethodInstance object for which this Type is being created.
Return Value
Type: System.Object
An instance of a Type.
See Also
Reference
Microsoft.Office.Server.ApplicationRegistry.Infrastructure Namespace