ServiceManager.Subscribe Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
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>) |
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)
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)
Parameters
- serviceType
- Type
The type of service to subscribe to.
- callback
- SubscribeServiceCallback
A callback that will be notified when the service is available.
Exceptions
serviceType
or callback
is null
.
Applies to
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))
Type Parameters
- TServiceType
The type of the service to subscribe to.
Parameters
A callback that will be notified when the service is available.
Exceptions
callback
is null
.
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
Kommer snart: I hele 2024 udfaser vi GitHub-problemer som feedbackmekanisme for indhold og erstatter det med et nyt feedbacksystem. Du kan få flere oplysninger under:Indsend og få vist feedback om