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

適用於