C# Класс Microsoft.Scripting.ComInterop.ComBinder

Provides helper methods to bind COM objects dynamically.
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
GetDynamicDataMemberNames ( object value ) : IList
GetDynamicDataMembers ( object value, IEnumerable names ) : object>>.IList
TryGetMetaObject ( DynamicMetaObject &instance ) : bool
TryGetMetaObjectInvoke ( DynamicMetaObject &instance ) : bool

Описание методов

CanComBind() публичный статический Метод

public static CanComBind ( object value ) : bool
value object
Результат bool

GetDynamicMemberNames() публичный статический Метод

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.
Результат IEnumerable

IsComObject() публичный статический Метод

Determines if an object is a COM object.
public static IsComObject ( object value ) : bool
value object The object to test.
Результат bool

TryBindGetIndex() публичный статический Метод

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.
Результат bool

TryBindGetMember() публичный статический Метод

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.
Результат bool

TryBindGetMember() публичный статический Метод

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.
Результат bool

TryBindInvoke() публичный статический Метод

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.
Результат bool

TryBindInvokeMember() публичный статический Метод

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.
Результат bool

TryBindSetIndex() публичный статический Метод

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.
Результат bool

TryBindSetMember() публичный статический Метод

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.
Результат bool

TryConvert() публичный статический Метод

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.
Результат bool