語言

MsmqBindingElementBase.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

這是 BindingContext 為了綁定元素。

傳回

T

類型 的 T物件 。

例外狀況

上下文是 null。

備註

提供從元件檢索能力與保護需求的功能。

適用於