WebMessageEncodingBindingElement.GetProperty<T>(BindingContext) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
若存在,則從通道堆疊中相應層回傳請求的物件,若 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) 實作中加入一個屬性:當 T 時 XmlDictionaryReaderQuotas, ReaderQuotas 該屬性會回傳。