NewLateBinding.LateSet Method
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Executes a late-bound property set or field write call. This helper method is not meant to be called directly from your code.
LateSet(Object, Type, String, Object[], String[], Type[]) |
Executes a late-bound property set or field write call. This helper method is not meant to be called directly from your code. |
LateSet(Object, Type, String, Object[], String[], Type[], Boolean, Boolean, CallType) |
Executes a late-bound property set or field write call. This helper method is not meant to be called directly from your code. |
- Source:
- NewLateBinding.vb
- Source:
- NewLateBinding.vb
- Source:
- NewLateBinding.vb
Executes a late-bound property set or field write call. This helper method is not meant to be called directly from your code.
public:
static void LateSet(System::Object ^ Instance, Type ^ Type, System::String ^ MemberName, cli::array <System::Object ^> ^ Arguments, cli::array <System::String ^> ^ ArgumentNames, cli::array <Type ^> ^ TypeArguments);
public static void LateSet (object Instance, Type Type, string MemberName, object[] Arguments, string[] ArgumentNames, Type[] TypeArguments);
public static void LateSet (object? Instance, Type? Type, string MemberName, object?[]? Arguments, string?[]? ArgumentNames, Type[]? TypeArguments);
static member LateSet : obj * Type * string * obj[] * string[] * Type[] -> unit
Public Shared Sub LateSet (Instance As Object, Type As Type, MemberName As String, Arguments As Object(), ArgumentNames As String(), TypeArguments As Type())
Parameters
- Instance
- Object
An instance of the call object exposing the property or method.
- Type
- Type
The type of the call object.
- MemberName
- String
The name of the property or method on the call object.
- Arguments
- Object[]
An array containing the arguments to be passed to the property or method being called.
- ArgumentNames
- String[]
An array of argument names.
- TypeArguments
- Type[]
An array of argument types; used only for generic calls to pass argument types.
Applies to
.NET 9 en andere versies
Product | Versies |
---|---|
.NET | Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9 |
.NET Framework | 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
UWP | 10.0 |
- Source:
- NewLateBinding.vb
- Source:
- NewLateBinding.vb
- Source:
- NewLateBinding.vb
Executes a late-bound property set or field write call. This helper method is not meant to be called directly from your code.
public:
static void LateSet(System::Object ^ Instance, Type ^ Type, System::String ^ MemberName, cli::array <System::Object ^> ^ Arguments, cli::array <System::String ^> ^ ArgumentNames, cli::array <Type ^> ^ TypeArguments, bool OptimisticSet, bool RValueBase, Microsoft::VisualBasic::CallType CallType);
public static void LateSet (object Instance, Type Type, string MemberName, object[] Arguments, string[] ArgumentNames, Type[] TypeArguments, bool OptimisticSet, bool RValueBase, Microsoft.VisualBasic.CallType CallType);
public static void LateSet (object? Instance, Type? Type, string MemberName, object?[]? Arguments, string?[]? ArgumentNames, Type[]? TypeArguments, bool OptimisticSet, bool RValueBase, Microsoft.VisualBasic.CallType CallType);
static member LateSet : obj * Type * string * obj[] * string[] * Type[] * bool * bool * Microsoft.VisualBasic.CallType -> unit
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)
Parameters
- Instance
- Object
An instance of the call object exposing the property or method.
- Type
- Type
The type of the call object.
- MemberName
- String
The name of the property or method on the call object.
- Arguments
- Object[]
An array containing the arguments to be passed to the property or method being called.
- ArgumentNames
- String[]
An array of argument names.
- TypeArguments
- Type[]
An array of argument types; used only for generic calls to pass argument types.
- OptimisticSet
- 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
- 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
- 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.
Applies to
.NET 9 en andere versies
Product | Versies |
---|---|
.NET | Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9 |
.NET Framework | 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
UWP | 10.0 |
.NET-feedback
.NET is een open source project. Selecteer een koppeling om feedback te geven: