Partager via


NewLateBinding.LateSet Method (Object, Type, String, array<Object[], array<String[], array<Type[], Boolean, Boolean, CallType)

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

Executes a late-bound property set or field write call. This helper method is not meant to be called directly from your code.

Namespace:  Microsoft.VisualBasic.CompilerServices
Assembly:  Microsoft.VisualBasic (in Microsoft.VisualBasic.dll)

Syntax

'Declaration
<DebuggerStepThroughAttribute> _
<DebuggerHiddenAttribute> _
Public Shared Sub LateSet ( _
    Instance As Object, _
    Type As Type, _
    MemberName As String, _
    Arguments As Object(), _
    ArgumentNames As String(), _
    TypeArguments As Type(), _
    OptimisticSet As Boolean, _
    RValueBase As Boolean, _
    CallType As CallType _
)
[DebuggerStepThroughAttribute]
[DebuggerHiddenAttribute]
public static void LateSet(
    Object Instance,
    Type Type,
    string MemberName,
    Object[] Arguments,
    string[] ArgumentNames,
    Type[] TypeArguments,
    bool OptimisticSet,
    bool RValueBase,
    CallType CallType
)

Parameters

  • Instance
    Type: System.Object
    An instance of the call object exposing the property or method.
  • MemberName
    Type: System.String
    The name of the property or method on the call object.
  • Arguments
    Type: array<System.Object[]
    An array containing the arguments to be passed to the property or method being called.
  • ArgumentNames
    Type: array<System.String[]
    An array of argument names.
  • TypeArguments
    Type: array<System.Type[]
    An array of argument types; used only for generic calls to pass argument types.
  • OptimisticSet
    Type: System.Boolean
    A Boolean value used to determine whether the set operation will work. Set to True when you believe that an intermediate value has been set in the property or field; otherwise False.
  • RValueBase
    Type: System.Boolean
    A Boolean value that specifies when the base reference of the late reference is an RValue. Set to True when the base reference of the late reference is an RValue; this allows you to generate a run-time exception for late assignments to fields of RValues of value types. Otherwise, set to False.
  • CallType
    Type: Microsoft.VisualBasic.CallType
    An enumeration member of type CallType representing the type of procedure being called. The value of CallType can be Method, Get, or Set. Only Set is used.

Remarks

If the set operation is the copy-back of a late-bound expression being passed as a ByRef parameter, OptimisticSet is used to determine whether the set operation will work, as the latebound expression may result in a read-only property or a method. For more information see the CopyBack parameter of LateCall.

Version Information

Silverlight

Supported in: 5, 4, 3

Platforms

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