Επεξεργασία

Κοινή χρήση μέσω


SymbolResolver.Add Method

Definition

Adds an object reference to the dictionary of symbols keyed by string name.

Overloads

Add(KeyValuePair<String,Object>)

Adds a symbol using the specified key/value pair.

Add(String, Object)

Adds a symbol using the specified symbol name and value.

Add(String, Type)

Adds a symbol using the specified symbol name and type.

Add(String, Object, Type)

Adds a symbol using the specified symbol name, value, and type.

Add(KeyValuePair<String,Object>)

Adds a symbol using the specified key/value pair.

public:
 virtual void Add(System::Collections::Generic::KeyValuePair<System::String ^, System::Object ^> item);
public void Add (System.Collections.Generic.KeyValuePair<string,object> item);
abstract member Add : System.Collections.Generic.KeyValuePair<string, obj> -> unit
override this.Add : System.Collections.Generic.KeyValuePair<string, obj> -> unit
Public Sub Add (item As KeyValuePair(Of String, Object))

Parameters

item
KeyValuePair<String,Object>

The symbol to add.

Implements

Applies to

Add(String, Object)

Adds a symbol using the specified symbol name and value.

public:
 virtual void Add(System::String ^ key, System::Object ^ value);
public void Add (string key, object value);
abstract member Add : string * obj -> unit
override this.Add : string * obj -> unit
Public Sub Add (key As String, value As Object)

Parameters

key
String

The name of the symbol.

value
Object

The value of the symbol to reference.

Implements

Applies to

Add(String, Type)

Adds a symbol using the specified symbol name and type.

public:
 void Add(System::String ^ key, Type ^ type);
public void Add (string key, Type type);
member this.Add : string * Type -> unit
Public Sub Add (key As String, type As Type)

Parameters

key
String

The name of the symbol.

type
Type

The type of the symbol value.

Remarks

The symbol is added with the default value for the specified type.

Applies to

Add(String, Object, Type)

Adds a symbol using the specified symbol name, value, and type.

public:
 void Add(System::String ^ key, System::Object ^ value, Type ^ type);
public void Add (string key, object value, Type type);
member this.Add : string * obj * Type -> unit
Public Sub Add (key As String, value As Object, type As Type)

Parameters

key
String

The name of the symbol.

value
Object

The value of the symbol to reference.

type
Type

The type of the symbol value.

Applies to