次の方法で共有


WebMessageEncodingBindingElement.GetProperty<T>(BindingContext) メソッド

定義

要求された型のオブジェクト (存在する場合) をチャネル スタック内の適切なレイヤーから返します。存在しない場合は null します。

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

型パラメーター

T

メソッドがクエリを実行する型指定されたオブジェクト。

パラメーター

context
BindingContext

現在のバインド要素の BindingContext

戻り値

T

型指定されたオブジェクト T 存在する場合は要求され、存在しない場合は null

例外

context セットが null

注釈

このオーバーライドにより、基本 GetProperty<T>(BindingContext) 実装に 1 つのプロパティが追加されます。 TXmlDictionaryReaderQuotasされると、 ReaderQuotas プロパティが返されます。

適用対象