ClientRuntime.Operations 속성

정의

클라이언트에 대한 클라이언트 작업 컬렉션을 가져옵니다.

public:
 property System::Collections::Generic::SynchronizedKeyedCollection<System::String ^, System::ServiceModel::Dispatcher::ClientOperation ^> ^ Operations { System::Collections::Generic::SynchronizedKeyedCollection<System::String ^, System::ServiceModel::Dispatcher::ClientOperation ^> ^ get(); };
public:
 property System::Collections::ObjectModel::KeyedCollection<System::String ^, System::ServiceModel::Dispatcher::ClientOperation ^> ^ Operations { System::Collections::ObjectModel::KeyedCollection<System::String ^, System::ServiceModel::Dispatcher::ClientOperation ^> ^ get(); };
public System.Collections.Generic.SynchronizedKeyedCollection<string,System.ServiceModel.Dispatcher.ClientOperation> Operations { get; }
public System.Collections.ObjectModel.KeyedCollection<string,System.ServiceModel.Dispatcher.ClientOperation> Operations { get; }
member this.Operations : System.Collections.Generic.SynchronizedKeyedCollection<string, System.ServiceModel.Dispatcher.ClientOperation>
member this.Operations : System.Collections.ObjectModel.KeyedCollection<string, System.ServiceModel.Dispatcher.ClientOperation>
Public ReadOnly Property Operations As SynchronizedKeyedCollection(Of String, ClientOperation)
Public ReadOnly Property Operations As KeyedCollection(Of String, ClientOperation)

속성 값

SynchronizedKeyedCollection<String,ClientOperation>
KeyedCollection<String,ClientOperation>

ClientOperation 개체의 동기화된 컬렉션입니다.

예제

다음 코드 예제에서 System.ServiceModel.Description.IEndpointBehaviorSystem.ServiceModel.Dispatcher.IParameterInspectorClientOperation 속성의 각 Operations에 추가하여 클라이언트 런타임에 삽입합니다.

#region IEndpointBehavior Members
public void AddBindingParameters(
  ServiceEndpoint endpoint, BindingParameterCollection bindingParameters
) { return; }

public void ApplyClientBehavior(ServiceEndpoint endpoint, ClientRuntime clientRuntime)
{
  clientRuntime.MessageInspectors.Add(new Inspector());
  foreach (ClientOperation op in clientRuntime.Operations)
    op.ParameterInspectors.Add(new Inspector());
}

public void ApplyDispatchBehavior(ServiceEndpoint endpoint, EndpointDispatcher endpointDispatcher)
{
  endpointDispatcher.DispatchRuntime.MessageInspectors.Add(new Inspector());
  foreach (DispatchOperation op in endpointDispatcher.DispatchRuntime.Operations)
    op.ParameterInspectors.Add(new Inspector());
}

public void Validate(ServiceEndpoint endpoint){ return; }
#Region "IEndpointBehavior Members"
    Public Sub AddBindingParameters(ByVal endpoint As ServiceEndpoint, ByVal bindingParameters _
                                    As BindingParameterCollection) Implements IEndpointBehavior.AddBindingParameters
        Return
    End Sub

    Public Sub ApplyClientBehavior(ByVal endpoint As ServiceEndpoint, ByVal clientRuntime As ClientRuntime) _
    Implements IEndpointBehavior.ApplyClientBehavior
        clientRuntime.MessageInspectors.Add(New Inspector())
        For Each op As ClientOperation In clientRuntime.Operations
            op.ParameterInspectors.Add(New Inspector())
        Next op
    End Sub

    Public Sub ApplyDispatchBehavior(ByVal endpoint As ServiceEndpoint, ByVal endpointDispatcher As  _
                                     EndpointDispatcher) Implements IEndpointBehavior.ApplyDispatchBehavior
        endpointDispatcher.DispatchRuntime.MessageInspectors.Add(New Inspector())
        For Each op As DispatchOperation In endpointDispatcher.DispatchRuntime.Operations
            op.ParameterInspectors.Add(New Inspector())
        Next op
    End Sub

Public Sub Validate(ByVal endpoint As ServiceEndpoint) Implements IEndpointBehavior.Validate
    Return
End Sub

설명

특정 작업 범위의 메시지와 동작을 검사하거나 수정하는 확장 개체를 연결하는 데 사용할 수 있는 이 클라이언트의 모든 클라이언트 작업 컬렉션을 가져오려면 Operations 속성을 사용합니다. 자세한 내용은 ClientOperation를 참조하십시오.

적용 대상