語言

DiscoveryClientBindingElement.GetProperty<T>(BindingContext) 方法

定義

若綁定堆疊中有物件,則回傳請求型態的物件。

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

綁定的背景。

傳回

T

若存在則為指定類型的物件,否則 null為 。

適用於