共用方式為


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) 實作中加入一個屬性:當 TXmlDictionaryReaderQuotasReaderQuotas 該屬性會回傳。

適用於