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

備註

提供從項目擷取能力和保護需求的功能。

適用於