NamedArgumentsEncoder.AddArgument 方法

定义

重载

名称 说明
AddArgument(Boolean, Action<NamedArgumentTypeEncoder>, Action<NameEncoder>, Action<LiteralEncoder>)

对命名参数(字段或属性)进行编码。

AddArgument(Boolean, NamedArgumentTypeEncoder, NameEncoder, LiteralEncoder)

对命名参数(字段或属性)进行编码,并返回必须在参数列表中显示的顺序使用的三个编码器。

AddArgument(Boolean, Action<NamedArgumentTypeEncoder>, Action<NameEncoder>, Action<LiteralEncoder>)

Source:
BlobEncoders.cs
Source:
BlobEncoders.cs
Source:
BlobEncoders.cs
Source:
BlobEncoders.cs
Source:
BlobEncoders.cs
Source:
BlobEncoders.cs
Source:
BlobEncoders.cs

对命名参数(字段或属性)进行编码。

public:
 void AddArgument(bool isField, Action<System::Reflection::Metadata::Ecma335::NamedArgumentTypeEncoder> ^ type, Action<System::Reflection::Metadata::Ecma335::NameEncoder> ^ name, Action<System::Reflection::Metadata::Ecma335::LiteralEncoder> ^ literal);
public void AddArgument(bool isField, Action<System.Reflection.Metadata.Ecma335.NamedArgumentTypeEncoder> type, Action<System.Reflection.Metadata.Ecma335.NameEncoder> name, Action<System.Reflection.Metadata.Ecma335.LiteralEncoder> literal);
member this.AddArgument : bool * Action<System.Reflection.Metadata.Ecma335.NamedArgumentTypeEncoder> * Action<System.Reflection.Metadata.Ecma335.NameEncoder> * Action<System.Reflection.Metadata.Ecma335.LiteralEncoder> -> unit
Public Sub AddArgument (isField As Boolean, type As Action(Of NamedArgumentTypeEncoder), name As Action(Of NameEncoder), literal As Action(Of LiteralEncoder))

参数

isField
Boolean

true 若要对字段进行编码, false 则为对属性进行编码。

type
Action<NamedArgumentTypeEncoder>

要首先调用的方法,用于对参数的类型进行编码。

name
Action<NameEncoder>

要调用第二个方法来编码字段或属性的名称。

literal
Action<LiteralEncoder>

要调用第三个方法来对参数的文本值进行编码。

例外

typenameliteralnull

适用于

AddArgument(Boolean, NamedArgumentTypeEncoder, NameEncoder, LiteralEncoder)

Source:
BlobEncoders.cs
Source:
BlobEncoders.cs
Source:
BlobEncoders.cs
Source:
BlobEncoders.cs
Source:
BlobEncoders.cs
Source:
BlobEncoders.cs
Source:
BlobEncoders.cs

对命名参数(字段或属性)进行编码,并返回必须在参数列表中显示的顺序使用的三个编码器。

public:
 void AddArgument(bool isField, [Runtime::InteropServices::Out] System::Reflection::Metadata::Ecma335::NamedArgumentTypeEncoder % type, [Runtime::InteropServices::Out] System::Reflection::Metadata::Ecma335::NameEncoder % name, [Runtime::InteropServices::Out] System::Reflection::Metadata::Ecma335::LiteralEncoder % literal);
public void AddArgument(bool isField, out System.Reflection.Metadata.Ecma335.NamedArgumentTypeEncoder type, out System.Reflection.Metadata.Ecma335.NameEncoder name, out System.Reflection.Metadata.Ecma335.LiteralEncoder literal);
member this.AddArgument : bool * NamedArgumentTypeEncoder * NameEncoder * LiteralEncoder -> unit
Public Sub AddArgument (isField As Boolean, ByRef type As NamedArgumentTypeEncoder, ByRef name As NameEncoder, ByRef literal As LiteralEncoder)

参数

isField
Boolean

true 若要对字段进行编码, false 则为对属性进行编码。

type
NamedArgumentTypeEncoder

要首先调用的方法,用于对参数的类型进行编码。

name
NameEncoder

要调用第二个方法来编码字段或属性的名称。

literal
LiteralEncoder

要调用第三个方法来对参数的文本值进行编码。

适用于