ServiceManager.Subscribe Method
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
Invokes the provided callback when someone has published the requested service. If the service was already available, this method invokes the callback immediately.
Namespace: System.Activities.Design
Assembly: System.Activities.Design.Base (in System.Activities.Design.Base.dll)
Syntax
'Declaration
Public MustOverride Sub Subscribe ( _
serviceType As Type, _
callback As SubscribeServiceCallback _
)
'Usage
Dim instance As ServiceManager
Dim serviceType As Type
Dim callback As SubscribeServiceCallback
instance.Subscribe(serviceType, callback)
public abstract void Subscribe(
Type serviceType,
SubscribeServiceCallback callback
)
public:
virtual void Subscribe(
Type^ serviceType,
SubscribeServiceCallback^ callback
) abstract
public abstract function Subscribe(
serviceType : Type,
callback : SubscribeServiceCallback
)
abstract Subscribe :
serviceType:Type *
callback:SubscribeServiceCallback -> unit
Parameters
- serviceType
Type: System.Type
The type of service to subscribe to.
- callback
Type: System.Activities.Design.SubscribeServiceCallback
A callback that will be notified when the service is available.
Exceptions
| Exception | Condition |
|---|---|
| ArgumentNullException | serviceType or callback is nulla null reference (Nothing in Visual Basic). |
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
Platforms
Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008, Windows Server 2003
The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Version Information
.NET Framework
Supported in: 4