Поделиться через


BindingContext.Binding Свойство

Определение

Получает привязку для канала, встроенного в текущий контекст.

public:
 property System::ServiceModel::Channels::CustomBinding ^ Binding { System::ServiceModel::Channels::CustomBinding ^ get(); };
public System.ServiceModel.Channels.CustomBinding Binding { get; }
member this.Binding : System.ServiceModel.Channels.CustomBinding
Public ReadOnly Property Binding As CustomBinding

Значение свойства

Коллекция CustomBinding для канала, встроенного в текущий контекст.

Примеры

CustomBinding binding = new CustomBinding();
BindingParameterCollection bpCol = new BindingParameterCollection();
BindingContext context = new BindingContext(binding, bpCol);
Binding binding2 = context.Binding;
Dim binding As New CustomBinding()
Dim bpCol As New BindingParameterCollection()
Dim context As New BindingContext(binding, bpCol)
Dim binding2 As Binding = context.Binding

Применяется к