NamedPipeTransportBindingElement.GetProperty<T>(BindingContext) 메서드

정의

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

가져올 개체입니다.

매개 변수

반환

T

BindingContext에서 지정된 개체이거나, 개체를 찾을 수 없는 경우에는 null입니다.

예제

다음 예제에서는 BindingContext에서 지정된 개체를 가져오는 방법을 보여 줍니다.

BasicHttpBinding binding = new BasicHttpBinding();
ISecurityCapabilities b =
    binding.GetProperty<ISecurityCapabilities>
    (new BindingParameterCollection());

bool SupportsServerAuthentication =
    b.SupportsServerAuthentication;
Dim binding As New BasicHttpBinding()
Dim b As ISecurityCapabilities = binding.GetProperty(Of ISecurityCapabilities)(New BindingParameterCollection())

Dim SupportsServerAuthentication As Boolean = b.SupportsServerAuthentication

설명

이 메서드는 기본 클래스에서 또는 해당 클래스의 상위 항목 중 하나에서 지정된 개체를 가져옵니다. 반환된 개체는 일반적으로 속성 컬렉션입니다(예: ISecurityCapabilities를 구현하는 개체).

적용 대상