DynamicScriptObject.TrySetMember(SetMemberBinder, Object) Metodo

Definizione

Imposta un membro sull'oggetto script sul valore specificato.

Questa API supporta l'infrastruttura del prodotto e non è previsto che venga usata direttamente dal codice.

public:
 override bool TrySetMember(System::Dynamic::SetMemberBinder ^ binder, System::Object ^ value);
public override bool TrySetMember(System.Dynamic.SetMemberBinder binder, object value);
override this.TrySetMember : System.Dynamic.SetMemberBinder * obj -> bool
Public Overrides Function TrySetMember (binder As SetMemberBinder, value As Object) As Boolean

Parametri

binder
SetMemberBinder

Gestore di associazione fornito dal sito di chiamata.

value
Object

Valore da impostare per il membro.

Valori restituiti

Restituisce sempre true.

Eccezioni

binder è null.

oppure

indexes è null.

La lunghezza di indexes non è uguale a 1.

Il primo indexes valore è null.

Il membro non esiste.

Commenti

Il TrySetMember metodo genera un'eccezione se viene tentato un accesso non valido.

Si applica a