Udostępnij za pośrednictwem


WebMessageEncodingBindingElement.GetProperty<T>(BindingContext) Metoda

Definicja

Zwraca obiekt typu żądanego, jeśli istnieje, z odpowiedniej warstwy w stosie kanału lub null jeśli nie jest obecny.

public:
generic <typename T>
 where T : class override T GetProperty(System::ServiceModel::Channels::BindingContext ^ context);
public override T GetProperty<T>(System.ServiceModel.Channels.BindingContext context) where T : class;
override this.GetProperty : System.ServiceModel.Channels.BindingContext -> 'T (requires 'T : null)
Public Overrides Function GetProperty(Of T As Class) (context As BindingContext) As T

Parametry typu

T

Typowany obiekt, dla którego wykonuje zapytanie w metodzie.

Parametry

context
BindingContext

Element BindingContext dla bieżącego elementu powiązania.

Zwraca

T

Typowany obiekt T zażądany, jeśli jest obecny lub null nie.

Wyjątki

context ustawiono wartość null.

Uwagi

To zastąpienie dodaje jedną właściwość do implementacji podstawowej GetProperty<T>(BindingContext) : gdy T jest XmlDictionaryReaderQuotas, ReaderQuotas zwracana jest właściwość .

Dotyczy