次の方法で共有


MethodInfo.CreateDelegate Method (Type, Object)

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Creates a delegate of the specified type with the specified target from this method.

Namespace:  System.Reflection
Assembly:  mscorlib (in mscorlib.dll)

Syntax

'Declaration
Public Overridable Function CreateDelegate ( _
    delegateType As Type, _
    target As Object _
) As Delegate
public virtual Delegate CreateDelegate(
    Type delegateType,
    Object target
)

Parameters

  • delegateType
    Type: System.Type
    The type of the delegate to create.
  • target
    Type: System.Object
    The object targeted by the delegate.

Return Value

Type: System.Delegate
The delegate for this method.

Version Information

Silverlight

Supported in: 5

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.