C# Class Microsoft.Scripting.ComInterop.ComBinder

Provides helper methods to bind COM objects dynamically.
Afficher le fichier Open project: jschementi/iron Class Usage Examples

Méthodes publiques

Méthode Description
CanComBind ( object value ) : bool
GetDynamicMemberNames ( object value ) : IEnumerable

Gets the member names associated with the object. This function can operate only with objects for which IsComObject returns true.

IsComObject ( object value ) : bool

Determines if an object is a COM object.

TryBindGetIndex ( GetIndexBinder binder, DynamicMetaObject instance, DynamicMetaObject args, DynamicMetaObject &result ) : bool

Tries to perform binding of the dynamic get index operation.

TryBindGetMember ( GetMemberBinder binder, DynamicMetaObject instance, DynamicMetaObject &result ) : bool

Tries to perform binding of the dynamic get member operation.

TryBindGetMember ( GetMemberBinder binder, DynamicMetaObject instance, DynamicMetaObject &result, bool delayInvocation ) : bool

Tries to perform binding of the dynamic get member operation.

TryBindInvoke ( InvokeBinder binder, DynamicMetaObject instance, DynamicMetaObject args, DynamicMetaObject &result ) : bool

Tries to perform binding of the dynamic invoke operation.

TryBindInvokeMember ( InvokeMemberBinder binder, DynamicMetaObject instance, DynamicMetaObject args, DynamicMetaObject &result ) : bool

Tries to perform binding of the dynamic invoke member operation.

TryBindSetIndex ( SetIndexBinder binder, DynamicMetaObject instance, DynamicMetaObject args, DynamicMetaObject value, DynamicMetaObject &result ) : bool

Tries to perform binding of the dynamic set index operation.

TryBindSetMember ( SetMemberBinder binder, DynamicMetaObject instance, DynamicMetaObject value, DynamicMetaObject &result ) : bool

Tries to perform binding of the dynamic set member operation.

TryConvert ( ConvertBinder binder, DynamicMetaObject instance, DynamicMetaObject &result ) : bool

Tries to perform binding of the dynamic Convert operation.

Private Methods

Méthode Description
GetDynamicDataMemberNames ( object value ) : IList
GetDynamicDataMembers ( object value, IEnumerable names ) : object>>.IList
TryGetMetaObject ( DynamicMetaObject &instance ) : bool
TryGetMetaObjectInvoke ( DynamicMetaObject &instance ) : bool

Method Details

CanComBind() public static méthode

public static CanComBind ( object value ) : bool
value object
Résultat bool

GetDynamicMemberNames() public static méthode

Gets the member names associated with the object. This function can operate only with objects for which IsComObject returns true.
public static GetDynamicMemberNames ( object value ) : IEnumerable
value object The object for which member names are requested.
Résultat IEnumerable

IsComObject() public static méthode

Determines if an object is a COM object.
public static IsComObject ( object value ) : bool
value object The object to test.
Résultat bool

TryBindGetIndex() public static méthode

Tries to perform binding of the dynamic get index operation.
public static TryBindGetIndex ( GetIndexBinder binder, DynamicMetaObject instance, DynamicMetaObject args, DynamicMetaObject &result ) : bool
binder System.Dynamic.GetIndexBinder An instance of the that represents the details of the dynamic operation.
instance System.Dynamic.DynamicMetaObject The target of the dynamic operation.
args System.Dynamic.DynamicMetaObject An array of instances - arguments to the invoke member operation.
result System.Dynamic.DynamicMetaObject The new representing the result of the binding.
Résultat bool

TryBindGetMember() public static méthode

Tries to perform binding of the dynamic get member operation.
public static TryBindGetMember ( GetMemberBinder binder, DynamicMetaObject instance, DynamicMetaObject &result ) : bool
binder System.Dynamic.GetMemberBinder An instance of the that represents the details of the dynamic operation.
instance System.Dynamic.DynamicMetaObject The target of the dynamic operation.
result System.Dynamic.DynamicMetaObject The new representing the result of the binding.
Résultat bool

TryBindGetMember() public static méthode

Tries to perform binding of the dynamic get member operation.
public static TryBindGetMember ( GetMemberBinder binder, DynamicMetaObject instance, DynamicMetaObject &result, bool delayInvocation ) : bool
binder System.Dynamic.GetMemberBinder An instance of the that represents the details of the dynamic operation.
instance System.Dynamic.DynamicMetaObject The target of the dynamic operation.
result System.Dynamic.DynamicMetaObject The new representing the result of the binding.
delayInvocation bool true if member evaluation may be delayed.
Résultat bool

TryBindInvoke() public static méthode

Tries to perform binding of the dynamic invoke operation.
public static TryBindInvoke ( InvokeBinder binder, DynamicMetaObject instance, DynamicMetaObject args, DynamicMetaObject &result ) : bool
binder System.Dynamic.InvokeBinder An instance of the that represents the details of the dynamic operation.
instance System.Dynamic.DynamicMetaObject The target of the dynamic operation.
args System.Dynamic.DynamicMetaObject An array of instances - arguments to the invoke member operation.
result System.Dynamic.DynamicMetaObject The new representing the result of the binding.
Résultat bool

TryBindInvokeMember() public static méthode

Tries to perform binding of the dynamic invoke member operation.
public static TryBindInvokeMember ( InvokeMemberBinder binder, DynamicMetaObject instance, DynamicMetaObject args, DynamicMetaObject &result ) : bool
binder System.Dynamic.InvokeMemberBinder An instance of the that represents the details of the dynamic operation.
instance System.Dynamic.DynamicMetaObject The target of the dynamic operation.
args System.Dynamic.DynamicMetaObject An array of instances - arguments to the invoke member operation.
result System.Dynamic.DynamicMetaObject The new representing the result of the binding.
Résultat bool

TryBindSetIndex() public static méthode

Tries to perform binding of the dynamic set index operation.
public static TryBindSetIndex ( SetIndexBinder binder, DynamicMetaObject instance, DynamicMetaObject args, DynamicMetaObject value, DynamicMetaObject &result ) : bool
binder System.Dynamic.SetIndexBinder An instance of the that represents the details of the dynamic operation.
instance System.Dynamic.DynamicMetaObject The target of the dynamic operation.
args System.Dynamic.DynamicMetaObject An array of instances - arguments to the invoke member operation.
value System.Dynamic.DynamicMetaObject The representing the value for the set index operation.
result System.Dynamic.DynamicMetaObject The new representing the result of the binding.
Résultat bool

TryBindSetMember() public static méthode

Tries to perform binding of the dynamic set member operation.
public static TryBindSetMember ( SetMemberBinder binder, DynamicMetaObject instance, DynamicMetaObject value, DynamicMetaObject &result ) : bool
binder System.Dynamic.SetMemberBinder An instance of the that represents the details of the dynamic operation.
instance System.Dynamic.DynamicMetaObject The target of the dynamic operation.
value System.Dynamic.DynamicMetaObject The representing the value for the set member operation.
result System.Dynamic.DynamicMetaObject The new representing the result of the binding.
Résultat bool

TryConvert() public static méthode

Tries to perform binding of the dynamic Convert operation.
public static TryConvert ( ConvertBinder binder, DynamicMetaObject instance, DynamicMetaObject &result ) : bool
binder System.Dynamic.ConvertBinder An instance of the that represents the details of the dynamic operation.
instance System.Dynamic.DynamicMetaObject The target of the dynamic operation.
result System.Dynamic.DynamicMetaObject The new representing the result of the binding.
Résultat bool