Edit

Share via


Binder.SetMember Method

Definition

Initializes a new CSharp set member binder.

This API supports the product infrastructure and is not intended to be used directly from your code.

public:
 static System::Runtime::CompilerServices::CallSiteBinder ^ SetMember(Microsoft::CSharp::RuntimeBinder::CSharpBinderFlags flags, System::String ^ name, Type ^ context, System::Collections::Generic::IEnumerable<Microsoft::CSharp::RuntimeBinder::CSharpArgumentInfo ^> ^ argumentInfo);
public static System.Runtime.CompilerServices.CallSiteBinder SetMember(Microsoft.CSharp.RuntimeBinder.CSharpBinderFlags flags, string name, Type context, System.Collections.Generic.IEnumerable<Microsoft.CSharp.RuntimeBinder.CSharpArgumentInfo> argumentInfo);
[System.Diagnostics.CodeAnalysis.RequiresDynamicCode("The 'dynamic' feature requires runtime-code generation, which is incompatible with AOT.")]
[System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Using dynamic types might cause types or members to be removed by trimmer.")]
public static System.Runtime.CompilerServices.CallSiteBinder SetMember(Microsoft.CSharp.RuntimeBinder.CSharpBinderFlags flags, string name, Type? context, System.Collections.Generic.IEnumerable<Microsoft.CSharp.RuntimeBinder.CSharpArgumentInfo>? argumentInfo);
public static System.Runtime.CompilerServices.CallSiteBinder SetMember(Microsoft.CSharp.RuntimeBinder.CSharpBinderFlags flags, string name, Type? context, System.Collections.Generic.IEnumerable<Microsoft.CSharp.RuntimeBinder.CSharpArgumentInfo>? argumentInfo);
[System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Using dynamic types might cause types or members to be removed by trimmer.")]
public static System.Runtime.CompilerServices.CallSiteBinder SetMember(Microsoft.CSharp.RuntimeBinder.CSharpBinderFlags flags, string name, Type? context, System.Collections.Generic.IEnumerable<Microsoft.CSharp.RuntimeBinder.CSharpArgumentInfo>? argumentInfo);
static member SetMember : Microsoft.CSharp.RuntimeBinder.CSharpBinderFlags * string * Type * seq<Microsoft.CSharp.RuntimeBinder.CSharpArgumentInfo> -> System.Runtime.CompilerServices.CallSiteBinder
[<System.Diagnostics.CodeAnalysis.RequiresDynamicCode("The 'dynamic' feature requires runtime-code generation, which is incompatible with AOT.")>]
[<System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Using dynamic types might cause types or members to be removed by trimmer.")>]
static member SetMember : Microsoft.CSharp.RuntimeBinder.CSharpBinderFlags * string * Type * seq<Microsoft.CSharp.RuntimeBinder.CSharpArgumentInfo> -> System.Runtime.CompilerServices.CallSiteBinder
[<System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Using dynamic types might cause types or members to be removed by trimmer.")>]
static member SetMember : Microsoft.CSharp.RuntimeBinder.CSharpBinderFlags * string * Type * seq<Microsoft.CSharp.RuntimeBinder.CSharpArgumentInfo> -> System.Runtime.CompilerServices.CallSiteBinder
Public Shared Function SetMember (flags As CSharpBinderFlags, name As String, context As Type, argumentInfo As IEnumerable(Of CSharpArgumentInfo)) As CallSiteBinder

Parameters

flags
CSharpBinderFlags

The flags with which to initialize the binder.

name
String

The name of the member to set.

context
Type

The Type that indicates where this operation is used.

argumentInfo
IEnumerable<CSharpArgumentInfo>

The sequence of CSharpArgumentInfo instances for the arguments to this operation.

Returns

A new CSharp set member binder.

Attributes

Applies to