Binding.GetProperty(BindingParameterCollection) Binding.GetProperty(BindingParameterCollection) Binding.GetProperty(BindingParameterCollection) Binding.GetProperty(BindingParameterCollection) Method

定义

从绑定堆栈的适当层返回所请求的类型化对象(如果存在)。Returns a typed object requested, if present, from the appropriate layer in the binding stack.

public:
generic <typename T>
 where T : class T GetProperty(System::ServiceModel::Channels::BindingParameterCollection ^ parameters);
public T GetProperty<T> (System.ServiceModel.Channels.BindingParameterCollection parameters) where T : class;
member this.GetProperty : System.ServiceModel.Channels.BindingParameterCollection -> 'T (requires 'T : null)
Public Function GetProperty(Of T As Class) (parameters As BindingParameterCollection) As T

类型参数

T

方法正在查询的类型化对象。The typed object for which the method is querying.

参数

parameters
BindingParameterCollection BindingParameterCollection BindingParameterCollection BindingParameterCollection

为生成的通道侦听器指定要求的 BindingParameterCollectionThe BindingParameterCollection that specifies requirements for the channel listener that is built.

返回

T T T T

如果存在,则为所请求的类型化对象 T,如果不存在,则为 nullThe typed object T requested if it is present or null if it is not.

注解

如果某个层支持返回所请求的对象,则该层会返回对象。If a layer supports returning the requested object, it returns it. 如果不支持,则该层会将调用委托给堆栈中的下一层。If not, it delegates the call down to the next layer in the stack. 如果到达堆栈底部仍然没有层支持所请求的对象,则该方法返回 nullIf it gets to the bottom of the stack and no layer supported the requested object, then the method returns null.

适用于