ServiceManager.Subscribe ServiceManager.Subscribe ServiceManager.Subscribe ServiceManager.Subscribe Method

정의

오버로드

Subscribe(Type, SubscribeServiceCallback) Subscribe(Type, SubscribeServiceCallback) Subscribe(Type, SubscribeServiceCallback) Subscribe(Type, SubscribeServiceCallback)

요청된 서비스가 게시된 경우 제공한 콜백 함수를 호출합니다.Invokes the provided callback when someone has published the requested service. 서비스를 사용할 수 있는 경우 이 메서드는 콜백을 즉시 호출합니다.If the service was already available, this method invokes the callback immediately.

Subscribe<TServiceType>(SubscribeServiceCallback<TServiceType>) Subscribe<TServiceType>(SubscribeServiceCallback<TServiceType>) Subscribe<TServiceType>(SubscribeServiceCallback<TServiceType>) Subscribe<TServiceType>(SubscribeServiceCallback<TServiceType>)

요청된 서비스가 게시된 경우 제공한 콜백 함수를 호출합니다.Invokes the provided callback when someone has published the requested service. 서비스를 사용할 수 있는 경우 이 메서드는 콜백을 즉시 호출합니다.If the service was already available, this method invokes the callback immediately.

Subscribe(Type, SubscribeServiceCallback) Subscribe(Type, SubscribeServiceCallback) Subscribe(Type, SubscribeServiceCallback) Subscribe(Type, SubscribeServiceCallback)

요청된 서비스가 게시된 경우 제공한 콜백 함수를 호출합니다.Invokes the provided callback when someone has published the requested service. 서비스를 사용할 수 있는 경우 이 메서드는 콜백을 즉시 호출합니다.If the service was already available, this method invokes the callback immediately.

public:
 abstract void Subscribe(Type ^ serviceType, System::Activities::Presentation::SubscribeServiceCallback ^ callback);
public abstract void Subscribe (Type serviceType, System.Activities.Presentation.SubscribeServiceCallback callback);
abstract member Subscribe : Type * System.Activities.Presentation.SubscribeServiceCallback -> unit
Public MustOverride Sub Subscribe (serviceType As Type, callback As SubscribeServiceCallback)

매개 변수

serviceType
Type Type Type Type

구독할 서비스의 형식입니다.The type of service to subscribe to.

callback
SubscribeServiceCallback SubscribeServiceCallback SubscribeServiceCallback SubscribeServiceCallback

서비스를 사용할 수 있는 경우 알림을 받을 콜백입니다.A callback that will be notified when the service is available.

예외

serviceType 또는 callbacknull인 경우serviceType or callback is null.

Subscribe<TServiceType>(SubscribeServiceCallback<TServiceType>) Subscribe<TServiceType>(SubscribeServiceCallback<TServiceType>) Subscribe<TServiceType>(SubscribeServiceCallback<TServiceType>) Subscribe<TServiceType>(SubscribeServiceCallback<TServiceType>)

요청된 서비스가 게시된 경우 제공한 콜백 함수를 호출합니다.Invokes the provided callback when someone has published the requested service. 서비스를 사용할 수 있는 경우 이 메서드는 콜백을 즉시 호출합니다.If the service was already available, this method invokes the callback immediately.

public:
generic <typename TServiceType>
 void Subscribe(System::Activities::Presentation::SubscribeServiceCallback<TServiceType> ^ callback);
public void Subscribe<TServiceType> (System.Activities.Presentation.SubscribeServiceCallback<TServiceType> callback);
member this.Subscribe : System.Activities.Presentation.SubscribeServiceCallback<'ServiceType> -> unit
Public Sub Subscribe(Of TServiceType) (callback As SubscribeServiceCallback(Of TServiceType))

형식 매개 변수

TServiceType

구독할 서비스의 형식입니다.The type of the service to subscribe to.

매개 변수

callback
SubscribeServiceCallback<TServiceType> SubscribeServiceCallback<TServiceType> SubscribeServiceCallback<TServiceType> SubscribeServiceCallback<TServiceType>

서비스를 사용할 수 있는 경우 알림을 받을 콜백입니다.A callback that will be notified when the service is available.

예외

적용 대상